| Severity |
Rule |
| Error |
Row 3, Column 9: "Replace `⏎····StyleSheet,·TouchableOpacity,·View⏎` with `StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| Warning |
Row 4, Column 39: "Missing trailing comma."
comma-dangle
|
| Error |
Row 6, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 8, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 15, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 15, Column 26: "Missing semicolon."
semi
|
| Warning |
Row 21, Column 5: "'activeTintColor' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 22, Column 5: "'activeFeaturedTintColor' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 23, Column 19: "Insert `,`"
prettier/prettier
|
| Warning |
Row 23, Column 19: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 28, Column 14: "Inline style: {
flexDirection: 'row',
justifyContent: 'space-between',
overflow: 'hidden',
width: '100%'
}"
react-native/no-inline-styles
|
| Error |
Row 30, Column 24: "Insert `·`"
prettier/prettier
|
| Error |
Row 32, Column 27: "Insert `·`"
prettier/prettier
|
| Error |
Row 58, Column 20: "Delete `?`"
prettier/prettier
|
| Warning |
Row 58, Column 20: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 59, Column 12: "Insert `···?`"
prettier/prettier
|
| Error |
Row 60, Column 12: "Insert `···:`"
prettier/prettier
|
| Error |
Row 61, Column 13: "Delete `:⏎········`"
prettier/prettier
|
| Warning |
Row 83, Column 20: "Inline style: { alignItems: 'center', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Warning |
Row 85, Column 32: "Strings must use singlequote."
quotes
|
| Warning |
Row 93, Column 24: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 96, Column 19: "Duplicate key 'color'."
no-dupe-keys
|
| Error |
Row 111, Column 21: "Insert `·`"
prettier/prettier
|
| Error |
Row 118, Column 25: "Replace `(state)` with `state`"
prettier/prettier
|
| Error |
Row 124, Column 28: "Replace `(dispatch)` with `dispatch`"
prettier/prettier
|
| Error |
Row 125, Column 18: "Replace `(data)=>dispatch(TAKE_TO_ACTIONS.postSigninData(data))` with `·data·=>·dispatch(TAKE_TO_ACTIONS.postSigninData(data)),`"
prettier/prettier
|
| Error |
Row 125, Column 35: "'TAKE_TO_ACTIONS' is not defined."
no-undef
|
| Warning |
Row 125, Column 72: "Missing trailing comma."
comma-dangle
|
| Error |
Row 127, Column 72: "Insert `;`"
prettier/prettier
|
| Warning |
Row 127, Column 72: "Missing semicolon."
semi
|
| Line |
Source |
| 1 |
//core |
| 2 |
import React from 'react'; |
| Error |
Row 3, Column 9: "Replace `⏎····StyleSheet,·TouchableOpacity,·View⏎` with `StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| 3 |
import { |
| Warning |
Row 4, Column 39: "Missing trailing comma."
comma-dangle
|
| 4 |
StyleSheet, TouchableOpacity, View |
| 5 |
} from 'react-native'; |
| Error |
Row 6, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 6 |
import { connect } from 'react-redux'; |
| 7 |
import colors from '../../config/colors'; |
| Error |
Row 8, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 8 |
import { mvs } from '../../config/metrices'; |
| 9 |
import Regular from '../../presentation/typography/regular-text'; |
| 10 |
// import { getScaleValueFromWidthPer, HP, palette } from "../config"; |
| 11 |
//exnternal |
| 12 |
//internal imports |
| 13 |
const BottomMenu = props => { |
| 14 |
// const { colors } = useTheme() |
| Error |
Row 15, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 15, Column 26: "Missing semicolon."
semi
|
| 15 |
const {isGuest} = props |
| 16 |
const { |
| 17 |
state: {index, routes}, |
| 18 |
navigation, |
| 19 |
descriptors, |
| 20 |
style, |
| Warning |
Row 21, Column 5: "'activeTintColor' is assigned a value but never used."
no-unused-vars
|
| 21 |
activeTintColor, |
| Warning |
Row 22, Column 5: "'activeFeaturedTintColor' is assigned a value but never used."
no-unused-vars
|
| 22 |
activeFeaturedTintColor, |
| Error |
Row 23, Column 19: "Insert `,`"
prettier/prettier
|
| Warning |
Row 23, Column 19: "Missing trailing comma."
comma-dangle
|
| 23 |
showGuestAlert |
| 24 |
} = props; |
| 25 |
return ( |
| 26 |
<View |
| 27 |
// elevation={1} |
| Warning |
Row 28, Column 14: "Inline style: {
flexDirection: 'row',
justifyContent: 'space-between',
overflow: 'hidden',
width: '100%'
}"
react-native/no-inline-styles
|
| 28 |
style={{ |
| 29 |
flexDirection: 'row', |
| Error |
Row 30, Column 24: "Insert `·`"
prettier/prettier
|
| 30 |
justifyContent:'space-between', |
| 31 |
height: mvs(83), |
| Error |
Row 32, Column 27: "Insert `·`"
prettier/prettier
|
| 32 |
paddingHorizontal:mvs(22), |
| 33 |
borderTopLeftRadius: mvs(20), |
| 34 |
borderTopRightRadius: mvs(20), |
| 35 |
backgroundColor: colors.white, |
| 36 |
overflow: 'hidden', |
| 37 |
width: '100%', |
| 38 |
...style, |
| 39 |
}}> |
| 40 |
{routes.map((route, idx) => { |
| 41 |
const {options} = descriptors[route.key]; |
| 42 |
|
| 43 |
const isFocused = index === idx; |
| 44 |
|
| 45 |
const icon = |
| 46 |
options.tabBarIcon !== undefined |
| 47 |
? options.tabBarIcon(isFocused, 'white', 10) |
| 48 |
: null; |
| 49 |
|
| 50 |
const onPress = () => { |
| 51 |
const event = navigation.emit({ |
| 52 |
type: 'tabPress', |
| 53 |
target: route.key, |
| 54 |
canPreventDefault: true, |
| 55 |
}); |
| 56 |
|
| 57 |
if (!isFocused && !event.defaultPrevented) { |
| Error |
Row 58, Column 20: "Delete `?`"
prettier/prettier
|
| Warning |
Row 58, Column 20: "Operator '?' must be spaced."
space-infix-ops
|
| 58 |
isGuest? |
| Error |
Row 59, Column 12: "Insert `···?`"
prettier/prettier
|
| 59 |
showGuestAlert() |
| Error |
Row 60, Column 12: "Insert `···:`"
prettier/prettier
|
| 60 |
// navigation.navigate("login") |
| Error |
Row 61, Column 13: "Delete `:⏎········`"
prettier/prettier
|
| 61 |
: |
| 62 |
navigation.navigate(route.name); |
| 63 |
} |
| 64 |
}; |
| 65 |
|
| 66 |
const onLongPress = () => { |
| 67 |
navigation.emit({ |
| 68 |
type: 'tabLongPress', |
| 69 |
target: route.key, |
| 70 |
}); |
| 71 |
}; |
| 72 |
|
| 73 |
return ( |
| 74 |
<TouchableOpacity |
| 75 |
accessibilityRole="button" |
| 76 |
activeOpacity={1} |
| 77 |
accessibilityStates={isFocused ? ['selected'] : []} |
| 78 |
accessibilityLabel={options.tabBarAccessibilityLabel} |
| 79 |
testID={options.tabBarTestID} |
| 80 |
key={route.key} |
| 81 |
onPress={onPress} |
| 82 |
onLongPress={onLongPress} |
| Warning |
Row 83, Column 20: "Inline style: { alignItems: 'center', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| 83 |
style={{ |
| 84 |
// flex: 1, |
| Warning |
Row 85, Column 32: "Strings must use singlequote."
quotes
|
| 85 |
backgroundColor: `transparent`, |
| 86 |
alignItems: 'center', |
| 87 |
justifyContent: 'space-between', |
| 88 |
}}> |
| 89 |
<View style={styles.customIcon}> |
| 90 |
{icon} |
| 91 |
<Regular |
| 92 |
label={route.name} |
| Warning |
Row 93, Column 24: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 93 |
style={{ |
| 94 |
fontSize: mvs(10), |
| 95 |
color: colors.headerTitle, |
| Error |
Row 96, Column 19: "Duplicate key 'color'."
no-dupe-keys
|
| 96 |
color: isFocused ? colors.primary : colors.headerTitle, |
| 97 |
textAlign: 'center', |
| 98 |
}} |
| 99 |
/> |
| 100 |
</View> |
| 101 |
</TouchableOpacity> |
| 102 |
); |
| 103 |
})} |
| 104 |
</View> |
| 105 |
); |
| 106 |
}; |
| 107 |
const styles = StyleSheet.create({ |
| 108 |
customIcon: { |
| 109 |
height: mvs(83), |
| 110 |
// width: mvs(83), |
| Error |
Row 111, Column 21: "Insert `·`"
prettier/prettier
|
| 111 |
backgroundColor:colors.white, |
| 112 |
justifyContent: 'center', |
| 113 |
alignItems: 'center', |
| 114 |
}, |
| 115 |
}); |
| 116 |
|
| 117 |
// export default BottomMenu; |
| Error |
Row 118, Column 25: "Replace `(state)` with `state`"
prettier/prettier
|
| 118 |
const mapStateToProps = (state) => { |
| 119 |
return { |
| 120 |
isGuest: state.auth.isGuest, |
| 121 |
}; |
| 122 |
}; |
| 123 |
|
| Error |
Row 124, Column 28: "Replace `(dispatch)` with `dispatch`"
prettier/prettier
|
| 124 |
const mapDispatchToProps = (dispatch) => ({ |
| Error |
Row 125, Column 18: "Replace `(data)=>dispatch(TAKE_TO_ACTIONS.postSigninData(data))` with `·data·=>·dispatch(TAKE_TO_ACTIONS.postSigninData(data)),`"
prettier/prettier
|
| Error |
Row 125, Column 35: "'TAKE_TO_ACTIONS' is not defined."
no-undef
|
| Warning |
Row 125, Column 72: "Missing trailing comma."
comma-dangle
|
| 125 |
postSigninData:(data)=>dispatch(TAKE_TO_ACTIONS.postSigninData(data)) |
| 126 |
}); |
| Error |
Row 127, Column 72: "Insert `;`"
prettier/prettier
|
| Warning |
Row 127, Column 72: "Missing semicolon."
semi
|
| 127 |
export default connect(mapStateToProps, mapDispatchToProps)(BottomMenu) |
| 128 |
|
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·useTheme·}·from·"@react-navigation/native"` with `useTheme}·from·'@react-navigation/native'`"
prettier/prettier
|
| Warning |
Row 2, Column 10: "'useTheme' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 26: "Strings must use singlequote."
quotes
|
| Error |
Row 3, Column 24: "Replace `"react"` with `'react'`"
prettier/prettier
|
| Warning |
Row 3, Column 24: "Strings must use singlequote."
quotes
|
| Error |
Row 7, Column 25: "Replace `"../../../resource/assets/tabbar-icons"` with `'../../../resource/assets/tabbar-icons'`"
prettier/prettier
|
| Warning |
Row 7, Column 25: "Strings must use singlequote."
quotes
|
| Error |
Row 8, Column 9: "Replace `·mvs·}·from·"../../config/metrices"` with `mvs}·from·'../../config/metrices'`"
prettier/prettier
|
| Warning |
Row 8, Column 21: "Strings must use singlequote."
quotes
|
| Error |
Row 11, Column 46: "Insert `·`"
prettier/prettier
|
| Error |
Row 13, Column 59: "Replace `"active")·||·""` with `'active')·||·''`"
prettier/prettier
|
| Warning |
Row 13, Column 59: "Strings must use singlequote."
quotes
|
| Warning |
Row 13, Column 72: "Strings must use singlequote."
quotes
|
| Line |
Source |
| 1 |
//core |
| Error |
Row 2, Column 9: "Replace `·useTheme·}·from·"@react-navigation/native"` with `useTheme}·from·'@react-navigation/native'`"
prettier/prettier
|
| Warning |
Row 2, Column 10: "'useTheme' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 26: "Strings must use singlequote."
quotes
|
| 2 |
import { useTheme } from "@react-navigation/native"; |
| Error |
Row 3, Column 24: "Replace `"react"` with `'react'`"
prettier/prettier
|
| Warning |
Row 3, Column 24: "Strings must use singlequote."
quotes
|
| 3 |
import * as React from "react"; |
| 4 |
//exnternal |
| 5 |
|
| 6 |
//internal imports |
| Error |
Row 7, Column 25: "Replace `"../../../resource/assets/tabbar-icons"` with `'../../../resource/assets/tabbar-icons'`"
prettier/prettier
|
| Warning |
Row 7, Column 25: "Strings must use singlequote."
quotes
|
| 7 |
import * as Images from "../../../resource/assets/tabbar-icons"; |
| Error |
Row 8, Column 9: "Replace `·mvs·}·from·"../../config/metrices"` with `mvs}·from·'../../config/metrices'`"
prettier/prettier
|
| Warning |
Row 8, Column 21: "Strings must use singlequote."
quotes
|
| 8 |
import { mvs } from "../../config/metrices"; |
| 9 |
|
| 10 |
//this component is used to retirn icon for bottom tab bar |
| Error |
Row 11, Column 46: "Insert `·`"
prettier/prettier
|
| 11 |
export default function BottomMenuIcon({name,focused}) { |
| 12 |
// console.log({name,focused}) |
| Error |
Row 13, Column 59: "Replace `"active")·||·""` with `'active')·||·''`"
prettier/prettier
|
| Warning |
Row 13, Column 59: "Strings must use singlequote."
quotes
|
| Warning |
Row 13, Column 72: "Strings must use singlequote."
quotes
|
| 13 |
const TabBarIconsComponent = Images[name + ((focused && "active") || "")]; |
| 14 |
return <TabBarIconsComponent height={mvs(21)} width={mvs(21)} />; |
| 15 |
} |
| 16 |
|
|
|
|
/src/components/atoms/Button.js
|
21 problems (12 errors, 9 warnings)
|
| Severity |
Rule |
| Warning |
Row 2, Column 15: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 237, Column 16: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Warning |
Row 239, Column 20: "Inline style: { width: '7%' }"
react-native/no-inline-styles
|
| Error |
Row 248, Column 36: "Insert `·`"
prettier/prettier
|
| Error |
Row 256, Column 35: "'loaderColor' is not defined."
no-undef
|
| Warning |
Row 289, Column 22: "Inline style: { width: '90%' }"
react-native/no-inline-styles
|
| Error |
Row 289, Column 29: "Insert `·`"
prettier/prettier
|
| Warning |
Row 292, Column 20: "Inline style: { fontSize: 15 }"
react-native/no-inline-styles
|
| Warning |
Row 296, Column 20: "Inline style: { fontSize: 10 }"
react-native/no-inline-styles
|
| Error |
Row 300, Column 17: "Insert `·(`"
prettier/prettier
|
| Error |
Row 301, Column 1: "Replace `·······prettier/prettier
|
| Warning |
Row 301, Column 21: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| Error |
Row 303, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 304, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 305, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 306, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 307, Column 1: "Insert `·`"
prettier/prettier
|
| Error |
Row 308, Column 7: "Replace `·` with `)`"
prettier/prettier
|
| Warning |
Row 318, Column 14: "Inline style: {
position: 'absolute',
alignSelf: 'center',
zIndex: 1001,
justifyContent: 'center',
alignItems: 'center',
overflow: 'hidden'
}"
react-native/no-inline-styles
|
| Error |
Row 347, Column 15: "Insert `,`"
prettier/prettier
|
| Warning |
Row 347, Column 15: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Warning |
Row 2, Column 15: "'Text' is defined but never used."
no-unused-vars
|
| 2 |
import {View, Text, TouchableOpacity, ActivityIndicator} from 'react-native'; |
| 3 |
import {CARD_ICONS} from '../../../resource/assets/balance-cards'; |
| 4 |
import SVGS from '../../../resource/assets/rtl-button-icons'; |
| 5 |
import buttonStyles from '../../config/button'; |
| 6 |
import colors from '../../config/colors'; |
| 7 |
import {mvs} from '../../config/metrices'; |
| 8 |
import Light from '../../presentation/typography/light-text'; |
| 9 |
import Regular from '../../presentation/typography/regular-text'; |
| 10 |
import ImagePlaceholder from './Placeholder'; |
| 11 |
|
| 12 |
import MaterialIcons from 'react-native-vector-icons/MaterialIcons'; |
| 13 |
|
| 14 |
const ButtonPrimary = ({ |
| 15 |
title, |
| 16 |
loading = false, |
| 17 |
loaderColor = colors.headerTitle, |
| 18 |
onClick, |
| 19 |
style, |
| 20 |
textStyle, |
| 21 |
disabled, |
| 22 |
...props |
| 23 |
}) => { |
| 24 |
return ( |
| 25 |
<TouchableOpacity |
| 26 |
{...props} |
| 27 |
style={{...buttonStyles.buttonPrimary, ...style}} |
| 28 |
disabled={disabled} |
| 29 |
onPress={() => onClick()} |
| 30 |
activeOpacity={0.5}> |
| 31 |
{loading ? ( |
| 32 |
<ActivityIndicator color={loaderColor || colors.white} size="small" /> |
| 33 |
) : ( |
| 34 |
<Regular |
| 35 |
{...props} |
| 36 |
label={title} |
| 37 |
style={{color: colors.white, ...textStyle}} |
| 38 |
/> |
| 39 |
)} |
| 40 |
</TouchableOpacity> |
| 41 |
); |
| 42 |
}; |
| 43 |
const ButtonPrimaryCard = ({ |
| 44 |
title, |
| 45 |
loading = false, |
| 46 |
loaderColor = colors.headerTitle, |
| 47 |
title1, |
| 48 |
onClick, |
| 49 |
style, |
| 50 |
textStyle, |
| 51 |
textStyle1, |
| 52 |
...props |
| 53 |
}) => { |
| 54 |
return ( |
| 55 |
<TouchableOpacity |
| 56 |
style={{...buttonStyles.buttonPrimary, ...style}} |
| 57 |
onPress={() => onClick()} |
| 58 |
activeOpacity={0.5}> |
| 59 |
{loading ? ( |
| 60 |
<ActivityIndicator color={loaderColor || colors.white} size="small" /> |
| 61 |
) : ( |
| 62 |
<Regular |
| 63 |
{...props} |
| 64 |
label={title} |
| 65 |
style={{...textStyle, color: colors.white}} |
| 66 |
/> |
| 67 |
)} |
| 68 |
</TouchableOpacity> |
| 69 |
); |
| 70 |
}; |
| 71 |
const ButtonPrimaryLight = ({ |
| 72 |
title, |
| 73 |
loading = false, |
| 74 |
loaderColor = colors.headerTitle, |
| 75 |
onClick, |
| 76 |
style, |
| 77 |
textStyle, |
| 78 |
disabled, |
| 79 |
...props |
| 80 |
}) => { |
| 81 |
return ( |
| 82 |
<TouchableOpacity |
| 83 |
style={{...buttonStyles.buttonPrimary, ...style}} |
| 84 |
onPress={() => onClick()} |
| 85 |
disabled={disabled} |
| 86 |
activeOpacity={0.5}> |
| 87 |
{loading ? ( |
| 88 |
<ActivityIndicator color={loaderColor || colors.white} size="small" /> |
| 89 |
) : ( |
| 90 |
<Light |
| 91 |
{...props} |
| 92 |
label={title} |
| 93 |
style={{...textStyle, color: colors.white}} |
| 94 |
/> |
| 95 |
)} |
| 96 |
</TouchableOpacity> |
| 97 |
); |
| 98 |
}; |
| 99 |
|
| 100 |
const ButtonSeconday = ({ |
| 101 |
title, |
| 102 |
loading = false, |
| 103 |
loaderColor = colors.headerTitle, |
| 104 |
onClick, |
| 105 |
style, |
| 106 |
textStyle, |
| 107 |
...props |
| 108 |
}) => { |
| 109 |
return ( |
| 110 |
<TouchableOpacity |
| 111 |
{...props} |
| 112 |
style={{...buttonStyles.buttonOutlineWhite, ...style}} |
| 113 |
onPress={() => onClick()} |
| 114 |
activeOpacity={0.5}> |
| 115 |
{loading ? ( |
| 116 |
<ActivityIndicator color={loaderColor || colors.white} size="small" /> |
| 117 |
) : ( |
| 118 |
<Regular |
| 119 |
numberOfLines={1} |
| 120 |
{...props} |
| 121 |
label={title} |
| 122 |
style={{color: colors.typeHeader, ...textStyle}} |
| 123 |
/> |
| 124 |
)} |
| 125 |
</TouchableOpacity> |
| 126 |
); |
| 127 |
}; |
| 128 |
const ButtonSecondayLight = ( |
| 129 |
{title, loading, loaderColor = colors.headerTitle, onClick, style}, |
| 130 |
props, |
| 131 |
) => { |
| 132 |
return ( |
| 133 |
<TouchableOpacity |
| 134 |
{...props} |
| 135 |
style={{...buttonStyles.buttonOutlineWhite, ...style}} |
| 136 |
onPress={() => onClick()} |
| 137 |
activeOpacity={0.5}> |
| 138 |
{loading ? ( |
| 139 |
<ActivityIndicator color={loaderColor || colors.white} size="small" /> |
| 140 |
) : ( |
| 141 |
<Light {...props} label={title} style={{color: colors.typeHeader}} /> |
| 142 |
)} |
| 143 |
</TouchableOpacity> |
| 144 |
); |
| 145 |
}; |
| 146 |
|
| 147 |
const ButtonSecondaryOutline = ({ |
| 148 |
title, |
| 149 |
loading = false, |
| 150 |
loaderColor = colors.headerTitle, |
| 151 |
onClick, |
| 152 |
style, |
| 153 |
textStyle, |
| 154 |
...props |
| 155 |
}) => { |
| 156 |
return ( |
| 157 |
<TouchableOpacity |
| 158 |
{...props} |
| 159 |
style={{...buttonStyles.buttonOutline, ...style}} |
| 160 |
onPress={() => onClick()} |
| 161 |
activeOpacity={0.5}> |
| 162 |
{loading ? ( |
| 163 |
<ActivityIndicator color={loaderColor || colors.white} size="small" /> |
| 164 |
) : ( |
| 165 |
<Regular |
| 166 |
{...props} |
| 167 |
label={title} |
| 168 |
style={{color: colors.typeHeader, ...textStyle}} |
| 169 |
/> |
| 170 |
)} |
| 171 |
</TouchableOpacity> |
| 172 |
); |
| 173 |
}; |
| 174 |
const ButtonRTL = ({ |
| 175 |
title, |
| 176 |
loading = false, |
| 177 |
loaderColor = colors.headerTitle, |
| 178 |
showIcon = true, |
| 179 |
onClick, |
| 180 |
style, |
| 181 |
textStyle, |
| 182 |
iconName = 'flag', |
| 183 |
iconStyle = {height: mvs(20), width: mvs(20)}, |
| 184 |
disabled = false, |
| 185 |
...props |
| 186 |
}) => { |
| 187 |
const Icon = SVGS[iconName]; |
| 188 |
return ( |
| 189 |
<TouchableOpacity |
| 190 |
{...props} |
| 191 |
style={{...buttonStyles.buttonRTL, ...style}} |
| 192 |
onPress={() => onClick()} |
| 193 |
activeOpacity={0.5} |
| 194 |
disabled={disabled}> |
| 195 |
{loading ? ( |
| 196 |
<ActivityIndicator color={loaderColor || colors.white} size="small" /> |
| 197 |
) : ( |
| 198 |
<> |
| 199 |
{showIcon && ( |
| 200 |
<Icon height={iconStyle.height} width={iconStyle.width} /> |
| 201 |
)} |
| 202 |
<Regular |
| 203 |
numberOfLines={1} |
| 204 |
{...props} |
| 205 |
label={title} |
| 206 |
style={{...textStyle}} |
| 207 |
/> |
| 208 |
</> |
| 209 |
)} |
| 210 |
</TouchableOpacity> |
| 211 |
); |
| 212 |
}; |
| 213 |
const ButtonLocation = ({ |
| 214 |
title, |
| 215 |
loading = false, |
| 216 |
loaderColor = colors.headerTitle, |
| 217 |
showIcon = true, |
| 218 |
onClick, |
| 219 |
style, |
| 220 |
textStyle, |
| 221 |
iconName = '', |
| 222 |
iconStyle = {height: mvs(20), width: mvs(20)}, |
| 223 |
disabled = false, |
| 224 |
...props |
| 225 |
}) => { |
| 226 |
return ( |
| 227 |
<TouchableOpacity |
| 228 |
{...props} |
| 229 |
style={{...buttonStyles.buttonLoc}} |
| 230 |
onPress={() => onClick()} |
| 231 |
activeOpacity={0.5} |
| 232 |
disabled={disabled}> |
| 233 |
<Regular |
| 234 |
numberOfLines={1} |
| 235 |
{...props} |
| 236 |
label={title} |
| Warning |
Row 237, Column 16: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 237 |
style={{...textStyle, flex: 1}} |
| 238 |
/> |
| Warning |
Row 239, Column 20: "Inline style: { width: '7%' }"
react-native/no-inline-styles
|
| 239 |
<View style={{width: '7%'}}> |
| 240 |
<ImagePlaceholder |
| 241 |
bg_img={iconName} |
| 242 |
containerStyle={{width: iconStyle.width, height: iconStyle.height}} |
| 243 |
/> |
| 244 |
</View> |
| 245 |
</TouchableOpacity> |
| 246 |
); |
| 247 |
}; |
| Error |
Row 248, Column 36: "Insert `·`"
prettier/prettier
|
| 248 |
const ButtonBlanceCard = ({loading,iconName = 'visa', onClick, style}) => { |
| 249 |
const Icon = CARD_ICONS[iconName]; |
| 250 |
return ( |
| 251 |
<TouchableOpacity |
| 252 |
style={{...buttonStyles.buttonCard, ...style}} |
| 253 |
onPress={() => onClick()} |
| 254 |
activeOpacity={0.5}> |
| 255 |
{loading ? ( |
| Error |
Row 256, Column 35: "'loaderColor' is not defined."
no-undef
|
| 256 |
<ActivityIndicator color={loaderColor || colors.white} size="small" /> |
| 257 |
) : ( |
| 258 |
<Icon /> |
| 259 |
)} |
| 260 |
</TouchableOpacity> |
| 261 |
); |
| 262 |
}; |
| 263 |
const ButtonDeliveryLocation = ({ |
| 264 |
title = '', |
| 265 |
subTitle = '', |
| 266 |
iconName = 'date', |
| 267 |
isTick = false, |
| 268 |
onClick, |
| 269 |
iconHeight = mvs(24.5), |
| 270 |
iconWidth = mvs(20), |
| 271 |
checkHeight = mvs(15), |
| 272 |
checkWidth = mvs(18.7), |
| 273 |
blue = false, |
| 274 |
titleStyle, |
| 275 |
style, |
| 276 |
}) => { |
| 277 |
const Icon = SVGS[iconName]; |
| 278 |
return ( |
| 279 |
<TouchableOpacity |
| 280 |
style={{...buttonStyles.buttonDelvieryLoc, ...style}} |
| 281 |
onPress={() => onClick()} |
| 282 |
activeOpacity={0.5}> |
| 283 |
<View style={{...buttonStyles.buttonDelvieryLocSub}}> |
| 284 |
<Icon |
| 285 |
height={iconHeight} |
| 286 |
width={iconWidth} |
| 287 |
style={{marginRight: mvs(10)}} |
| 288 |
/> |
| Warning |
Row 289, Column 22: "Inline style: { width: '90%' }"
react-native/no-inline-styles
|
| Error |
Row 289, Column 29: "Insert `·`"
prettier/prettier
|
| 289 |
<View style={{width:'90%'}}> |
| 290 |
<Regular |
| 291 |
label={title} |
| Warning |
Row 292, Column 20: "Inline style: { fontSize: 15 }"
react-native/no-inline-styles
|
| 292 |
style={{color: colors.typeHeader, fontSize: 15, ...titleStyle}} |
| 293 |
/> |
| 294 |
<Regular |
| 295 |
label={subTitle} |
| Warning |
Row 296, Column 20: "Inline style: { fontSize: 10 }"
react-native/no-inline-styles
|
| 296 |
style={{color: colors.lightgrey2, fontSize: 10, marginTop: mvs(2)}} |
| 297 |
/> |
| 298 |
</View> |
| 299 |
</View> |
| Error |
Row 300, Column 17: "Insert `·(`"
prettier/prettier
|
| 300 |
{isTick && |
| Error |
Row 301, Column 1: "Replace `·······prettier/prettier
|
| Warning |
Row 301, Column 21: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| 301 |
<View style={{position:'absolute',right:mvs(5)}}> |
| 302 |
{blue ? ( |
| Error |
Row 303, Column 1: "Insert `··`"
prettier/prettier
|
| 303 |
<SVGS.tickBlue height={checkHeight} width={checkWidth} /> |
| Error |
Row 304, Column 9: "Insert `··`"
prettier/prettier
|
| 304 |
) : ( |
| Error |
Row 305, Column 1: "Insert `··`"
prettier/prettier
|
| 305 |
<SVGS.tick height={checkHeight} width={checkWidth} /> |
| Error |
Row 306, Column 9: "Insert `··`"
prettier/prettier
|
| 306 |
)} |
| Error |
Row 307, Column 1: "Insert `·`"
prettier/prettier
|
| 307 |
</View> |
| Error |
Row 308, Column 7: "Replace `·` with `)`"
prettier/prettier
|
| 308 |
} |
| 309 |
</TouchableOpacity> |
| 310 |
); |
| 311 |
}; |
| 312 |
|
| 313 |
const ButtonCamera = ({onClick, iconStyle, ...props}) => { |
| 314 |
return ( |
| 315 |
<TouchableOpacity |
| 316 |
onPress={() => onClick()} |
| 317 |
activeOpacity={1} |
| Warning |
Row 318, Column 14: "Inline style: {
position: 'absolute',
alignSelf: 'center',
zIndex: 1001,
justifyContent: 'center',
alignItems: 'center',
overflow: 'hidden'
}"
react-native/no-inline-styles
|
| 318 |
style={{ |
| 319 |
position: 'absolute', |
| 320 |
top: mvs(105), |
| 321 |
alignSelf: 'center', |
| 322 |
zIndex: 1001, |
| 323 |
backgroundColor: colors.primary, |
| 324 |
...colors.shadow, |
| 325 |
justifyContent: 'center', |
| 326 |
alignItems: 'center', |
| 327 |
padding: mvs(10), |
| 328 |
overflow: 'hidden', |
| 329 |
borderRadius: mvs(20), |
| 330 |
...iconStyle, |
| 331 |
}}> |
| 332 |
<MaterialIcons name="add-a-photo" size={mvs(20)} color={colors.white} /> |
| 333 |
</TouchableOpacity> |
| 334 |
); |
| 335 |
}; |
| 336 |
const Buttons = { |
| 337 |
ButtonPrimary, |
| 338 |
ButtonPrimaryCard, |
| 339 |
ButtonPrimaryLight, |
| 340 |
ButtonSeconday, |
| 341 |
ButtonSecondaryOutline, |
| 342 |
ButtonRTL, |
| 343 |
ButtonSecondayLight, |
| 344 |
ButtonBlanceCard, |
| 345 |
ButtonDeliveryLocation, |
| 346 |
ButtonLocation, |
| Error |
Row 347, Column 15: "Insert `,`"
prettier/prettier
|
| Warning |
Row 347, Column 15: "Missing trailing comma."
comma-dangle
|
| 347 |
ButtonCamera |
| 348 |
}; |
| 349 |
export default Buttons; |
| 350 |
|
|
|
|
/src/components/atoms/Input.js
|
54 problems (34 errors, 20 warnings)
|
| Severity |
Rule |
| Warning |
Row 1, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| Error |
Row 3, Column 9: "Replace `·Platform,·ScrollView,·TextInput,·TouchableOpacity,·View·` with `⏎··Platform,⏎··ScrollView,⏎··TextInput,⏎··TouchableOpacity,⏎··View,⏎`"
prettier/prettier
|
| Warning |
Row 3, Column 10: "'Platform' is defined but never used."
no-unused-vars
|
| Error |
Row 6, Column 9: "Replace `·RCross,·Tick·` with `RCross,·Tick`"
prettier/prettier
|
| Error |
Row 9, Column 9: "Replace `·INPUT_STYLES·` with `INPUT_STYLES`"
prettier/prettier
|
| Error |
Row 10, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 13, Column 9: "Replace `·OtpInput·` with `OtpInput`"
prettier/prettier
|
| Error |
Row 39, Column 69: "Replace `·...style·` with `...style`"
prettier/prettier
|
| Error |
Row 42, Column 17: "Replace `·...INPUT_STYLES.LABLE_STYLE,·...labelStyle·}}⏎······` with `...INPUT_STYLES.LABLE_STYLE,·...labelStyle}}`"
prettier/prettier
|
| Error |
Row 44, Column 24: "Replace `` with `(⏎··········⏎········)`"
prettier/prettier
|
| Warning |
Row 59, Column 13: "Inline style: { paddingVertical: 0 }"
react-native/no-inline-styles
|
| Warning |
Row 67, Column 24: "Inline style: { borderBottomWidth: 0 }"
react-native/no-inline-styles
|
| Error |
Row 67, Column 25: "Replace `·borderBottomWidth:·0·` with `borderBottomWidth:·0`"
prettier/prettier
|
| Warning |
Row 73, Column 18: "Inline style: { position: 'absolute', flexDirection: 'row' }"
react-native/no-inline-styles
|
| Warning |
Row 90, Column 18: "Inline style: { position: 'absolute', flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 122, Column 28: "Insert `,`"
prettier/prettier
|
| Warning |
Row 122, Column 28: "Missing trailing comma."
comma-dangle
|
| Error |
Row 125, Column 19: "Replace `·...style,·marginBottom:·mvs(15)·` with `...style,·marginBottom:·mvs(15)`"
prettier/prettier
|
| Error |
Row 128, Column 17: "Replace `·...INPUT_STYLES.LABLE_STYLE,·...labelStyle·}}⏎······` with `...INPUT_STYLES.LABLE_STYLE,·...labelStyle}}`"
prettier/prettier
|
| Error |
Row 130, Column 24: "Replace `` with `(⏎··········⏎········)`"
prettier/prettier
|
| Warning |
Row 133, Column 16: "Inline style: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| Warning |
Row 148, Column 13: "Inline style: { width: "isVerify ? '100%' : '77%'" }"
react-native/no-inline-styles
|
| Warning |
Row 158, Column 24: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| Error |
Row 158, Column 25: "Replace `·position:·'absolute',·right:·mvs(10)·` with `position:·'absolute',·right:·mvs(10)`"
prettier/prettier
|
| Warning |
Row 166, Column 20: "Inline style: { width: '20%' }"
react-native/no-inline-styles
|
| Error |
Row 166, Column 21: "Replace `·width:·'20%',·height:·mvs(38)·` with `width:·'20%',·height:·mvs(38)`"
prettier/prettier
|
| Error |
Row 170, Column 25: "Replace `·color:·colors.doted·` with `color:·colors.doted`"
prettier/prettier
|
| Warning |
Row 173, Column 20: "Inline style: { width: '20%' }"
react-native/no-inline-styles
|
| Warning |
Row 201, Column 10: "'isVerify' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 201, Column 20: "'setIsVerify' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 203, Column 19: "Replace `·...INPUT_STYLES.PRICE_CONTAINER,·...containerStyle·` with `...INPUT_STYLES.PRICE_CONTAINER,·...containerStyle`"
prettier/prettier
|
| Warning |
Row 222, Column 54: "Inline style: { paddingVertical: 0 }"
react-native/no-inline-styles
|
| Error |
Row 222, Column 55: "Replace `·paddingVertical:·0·` with `paddingVertical:·0`"
prettier/prettier
|
| Error |
Row 226, Column 17: "Replace `·color:·colors.typeHeader,·fontSize:·mvs(15),·...unitStyle·` with `color:·colors.typeHeader,·fontSize:·mvs(15),·...unitStyle`"
prettier/prettier
|
| Error |
Row 257, Column 20: "Replace `·marginBottom:·mvs(18)·` with `marginBottom:·mvs(18)`"
prettier/prettier
|
| Error |
Row 260, Column 17: "Replace `·color:·colors.typeHeader,·marginBottom:·mvs(10),·...labelStyle·}}` with `⏎··········color:·colors.typeHeader,⏎··········marginBottom:·mvs(10),⏎··········...labelStyle,`"
prettier/prettier
|
| Error |
Row 261, Column 7: "Insert `··}}`"
prettier/prettier
|
| Error |
Row 262, Column 24: "Replace `` with `(⏎··········⏎········)`"
prettier/prettier
|
| Error |
Row 272, Column 19: "Replace `·...INPUT_STYLES.SECONDARY_INPUT,·...style·` with `...INPUT_STYLES.SECONDARY_INPUT,·...style`"
prettier/prettier
|
| Warning |
Row 284, Column 24: "Inline style: { position: 'absolute', textDecorationLine: 'underline' }"
react-native/no-inline-styles
|
| Warning |
Row 298, Column 24: "Inline style: { position: 'absolute', right: 0, flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 330, Column 19: "Replace `·paddingTop:·mvs(15)·` with `paddingTop:·mvs(15)`"
prettier/prettier
|
| Error |
Row 343, Column 19: "Replace `·paddingVertical:·mvs(5),·...style·` with `paddingVertical:·mvs(5),·...style`"
prettier/prettier
|
| Error |
Row 349, Column 19: "Replace `·fontSize:·mvs(14),·color:·colors.typeHeader·` with `fontSize:·mvs(14),·color:·colors.typeHeader`"
prettier/prettier
|
| Error |
Row 371, Column 19: "Replace `·paddingTop:·mvs(15)·` with `paddingTop:·mvs(15)`"
prettier/prettier
|
| Error |
Row 380, Column 19: "Replace `·fontSize:·mvs(14),·color:·colors.typeHeader·` with `fontSize:·mvs(14),·color:·colors.typeHeader`"
prettier/prettier
|
| Warning |
Row 416, Column 25: "Inline style: { width: '100%', padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 416, Column 26: "Replace `·width:·'100%',·padding:·0,·...containerStyle·` with `width:·'100%',·padding:·0,·...containerStyle`"
prettier/prettier
|
| Warning |
Row 428, Column 25: "Inline style: { width: '100%', padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 439, Column 26: "Replace `·keyboardType:·'phone-pad',·placeholderTextColor·:·colors.input_placehoder` with `⏎··········keyboardType:·'phone-pad',⏎··········placeholderTextColor:·colors.input_placehoder,⏎·······`"
prettier/prettier
|
| Error |
Row 450, Column 26: "Replace `·value,·setValue·` with `value,·setValue`"
prettier/prettier
|
| Warning |
Row 452, Column 18: "Inline style: { alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 452, Column 19: "Replace `·height:·mvs(85),·marginTop:·mvs(28),·alignItems:·'center'·` with `height:·mvs(85),·marginTop:·mvs(28),·alignItems:·'center'`"
prettier/prettier
|
| Error |
Row 455, Column 17: "Replace `·color:·colors.lightgrey2,·marginBottom:·mvs(7)·` with `color:·colors.lightgrey2,·marginBottom:·mvs(7)`"
prettier/prettier
|
| Line |
Source |
| Warning |
Row 1, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| 1 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 2 |
import React from 'react'; |
| Error |
Row 3, Column 9: "Replace `·Platform,·ScrollView,·TextInput,·TouchableOpacity,·View·` with `⏎··Platform,⏎··ScrollView,⏎··TextInput,⏎··TouchableOpacity,⏎··View,⏎`"
prettier/prettier
|
| Warning |
Row 3, Column 10: "'Platform' is defined but never used."
no-unused-vars
|
| 3 |
import { Platform, ScrollView, TextInput, TouchableOpacity, View } from 'react-native'; |
| 4 |
import PhoneInput from 'react-native-phone-number-input'; |
| 5 |
import Icon from 'react-native-vector-icons/Ionicons'; |
| Error |
Row 6, Column 9: "Replace `·RCross,·Tick·` with `RCross,·Tick`"
prettier/prettier
|
| 6 |
import { RCross, Tick } from '../../../resource/assets/common-icons'; |
| 7 |
import colors from '../../config/colors'; |
| 8 |
import fonts from '../../config/fonts'; |
| Error |
Row 9, Column 9: "Replace `·INPUT_STYLES·` with `INPUT_STYLES`"
prettier/prettier
|
| 9 |
import { INPUT_STYLES } from '../../config/input'; |
| Error |
Row 10, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 10 |
import { mvs } from '../../config/metrices'; |
| 11 |
import Medium from '../../presentation/typography/medium-text'; |
| 12 |
import Regular from '../../presentation/typography/regular-text'; |
| Error |
Row 13, Column 9: "Replace `·OtpInput·` with `OtpInput`"
prettier/prettier
|
| 13 |
import { OtpInput } from '../molecules/otp-input/otp-input'; |
| 14 |
import Eye from './../../../resource/assets/common-icons/eye.svg'; |
| 15 |
import Buttons from './Button'; |
| 16 |
|
| 17 |
const CustomInput = ({ |
| 18 |
label = '', |
| 19 |
value = '', |
| 20 |
editable = true, |
| 21 |
onChangeText, |
| 22 |
placeholder = '', |
| 23 |
secureTextEntry = false, |
| 24 |
secure = false, |
| 25 |
keyboardType = 'default', |
| 26 |
returnKeyType = 'default', |
| 27 |
isRequired = false, |
| 28 |
divider = false, |
| 29 |
isVerify = false, |
| 30 |
isReject = false, |
| 31 |
onPressIcon, |
| 32 |
labelStyle, |
| 33 |
onPress, |
| 34 |
disabled = true, |
| 35 |
style, |
| 36 |
DOB = false, |
| 37 |
}) => { |
| 38 |
return ( |
| Error |
Row 39, Column 69: "Replace `·...style·` with `...style`"
prettier/prettier
|
| 39 |
<TouchableOpacity disabled={disabled} onPress={onPress} style={{ ...style }}> |
| 40 |
<Regular |
| 41 |
label={label} |
| Error |
Row 42, Column 17: "Replace `·...INPUT_STYLES.LABLE_STYLE,·...labelStyle·}}⏎······` with `...INPUT_STYLES.LABLE_STYLE,·...labelStyle}}`"
prettier/prettier
|
| 42 |
style={{ ...INPUT_STYLES.LABLE_STYLE, ...labelStyle }} |
| 43 |
> |
| Error |
Row 44, Column 24: "Replace `` with `(⏎··········⏎········)`"
prettier/prettier
|
| 44 |
{isRequired && <Regular label={'*'} style={{ color: colors.mendatory }} />} |
| 45 |
</Regular> |
| 46 |
|
| 47 |
<> |
| 48 |
<TextInput |
| 49 |
value={value} |
| 50 |
disabled={disabled} |
| 51 |
secureTextEntry={secureTextEntry} |
| 52 |
onChangeText={onChangeText} |
| 53 |
editable={editable} |
| 54 |
keyboardType={keyboardType} |
| 55 |
returnKeyType={returnKeyType} |
| 56 |
placeholder={placeholder} |
| 57 |
placeholderTextColor={colors.input_placehoder} |
| 58 |
style={[ |
| Warning |
Row 59, Column 13: "Inline style: { paddingVertical: 0 }"
react-native/no-inline-styles
|
| 59 |
{ |
| 60 |
...INPUT_STYLES.INPUT_TXT, |
| 61 |
...style, |
| 62 |
paddingVertical: 0, |
| 63 |
paddingRight: mvs( |
| 64 |
secureTextEntry ? 60 : isVerify ? mvs(40) : mvs(10), |
| 65 |
), |
| 66 |
}, |
| Warning |
Row 67, Column 24: "Inline style: { borderBottomWidth: 0 }"
react-native/no-inline-styles
|
| Error |
Row 67, Column 25: "Replace `·borderBottomWidth:·0·` with `borderBottomWidth:·0`"
prettier/prettier
|
| 67 |
divider && { borderBottomWidth: 0 }, |
| 68 |
]} |
| 69 |
/> |
| 70 |
|
| 71 |
<TouchableOpacity |
| 72 |
//disabled={!secureTextEntry} |
| Warning |
Row 73, Column 18: "Inline style: { position: 'absolute', flexDirection: 'row' }"
react-native/no-inline-styles
|
| 73 |
style={{ |
| 74 |
position: 'absolute', |
| 75 |
right: mvs(10), |
| 76 |
bottom: mvs(23), |
| 77 |
flexDirection: 'row', |
| 78 |
}} |
| 79 |
onPress={onPressIcon}> |
| 80 |
{secure && ( |
| 81 |
<Icon |
| 82 |
name={secureTextEntry ? 'eye-off-outline' : 'eye-outline'} |
| 83 |
color={colors.typeHeader} |
| 84 |
size={mvs(22)} |
| 85 |
/> |
| 86 |
)} |
| 87 |
</TouchableOpacity> |
| 88 |
|
| 89 |
<View |
| Warning |
Row 90, Column 18: "Inline style: { position: 'absolute', flexDirection: 'row' }"
react-native/no-inline-styles
|
| 90 |
style={{ |
| 91 |
position: 'absolute', |
| 92 |
right: secure ? mvs(40) : mvs(10), |
| 93 |
bottom: mvs(29), |
| 94 |
flexDirection: 'row', |
| 95 |
}}> |
| 96 |
{isVerify ? ( |
| 97 |
<Tick /> |
| 98 |
) : ( |
| 99 |
isReject && <RCross width={mvs(15)} height={mvs(15)} /> |
| 100 |
)} |
| 101 |
</View> |
| 102 |
</> |
| 103 |
</TouchableOpacity> |
| 104 |
); |
| 105 |
}; |
| 106 |
const CustomInputWithButton = ({ |
| 107 |
label = '', |
| 108 |
value = '', |
| 109 |
editable = true, |
| 110 |
onChangeText, |
| 111 |
placeholder = '', |
| 112 |
secureTextEntry = false, |
| 113 |
keyboardType = 'default', |
| 114 |
returnKeyType = 'default', |
| 115 |
isRequired = false, |
| 116 |
divider = false, |
| 117 |
isVerify = false, |
| 118 |
onPressVerify, |
| 119 |
labelStyle, |
| 120 |
style, |
| 121 |
DOB = false, |
| Error |
Row 122, Column 28: "Insert `,`"
prettier/prettier
|
| Warning |
Row 122, Column 28: "Missing trailing comma."
comma-dangle
|
| 122 |
emailVerifyLoader = false |
| 123 |
}) => { |
| 124 |
return ( |
| Error |
Row 125, Column 19: "Replace `·...style,·marginBottom:·mvs(15)·` with `...style,·marginBottom:·mvs(15)`"
prettier/prettier
|
| 125 |
<View style={{ ...style, marginBottom: mvs(15) }}> |
| 126 |
<Regular |
| 127 |
label={label} |
| Error |
Row 128, Column 17: "Replace `·...INPUT_STYLES.LABLE_STYLE,·...labelStyle·}}⏎······` with `...INPUT_STYLES.LABLE_STYLE,·...labelStyle}}`"
prettier/prettier
|
| 128 |
style={{ ...INPUT_STYLES.LABLE_STYLE, ...labelStyle }} |
| 129 |
> |
| Error |
Row 130, Column 24: "Replace `` with `(⏎··········⏎········)`"
prettier/prettier
|
| 130 |
{isRequired && <Regular label={'*'} style={{ color: colors.mendatory }} />} |
| 131 |
</Regular> |
| 132 |
<View |
| Warning |
Row 133, Column 16: "Inline style: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| 133 |
style={{ |
| 134 |
flexDirection: 'row', |
| 135 |
alignItems: 'center', |
| 136 |
justifyContent: 'space-between', |
| 137 |
}}> |
| 138 |
<TextInput |
| 139 |
value={value} |
| 140 |
secureTextEntry={secureTextEntry} |
| 141 |
onChangeText={onChangeText} |
| 142 |
editable={editable} |
| 143 |
keyboardType={keyboardType} |
| 144 |
returnKeyType={returnKeyType} |
| 145 |
placeholder={placeholder} |
| 146 |
placeholderTextColor={colors.input_placehoder} |
| 147 |
style={[ |
| Warning |
Row 148, Column 13: "Inline style: { width: "isVerify ? '100%' : '77%'" }"
react-native/no-inline-styles
|
| 148 |
{ |
| 149 |
...INPUT_STYLES.INPUT_TXT, |
| 150 |
marginBottom: mvs(0), |
| 151 |
...style, |
| 152 |
width: isVerify ? '100%' : '77%', |
| 153 |
}, |
| 154 |
]} |
| 155 |
/> |
| 156 |
|
| 157 |
{isVerify ? ( |
| Warning |
Row 158, Column 24: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| Error |
Row 158, Column 25: "Replace `·position:·'absolute',·right:·mvs(10)·` with `position:·'absolute',·right:·mvs(10)`"
prettier/prettier
|
| 158 |
<Tick style={{ position: 'absolute', right: mvs(10) }} /> |
| 159 |
) : value ? ( |
| 160 |
<Buttons.ButtonPrimary |
| 161 |
loading={emailVerifyLoader} |
| 162 |
loaderColor={colors.white} |
| 163 |
disabled={emailVerifyLoader} |
| 164 |
onClick={onPressVerify} |
| 165 |
title={'Verify'} |
| Warning |
Row 166, Column 20: "Inline style: { width: '20%' }"
react-native/no-inline-styles
|
| Error |
Row 166, Column 21: "Replace `·width:·'20%',·height:·mvs(38)·` with `width:·'20%',·height:·mvs(38)`"
prettier/prettier
|
| 166 |
style={{ width: '20%', height: mvs(38) }} |
| 167 |
/> |
| 168 |
) : ( |
| 169 |
<Buttons.ButtonPrimary |
| Error |
Row 170, Column 25: "Replace `·color:·colors.doted·` with `color:·colors.doted`"
prettier/prettier
|
| 170 |
textStyle={{ color: colors.doted }} |
| 171 |
disabled |
| 172 |
title={'Verify'} |
| Warning |
Row 173, Column 20: "Inline style: { width: '20%' }"
react-native/no-inline-styles
|
| 173 |
style={{ |
| 174 |
width: '20%', |
| 175 |
height: mvs(38), |
| 176 |
backgroundColor: colors.secondary, |
| 177 |
}} |
| 178 |
/> |
| 179 |
)} |
| 180 |
</View> |
| 181 |
</View> |
| 182 |
); |
| 183 |
}; |
| 184 |
const PriceInput = ({ |
| 185 |
label = '', |
| 186 |
value = '', |
| 187 |
editable = true, |
| 188 |
onChangeText, |
| 189 |
placeholder = '', |
| 190 |
secureTextEntry, |
| 191 |
keyboardType = 'numeric', |
| 192 |
returnKeyType = 'default', |
| 193 |
isRequired = false, |
| 194 |
divider = false, |
| 195 |
priceUnit = 'USD', |
| 196 |
style, |
| 197 |
containerStyle, |
| 198 |
unitStyle, |
| 199 |
maxLength = 9, |
| 200 |
}) => { |
| Warning |
Row 201, Column 10: "'isVerify' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 201, Column 20: "'setIsVerify' is assigned a value but never used."
no-unused-vars
|
| 201 |
const [isVerify, setIsVerify] = React.useState(true); |
| 202 |
return ( |
| Error |
Row 203, Column 19: "Replace `·...INPUT_STYLES.PRICE_CONTAINER,·...containerStyle·` with `...INPUT_STYLES.PRICE_CONTAINER,·...containerStyle`"
prettier/prettier
|
| 203 |
<View style={{ ...INPUT_STYLES.PRICE_CONTAINER, ...containerStyle }}> |
| 204 |
<TextInput |
| 205 |
value={value} |
| 206 |
maxLength={maxLength} |
| 207 |
secureTextEntry={secureTextEntry} |
| 208 |
onChangeText={onChangeText} |
| 209 |
// onChangeText={text => { |
| 210 |
// // console.log('TAKE_TO_CONSTANT.floatValidation(text):',TAKE_TO_CONSTANT.floatValidation(text)); |
| 211 |
// //console.log('length:', text.split('.').length - 1); |
| 212 |
// // if (text.length===0||TAKE_TO_CONSTANT.floatValidation(text)||(text.split('.').length-1)===1&&text[0]!=='.'&&text[text.length-1]==='.') { |
| 213 |
// // //if (TAKE_TO_CONSTANT.floatValidation(text) || !text) { |
| 214 |
// // onChangeText(!text ? '0' : parseFloat(text).toString()); |
| 215 |
// // } |
| 216 |
// }} |
| 217 |
editable={editable} |
| 218 |
keyboardType={keyboardType} |
| 219 |
returnKeyType={returnKeyType} |
| 220 |
placeholder={placeholder} |
| 221 |
placeholderTextColor={colors.input_placehoder} |
| Warning |
Row 222, Column 54: "Inline style: { paddingVertical: 0 }"
react-native/no-inline-styles
|
| Error |
Row 222, Column 55: "Replace `·paddingVertical:·0·` with `paddingVertical:·0`"
prettier/prettier
|
| 222 |
style={[INPUT_STYLES.PRICE_INPUT_TXT, style, { paddingVertical: 0 }]} |
| 223 |
/> |
| 224 |
<Medium |
| 225 |
label={priceUnit} |
| Error |
Row 226, Column 17: "Replace `·color:·colors.typeHeader,·fontSize:·mvs(15),·...unitStyle·` with `color:·colors.typeHeader,·fontSize:·mvs(15),·...unitStyle`"
prettier/prettier
|
| 226 |
style={{ color: colors.typeHeader, fontSize: mvs(15), ...unitStyle }} |
| 227 |
/> |
| 228 |
</View> |
| 229 |
); |
| 230 |
}; |
| 231 |
|
| 232 |
const InputSecondary = ({ |
| 233 |
maxLength = 6, |
| 234 |
label = '', |
| 235 |
value = '', |
| 236 |
editable = true, |
| 237 |
onChangeText, |
| 238 |
placeholder = 'placeholder', |
| 239 |
placeholderColor = colors.input_placehoder, |
| 240 |
secureTextEntry = false, |
| 241 |
keyboardType = 'default', |
| 242 |
returnKeyType = 'default', |
| 243 |
isRequired = false, |
| 244 |
divider = false, |
| 245 |
containerStyle, |
| 246 |
style, |
| 247 |
verify = false, |
| 248 |
onPressIcon, |
| 249 |
codeText = false, |
| 250 |
onSendCode, |
| 251 |
emptySpace = false, |
| 252 |
onPress, |
| 253 |
disabled = true, |
| 254 |
labelStyle, |
| 255 |
}) => { |
| 256 |
return ( |
| Error |
Row 257, Column 20: "Replace `·marginBottom:·mvs(18)·` with `marginBottom:·mvs(18)`"
prettier/prettier
|
| 257 |
<View style={[{ marginBottom: mvs(18) }, containerStyle]}> |
| 258 |
<Regular |
| 259 |
label={label} |
| Error |
Row 260, Column 17: "Replace `·color:·colors.typeHeader,·marginBottom:·mvs(10),·...labelStyle·}}` with `⏎··········color:·colors.typeHeader,⏎··········marginBottom:·mvs(10),⏎··········...labelStyle,`"
prettier/prettier
|
| 260 |
style={{ color: colors.typeHeader, marginBottom: mvs(10), ...labelStyle }} |
| Error |
Row 261, Column 7: "Insert `··}}`"
prettier/prettier
|
| 261 |
> |
| Error |
Row 262, Column 24: "Replace `` with `(⏎··········⏎········)`"
prettier/prettier
|
| 262 |
{isRequired && <Regular label={'*'} style={{ color: colors.mendatory }} />} |
| 263 |
</Regular> |
| 264 |
<TouchableOpacity style={{}} disabled={disabled} onPress={onPress}> |
| 265 |
<TextInput |
| 266 |
editable={editable} |
| 267 |
value={value} |
| 268 |
placeholder={placeholder} |
| 269 |
placeholderTextColor={colors.input_placehoder} |
| 270 |
onChangeText={onChangeText} |
| 271 |
keyboardType={keyboardType} |
| Error |
Row 272, Column 19: "Replace `·...INPUT_STYLES.SECONDARY_INPUT,·...style·` with `...INPUT_STYLES.SECONDARY_INPUT,·...style`"
prettier/prettier
|
| 272 |
style={{ ...INPUT_STYLES.SECONDARY_INPUT, ...style }} |
| 273 |
/> |
| 274 |
{emptySpace ? null : codeText ? ( |
| 275 |
<Regular |
| 276 |
onPress={onSendCode} |
| 277 |
label={'Send code'} |
| 278 |
style={INPUT_STYLES.SEND_CODE} |
| 279 |
/> |
| 280 |
) : ( |
| 281 |
<> |
| 282 |
{verify && ( |
| 283 |
<Tick |
| Warning |
Row 284, Column 24: "Inline style: { position: 'absolute', textDecorationLine: 'underline' }"
react-native/no-inline-styles
|
| 284 |
style={{ |
| 285 |
position: 'absolute', |
| 286 |
right: mvs(25), |
| 287 |
top: mvs(10), |
| 288 |
color: colors.primary, |
| 289 |
textDecorationLine: 'underline', |
| 290 |
fontSize: mvs(13), |
| 291 |
bottom: mvs(30), |
| 292 |
}} |
| 293 |
/> |
| 294 |
)} |
| 295 |
{secureTextEntry && ( |
| 296 |
<TouchableOpacity |
| 297 |
disabled={!secureTextEntry} |
| Warning |
Row 298, Column 24: "Inline style: { position: 'absolute', right: 0, flexDirection: 'row' }"
react-native/no-inline-styles
|
| 298 |
style={{ |
| 299 |
position: 'absolute', |
| 300 |
right: 0, |
| 301 |
top: mvs(10), |
| 302 |
flexDirection: 'row', |
| 303 |
}} |
| 304 |
onPress={onPressIcon}> |
| 305 |
{secureTextEntry && <Eye height={mvs(20)} width={mvs(20)} />} |
| 306 |
</TouchableOpacity> |
| 307 |
)} |
| 308 |
</> |
| 309 |
)} |
| 310 |
</TouchableOpacity> |
| 311 |
</View> |
| 312 |
); |
| 313 |
}; |
| 314 |
|
| 315 |
const ReviewInput = ({ |
| 316 |
maxLength = 200, |
| 317 |
label = 'Write a Review', |
| 318 |
value = '', |
| 319 |
editable = true, |
| 320 |
onChangeText, |
| 321 |
placeholder = '', |
| 322 |
secureTextEntry, |
| 323 |
keyboardType = 'default', |
| 324 |
returnKeyType = 'default', |
| 325 |
isRequired = false, |
| 326 |
style, |
| 327 |
containerStyle, |
| 328 |
}) => { |
| 329 |
return ( |
| Error |
Row 330, Column 19: "Replace `·paddingTop:·mvs(15)·` with `paddingTop:·mvs(15)`"
prettier/prettier
|
| 330 |
<View style={{ paddingTop: mvs(15) }}> |
| 331 |
<View style={[INPUT_STYLES.REVIEW_CONTAINER, containerStyle]}> |
| 332 |
<TextInput |
| 333 |
value={value} |
| 334 |
multiline |
| 335 |
editable={editable} |
| 336 |
returnKeyType={returnKeyType} |
| 337 |
numberOfLines={3} |
| 338 |
placeholder={placeholder} |
| 339 |
onChangeText={onChangeText} |
| 340 |
maxLength={maxLength} |
| 341 |
keyboardType={keyboardType} |
| 342 |
textAlignVertical={'top'} |
| Error |
Row 343, Column 19: "Replace `·paddingVertical:·mvs(5),·...style·` with `paddingVertical:·mvs(5),·...style`"
prettier/prettier
|
| 343 |
style={{ paddingVertical: mvs(5), ...style }} |
| 344 |
/> |
| 345 |
</View> |
| 346 |
<View style={INPUT_STYLES.REVIEW_LABEL_CONTAINER}> |
| 347 |
<Regular |
| 348 |
label={label} |
| Error |
Row 349, Column 19: "Replace `·fontSize:·mvs(14),·color:·colors.typeHeader·` with `fontSize:·mvs(14),·color:·colors.typeHeader`"
prettier/prettier
|
| 349 |
style={{ fontSize: mvs(14), color: colors.typeHeader }} |
| 350 |
/> |
| 351 |
</View> |
| 352 |
</View> |
| 353 |
); |
| 354 |
}; |
| 355 |
|
| 356 |
const ViewReason = ({ |
| 357 |
maxLength = 200, |
| 358 |
label = 'Write a Review', |
| 359 |
value = '', |
| 360 |
editable = true, |
| 361 |
onChangeText, |
| 362 |
placeholder = '', |
| 363 |
secureTextEntry, |
| 364 |
keyboardType = 'default', |
| 365 |
returnKeyType = 'default', |
| 366 |
isRequired = false, |
| 367 |
style, |
| 368 |
containerStyle, |
| 369 |
}) => { |
| 370 |
return ( |
| Error |
Row 371, Column 19: "Replace `·paddingTop:·mvs(15)·` with `paddingTop:·mvs(15)`"
prettier/prettier
|
| 371 |
<View style={{ paddingTop: mvs(15) }}> |
| 372 |
<View style={[INPUT_STYLES.REVIEW_CONTAINER, containerStyle]}> |
| 373 |
<ScrollView showsVerticalScrollIndicator={false}> |
| 374 |
<Regular label={value} /> |
| 375 |
</ScrollView> |
| 376 |
</View> |
| 377 |
<View style={INPUT_STYLES.REVIEW_LABEL_CONTAINER}> |
| 378 |
<Regular |
| 379 |
label={label} |
| Error |
Row 380, Column 19: "Replace `·fontSize:·mvs(14),·color:·colors.typeHeader·` with `fontSize:·mvs(14),·color:·colors.typeHeader`"
prettier/prettier
|
| 380 |
style={{ fontSize: mvs(14), color: colors.typeHeader }} |
| 381 |
/> |
| 382 |
</View> |
| 383 |
</View> |
| 384 |
); |
| 385 |
}; |
| 386 |
const PhoneInputComponent = ({ |
| 387 |
phoneInput, |
| 388 |
defaultValue, |
| 389 |
value, |
| 390 |
placeholder = 'Phone Number', |
| 391 |
defaultCode = 'KW', |
| 392 |
layout = 'second', |
| 393 |
withDarkTheme = false, |
| 394 |
wrapperStyle = {}, |
| 395 |
containerStyle = {}, |
| 396 |
codeTextStyle = {}, |
| 397 |
textInputStyle = {}, |
| 398 |
onChangeFormattedText, |
| 399 |
onChangeText, |
| 400 |
disabled = false, |
| 401 |
}) => { |
| 402 |
return ( |
| 403 |
<View |
| 404 |
style={{ |
| 405 |
// borderBottomWidth: StyleSheet.hairlineWidth, |
| 406 |
borderColor: colors.border, |
| 407 |
marginBottom: mvs(15), |
| 408 |
...wrapperStyle, |
| 409 |
}}> |
| 410 |
<Regular label={placeholder} style={INPUT_STYLES.LABLE_STYLE} /> |
| 411 |
<PhoneInput |
| 412 |
disabled={disabled} |
| 413 |
ref={phoneInput} |
| 414 |
// placeholder={placeholder} |
| 415 |
defaultValue={defaultValue} |
| Warning |
Row 416, Column 25: "Inline style: { width: '100%', padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 416, Column 26: "Replace `·width:·'100%',·padding:·0,·...containerStyle·` with `width:·'100%',·padding:·0,·...containerStyle`"
prettier/prettier
|
| 416 |
containerStyle={{ width: '100%', padding: 0, ...containerStyle }} |
| 417 |
textContainerStyle={{ |
| 418 |
backgroundColor: colors.secondary, |
| 419 |
borderRadius: mvs(10), |
| 420 |
height: mvs(40), |
| 421 |
}} |
| 422 |
codeTextStyle={{ |
| 423 |
color: colors.headerTitle, |
| 424 |
fontFamily: fonts.carosSoftRegular, |
| 425 |
fontSize: mvs(15), |
| 426 |
...codeTextStyle, |
| 427 |
}} |
| Warning |
Row 428, Column 25: "Inline style: { width: '100%', padding: 0 }"
react-native/no-inline-styles
|
| 428 |
textInputStyle={{ |
| 429 |
width: '100%', |
| 430 |
paddingHorizontal: mvs(10), |
| 431 |
borderRadius: mvs(10), |
| 432 |
height: mvs(40), |
| 433 |
color: colors.headerTitle, |
| 434 |
fontFamily: fonts.carosSoftRegular, |
| 435 |
fontSize: mvs(15), |
| 436 |
padding: 0, |
| 437 |
...textInputStyle, |
| 438 |
}} |
| Error |
Row 439, Column 26: "Replace `·keyboardType:·'phone-pad',·placeholderTextColor·:·colors.input_placehoder` with `⏎··········keyboardType:·'phone-pad',⏎··········placeholderTextColor:·colors.input_placehoder,⏎·······`"
prettier/prettier
|
| 439 |
textInputProps={{ keyboardType: 'phone-pad', placeholderTextColor : colors.input_placehoder }} |
| 440 |
defaultCode={defaultCode} |
| 441 |
layout={layout} |
| 442 |
onChangeText={onChangeText} |
| 443 |
onChangeFormattedText={onChangeFormattedText} |
| 444 |
value={value} |
| 445 |
withDarkTheme={withDarkTheme} |
| 446 |
/> |
| 447 |
</View> |
| 448 |
); |
| 449 |
}; |
| Error |
Row 450, Column 26: "Replace `·value,·setValue·` with `value,·setValue`"
prettier/prettier
|
| 450 |
const CustomOtpInput = ({ value, setValue }) => { |
| 451 |
return ( |
| Warning |
Row 452, Column 18: "Inline style: { alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 452, Column 19: "Replace `·height:·mvs(85),·marginTop:·mvs(28),·alignItems:·'center'·` with `height:·mvs(85),·marginTop:·mvs(28),·alignItems:·'center'`"
prettier/prettier
|
| 452 |
<View style={{ height: mvs(85), marginTop: mvs(28), alignItems: 'center' }}> |
| 453 |
<Regular |
| 454 |
label={'Verification Code'} |
| Error |
Row 455, Column 17: "Replace `·color:·colors.lightgrey2,·marginBottom:·mvs(7)·` with `color:·colors.lightgrey2,·marginBottom:·mvs(7)`"
prettier/prettier
|
| 455 |
style={{ color: colors.lightgrey2, marginBottom: mvs(7) }} |
| 456 |
/> |
| 457 |
<OtpInput value={value} setValue={setValue} /> |
| 458 |
</View> |
| 459 |
); |
| 460 |
}; |
| 461 |
|
| 462 |
export const TAKE_TO_INPUT_FIELD = { |
| 463 |
CustomInput, |
| 464 |
CustomInputWithButton, |
| 465 |
PriceInput, |
| 466 |
CustomOtpInput, |
| 467 |
PhoneInputComponent, |
| 468 |
ReviewInput, |
| 469 |
ViewReason, |
| 470 |
InputSecondary, |
| 471 |
}; |
| 472 |
|
|
|
|
/src/components/atoms/OrderDestination.js
|
42 problems (21 errors, 21 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·Text,·View·` with `StyleSheet,·Text,·View`"
prettier/prettier
|
| Warning |
Row 2, Column 22: "'Text' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 5, Column 8: "'Regular' is defined but never used."
no-unused-vars
|
| Error |
Row 17, Column 28: "Insert `,`"
prettier/prettier
|
| Warning |
Row 17, Column 28: "Missing trailing comma."
comma-dangle
|
| Error |
Row 20, Column 10: "Replace `·style={{·...styles.CONTAINER,·flexDirection:·isReverse·?·'row-reverse'·:·'row',·...containerStyle` with `⏎······style={{⏎········...styles.CONTAINER,⏎········flexDirection:·isReverse·?·'row-reverse'·:·'row',⏎········...containerStyle,⏎·····`"
prettier/prettier
|
| Warning |
Row 20, Column 18: "Inline style: { flexDirection: "isReverse ? 'row-reverse' : 'row'" }"
react-native/no-inline-styles
|
| Error |
Row 21, Column 16: "Insert `⏎·······`"
prettier/prettier
|
| Warning |
Row 21, Column 24: "Inline style: { position: 'absolute', left: 0 }"
react-native/no-inline-styles
|
| Error |
Row 22, Column 1: "Replace `········transform:·[{·rotate:·isReverse·?·'180deg'·:·'0deg'·` with `··········transform:·[{rotate:·isReverse·?·'180deg'·:·'0deg'`"
prettier/prettier
|
| Error |
Row 23, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 24, Column 9: "Replace `left:·0` with `··left:·0,`"
prettier/prettier
|
| Warning |
Row 24, Column 16: "Missing trailing comma."
comma-dangle
|
| Error |
Row 25, Column 1: "Replace `······}}` with `········}}⏎·····`"
prettier/prettier
|
| Warning |
Row 26, Column 14: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 35, Column 9: "Empty components are self-closing"
react/self-closing-comp
|
| Error |
Row 35, Column 14: "Replace `·style={{·borderWidth:·StyleSheet.hairlineWidth,·borderRadius:·1,·borderStyle:·'dashed',·width:·'100%',·height:·0,·borderColor:·colors.doted` with `⏎··········style={{⏎············borderWidth:·StyleSheet.hairlineWidth,⏎············borderRadius:·1,⏎············borderStyle:·'dashed',⏎············width:·'100%',⏎············height:·0,⏎············borderColor:·colors.doted,⏎·········`"
prettier/prettier
|
| Warning |
Row 35, Column 22: "Inline style: { borderRadius: 1, borderStyle: 'dashed', width: '100%', height: 0 }"
react-native/no-inline-styles
|
| Warning |
Row 38, Column 18: "Inline style: {
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
width: '100%'
}"
react-native/no-inline-styles
|
| Warning |
Row 46, Column 20: "Inline style: { width: '50%' }"
react-native/no-inline-styles
|
| Warning |
Row 63, Column 20: "Inline style: { width: '40%', borderStyle: 'dashed' }"
react-native/no-inline-styles
|
| Warning |
Row 73, Column 18: "Inline style: {
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center'
}"
react-native/no-inline-styles
|
| Warning |
Row 80, Column 20: "Inline style: { width: '90%' }"
react-native/no-inline-styles
|
| Error |
Row 81, Column 28: "Insert `·`"
prettier/prettier
|
| Error |
Row 99, Column 17: "Insert `⏎·······`"
prettier/prettier
|
| Warning |
Row 99, Column 25: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| Error |
Row 100, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 101, Column 9: "Replace `right:·mvs(1)` with `··right:·mvs(1),`"
prettier/prettier
|
| Warning |
Row 101, Column 22: "Missing trailing comma."
comma-dangle
|
| Error |
Row 102, Column 1: "Replace `······}}` with `········}}⏎·····`"
prettier/prettier
|
| Error |
Row 118, Column 20: "Insert `,`"
prettier/prettier
|
| Warning |
Row 118, Column 20: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 161, Column 3: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 161, Column 3: "Delete `··············`"
prettier/prettier
|
| Warning |
Row 171, Column 3: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 171, Column 3: "Delete `··············`"
prettier/prettier
|
| Warning |
Row 192, Column 3: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 192, Column 3: "Delete `··············`"
prettier/prettier
|
| Warning |
Row 202, Column 3: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 202, Column 3: "Delete `··············`"
prettier/prettier
|
| Error |
Row 221, Column 1: "Delete `⏎`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·Text,·View·` with `StyleSheet,·Text,·View`"
prettier/prettier
|
| Warning |
Row 2, Column 22: "'Text' is defined but never used."
no-unused-vars
|
| 2 |
import { StyleSheet, Text, View } from 'react-native'; |
| 3 |
import colors from '../../config/colors'; |
| Error |
Row 4, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 4 |
import { mvs } from '../../config/metrices'; |
| Warning |
Row 5, Column 8: "'Regular' is defined but never used."
no-unused-vars
|
| 5 |
import Regular from '../../presentation/typography/regular-text'; |
| 6 |
|
| 7 |
const OrderDestination = ({ |
| 8 |
SVGFirst, |
| 9 |
SVGSecond, |
| 10 |
label = ' - - - - - - - - - - - - - - - - - - - - - - ', |
| 11 |
value = 1, |
| 12 |
liveActive = false, |
| 13 |
isReverse = false, |
| 14 |
isDeliver = false, |
| 15 |
width = mvs(55), |
| 16 |
containerStyle, |
| Error |
Row 17, Column 28: "Insert `,`"
prettier/prettier
|
| Warning |
Row 17, Column 28: "Missing trailing comma."
comma-dangle
|
| 17 |
dotColor = colors.primary |
| 18 |
}) => { |
| 19 |
return ( |
| Error |
Row 20, Column 10: "Replace `·style={{·...styles.CONTAINER,·flexDirection:·isReverse·?·'row-reverse'·:·'row',·...containerStyle` with `⏎······style={{⏎········...styles.CONTAINER,⏎········flexDirection:·isReverse·?·'row-reverse'·:·'row',⏎········...containerStyle,⏎·····`"
prettier/prettier
|
| Warning |
Row 20, Column 18: "Inline style: { flexDirection: "isReverse ? 'row-reverse' : 'row'" }"
react-native/no-inline-styles
|
| 20 |
<View style={{ ...styles.CONTAINER, flexDirection: isReverse ? 'row-reverse' : 'row', ...containerStyle }}> |
| Error |
Row 21, Column 16: "Insert `⏎·······`"
prettier/prettier
|
| Warning |
Row 21, Column 24: "Inline style: { position: 'absolute', left: 0 }"
react-native/no-inline-styles
|
| 21 |
<SVGFirst style={{ |
| Error |
Row 22, Column 1: "Replace `········transform:·[{·rotate:·isReverse·?·'180deg'·:·'0deg'·` with `··········transform:·[{rotate:·isReverse·?·'180deg'·:·'0deg'`"
prettier/prettier
|
| 22 |
transform: [{ rotate: isReverse ? '180deg' : '0deg' }], |
| Error |
Row 23, Column 1: "Insert `··`"
prettier/prettier
|
| 23 |
position: 'absolute', |
| Error |
Row 24, Column 9: "Replace `left:·0` with `··left:·0,`"
prettier/prettier
|
| Warning |
Row 24, Column 16: "Missing trailing comma."
comma-dangle
|
| 24 |
left: 0 |
| Error |
Row 25, Column 1: "Replace `······}}` with `········}}⏎·····`"
prettier/prettier
|
| 25 |
}} /> |
| Warning |
Row 26, Column 14: "Expected '===' and instead saw '=='."
eqeqeq
|
| 26 |
{value == 0 ? ( |
| 27 |
// <Regular |
| 28 |
// label={label} |
| 29 |
// style={{ |
| 30 |
// textAlign: 'center', |
| 31 |
// fontSize: mvs(8), |
| 32 |
// color:liveActive&&!isDeliver?colors.white: colors.pathline, |
| 33 |
// }} |
| 34 |
// /> |
| Warning |
Row 35, Column 9: "Empty components are self-closing"
react/self-closing-comp
|
| Error |
Row 35, Column 14: "Replace `·style={{·borderWidth:·StyleSheet.hairlineWidth,·borderRadius:·1,·borderStyle:·'dashed',·width:·'100%',·height:·0,·borderColor:·colors.doted` with `⏎··········style={{⏎············borderWidth:·StyleSheet.hairlineWidth,⏎············borderRadius:·1,⏎············borderStyle:·'dashed',⏎············width:·'100%',⏎············height:·0,⏎············borderColor:·colors.doted,⏎·········`"
prettier/prettier
|
| Warning |
Row 35, Column 22: "Inline style: { borderRadius: 1, borderStyle: 'dashed', width: '100%', height: 0 }"
react-native/no-inline-styles
|
| 35 |
<View style={{ borderWidth: StyleSheet.hairlineWidth, borderRadius: 1, borderStyle: 'dashed', width: '100%', height: 0, borderColor: colors.doted }}></View> |
| 36 |
) : value === 1 ? ( |
| 37 |
<View |
| Warning |
Row 38, Column 18: "Inline style: {
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
width: '100%'
}"
react-native/no-inline-styles
|
| 38 |
style={{ |
| 39 |
flexDirection: 'row', |
| 40 |
justifyContent: 'center', |
| 41 |
alignItems: 'center', |
| 42 |
//borderWidth : 1, |
| 43 |
width: '100%', |
| 44 |
}}> |
| 45 |
<View |
| Warning |
Row 46, Column 20: "Inline style: { width: '50%' }"
react-native/no-inline-styles
|
| 46 |
style={{ |
| 47 |
width: '50%', |
| 48 |
backgroundColor: colors.primary, |
| 49 |
borderWidth: StyleSheet.hairlineWidth, |
| 50 |
borderColor: colors.primary, |
| 51 |
//borderWidth : 1 |
| 52 |
}} |
| 53 |
/> |
| 54 |
<View |
| 55 |
style={{ |
| 56 |
height: mvs(15), |
| 57 |
width: mvs(15), |
| 58 |
borderRadius: mvs(7.5), |
| 59 |
backgroundColor: dotColor, |
| 60 |
}} |
| 61 |
/> |
| 62 |
<View |
| Warning |
Row 63, Column 20: "Inline style: { width: '40%', borderStyle: 'dashed' }"
react-native/no-inline-styles
|
| 63 |
style={{ |
| 64 |
width: '40%', |
| 65 |
borderStyle: 'dashed', |
| 66 |
borderWidth: StyleSheet.hairlineWidth, |
| 67 |
borderColor: colors.pathline, |
| 68 |
}} |
| 69 |
/> |
| 70 |
</View> |
| 71 |
) : ( |
| 72 |
<View |
| Warning |
Row 73, Column 18: "Inline style: {
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center'
}"
react-native/no-inline-styles
|
| 73 |
style={{ |
| 74 |
flexDirection: 'row', |
| 75 |
justifyContent: 'center', |
| 76 |
alignItems: 'center', |
| 77 |
//borderWidth : 1 |
| 78 |
}}> |
| 79 |
<View |
| Warning |
Row 80, Column 20: "Inline style: { width: '90%' }"
react-native/no-inline-styles
|
| 80 |
style={{ |
| Error |
Row 81, Column 28: "Insert `·`"
prettier/prettier
|
| 81 |
width: '90%',//width?width:mvs(110), |
| 82 |
|
| 83 |
backgroundColor: colors.primary, |
| 84 |
borderWidth: StyleSheet.hairlineWidth, |
| 85 |
borderColor: colors.primary, |
| 86 |
}} |
| 87 |
/> |
| 88 |
<View |
| 89 |
style={{ |
| 90 |
height: mvs(15), |
| 91 |
width: mvs(15), |
| 92 |
borderRadius: mvs(7.5), |
| 93 |
borderColor: colors.primary, |
| 94 |
backgroundColor: dotColor, |
| 95 |
}} |
| 96 |
/> |
| 97 |
</View> |
| 98 |
)} |
| Error |
Row 99, Column 17: "Insert `⏎·······`"
prettier/prettier
|
| Warning |
Row 99, Column 25: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| 99 |
<SVGSecond style={{ |
| Error |
Row 100, Column 1: "Insert `··`"
prettier/prettier
|
| 100 |
position: 'absolute', |
| Error |
Row 101, Column 9: "Replace `right:·mvs(1)` with `··right:·mvs(1),`"
prettier/prettier
|
| Warning |
Row 101, Column 22: "Missing trailing comma."
comma-dangle
|
| 101 |
right: mvs(1) |
| Error |
Row 102, Column 1: "Replace `······}}` with `········}}⏎·····`"
prettier/prettier
|
| 102 |
}} /> |
| 103 |
</View> |
| 104 |
); |
| 105 |
}; |
| 106 |
|
| 107 |
export default OrderDestination; |
| 108 |
|
| 109 |
const styles = StyleSheet.create({ |
| 110 |
CONTAINER: { |
| 111 |
// flex: 1, |
| 112 |
justifyContent: 'space-between', |
| 113 |
alignItems: 'center', |
| 114 |
width: '100%', |
| 115 |
//borderWidth : 1, |
| 116 |
paddingHorizontal: mvs(30), |
| 117 |
overflow: 'hidden', |
| Error |
Row 118, Column 20: "Insert `,`"
prettier/prettier
|
| Warning |
Row 118, Column 20: "Missing trailing comma."
comma-dangle
|
| 118 |
height: mvs(22) |
| 119 |
}, |
| 120 |
}); |
| 121 |
|
| 122 |
// import React from 'react'; |
| 123 |
// import {StyleSheet, Text, View} from 'react-native'; |
| 124 |
// import colors from '../../config/colors'; |
| 125 |
// import {mvs} from '../../config/metrices'; |
| 126 |
// import Regular from '../../presentation/typography/regular-text'; |
| 127 |
|
| 128 |
// const OrderDestination = ({ |
| 129 |
// SVGFirst, |
| 130 |
// SVGSecond, |
| 131 |
// label = ' - - - - - - - - - - - - - - - - - - - - - - ', |
| 132 |
// value = 1, |
| 133 |
// liveActive=false, |
| 134 |
// isReverse=false, |
| 135 |
// isDeliver=false, |
| 136 |
// width= mvs(55), |
| 137 |
// containerStyle |
| 138 |
// }) => { |
| 139 |
// return ( |
| 140 |
// <View style={{...styles.CONTAINER,flexDirection:isReverse?'row-reverse': 'row',...containerStyle,}}> |
| 141 |
// <SVGFirst style={{transform:[{rotate:isReverse?'180deg':'0deg'}]}}/> |
| 142 |
// {value == 0 ? ( |
| 143 |
// <Regular |
| 144 |
// label={label} |
| 145 |
// style={{ |
| 146 |
// textAlign: 'center', |
| 147 |
// fontSize: mvs(8), |
| 148 |
// color:liveActive&&!isDeliver?colors.white: colors.pathline, |
| 149 |
// }} |
| 150 |
// /> |
| 151 |
// ) : value === 1 ? ( |
| 152 |
// <View |
| 153 |
// style={{ |
| 154 |
// flexDirection: 'row', |
| 155 |
// justifyContent: 'center', |
| 156 |
// alignItems: 'center', |
| 157 |
// }}> |
| 158 |
// <View |
| 159 |
// style={{ |
| 160 |
// width: width, |
| Warning |
Row 161, Column 3: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 161, Column 3: "Delete `··············`"
prettier/prettier
|
| 161 |
// |
| 162 |
// derWidth: StyleSheet.hairbackgroundColor:lineWidth, |
| 163 |
// borderColor: colors.primary, |
| 164 |
// }} |
| 165 |
// /> |
| 166 |
// <View |
| 167 |
// style={{ |
| 168 |
// height: mvs(15), |
| 169 |
// width: mvs(15), |
| 170 |
// borderRadius: mvs(7.5), |
| Warning |
Row 171, Column 3: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 171, Column 3: "Delete `··············`"
prettier/prettier
|
| 171 |
// |
| 172 |
// }} backgroundColor: /> |
| 173 |
// <View |
| 174 |
// style={{ |
| 175 |
// width: width, |
| 176 |
// borderStyle: 'dashed', |
| 177 |
// borderWidth: StyleSheet.hairlineWidth, |
| 178 |
// borderColor: colors.pathline, |
| 179 |
// }} |
| 180 |
// /> |
| 181 |
// </View> |
| 182 |
// ) : ( |
| 183 |
// <View |
| 184 |
// style={{ |
| 185 |
// flexDirection: 'row', |
| 186 |
// justifyContent: 'center', |
| 187 |
// alignItems: 'center', |
| 188 |
// }}> |
| 189 |
// <View |
| 190 |
// style={{ |
| 191 |
// width: width?width:mvs(110), |
| Warning |
Row 192, Column 3: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 192, Column 3: "Delete `··············`"
prettier/prettier
|
| 192 |
// |
| 193 |
// derWidth: StyleSheet.hairbackgroundColor:lineWidth, |
| 194 |
// borderColor: colors.primary, |
| 195 |
// }} |
| 196 |
// /> |
| 197 |
// <View |
| 198 |
// style={{ |
| 199 |
// height: mvs(15), |
| 200 |
// width: mvs(15), |
| 201 |
// borderRadius: mvs(7.5), |
| Warning |
Row 202, Column 3: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 202, Column 3: "Delete `··············`"
prettier/prettier
|
| 202 |
// |
| 203 |
// }} backgroundColor: /> |
| 204 |
// </View> |
| 205 |
// )} |
| 206 |
// <SVGSecond /> |
| 207 |
// </View> |
| 208 |
// ); |
| 209 |
// }; |
| 210 |
|
| 211 |
// export default OrderDestination; |
| 212 |
|
| 213 |
// const styles = StyleSheet.create({ |
| 214 |
// CONTAINER: { |
| 215 |
// flex: 1, |
| 216 |
// justifyContent: 'space-between', |
| 217 |
// alignItems: 'center', |
| 218 |
// width: '97%', |
| 219 |
// }, |
| 220 |
// }); |
| Error |
Row 221, Column 1: "Delete `⏎`"
prettier/prettier
|
| 221 |
|
| 222 |
|
|
|
|
/src/components/atoms/OrderDestinationAddress.js
|
9 problems (0 errors, 9 warnings)
|
| Severity |
Rule |
| Warning |
Row 2, Column 21: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 17, Column 14: "Inline style: {
justifyContent: 'space-between',
alignItems: 'center',
width: '100%',
flexDirection: 'row'
}"
react-native/no-inline-styles
|
| Warning |
Row 29, Column 16: "Inline style: { overflow: 'hidden' }"
react-native/no-inline-styles
|
| Warning |
Row 39, Column 18: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| Warning |
Row 45, Column 20: "Inline style: { width: '65%' }"
react-native/no-inline-styles
|
| Warning |
Row 49, Column 18: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 59, Column 16: "Inline style: { overflow: 'hidden' }"
react-native/no-inline-styles
|
| Warning |
Row 69, Column 18: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| Warning |
Row 81, Column 7: "'styles' is assigned a value but never used."
no-unused-vars
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Warning |
Row 2, Column 21: "'Text' is defined but never used."
no-unused-vars
|
| 2 |
import {StyleSheet, Text, View, Image, ImageBackground} from 'react-native'; |
| 3 |
import {TAKE_TO_IMAGES} from '../../../resource/assets/image_resouce'; |
| 4 |
import colors from '../../config/colors'; |
| 5 |
import {mvs} from '../../config/metrices'; |
| 6 |
import Regular from '../../presentation/typography/regular-text'; |
| 7 |
|
| 8 |
const OrderDestinationAddress = ({ |
| 9 |
label, |
| 10 |
fontSize = 9, |
| 11 |
style, |
| 12 |
imageFrom, |
| 13 |
imageTo, |
| 14 |
}) => { |
| 15 |
return ( |
| 16 |
<View |
| Warning |
Row 17, Column 14: "Inline style: {
justifyContent: 'space-between',
alignItems: 'center',
width: '100%',
flexDirection: 'row'
}"
react-native/no-inline-styles
|
| 17 |
style={{ |
| 18 |
// flex: 1,//to give abosulte size uncomment this line |
| 19 |
justifyContent: 'space-between', |
| 20 |
alignItems: 'center', |
| 21 |
width: '100%', |
| 22 |
// overflow :'hidden', |
| 23 |
flexDirection: 'row', |
| 24 |
...style, |
| 25 |
}}> |
| 26 |
<ImageBackground |
| 27 |
resizeMode="contain" |
| 28 |
source={TAKE_TO_IMAGES.placeholder} |
| Warning |
Row 29, Column 16: "Inline style: { overflow: 'hidden' }"
react-native/no-inline-styles
|
| 29 |
style={{ |
| 30 |
height: mvs(23), |
| 31 |
width: mvs(23), |
| 32 |
borderRadius: mvs(11.5), |
| 33 |
overflow: 'hidden', |
| 34 |
backgroundColor: colors.lightgrey, |
| 35 |
}}> |
| 36 |
<Image |
| 37 |
resizeMode="contain" |
| 38 |
source={imageFrom} |
| Warning |
Row 39, Column 18: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| 39 |
style={{ |
| 40 |
height: '100%', |
| 41 |
width: '100%', |
| 42 |
}} |
| 43 |
/> |
| 44 |
</ImageBackground> |
| Warning |
Row 45, Column 20: "Inline style: { width: '65%' }"
react-native/no-inline-styles
|
| 45 |
<View style={{width: '65%'}}> |
| 46 |
<Regular |
| 47 |
numberOfLines={3} |
| 48 |
label={label} |
| Warning |
Row 49, Column 18: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 49 |
style={{ |
| 50 |
textAlign: 'center', |
| 51 |
fontSize: mvs(fontSize), |
| 52 |
color: colors.primary, |
| 53 |
}} |
| 54 |
/> |
| 55 |
</View> |
| 56 |
<ImageBackground |
| 57 |
resizeMode="contain" |
| 58 |
source={TAKE_TO_IMAGES.placeholder} |
| Warning |
Row 59, Column 16: "Inline style: { overflow: 'hidden' }"
react-native/no-inline-styles
|
| 59 |
style={{ |
| 60 |
height: mvs(23), |
| 61 |
width: mvs(23), |
| 62 |
borderRadius: mvs(11.5), |
| 63 |
overflow: 'hidden', |
| 64 |
backgroundColor: colors.lightgrey, |
| 65 |
}}> |
| 66 |
<Image |
| 67 |
resizeMode="contain" |
| 68 |
source={imageTo} |
| Warning |
Row 69, Column 18: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| 69 |
style={{ |
| 70 |
height: '100%', |
| 71 |
width: '100%', |
| 72 |
}} |
| 73 |
/> |
| 74 |
</ImageBackground> |
| 75 |
</View> |
| 76 |
); |
| 77 |
}; |
| 78 |
|
| 79 |
export default OrderDestinationAddress; |
| 80 |
|
| Warning |
Row 81, Column 7: "'styles' is assigned a value but never used."
no-unused-vars
|
| 81 |
const styles = StyleSheet.create({}); |
| 82 |
|
|
|
|
/src/components/atoms/OrderStatus.js
|
4 problems (2 errors, 2 warnings)
|
| Line |
Source |
| 1 |
import React from 'react'; |
| 2 |
import {StyleSheet, View} from 'react-native'; |
| 3 |
import colors from '../../config/colors'; |
| 4 |
import {mvs} from '../../config/metrices'; |
| 5 |
import Regular from '../../presentation/typography/regular-text'; |
| Error |
Row 6, Column 25: "Replace `color=` with `·color·=·`"
prettier/prettier
|
| Warning |
Row 6, Column 30: "Operator '=' must be spaced."
space-infix-ops
|
| 6 |
const Dot = ({level = 0,color=colors.typeHeader}) => { |
| 7 |
// const color = |
| 8 |
// level === 0 |
| 9 |
// ? colors.white |
| 10 |
// : level === 1 |
| 11 |
// ? colors.disputes |
| 12 |
// : level === 2 |
| 13 |
// ? colors.pink |
| 14 |
// : colors.primary; |
| 15 |
const borderWidth = level === 0 ? 1 : 0; |
| 16 |
return ( |
| 17 |
<View |
| 18 |
style={{backgroundColor: color, borderWidth: borderWidth, ...styles.DOT}} |
| 19 |
/> |
| 20 |
); |
| 21 |
}; |
| 22 |
|
| 23 |
const OrderStatus = ({label = 'Offer', level = 0}) => { |
| 24 |
const textColor = |
| 25 |
level === 0 |
| 26 |
? colors.typeHeader |
| 27 |
: level === 'disputed' |
| 28 |
? colors.disputes |
| 29 |
: level === 'rejected' |
| 30 |
? colors.pink |
| Error |
Row 31, Column 24: "Insert `·`"
prettier/prettier
|
| 31 |
: colors.primary;//this color is for completed |
| 32 |
|
| 33 |
const textDecorationLine = level === 'completed' ? 'line-through' : 'none'; |
| 34 |
return ( |
| Warning |
Row 35, Column 18: "Inline style: { width: '100%', alignItems: 'center' }"
react-native/no-inline-styles
|
| 35 |
<View style={{width: '100%', alignItems: 'center'}}> |
| 36 |
<Dot level={level} color={textColor} /> |
| 37 |
<Regular |
| 38 |
label={label?.split(' ')[0]} |
| 39 |
style={{ |
| 40 |
fontSize: mvs(12), |
| 41 |
color: textColor, |
| 42 |
textDecorationLine: textDecorationLine, |
| 43 |
marginTop: mvs(7), |
| 44 |
}} |
| 45 |
/> |
| 46 |
<Regular |
| 47 |
label={label?.split(' ')[1]} |
| 48 |
style={{ |
| 49 |
fontSize: mvs(12), |
| 50 |
color: textColor, |
| 51 |
textDecorationLine: textDecorationLine, |
| 52 |
}} |
| 53 |
/> |
| 54 |
</View> |
| 55 |
); |
| 56 |
}; |
| 57 |
export default OrderStatus; |
| 58 |
const styles = StyleSheet.create({ |
| 59 |
ROW: { |
| 60 |
// flexDirection:'row', |
| 61 |
// justifyContent:'space-between', |
| 62 |
// alignItems:'center', |
| 63 |
}, |
| 64 |
DOT: { |
| 65 |
marginTop: -mvs(5), |
| 66 |
height: mvs(12), |
| 67 |
width: mvs(12), |
| 68 |
borderColor: colors.price_border, |
| 69 |
borderRadius: mvs(6), |
| 70 |
}, |
| 71 |
}); |
| 72 |
|
|
|
|
/src/components/atoms/Placeholder.js
|
10 problems (4 errors, 6 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `⏎··StyleSheet,·View⏎` with `StyleSheet,·View`"
prettier/prettier
|
| Warning |
Row 3, Column 19: "Missing trailing comma."
comma-dangle
|
| Error |
Row 6, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Error |
Row 7, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 19, Column 20: "Inline style: { overflow: 'hidden' }"
react-native/no-inline-styles
|
| Error |
Row 21, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 23, Column 18: "Inline style: { height: '100%', width: '100%', overflow: 'hidden' }"
react-native/no-inline-styles
|
| Warning |
Row 31, Column 20: "Inline style: {
height: '100%',
width: '100%',
alignSelf: 'center',
justifyContent: 'flex-end',
position: 'absolute'
}"
react-native/no-inline-styles
|
| Warning |
Row 41, Column 20: "Inline style: { position: 'absolute', width: '100%', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 58, Column 7: "'styles' is assigned a value but never used."
no-unused-vars
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `⏎··StyleSheet,·View⏎` with `StyleSheet,·View`"
prettier/prettier
|
| 2 |
import { |
| Warning |
Row 3, Column 19: "Missing trailing comma."
comma-dangle
|
| 3 |
StyleSheet, View |
| 4 |
} from 'react-native'; |
| 5 |
import FastImage from 'react-native-fast-image'; |
| Error |
Row 6, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| 6 |
import { TAKE_TO_IMAGES } from '../../../resource/assets/image_resouce'; |
| Error |
Row 7, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 7 |
import { mvs } from '../../config/metrices'; |
| 8 |
|
| 9 |
const ImagePlaceholder = ({ |
| 10 |
containerStyle, |
| 11 |
style, |
| 12 |
bg_img, |
| 13 |
resizeMode, |
| 14 |
iconStyle, |
| 15 |
...props |
| 16 |
}) => { |
| 17 |
return ( |
| 18 |
<> |
| Warning |
Row 19, Column 20: "Inline style: { overflow: 'hidden' }"
react-native/no-inline-styles
|
| 19 |
<View style={{...containerStyle, overflow: 'hidden'}}> |
| 20 |
<FastImage |
| Error |
Row 21, Column 1: "Insert `··`"
prettier/prettier
|
| 21 |
resizeMode={'cover'} |
| 22 |
source={TAKE_TO_IMAGES.placeholder} |
| Warning |
Row 23, Column 18: "Inline style: { height: '100%', width: '100%', overflow: 'hidden' }"
react-native/no-inline-styles
|
| 23 |
style={{ |
| 24 |
height: '100%', |
| 25 |
width: '100%', |
| 26 |
overflow: 'hidden', |
| 27 |
borderRadius: mvs(10), |
| 28 |
}}> |
| 29 |
<FastImage |
| 30 |
source={{uri: bg_img}} |
| Warning |
Row 31, Column 20: "Inline style: {
height: '100%',
width: '100%',
alignSelf: 'center',
justifyContent: 'flex-end',
position: 'absolute'
}"
react-native/no-inline-styles
|
| 31 |
style={{ |
| 32 |
height: '100%', |
| 33 |
width: '100%', |
| 34 |
alignSelf: 'center', |
| 35 |
justifyContent: 'flex-end', |
| 36 |
position: 'absolute', |
| 37 |
}} |
| 38 |
resizeMode={'cover'} |
| 39 |
/> |
| 40 |
<View |
| Warning |
Row 41, Column 20: "Inline style: { position: 'absolute', width: '100%', alignItems: 'center' }"
react-native/no-inline-styles
|
| 41 |
style={{ |
| 42 |
position: 'absolute', |
| 43 |
width: '100%', |
| 44 |
alignItems: 'center', |
| 45 |
bottom: mvs(5), |
| 46 |
...style, |
| 47 |
}}> |
| 48 |
{props.children} |
| 49 |
</View> |
| 50 |
</FastImage> |
| 51 |
</View> |
| 52 |
</> |
| 53 |
); |
| 54 |
}; |
| 55 |
|
| 56 |
export default ImagePlaceholder; |
| 57 |
|
| Warning |
Row 58, Column 7: "'styles' is assigned a value but never used."
no-unused-vars
|
| 58 |
const styles = StyleSheet.create({}); |
| 59 |
|
|
|
|
/src/components/atoms/RadioButton.js
|
43 problems (34 errors, 9 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·View,·Text,·StyleSheet,·TouchableOpacity·` with `View,·Text,·StyleSheet,·TouchableOpacity`"
prettier/prettier
|
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 6, Column 8: "'Regular' is defined but never used."
no-unused-vars
|
| Error |
Row 7, Column 23: "Replace `status=true,onChange,selectedColor=colors.primary,label,subLabel='',labelStyle,style,children` with `⏎··status·=·true,⏎··onChange,⏎··selectedColor·=·colors.primary,⏎··label,⏎··subLabel·=·'',⏎··labelStyle,⏎··style,⏎··children,⏎`"
prettier/prettier
|
| Warning |
Row 7, Column 29: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 7, Column 57: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 7, Column 87: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 8, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 9, Column 1: "Replace `········prettier/prettier
|
| Error |
Row 10, Column 7: "Replace `······onChange(!status)}·style={[styles.DOT_CONTAINER,` with `·onChange(!status)}⏎········style={[styles.DOT_CONTAINER`"
prettier/prettier
|
| Warning |
Row 10, Column 91: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 11, Column 9: "Replace `········` with `prettier/prettier
|
| Warning |
Row 11, Column 66: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 11, Column 100: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 12, Column 9: "Insert `/>⏎··`"
prettier/prettier
|
| Error |
Row 13, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 14, Column 1: "Replace `············{label}{subLabel}` with `······⏎········{label}⏎········⏎··········{subLabel}⏎········⏎······`"
prettier/prettier
|
| Error |
Row 15, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 16, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 20, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 21, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 22, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 23, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 24, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 25, Column 1: "Replace `········fontFamily:` with `····fontFamily:·`"
prettier/prettier
|
| Error |
Row 26, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 27, Column 1: "Replace `····DOT_CONTAINER:` with `··DOT_CONTAINER:·`"
prettier/prettier
|
| Error |
Row 28, Column 1: "Replace `········borderRadius:` with `····borderRadius:·`"
prettier/prettier
|
| Error |
Row 29, Column 1: "Replace `········height:` with `····height:·`"
prettier/prettier
|
| Error |
Row 30, Column 1: "Replace `········width:` with `····width:·`"
prettier/prettier
|
| Error |
Row 31, Column 1: "Replace `········backgroundColor:` with `····backgroundColor:·`"
prettier/prettier
|
| Error |
Row 32, Column 1: "Replace `········justifyContent:` with `····justifyContent:·`"
prettier/prettier
|
| Error |
Row 33, Column 1: "Replace `········alignItems:` with `····alignItems:·`"
prettier/prettier
|
| Error |
Row 34, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 35, Column 1: "Replace `····DOT:` with `··DOT:·`"
prettier/prettier
|
| Error |
Row 36, Column 1: "Replace `········borderRadius:` with `····borderRadius:·`"
prettier/prettier
|
| Error |
Row 37, Column 1: "Replace `········height:` with `····height:·`"
prettier/prettier
|
| Error |
Row 38, Column 1: "Replace `········width:` with `····width:·`"
prettier/prettier
|
| Error |
Row 39, Column 1: "Replace `········backgroundColor:` with `····backgroundColor:·`"
prettier/prettier
|
| Error |
Row 40, Column 3: "Replace `··}` with `},`"
prettier/prettier
|
| Warning |
Row 40, Column 6: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 41, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 41, Column 4: "Insert `⏎`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·Text,·StyleSheet,·TouchableOpacity·` with `View,·Text,·StyleSheet,·TouchableOpacity`"
prettier/prettier
|
| 2 |
import { View, Text, StyleSheet, TouchableOpacity } from 'react-native'; |
| 3 |
import colors from '../../config/colors'; |
| 4 |
import fonts from '../../config/fonts'; |
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 5 |
import { mvs } from '../../config/metrices'; |
| Warning |
Row 6, Column 8: "'Regular' is defined but never used."
no-unused-vars
|
| 6 |
import Regular from '../../presentation/typography/regular-text'; |
| Error |
Row 7, Column 23: "Replace `status=true,onChange,selectedColor=colors.primary,label,subLabel='',labelStyle,style,children` with `⏎··status·=·true,⏎··onChange,⏎··selectedColor·=·colors.primary,⏎··label,⏎··subLabel·=·'',⏎··labelStyle,⏎··style,⏎··children,⏎`"
prettier/prettier
|
| Warning |
Row 7, Column 29: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 7, Column 57: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 7, Column 87: "Operator '=' must be spaced."
space-infix-ops
|
| 7 |
const CustomRadio = ({status=true,onChange,selectedColor=colors.primary,label,subLabel='',labelStyle,style,children}) => { |
| Error |
Row 8, Column 1: "Delete `··`"
prettier/prettier
|
| 8 |
return ( |
| Error |
Row 9, Column 1: "Replace `········prettier/prettier
|
| 9 |
<View style={[styles.CONTAINER,style]}> |
| Error |
Row 10, Column 7: "Replace `······onChange(!status)}·style={[styles.DOT_CONTAINER,` with `·onChange(!status)}⏎········style={[styles.DOT_CONTAINER`"
prettier/prettier
|
| Warning |
Row 10, Column 91: "Unexpected trailing comma."
comma-dangle
|
| 10 |
<TouchableOpacity onPress={()=>onChange(!status)} style={[styles.DOT_CONTAINER,]}> |
| Error |
Row 11, Column 9: "Replace `········` with `prettier/prettier
|
| Warning |
Row 11, Column 66: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 11, Column 100: "Unexpected trailing comma."
comma-dangle
|
| 11 |
<View style={[styles.DOT,{ backgroundColor:status?selectedColor:colors.price_border,}]}/> |
| Error |
Row 12, Column 9: "Insert `/>⏎··`"
prettier/prettier
|
| 12 |
</TouchableOpacity> |
| Error |
Row 13, Column 7: "Delete `······`"
prettier/prettier
|
| 13 |
{children} |
| Error |
Row 14, Column 1: "Replace `············{label}{subLabel}` with `······⏎········{label}⏎········⏎··········{subLabel}⏎········⏎······`"
prettier/prettier
|
| 14 |
<Text style={[styles.RADIO_LABLE,labelStyle]}>{label}<Text style={{...styles.RADIO_LABLE,fontSize:mvs(12),color:colors.headerTitle}}>{subLabel}</Text></Text> |
| Error |
Row 15, Column 1: "Delete `····`"
prettier/prettier
|
| 15 |
</View> |
| Error |
Row 16, Column 3: "Delete `··`"
prettier/prettier
|
| 16 |
); |
| 17 |
}; |
| 18 |
export default CustomRadio; |
| 19 |
const styles = StyleSheet.create({ |
| Error |
Row 20, Column 3: "Delete `··`"
prettier/prettier
|
| 20 |
CONTAINER: { |
| Error |
Row 21, Column 1: "Delete `····`"
prettier/prettier
|
| 21 |
flexDirection: 'row', |
| Error |
Row 22, Column 3: "Delete `··`"
prettier/prettier
|
| 22 |
}, |
| Error |
Row 23, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 23 |
RADIO_LABLE: { |
| Error |
Row 24, Column 1: "Delete `····`"
prettier/prettier
|
| 24 |
marginLeft: mvs(15), |
| Error |
Row 25, Column 1: "Replace `········fontFamily:` with `····fontFamily:·`"
prettier/prettier
|
| 25 |
fontFamily:fonts.carosSoftRegular, |
| Error |
Row 26, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 26 |
}, |
| Error |
Row 27, Column 1: "Replace `····DOT_CONTAINER:` with `··DOT_CONTAINER:·`"
prettier/prettier
|
| 27 |
DOT_CONTAINER:{ |
| Error |
Row 28, Column 1: "Replace `········borderRadius:` with `····borderRadius:·`"
prettier/prettier
|
| 28 |
borderRadius:mvs(10), |
| Error |
Row 29, Column 1: "Replace `········height:` with `····height:·`"
prettier/prettier
|
| 29 |
height:mvs(20), |
| Error |
Row 30, Column 1: "Replace `········width:` with `····width:·`"
prettier/prettier
|
| 30 |
width:mvs(20), |
| Error |
Row 31, Column 1: "Replace `········backgroundColor:` with `····backgroundColor:·`"
prettier/prettier
|
| 31 |
backgroundColor:colors.secondary, |
| Error |
Row 32, Column 1: "Replace `········justifyContent:` with `····justifyContent:·`"
prettier/prettier
|
| 32 |
justifyContent:'center', |
| Error |
Row 33, Column 1: "Replace `········alignItems:` with `····alignItems:·`"
prettier/prettier
|
| 33 |
alignItems:'center', |
| Error |
Row 34, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 34 |
}, |
| Error |
Row 35, Column 1: "Replace `····DOT:` with `··DOT:·`"
prettier/prettier
|
| 35 |
DOT:{ |
| Error |
Row 36, Column 1: "Replace `········borderRadius:` with `····borderRadius:·`"
prettier/prettier
|
| 36 |
borderRadius:mvs(5), |
| Error |
Row 37, Column 1: "Replace `········height:` with `····height:·`"
prettier/prettier
|
| 37 |
height:mvs(10), |
| Error |
Row 38, Column 1: "Replace `········width:` with `····width:·`"
prettier/prettier
|
| 38 |
width:mvs(10), |
| Error |
Row 39, Column 1: "Replace `········backgroundColor:` with `····backgroundColor:·`"
prettier/prettier
|
| 39 |
backgroundColor:colors.price_border, |
| Error |
Row 40, Column 3: "Replace `··}` with `},`"
prettier/prettier
|
| Warning |
Row 40, Column 6: "Missing trailing comma."
comma-dangle
|
| 40 |
} |
| Warning |
Row 41, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 41, Column 4: "Insert `⏎`"
prettier/prettier
|
| 41 |
}); |
|
|
|
/src/components/atoms/SkeletonView.js
|
21 problems (16 errors, 5 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·View·` with `StyleSheet,·View`"
prettier/prettier
|
| Error |
Row 3, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| Error |
Row 5, Column 24: "Replace `·style,·` with `style`"
prettier/prettier
|
| Warning |
Row 5, Column 30: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 7, Column 10: "Insert `⏎·····`"
prettier/prettier
|
| Error |
Row 8, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 9, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 10, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 11, Column 1: "Replace `······...style` with `········...style,`"
prettier/prettier
|
| Warning |
Row 11, Column 15: "Missing trailing comma."
comma-dangle
|
| Error |
Row 12, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 13, Column 12: "Insert `⏎·······`"
prettier/prettier
|
| Warning |
Row 13, Column 20: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 14, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 15, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 16, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 17, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 18, Column 7: "Replace `}}` with `··}}⏎·····`"
prettier/prettier
|
| Warning |
Row 23, Column 7: "'styles' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 23, Column 35: "Delete `⏎··⏎`"
prettier/prettier
|
| Warning |
Row 24, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·View·` with `StyleSheet,·View`"
prettier/prettier
|
| 2 |
import { StyleSheet, View } from 'react-native'; |
| Error |
Row 3, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| 3 |
import { mvs, width } from '../../config/metrices'; |
| 4 |
import colors from '../../config/colors'; |
| Error |
Row 5, Column 24: "Replace `·style,·` with `style`"
prettier/prettier
|
| Warning |
Row 5, Column 30: "Unexpected trailing comma."
comma-dangle
|
| 5 |
const SkeletonView = ({ style, }) => { |
| 6 |
return ( |
| Error |
Row 7, Column 10: "Insert `⏎·····`"
prettier/prettier
|
| 7 |
<View style={{ |
| Error |
Row 8, Column 7: "Insert `··`"
prettier/prettier
|
| 8 |
height: mvs(240), |
| Error |
Row 9, Column 1: "Insert `··`"
prettier/prettier
|
| 9 |
width: width, |
| Error |
Row 10, Column 7: "Insert `··`"
prettier/prettier
|
| 10 |
paddingHorizontal: mvs(22), |
| Error |
Row 11, Column 1: "Replace `······...style` with `········...style,`"
prettier/prettier
|
| Warning |
Row 11, Column 15: "Missing trailing comma."
comma-dangle
|
| 11 |
...style |
| Error |
Row 12, Column 1: "Insert `··`"
prettier/prettier
|
| 12 |
}}> |
| Error |
Row 13, Column 12: "Insert `⏎·······`"
prettier/prettier
|
| Warning |
Row 13, Column 20: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| 13 |
<View style={{ |
| Error |
Row 14, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 14 |
height: '100%', |
| Error |
Row 15, Column 1: "Insert `··`"
prettier/prettier
|
| 15 |
width: '100%', |
| Error |
Row 16, Column 9: "Insert `··`"
prettier/prettier
|
| 16 |
backgroundColor: colors.secondary, |
| Error |
Row 17, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 17 |
borderRadius: mvs(20), |
| Error |
Row 18, Column 7: "Replace `}}` with `··}}⏎·····`"
prettier/prettier
|
| 18 |
}} /> |
| 19 |
</View> |
| 20 |
); |
| 21 |
}; |
| 22 |
export default SkeletonView; |
| Warning |
Row 23, Column 7: "'styles' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 23, Column 35: "Delete `⏎··⏎`"
prettier/prettier
|
| 23 |
const styles = StyleSheet.create({ |
| Warning |
Row 24, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| 24 |
|
| 25 |
}); |
| 26 |
|
|
|
|
/src/components/atoms/Switch.js
|
9 problems (7 errors, 2 warnings)
|
| Severity |
Rule |
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 7, Column 24: "Replace `style,·size·=·"small",·label,·value·=·true,·onChange,·textStyle,disabled` with `⏎··style,⏎··size·=·'small',⏎··label,⏎··value·=·true,⏎··onChange,⏎··textStyle,⏎··disabled,⏎`"
prettier/prettier
|
| Warning |
Row 7, Column 38: "Strings must use singlequote."
quotes
|
| Error |
Row 9, Column 50: "Replace `{paddingVertical:` with `·{paddingVertical:·`"
prettier/prettier
|
| Error |
Row 17, Column 13: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 18, Column 24: "Replace `backgroundColor:colors.white,borderWidth:StyleSheet.hairlineWidth,borderColor:colors.headerTitle` with `⏎··········backgroundColor:·colors.white,⏎··········borderWidth:·StyleSheet.hairlineWidth,⏎··········borderColor:·colors.headerTitle,⏎········`"
prettier/prettier
|
| Error |
Row 19, Column 25: "Replace `backgroundColor:colors.white,borderWidth:StyleSheet.hairlineWidth,borderColor:colors.headerTitle` with `⏎··········backgroundColor:·colors.white,⏎··········borderWidth:·StyleSheet.hairlineWidth,⏎··········borderColor:·colors.headerTitle,⏎········`"
prettier/prettier
|
| Error |
Row 31, Column 12: "Replace `·:·mvs(1)` with `:·mvs(1),`"
prettier/prettier
|
| Warning |
Row 31, Column 21: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| 1 |
import React from 'react'; |
| 2 |
import {StyleSheet, View} from 'react-native'; |
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 3 |
import { mvs } from '../../config/metrices'; |
| 4 |
import colors from '../../config/colors'; |
| 5 |
import Regular from '../../presentation/typography/regular-text'; |
| 6 |
import ToggleSwitch from 'toggle-switch-react-native'; |
| Error |
Row 7, Column 24: "Replace `style,·size·=·"small",·label,·value·=·true,·onChange,·textStyle,disabled` with `⏎··style,⏎··size·=·'small',⏎··label,⏎··value·=·true,⏎··onChange,⏎··textStyle,⏎··disabled,⏎`"
prettier/prettier
|
| Warning |
Row 7, Column 38: "Strings must use singlequote."
quotes
|
| 7 |
const CustomSwitch = ({style, size = "small", label, value = true, onChange, textStyle,disabled}) => { |
| 8 |
return ( |
| Error |
Row 9, Column 50: "Replace `{paddingVertical:` with `·{paddingVertical:·`"
prettier/prettier
|
| 9 |
<View style={[styles.SWITCH_CONTAINER, style,{paddingVertical:mvs(2)}]}> |
| 10 |
<Regular label={label} style={{...styles.SWITCH_LABEL, ...textStyle}} /> |
| 11 |
<ToggleSwitch |
| 12 |
disabled={disabled} |
| 13 |
isOn={value} |
| 14 |
thumbOnStyle={{backgroundColor: colors.primary}} |
| 15 |
thumbOffStyle={{backgroundColor: colors.toggleOff}} |
| 16 |
offColor={colors.white} |
| Error |
Row 17, Column 13: "Replace `·=·` with `=`"
prettier/prettier
|
| 17 |
size = {size} |
| Error |
Row 18, Column 24: "Replace `backgroundColor:colors.white,borderWidth:StyleSheet.hairlineWidth,borderColor:colors.headerTitle` with `⏎··········backgroundColor:·colors.white,⏎··········borderWidth:·StyleSheet.hairlineWidth,⏎··········borderColor:·colors.headerTitle,⏎········`"
prettier/prettier
|
| 18 |
trackOnStyle={{backgroundColor:colors.white,borderWidth:StyleSheet.hairlineWidth,borderColor:colors.headerTitle}} |
| Error |
Row 19, Column 25: "Replace `backgroundColor:colors.white,borderWidth:StyleSheet.hairlineWidth,borderColor:colors.headerTitle` with `⏎··········backgroundColor:·colors.white,⏎··········borderWidth:·StyleSheet.hairlineWidth,⏎··········borderColor:·colors.headerTitle,⏎········`"
prettier/prettier
|
| 19 |
trackOffStyle={{backgroundColor:colors.white,borderWidth:StyleSheet.hairlineWidth,borderColor:colors.headerTitle}} |
| 20 |
onToggle={onChange} |
| 21 |
/> |
| 22 |
</View> |
| 23 |
); |
| 24 |
}; |
| 25 |
export default CustomSwitch; |
| 26 |
const styles = StyleSheet.create({ |
| 27 |
SWITCH_CONTAINER: { |
| 28 |
marginTop: mvs(21), |
| 29 |
flexDirection: 'row', |
| 30 |
justifyContent: 'space-between', |
| Error |
Row 31, Column 12: "Replace `·:·mvs(1)` with `:·mvs(1),`"
prettier/prettier
|
| Warning |
Row 31, Column 21: "Missing trailing comma."
comma-dangle
|
| 31 |
padding : mvs(1) |
| 32 |
}, |
| 33 |
SWITCH_LABEL: {color: colors.typeHeader}, |
| 34 |
}); |
| 35 |
|
|
|
|
/src/components/atoms/audio-player.js
|
18 problems (9 errors, 9 warnings)
|
| Severity |
Rule |
| Warning |
Row 9, Column 3: "'RepeatMode' is defined but never used."
no-unused-vars
|
| Error |
Row 23, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 24, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 25, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 26, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 27, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 28, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 34, Column 21: "Replace `=>` with `·=>·`"
prettier/prettier
|
| Error |
Row 35, Column 24: "Insert `;`"
prettier/prettier
|
| Warning |
Row 35, Column 24: "Missing semicolon."
semi
|
| Error |
Row 36, Column 5: "Replace `[])⏎⏎··` with `·[]);`"
prettier/prettier
|
| Warning |
Row 36, Column 8: "Missing semicolon."
semi
|
| Warning |
Row 38, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 49, Column 9: "'setupPlayer' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 59, Column 32: "'playbackStack' is already declared in the upper scope."
no-shadow
|
| Warning |
Row 74, Column 16: "Inline style: { flexDirection: 'row', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 83, Column 19: "Strings must use singlequote."
quotes
|
| Warning |
Row 84, Column 19: "Strings must use singlequote."
quotes
|
| Line |
Source |
| 1 |
import React from 'react'; |
| 2 |
import {View, Text, StyleSheet, TouchableOpacity} from 'react-native'; |
| 3 |
import Ionicons from 'react-native-vector-icons/Ionicons'; |
| 4 |
import TrackPlayer, { |
| 5 |
Event, |
| 6 |
useProgress, |
| 7 |
State, |
| 8 |
usePlaybackState, |
| Warning |
Row 9, Column 3: "'RepeatMode' is defined but never used."
no-unused-vars
|
| 9 |
RepeatMode, |
| 10 |
useTrackPlayerEvents, |
| 11 |
} from 'react-native-track-player'; |
| 12 |
import Slider from '@react-native-community/slider'; |
| 13 |
import {mvs} from '../../config/metrices'; |
| 14 |
import colors from '../../config/colors'; |
| 15 |
|
| 16 |
export const MusicPlayer = ({data, msgId, trackId = 0}) => { |
| 17 |
console.log('trackId: ', trackId); |
| 18 |
console.log('data', data); |
| 19 |
const [playUrl, setPlayUrl] = React.useState(''); |
| 20 |
const playbackStack = usePlaybackState(); |
| 21 |
const progress = useProgress(); |
| 22 |
|
| Error |
Row 23, Column 1: "Insert `··`"
prettier/prettier
|
| 23 |
// React.useEffect(() => { |
| Error |
Row 24, Column 1: "Insert `··`"
prettier/prettier
|
| 24 |
// (async () => { |
| Error |
Row 25, Column 1: "Insert `··`"
prettier/prettier
|
| 25 |
// await setupPlayer(); |
| Error |
Row 26, Column 1: "Insert `··`"
prettier/prettier
|
| 26 |
// TrackPlayer.skip(trackId); |
| Error |
Row 27, Column 1: "Insert `··`"
prettier/prettier
|
| 27 |
// })(); |
| Error |
Row 28, Column 1: "Insert `··`"
prettier/prettier
|
| 28 |
// }, [playUrl]); |
| 29 |
|
| 30 |
React.useEffect(() => { |
| 31 |
setPlayUrl(data); |
| 32 |
}, [data]); |
| 33 |
|
| Error |
Row 34, Column 21: "Replace `=>` with `·=>·`"
prettier/prettier
|
| 34 |
React.useEffect(()=>{ |
| Error |
Row 35, Column 24: "Insert `;`"
prettier/prettier
|
| Warning |
Row 35, Column 24: "Missing semicolon."
semi
|
| 35 |
TrackPlayer.reset() |
| Error |
Row 36, Column 5: "Replace `[])⏎⏎··` with `·[]);`"
prettier/prettier
|
| Warning |
Row 36, Column 8: "Missing semicolon."
semi
|
| 36 |
},[]) |
| 37 |
|
| Warning |
Row 38, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| 38 |
|
| 39 |
|
| 40 |
useTrackPlayerEvents([Event.PlaybackTrackChanged], async event => { |
| 41 |
// if (event.type === Event.PlaybackTrackChanged && event.nextTrack != null) { |
| 42 |
// const track = await TrackPlayer.getTrack(event.nextTrack); |
| 43 |
// const {title} = track || {}; |
| 44 |
// setTrackTitle(title); |
| 45 |
// } |
| 46 |
TrackPlayer.seekTo(0); |
| 47 |
TrackPlayer.pause(); |
| 48 |
}); |
| Warning |
Row 49, Column 9: "'setupPlayer' is assigned a value but never used."
no-unused-vars
|
| 49 |
const setupPlayer = async () => { |
| 50 |
const temp = playUrl?.split(/[\s/]+/); |
| 51 |
const audio = temp[temp.length - 1]; |
| 52 |
await TrackPlayer.setupPlayer({}); |
| 53 |
TrackPlayer.add({ |
| 54 |
url: { |
| 55 |
uri: `https://api.taketo.exodevs.com/storage/threads/9572b823-f1d3-424a-8ea2-83d4786e4bc3/audio/${audio}`, |
| 56 |
}, |
| 57 |
}); |
| 58 |
}; |
| Warning |
Row 59, Column 32: "'playbackStack' is already declared in the upper scope."
no-shadow
|
| 59 |
const togglePlayback = async playbackStack => { |
| 60 |
console.log('tid:', trackId); |
| 61 |
const currentTrack = await TrackPlayer.getCurrentTrack(); |
| 62 |
if (currentTrack !== null) { |
| 63 |
if (playbackStack === State.Paused) { |
| 64 |
await TrackPlayer.play(); |
| 65 |
} else { |
| 66 |
await TrackPlayer.pause(); |
| 67 |
} |
| 68 |
} |
| 69 |
}; |
| 70 |
|
| 71 |
return ( |
| 72 |
<View style={styles.container}> |
| 73 |
<View |
| Warning |
Row 74, Column 16: "Inline style: { flexDirection: 'row', alignItems: 'center' }"
react-native/no-inline-styles
|
| 74 |
style={{ |
| 75 |
flexDirection: 'row', |
| 76 |
alignItems: 'center', |
| 77 |
}}> |
| 78 |
<TouchableOpacity onPress={() => togglePlayback(playbackStack)}> |
| 79 |
<Ionicons |
| 80 |
color={colors.primary} |
| 81 |
name={ |
| 82 |
playbackStack === State.Playing |
| Warning |
Row 83, Column 19: "Strings must use singlequote."
quotes
|
| 83 |
? `ios-pause-circle` |
| Warning |
Row 84, Column 19: "Strings must use singlequote."
quotes
|
| 84 |
: `ios-play-circle-sharp` |
| 85 |
} |
| 86 |
size={20} |
| 87 |
/> |
| 88 |
</TouchableOpacity> |
| 89 |
<Slider |
| 90 |
style={{width: mvs(200)}} |
| 91 |
value={progress.position} |
| 92 |
minimumValue={0} |
| 93 |
// buffered={progress.buffered} |
| 94 |
thumbTintColor={colors.primary} |
| 95 |
maximumValue={progress.duration} |
| 96 |
minimumTrackTintColor={colors.primary} |
| 97 |
maximumTrackTintColor="#000000" |
| 98 |
onSlidingComplete={async v => { |
| 99 |
await TrackPlayer.seekTo(v); |
| 100 |
// console.log('progress.duration',progress.duration); |
| 101 |
// console.log('progress.position',progress.position); |
| 102 |
// if(progress.duration<=progress.position){ |
| 103 |
// await TrackPlayer.seekTo(0); |
| 104 |
// } |
| 105 |
// if(new Date((progress.duration - progress.position) * 1000).toISOString().substr(14, 5)==='00:00'){ |
| 106 |
// } |
| 107 |
}} |
| 108 |
// onValueChange={async(v)=>{ |
| 109 |
// if(progress.duration<=progress.position){ |
| 110 |
// await TrackPlayer.seekTo(0); |
| 111 |
// } |
| 112 |
// }} |
| 113 |
/> |
| 114 |
</View> |
| 115 |
<View style={styles.icon_container}> |
| 116 |
<Text> |
| 117 |
{new Date(progress.position * 1000).toISOString().substr(14, 5)} |
| 118 |
</Text> |
| 119 |
<Text> |
| 120 |
{new Date((progress.duration - progress.position) * 1000) |
| 121 |
.toISOString() |
| 122 |
.substr(14, 5)} |
| 123 |
</Text> |
| 124 |
</View> |
| 125 |
</View> |
| 126 |
); |
| 127 |
}; |
| 128 |
const styles = StyleSheet.create({ |
| 129 |
container: { |
| 130 |
flex: 1, |
| 131 |
borderBottomLeftRadius: mvs(10), |
| 132 |
borderTopLeftRadius: mvs(10), |
| 133 |
borderTopEndRadius: mvs(10), |
| 134 |
backgroundColor: colors.white, |
| 135 |
padding: mvs(10), |
| 136 |
marginTop: mvs(15), |
| 137 |
width: mvs(250), |
| 138 |
}, |
| 139 |
icon_container: { |
| 140 |
flexDirection: 'row', |
| 141 |
justifyContent: 'space-between', |
| 142 |
width: mvs(200), |
| 143 |
paddingLeft: mvs(35), |
| 144 |
}, |
| 145 |
}); |
| 146 |
|
|
|
|
/src/components/atoms/index.js
|
5 problems (2 errors, 3 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 24: "Insert `;`"
prettier/prettier
|
| Warning |
Row 1, Column 24: "Missing semicolon."
semi
|
| Warning |
Row 2, Column 25: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 2, Column 25: "Insert `;⏎`"
prettier/prettier
|
| Warning |
Row 2, Column 25: "Missing semicolon."
semi
|
| Line |
Source |
| Error |
Row 1, Column 24: "Insert `;`"
prettier/prettier
|
| Warning |
Row 1, Column 24: "Missing semicolon."
semi
|
| 1 |
export * from './Input' |
| Warning |
Row 2, Column 25: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 2, Column 25: "Insert `;⏎`"
prettier/prettier
|
| Warning |
Row 2, Column 25: "Missing semicolon."
semi
|
| 2 |
export * from './Button' |
|
|
|
/src/components/atoms/order-info-field.js
|
20 problems (19 errors, 1 warning)
|
| Severity |
Rule |
| Error |
Row 4, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 7, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 8, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 9, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 10, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 11, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 12, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 13, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 14, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 15, Column 5: "Replace `··prettier/prettier
|
| Error |
Row 19, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 20, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 21, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 22, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 23, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 24, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 25, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 26, Column 3: "Delete `····`"
prettier/prettier
|
| Error |
Row 27, Column 1: "Replace `··});` with `});⏎`"
prettier/prettier
|
| Warning |
Row 27, Column 6: "Newline required at end of file but not found."
eol-last
|
| Line |
Source |
| 1 |
import React from 'react'; |
| 2 |
import {StyleSheet, View} from 'react-native'; |
| 3 |
import colors from '../../config/colors'; |
| Error |
Row 4, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 4 |
import { mvs } from '../../config/metrices'; |
| 5 |
import Regular from '../../presentation/typography/regular-text'; |
| 6 |
export const InfoField = ({ |
| Error |
Row 7, Column 3: "Delete `··`"
prettier/prettier
|
| 7 |
label = 'label', |
| Error |
Row 8, Column 1: "Delete `··`"
prettier/prettier
|
| 8 |
value = 'value', |
| Error |
Row 9, Column 3: "Delete `··`"
prettier/prettier
|
| 9 |
labelStyle, |
| Error |
Row 10, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 10 |
valueStyle, |
| Error |
Row 11, Column 1: "Delete `··`"
prettier/prettier
|
| 11 |
containerStyle, |
| Error |
Row 12, Column 1: "Delete `··`"
prettier/prettier
|
| 12 |
}) => ( |
| Error |
Row 13, Column 1: "Delete `··`"
prettier/prettier
|
| 13 |
<View style={{...styles.FIELD_CONTAINER, ...containerStyle}}> |
| Error |
Row 14, Column 1: "Delete `··`"
prettier/prettier
|
| 14 |
<Regular label={label} style={{color: colors.label, ...labelStyle}} /> |
| Error |
Row 15, Column 5: "Replace `··prettier/prettier
|
| 15 |
<Regular |
| 16 |
label={value} |
| 17 |
style={{color: colors.headerTitle, ...valueStyle}} |
| 18 |
/> |
| Error |
Row 19, Column 1: "Delete `··`"
prettier/prettier
|
| 19 |
</View> |
| Error |
Row 20, Column 1: "Delete `··`"
prettier/prettier
|
| 20 |
); |
| Error |
Row 21, Column 1: "Delete `··`"
prettier/prettier
|
| 21 |
const styles = StyleSheet.create({ |
| Error |
Row 22, Column 3: "Delete `··`"
prettier/prettier
|
| 22 |
FIELD_CONTAINER: { |
| Error |
Row 23, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 23 |
flexDirection: 'row', |
| Error |
Row 24, Column 1: "Delete `····`"
prettier/prettier
|
| 24 |
justifyContent: 'space-between', |
| Error |
Row 25, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 25 |
marginVertical: mvs(4), |
| Error |
Row 26, Column 3: "Delete `····`"
prettier/prettier
|
| 26 |
}, |
| Error |
Row 27, Column 1: "Replace `··});` with `});⏎`"
prettier/prettier
|
| Warning |
Row 27, Column 6: "Newline required at end of file but not found."
eol-last
|
| 27 |
}); |
|
| Severity |
Rule |
| Warning |
Row 2, Column 15: "'Text' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 5, Column 15: "'height' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 7, Column 7: "'data' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 7, Column 11: "Replace `=[0,1,2,3,` with `·=·[0,·1,·2,·3,·`"
prettier/prettier
|
| Warning |
Row 7, Column 11: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 8, Column 29: "Replace `scrollX,dotStyle,list=[0,1,2,3,4],style` with `⏎··scrollX,⏎··dotStyle,⏎··list·=·[0,·1,·2,·3,·4],⏎··style,⏎`"
prettier/prettier
|
| Warning |
Row 8, Column 50: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 9, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 10, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 11, Column 5: "Delete `··`"
prettier/prettier
|
| Error |
Row 12, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 13, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 14, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 15, Column 1: "Replace `······prettier/prettier
|
| Error |
Row 16, Column 1: "Replace `········` with `······`"
prettier/prettier
|
| Error |
Row 17, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 18, Column 11: "Delete `··`"
prettier/prettier
|
| Error |
Row 19, Column 1: "Replace `············` with `··········`"
prettier/prettier
|
| Warning |
Row 19, Column 13: "Inline style: { position: 'absolute', zIndex: 1001 }"
react-native/no-inline-styles
|
| Error |
Row 20, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 21, Column 13: "Delete `··`"
prettier/prettier
|
| Error |
Row 22, Column 1: "Replace `··············` with `············`"
prettier/prettier
|
| Error |
Row 23, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 24, Column 13: "Delete `··`"
prettier/prettier
|
| Error |
Row 25, Column 1: "Replace `············` with `··········`"
prettier/prettier
|
| Error |
Row 26, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 27, Column 7: "Delete `··`"
prettier/prettier
|
| Error |
Row 28, Column 1: "Replace `········` with `······`"
prettier/prettier
|
| Error |
Row 29, Column 9: "Delete `··`"
prettier/prettier
|
| Error |
Row 30, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 31, Column 1: "Replace `··············prettier/prettier
|
| Error |
Row 32, Column 1: "Replace `············` with `··········`"
prettier/prettier
|
| Error |
Row 33, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 34, Column 7: "Delete `··`"
prettier/prettier
|
| Error |
Row 35, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 36, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 37, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 39, Column 1: "Replace `··const·styles·=·StyleSheet.create({⏎······` with `const·styles·=·StyleSheet.create({`"
prettier/prettier
|
| Warning |
Row 40, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 68, Column 1: "Replace `··});` with `});⏎`"
prettier/prettier
|
| Warning |
Row 68, Column 6: "Newline required at end of file but not found."
eol-last
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Warning |
Row 2, Column 15: "'Text' is defined but never used."
no-unused-vars
|
| 2 |
import {View, Text, StyleSheet, Animated, Dimensions} from 'react-native'; |
| 3 |
import colors from '../../config/colors'; |
| Error |
Row 4, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 4 |
import { mvs } from '../../config/metrices'; |
| Warning |
Row 5, Column 15: "'height' is assigned a value but never used."
no-unused-vars
|
| 5 |
const {width, height} = Dimensions.get('window'); |
| 6 |
const DOT_SIZE = mvs(11); |
| Warning |
Row 7, Column 7: "'data' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 7, Column 11: "Replace `=[0,1,2,3,` with `·=·[0,·1,·2,·3,·`"
prettier/prettier
|
| Warning |
Row 7, Column 11: "Operator '=' must be spaced."
space-infix-ops
|
| 7 |
const data=[0,1,2,3,4]; |
| Error |
Row 8, Column 29: "Replace `scrollX,dotStyle,list=[0,1,2,3,4],style` with `⏎··scrollX,⏎··dotStyle,⏎··list·=·[0,·1,·2,·3,·4],⏎··style,⏎`"
prettier/prettier
|
| Warning |
Row 8, Column 50: "Operator '=' must be spaced."
space-infix-ops
|
| 8 |
export const Pagination = ({scrollX,dotStyle,list=[0,1,2,3,4],style}) => { |
| Error |
Row 9, Column 1: "Delete `··`"
prettier/prettier
|
| 9 |
const inputRange = [-width, 0, width]; |
| Error |
Row 10, Column 1: "Delete `··`"
prettier/prettier
|
| 10 |
const translateX = scrollX.interpolate({ |
| Error |
Row 11, Column 5: "Delete `··`"
prettier/prettier
|
| 11 |
inputRange, |
| Error |
Row 12, Column 1: "Delete `··`"
prettier/prettier
|
| 12 |
outputRange: [-(DOT_SIZE + 10), 0, DOT_SIZE + 10], |
| Error |
Row 13, Column 1: "Delete `··`"
prettier/prettier
|
| 13 |
}); |
| Error |
Row 14, Column 3: "Delete `··`"
prettier/prettier
|
| 14 |
return ( |
| Error |
Row 15, Column 1: "Replace `······prettier/prettier
|
| 15 |
<View style={[styles.pagination,style]}> |
| Error |
Row 16, Column 1: "Replace `········` with `······`"
prettier/prettier
|
| 16 |
<Animated.View |
| Error |
Row 17, Column 1: "Delete `··`"
prettier/prettier
|
| 17 |
style={[ |
| Error |
Row 18, Column 11: "Delete `··`"
prettier/prettier
|
| 18 |
styles.paginationDot, |
| Error |
Row 19, Column 1: "Replace `············` with `··········`"
prettier/prettier
|
| Warning |
Row 19, Column 13: "Inline style: { position: 'absolute', zIndex: 1001 }"
react-native/no-inline-styles
|
| 19 |
{ |
| Error |
Row 20, Column 1: "Delete `··`"
prettier/prettier
|
| 20 |
position: 'absolute', |
| Error |
Row 21, Column 13: "Delete `··`"
prettier/prettier
|
| 21 |
transform: [{translateX}], |
| Error |
Row 22, Column 1: "Replace `··············` with `············`"
prettier/prettier
|
| 22 |
zIndex: 1001, |
| Error |
Row 23, Column 1: "Delete `··`"
prettier/prettier
|
| 23 |
backgroundColor: colors.primary, |
| Error |
Row 24, Column 13: "Delete `··`"
prettier/prettier
|
| 24 |
// right:10, |
| Error |
Row 25, Column 1: "Replace `············` with `··········`"
prettier/prettier
|
| 25 |
}, |
| Error |
Row 26, Column 1: "Delete `··`"
prettier/prettier
|
| 26 |
]} |
| Error |
Row 27, Column 7: "Delete `··`"
prettier/prettier
|
| 27 |
/> |
| Error |
Row 28, Column 1: "Replace `········` with `······`"
prettier/prettier
|
| 28 |
{list?.map((item, index) => { |
| Error |
Row 29, Column 9: "Delete `··`"
prettier/prettier
|
| 29 |
return ( |
| Error |
Row 30, Column 1: "Delete `··`"
prettier/prettier
|
| 30 |
<View key={index} style={styles.paginationDotContainer}> |
| Error |
Row 31, Column 1: "Replace `··············prettier/prettier
|
| 31 |
<View style={[styles.paginationDot,dotStyle]} /> |
| Error |
Row 32, Column 1: "Replace `············` with `··········`"
prettier/prettier
|
| 32 |
</View> |
| Error |
Row 33, Column 1: "Delete `··`"
prettier/prettier
|
| 33 |
); |
| Error |
Row 34, Column 7: "Delete `··`"
prettier/prettier
|
| 34 |
})} |
| Error |
Row 35, Column 1: "Delete `··`"
prettier/prettier
|
| 35 |
</View> |
| Error |
Row 36, Column 1: "Delete `··`"
prettier/prettier
|
| 36 |
); |
| Error |
Row 37, Column 1: "Delete `··`"
prettier/prettier
|
| 37 |
}; |
| 38 |
|
| Error |
Row 39, Column 1: "Replace `··const·styles·=·StyleSheet.create({⏎······` with `const·styles·=·StyleSheet.create({`"
prettier/prettier
|
| 39 |
const styles = StyleSheet.create({ |
| Warning |
Row 40, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| 40 |
|
| 41 |
pagination: { |
| 42 |
position: 'absolute', |
| 43 |
alignSelf: 'center', |
| 44 |
bottom: mvs(13), |
| 45 |
flexDirection: 'row', |
| 46 |
height: DOT_SIZE, |
| 47 |
}, |
| 48 |
paginationDot: { |
| 49 |
width: DOT_SIZE, |
| 50 |
height: DOT_SIZE, |
| 51 |
borderRadius: DOT_SIZE / 2, |
| 52 |
backgroundColor: colors.secondary, |
| 53 |
}, |
| 54 |
paginationDotContainer: { |
| 55 |
marginRight: 10, |
| 56 |
width: DOT_SIZE, |
| 57 |
alignItems: 'center', |
| 58 |
justifyContent: 'center', |
| 59 |
}, |
| 60 |
paginationIndicator: { |
| 61 |
width: DOT_SIZE, |
| 62 |
height: DOT_SIZE, |
| 63 |
borderRadius: DOT_SIZE / 2, |
| 64 |
borderWidth: 2, |
| 65 |
// borderColor: , |
| 66 |
backgroundColor: colors.headerTitle, |
| 67 |
}, |
| Error |
Row 68, Column 1: "Replace `··});` with `});⏎`"
prettier/prettier
|
| Warning |
Row 68, Column 6: "Newline required at end of file but not found."
eol-last
|
| 68 |
}); |
|
|
|
/src/components/atoms/paging-loader.js
|
10 problems (7 errors, 3 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·ActivityIndicator,·StyleSheet,·View·` with `ActivityIndicator,·StyleSheet,·View`"
prettier/prettier
|
| Error |
Row 3, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| Warning |
Row 3, Column 15: "'width' is defined but never used."
no-unused-vars
|
| Error |
Row 5, Column 24: "Replace `·style,·` with `style`"
prettier/prettier
|
| Warning |
Row 5, Column 30: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 7, Column 1: "Replace `······` with `····`"
prettier/prettier
|
| Error |
Row 8, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 9, Column 5: "Delete `··`"
prettier/prettier
|
| Error |
Row 10, Column 3: "Replace `··)` with `);`"
prettier/prettier
|
| Warning |
Row 10, Column 6: "Missing semicolon."
semi
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·ActivityIndicator,·StyleSheet,·View·` with `ActivityIndicator,·StyleSheet,·View`"
prettier/prettier
|
| 2 |
import { ActivityIndicator, StyleSheet, View } from 'react-native'; |
| Error |
Row 3, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| Warning |
Row 3, Column 15: "'width' is defined but never used."
no-unused-vars
|
| 3 |
import { mvs, width } from '../../config/metrices'; |
| 4 |
import colors from '../../config/colors'; |
| Error |
Row 5, Column 24: "Replace `·style,·` with `style`"
prettier/prettier
|
| Warning |
Row 5, Column 30: "Unexpected trailing comma."
comma-dangle
|
| 5 |
const PagingLoader = ({ style, }) => { |
| 6 |
return ( |
| Error |
Row 7, Column 1: "Replace `······` with `····`"
prettier/prettier
|
| 7 |
<View style={styles.pageLoader}> |
| Error |
Row 8, Column 1: "Delete `··`"
prettier/prettier
|
| 8 |
<ActivityIndicator size="small" color={colors.primary} /> |
| Error |
Row 9, Column 5: "Delete `··`"
prettier/prettier
|
| 9 |
</View> |
| Error |
Row 10, Column 3: "Replace `··)` with `);`"
prettier/prettier
|
| Warning |
Row 10, Column 6: "Missing semicolon."
semi
|
| 10 |
) |
| 11 |
}; |
| 12 |
export default PagingLoader; |
| 13 |
const styles = StyleSheet.create({ |
| 14 |
pageLoader: { |
| 15 |
height: mvs(50), |
| 16 |
width: mvs(50), |
| 17 |
borderRadius: mvs(25), |
| 18 |
position: 'absolute', |
| 19 |
bottom: mvs(20), |
| 20 |
alignSelf: 'center', |
| 21 |
justifyContent: 'center', |
| 22 |
alignItems: 'center', |
| 23 |
}, |
| 24 |
}); |
| 25 |
|
|
|
|
/src/components/molecules/alert-box/alert-box.js
|
47 problems (37 errors, 10 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·View,·Text,·StyleSheet,·` with `View,·Text,·StyleSheet`"
prettier/prettier
|
| Warning |
Row 2, Column 16: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 32: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 8, Column 19: "Replace `·title·=·'I·am·Title',·message='I·am·message',·setVisible,·visible·=·false,·children·` with `⏎··title·=·'I·am·Title',⏎··message·=·'I·am·message',⏎··setVisible,⏎··visible·=·false,⏎··children,⏎`"
prettier/prettier
|
| Warning |
Row 8, Column 49: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 9, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 10, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 11, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 12, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 13, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 14, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 15, Column 1: "Replace `············swipeDirection='up'` with `······swipeDirection="up"`"
prettier/prettier
|
| Warning |
Row 15, Column 28: "Unexpected usage of singlequote."
jsx-quotes
|
| Error |
Row 16, Column 1: "Replace `············style={{·margin:·0·` with `······style={{margin:·0`"
prettier/prettier
|
| Warning |
Row 16, Column 20: "Inline style: { margin: 0 }"
react-native/no-inline-styles
|
| Error |
Row 17, Column 1: "Replace `············prettier/prettier
|
| Warning |
Row 17, Column 26: "Inline style: { border: 1 }"
react-native/no-inline-styles
|
| Warning |
Row 17, Column 58: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 18, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 19, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 20, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 21, Column 9: "Replace `········` with `prettier/prettier
|
| Warning |
Row 21, Column 30: "Inline style: {
flexDirection: 'row',
justifyContent: 'space-between',
position: 'absolute',
alignSelf: 'center'
}"
react-native/no-inline-styles
|
| Error |
Row 22, Column 11: "Insert `}}>⏎`"
prettier/prettier
|
| Error |
Row 23, Column 1: "Delete `··········`"
prettier/prettier
|
| Error |
Row 24, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 25, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 26, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 27, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 31, Column 3: "Replace `··container:⏎···` with `container:`"
prettier/prettier
|
| Error |
Row 33, Column 1: "Replace `········alignSelf:·'center',·height:·'40%',·width:·mvs(280),` with `····alignSelf:·'center',⏎····height:·'40%',⏎····width:·mvs(280),⏎···`"
prettier/prettier
|
| Error |
Row 34, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 35, Column 5: "Replace `····backgroundColor:·colors.white` with `backgroundColor:·colors.white,`"
prettier/prettier
|
| Warning |
Row 35, Column 38: "Missing trailing comma."
comma-dangle
|
| Error |
Row 36, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 37, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 38, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 39, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 40, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 41, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 42, Column 1: "Replace `····message:` with `··message:·`"
prettier/prettier
|
| Error |
Row 43, Column 1: "Replace `········marginTop:` with `····marginTop:·`"
prettier/prettier
|
| Error |
Row 44, Column 1: "Replace `········alignSelf:` with `····alignSelf:·`"
prettier/prettier
|
| Error |
Row 45, Column 5: "Replace `····textAlign:` with `textAlign:·`"
prettier/prettier
|
| Error |
Row 46, Column 3: "Replace `··}⏎` with `},`"
prettier/prettier
|
| Warning |
Row 46, Column 6: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·Text,·StyleSheet,·` with `View,·Text,·StyleSheet`"
prettier/prettier
|
| Warning |
Row 2, Column 16: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 32: "Unexpected trailing comma."
comma-dangle
|
| 2 |
import { View, Text, StyleSheet, } from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| 4 |
import colors from '../../../config/colors'; |
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 5 |
import { mvs } from '../../../config/metrices'; |
| 6 |
import Regular from '../../../presentation/typography/regular-text'; |
| 7 |
import Buttons from '../../atoms/Button'; |
| Error |
Row 8, Column 19: "Replace `·title·=·'I·am·Title',·message='I·am·message',·setVisible,·visible·=·false,·children·` with `⏎··title·=·'I·am·Title',⏎··message·=·'I·am·message',⏎··setVisible,⏎··visible·=·false,⏎··children,⏎`"
prettier/prettier
|
| Warning |
Row 8, Column 49: "Operator '=' must be spaced."
space-infix-ops
|
| 8 |
const AlerBox = ({ title = 'I am Title', message='I am message', setVisible, visible = false, children }) => { |
| Error |
Row 9, Column 1: "Delete `··`"
prettier/prettier
|
| 9 |
return ( |
| Error |
Row 10, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 10 |
<ReactNativeModal |
| Error |
Row 11, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 11 |
propagateSwipe |
| Error |
Row 12, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 12 |
isVisible={visible} |
| Error |
Row 13, Column 1: "Delete `······`"
prettier/prettier
|
| 13 |
onBackdropPress={setVisible} |
| Error |
Row 14, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 14 |
onSwipeComplete={setVisible} |
| Error |
Row 15, Column 1: "Replace `············swipeDirection='up'` with `······swipeDirection="up"`"
prettier/prettier
|
| Warning |
Row 15, Column 28: "Unexpected usage of singlequote."
jsx-quotes
|
| 15 |
swipeDirection='up' |
| Error |
Row 16, Column 1: "Replace `············style={{·margin:·0·` with `······style={{margin:·0`"
prettier/prettier
|
| Warning |
Row 16, Column 20: "Inline style: { margin: 0 }"
react-native/no-inline-styles
|
| 16 |
style={{ margin: 0 }}> |
| Error |
Row 17, Column 1: "Replace `············prettier/prettier
|
| Warning |
Row 17, Column 26: "Inline style: { border: 1 }"
react-native/no-inline-styles
|
| Warning |
Row 17, Column 58: "Unexpected trailing comma."
comma-dangle
|
| 17 |
<View style={{ ...styles.container, border: 1, }}> |
| Error |
Row 18, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 18 |
<Regular style={styles.title} label={title} /> |
| Error |
Row 19, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 19 |
<Regular style={styles.message} label={message} /> |
| Error |
Row 20, Column 9: "Delete `········`"
prettier/prettier
|
| 20 |
{children} |
| Error |
Row 21, Column 9: "Replace `········` with `prettier/prettier
|
| Warning |
Row 21, Column 30: "Inline style: {
flexDirection: 'row',
justifyContent: 'space-between',
position: 'absolute',
alignSelf: 'center'
}"
react-native/no-inline-styles
|
| 21 |
<View style={{flexDirection:'row',justifyContent:'space-between',position:'absolute',bottom:mvs(20),alignSelf:'center'}}> |
| Error |
Row 22, Column 11: "Insert `}}>⏎`"
prettier/prettier
|
| 22 |
<Buttons.ButtonPrimary onClick={setVisible} title={'OK'} /> |
| Error |
Row 23, Column 1: "Delete `··········`"
prettier/prettier
|
| 23 |
{/* <Buttons.ButtonSecondaryOutline style={{width:'49%'}} title={'Cancel'} /> */} |
| Error |
Row 24, Column 9: "Delete `········`"
prettier/prettier
|
| 24 |
</View> |
| Error |
Row 25, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 25 |
</View> |
| Error |
Row 26, Column 1: "Delete `····`"
prettier/prettier
|
| 26 |
</ReactNativeModal> |
| Error |
Row 27, Column 3: "Delete `··`"
prettier/prettier
|
| 27 |
); |
| 28 |
}; |
| 29 |
export default AlerBox; |
| 30 |
const styles = StyleSheet.create({ |
| Error |
Row 31, Column 3: "Replace `··container:⏎···` with `container:`"
prettier/prettier
|
| 31 |
container: |
| 32 |
{ |
| Error |
Row 33, Column 1: "Replace `········alignSelf:·'center',·height:·'40%',·width:·mvs(280),` with `····alignSelf:·'center',⏎····height:·'40%',⏎····width:·mvs(280),⏎···`"
prettier/prettier
|
| 33 |
alignSelf: 'center', height: '40%', width: mvs(280), padding: 10, |
| Error |
Row 34, Column 1: "Delete `····`"
prettier/prettier
|
| 34 |
borderRadius: mvs(30), |
| Error |
Row 35, Column 5: "Replace `····backgroundColor:·colors.white` with `backgroundColor:·colors.white,`"
prettier/prettier
|
| Warning |
Row 35, Column 38: "Missing trailing comma."
comma-dangle
|
| 35 |
backgroundColor: colors.white |
| Error |
Row 36, Column 1: "Delete `··`"
prettier/prettier
|
| 36 |
}, |
| Error |
Row 37, Column 1: "Delete `··`"
prettier/prettier
|
| 37 |
title: { |
| Error |
Row 38, Column 5: "Delete `····`"
prettier/prettier
|
| 38 |
color: colors.typeHeader, |
| Error |
Row 39, Column 5: "Delete `····`"
prettier/prettier
|
| 39 |
fontSize: mvs(18), |
| Error |
Row 40, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 40 |
alignSelf: 'center', |
| Error |
Row 41, Column 3: "Delete `··`"
prettier/prettier
|
| 41 |
}, |
| Error |
Row 42, Column 1: "Replace `····message:` with `··message:·`"
prettier/prettier
|
| 42 |
message:{ |
| Error |
Row 43, Column 1: "Replace `········marginTop:` with `····marginTop:·`"
prettier/prettier
|
| 43 |
marginTop:mvs(30), |
| Error |
Row 44, Column 1: "Replace `········alignSelf:` with `····alignSelf:·`"
prettier/prettier
|
| 44 |
alignSelf:'center', |
| Error |
Row 45, Column 5: "Replace `····textAlign:` with `textAlign:·`"
prettier/prettier
|
| 45 |
textAlign:'center', |
| Error |
Row 46, Column 3: "Replace `··}⏎` with `},`"
prettier/prettier
|
| Warning |
Row 46, Column 6: "Missing trailing comma."
comma-dangle
|
| 46 |
} |
| 47 |
|
| 48 |
}); |
| 49 |
|
|
|
|
/src/components/molecules/avatar/index.js
|
0 problems
|
|
|
/src/components/molecules/bank_info/bank-info-card.js
|
38 problems (19 errors, 19 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·Text,·View,·TextInput·` with `StyleSheet,·Text,·View,·TextInput`"
prettier/prettier
|
| Warning |
Row 2, Column 22: "'Text' is defined but never used."
no-unused-vars
|
| Error |
Row 6, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 8, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 8, Column 10: "'TAKE_TO_INPUT_FIELD' is defined but never used."
no-unused-vars
|
| Warning |
Row 10, Column 8: "'CountryPicker' is defined but never used."
no-unused-vars
|
| Warning |
Row 22, Column 9: "'Flag' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 22, Column 23: "["flag"] is better written in dot notation."
dot-notation
|
| Warning |
Row 23, Column 9: "'Check' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 23, Column 24: "["check_blue"] is better written in dot notation."
dot-notation
|
| Warning |
Row 24, Column 23: "["dots"] is better written in dot notation."
dot-notation
|
| Error |
Row 37, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 40, Column 19: "Replace `·label="Country"·style={{·color:·colors.typeHeader,·fontSize:·mvs(15)·}}` with `⏎············label="Country"⏎············style={{color:·colors.typeHeader,·fontSize:·mvs(15)}}⏎·········`"
prettier/prettier
|
| Error |
Row 50, Column 27: "Replace `·onClick={()=>{}}·textStyle={{·color:·colors.primary·}}·title={'Kuwait'}·style={{·width:·'49%',·flexDirection:·'row-reverse',·backgroundColor:·colors.secondary,·height:·mvs(38)·}}·iconName='flag'` with `⏎··········onClick={()·=>·{}}⏎··········textStyle={{color:·colors.primary}}⏎··········title={'Kuwait'}⏎··········style={{⏎············width:·'49%',⏎············flexDirection:·'row-reverse',⏎············backgroundColor:·colors.secondary,⏎············height:·mvs(38),⏎··········}}⏎··········iconName="flag"⏎·······`"
prettier/prettier
|
| Warning |
Row 50, Column 107: "Inline style: { width: '49%', flexDirection: 'row-reverse' }"
react-native/no-inline-styles
|
| Warning |
Row 50, Column 216: "Unexpected usage of singlequote."
jsx-quotes
|
| Error |
Row 53, Column 21: "Replace `·...styles.rowContainer,·marginTop:·mvs(10),·` with `...styles.rowContainer,·marginTop:·mvs(10)`"
prettier/prettier
|
| Warning |
Row 53, Column 64: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 54, Column 17: "Replace `·label="Bank·Name"·style={{·color:·colors.typeHeader,·fontSize:·mvs(15)·}}` with `⏎··········label="Bank·Name"⏎··········style={{color:·colors.typeHeader,·fontSize:·mvs(15)}}⏎·······`"
prettier/prettier
|
| Warning |
Row 57, Column 102: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 59, Column 19: "Replace `⏎··········style={styles.input}⏎··········value="Gulf·Bank"⏎··········editable={false}⏎·······` with `·style={styles.input}·value="Gulf·Bank"·editable={false}`"
prettier/prettier
|
| Error |
Row 66, Column 21: "Replace `·...styles.rowContainer,·marginTop:·mvs(10)·` with `...styles.rowContainer,·marginTop:·mvs(10)`"
prettier/prettier
|
| Error |
Row 68, Column 19: "Replace `·label="Account·Number"·style={{·color:·colors.typeHeader,·fontSize:·mvs(15)·}}` with `⏎············label="Account·Number"⏎············style={{color:·colors.typeHeader,·fontSize:·mvs(15)}}⏎·········`"
prettier/prettier
|
| Error |
Row 82, Column 21: "Replace `·...styles.rowContainer,·marginTop:·mvs(10)·` with `...styles.rowContainer,·marginTop:·mvs(10)`"
prettier/prettier
|
| Error |
Row 83, Column 1: "Replace `··········prettier/prettier
|
| Warning |
Row 85, Column 18: "Inline style: { width: '84%' }"
react-native/no-inline-styles
|
| Error |
Row 85, Column 19: "Replace `·...styles.input,·width:·"84%",·fontSize:·mvs(12)·` with `...styles.input,·width:·'84%',·fontSize:·mvs(12)`"
prettier/prettier
|
| Warning |
Row 85, Column 44: "Strings must use singlequote."
quotes
|
| Error |
Row 105, Column 27: "Insert `,`"
prettier/prettier
|
| Warning |
Row 105, Column 27: "Missing trailing comma."
comma-dangle
|
| Error |
Row 143, Column 11: "Replace `"56%"` with `'56%'`"
prettier/prettier
|
| Warning |
Row 143, Column 11: "Strings must use singlequote."
quotes
|
| Error |
Row 148, Column 24: "Insert `,`"
prettier/prettier
|
| Warning |
Row 148, Column 24: "Missing trailing comma."
comma-dangle
|
| Error |
Row 164, Column 12: "Replace `"49%"` with `'49%'`"
prettier/prettier
|
| Warning |
Row 164, Column 12: "Strings must use singlequote."
quotes
|
| Error |
Row 179, Column 15: "Insert `,`"
prettier/prettier
|
| Warning |
Row 179, Column 15: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·Text,·View,·TextInput·` with `StyleSheet,·Text,·View,·TextInput`"
prettier/prettier
|
| Warning |
Row 2, Column 22: "'Text' is defined but never used."
no-unused-vars
|
| 2 |
import { StyleSheet, Text, View, TextInput } from 'react-native'; |
| 3 |
|
| 4 |
import colors from '../../../config/colors'; |
| 5 |
import fonts from '../../../config/fonts'; |
| Error |
Row 6, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 6 |
import { mvs } from '../../../config/metrices'; |
| 7 |
import Regular from '../../../presentation/typography/regular-text'; |
| Error |
Row 8, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 8, Column 10: "'TAKE_TO_INPUT_FIELD' is defined but never used."
no-unused-vars
|
| 8 |
import { TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| 9 |
import Buttons from '../../atoms/Button'; |
| Warning |
Row 10, Column 8: "'CountryPicker' is defined but never used."
no-unused-vars
|
| 10 |
import CountryPicker from '../country-picker'; |
| 11 |
import * as Images from './../../../../resource/assets/bank-info-icons'; |
| 12 |
|
| 13 |
const BankInfoCard = ({ |
| 14 |
name, |
| 15 |
primary, |
| 16 |
country, |
| 17 |
bankname, |
| 18 |
accountno, |
| 19 |
iban, |
| 20 |
...props |
| 21 |
}) => { |
| Warning |
Row 22, Column 9: "'Flag' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 22, Column 23: "["flag"] is better written in dot notation."
dot-notation
|
| 22 |
const Flag = Images['flag']; |
| Warning |
Row 23, Column 9: "'Check' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 23, Column 24: "["check_blue"] is better written in dot notation."
dot-notation
|
| 23 |
const Check = Images['check_blue']; |
| Warning |
Row 24, Column 23: "["dots"] is better written in dot notation."
dot-notation
|
| 24 |
const Dots = Images['dots']; |
| 25 |
return ( |
| 26 |
<View style={styles.mainContainer}> |
| 27 |
<Regular label="Ralph Wakim" style={styles.name} /> |
| 28 |
{/* <View style={styles.type}> |
| 29 |
<Regular label="Primary" style={{fontSize: mvs(12), color : colors.primary}}/> |
| 30 |
<Check height={mvs(14.93)} width={mvs(18.62)} style={styles.check}/> |
| 31 |
</View> */} |
| 32 |
|
| 33 |
<View style={styles.dots}> |
| 34 |
<Dots /> |
| 35 |
</View> |
| 36 |
|
| Error |
Row 37, Column 1: "Delete `⏎`"
prettier/prettier
|
| 37 |
|
| 38 |
<View style={styles.rowContainer}> |
| 39 |
<View style={styles.title}> |
| Error |
Row 40, Column 19: "Replace `·label="Country"·style={{·color:·colors.typeHeader,·fontSize:·mvs(15)·}}` with `⏎············label="Country"⏎············style={{color:·colors.typeHeader,·fontSize:·mvs(15)}}⏎·········`"
prettier/prettier
|
| 40 |
<Regular label="Country" style={{ color: colors.typeHeader, fontSize: mvs(15) }} /> |
| 41 |
</View> |
| 42 |
{/* <CountryPicker |
| 43 |
style = {{ |
| 44 |
backgroundColor : colors.white, |
| 45 |
height : mvs(30) |
| 46 |
}} |
| 47 |
textStyle = {{fontSize : mvs(12)}} |
| 48 |
flag = {true} |
| 49 |
/> */} |
| Error |
Row 50, Column 27: "Replace `·onClick={()=>{}}·textStyle={{·color:·colors.primary·}}·title={'Kuwait'}·style={{·width:·'49%',·flexDirection:·'row-reverse',·backgroundColor:·colors.secondary,·height:·mvs(38)·}}·iconName='flag'` with `⏎··········onClick={()·=>·{}}⏎··········textStyle={{color:·colors.primary}}⏎··········title={'Kuwait'}⏎··········style={{⏎············width:·'49%',⏎············flexDirection:·'row-reverse',⏎············backgroundColor:·colors.secondary,⏎············height:·mvs(38),⏎··········}}⏎··········iconName="flag"⏎·······`"
prettier/prettier
|
| Warning |
Row 50, Column 107: "Inline style: { width: '49%', flexDirection: 'row-reverse' }"
react-native/no-inline-styles
|
| Warning |
Row 50, Column 216: "Unexpected usage of singlequote."
jsx-quotes
|
| 50 |
<Buttons.ButtonRTL onClick={()=>{}} textStyle={{ color: colors.primary }} title={'Kuwait'} style={{ width: '49%', flexDirection: 'row-reverse', backgroundColor: colors.secondary, height: mvs(38) }} iconName='flag' /> |
| 51 |
</View> |
| 52 |
|
| Error |
Row 53, Column 21: "Replace `·...styles.rowContainer,·marginTop:·mvs(10),·` with `...styles.rowContainer,·marginTop:·mvs(10)`"
prettier/prettier
|
| Warning |
Row 53, Column 64: "Unexpected trailing comma."
comma-dangle
|
| 53 |
<View style={{ ...styles.rowContainer, marginTop: mvs(10), }}> |
| Error |
Row 54, Column 17: "Replace `·label="Bank·Name"·style={{·color:·colors.typeHeader,·fontSize:·mvs(15)·}}` with `⏎··········label="Bank·Name"⏎··········style={{color:·colors.typeHeader,·fontSize:·mvs(15)}}⏎·······`"
prettier/prettier
|
| 54 |
<Regular label="Bank Name" style={{ color: colors.typeHeader, fontSize: mvs(15) }} /> |
| 55 |
{/* <TAKE_TO_INPUT_FIELD.InputSecondary value='Gulf Bank' labelStyle={{marginBottom:0}} containerStyle={{width:'49%',marginTop:0,marginBottom:0,}} style={{width:'100%',backgroundColor:colors.secondary,}}/> */} |
| 56 |
{/* <View style = {styles.title}> |
| Warning |
Row 57, Column 102: "Trailing spaces not allowed."
no-trailing-spaces
|
| 57 |
<Regular label = "Bank Name" style = {{color : colors.typeHeader, fontSize: mvs(15)}}/> |
| 58 |
</View>*/} |
| Error |
Row 59, Column 19: "Replace `⏎··········style={styles.input}⏎··········value="Gulf·Bank"⏎··········editable={false}⏎·······` with `·style={styles.input}·value="Gulf·Bank"·editable={false}`"
prettier/prettier
|
| 59 |
<TextInput |
| 60 |
style={styles.input} |
| 61 |
value="Gulf Bank" |
| 62 |
editable={false} |
| 63 |
/> |
| 64 |
</View> |
| 65 |
|
| Error |
Row 66, Column 21: "Replace `·...styles.rowContainer,·marginTop:·mvs(10)·` with `...styles.rowContainer,·marginTop:·mvs(10)`"
prettier/prettier
|
| 66 |
<View style={{ ...styles.rowContainer, marginTop: mvs(10) }}> |
| 67 |
<View style={styles.title}> |
| Error |
Row 68, Column 19: "Replace `·label="Account·Number"·style={{·color:·colors.typeHeader,·fontSize:·mvs(15)·}}` with `⏎············label="Account·Number"⏎············style={{color:·colors.typeHeader,·fontSize:·mvs(15)}}⏎·········`"
prettier/prettier
|
| 68 |
<Regular label="Account Number" style={{ color: colors.typeHeader, fontSize: mvs(15) }} /> |
| 69 |
</View> |
| 70 |
<TextInput |
| 71 |
style={styles.input} |
| 72 |
value="1932 345* ****" |
| 73 |
editable={false} |
| 74 |
/> |
| 75 |
</View> |
| 76 |
|
| 77 |
{/* <View style={{ ...styles.rowContainer, marginTop: mvs(10) }}> |
| 78 |
<View style={styles.title}> |
| 79 |
</View> |
| 80 |
</View> */} |
| 81 |
|
| Error |
Row 82, Column 21: "Replace `·...styles.rowContainer,·marginTop:·mvs(10)·` with `...styles.rowContainer,·marginTop:·mvs(10)`"
prettier/prettier
|
| 82 |
<View style={{ ...styles.rowContainer, marginTop: mvs(10) }}> |
| Error |
Row 83, Column 1: "Replace `··········prettier/prettier
|
| 83 |
<Regular label="IBAN" style={{ color: colors.typeHeader, fontSize: mvs(15) }} /> |
| 84 |
<TextInput |
| Warning |
Row 85, Column 18: "Inline style: { width: '84%' }"
react-native/no-inline-styles
|
| Error |
Row 85, Column 19: "Replace `·...styles.input,·width:·"84%",·fontSize:·mvs(12)·` with `...styles.input,·width:·'84%',·fontSize:·mvs(12)`"
prettier/prettier
|
| Warning |
Row 85, Column 44: "Strings must use singlequote."
quotes
|
| 85 |
style={{ ...styles.input, width: "84%", fontSize: mvs(12) }} |
| 86 |
value="KWLB0000001932345*******" |
| 87 |
editable={false} |
| 88 |
/> |
| 89 |
</View> |
| 90 |
</View> |
| 91 |
); |
| 92 |
}; |
| 93 |
|
| 94 |
export default BankInfoCard; |
| 95 |
|
| 96 |
const styles = StyleSheet.create({ |
| 97 |
mainContainer: { |
| 98 |
//height: mvs(230), |
| 99 |
width: '100%', |
| 100 |
borderWidth: StyleSheet.hairlineWidth, |
| 101 |
backgroundColor: colors.white, |
| 102 |
borderRadius: mvs(10), |
| 103 |
paddingHorizontal: mvs(10), |
| 104 |
paddingTop: mvs(45), |
| Error |
Row 105, Column 27: "Insert `,`"
prettier/prettier
|
| Warning |
Row 105, Column 27: "Missing trailing comma."
comma-dangle
|
| 105 |
paddingBottom: mvs(20) |
| 106 |
}, |
| 107 |
countryInputMainContainer: { |
| 108 |
height: mvs(30), |
| 109 |
width: '100%', |
| 110 |
//borderWidth : 1, |
| 111 |
marginTop: mvs(3), |
| 112 |
borderRadius: mvs(10), |
| 113 |
backgroundColor: colors.white, |
| 114 |
paddingHorizontal: mvs(10), |
| 115 |
justifyContent: 'center', |
| 116 |
}, |
| 117 |
label: { |
| 118 |
fontSize: mvs(12), |
| 119 |
color: colors.pathline, |
| 120 |
//marginTop : mvs(8) |
| 121 |
}, |
| 122 |
value: { |
| 123 |
fontSize: mvs(12), |
| 124 |
color: colors.headerTitle, |
| 125 |
position: 'absolute', |
| 126 |
left: mvs(150), |
| 127 |
//marginTop : mvs(8) |
| 128 |
}, |
| 129 |
flag: { |
| 130 |
position: 'absolute', |
| 131 |
right: mvs(10), |
| 132 |
}, |
| 133 |
name: { |
| 134 |
fontSize: mvs(15), |
| 135 |
color: colors.primary, |
| 136 |
position: 'absolute', |
| 137 |
left: mvs(10), |
| 138 |
top: mvs(22), |
| 139 |
}, |
| 140 |
type: { |
| 141 |
flexDirection: 'row', |
| 142 |
position: 'absolute', |
| Error |
Row 143, Column 11: "Replace `"56%"` with `'56%'`"
prettier/prettier
|
| Warning |
Row 143, Column 11: "Strings must use singlequote."
quotes
|
| 143 |
left: "56%", |
| 144 |
top: mvs(25), |
| 145 |
//borderWidth :1 |
| 146 |
}, |
| 147 |
check: { |
| Error |
Row 148, Column 24: "Insert `,`"
prettier/prettier
|
| Warning |
Row 148, Column 24: "Missing trailing comma."
comma-dangle
|
| 148 |
marginLeft: mvs(10) |
| 149 |
}, |
| 150 |
dots: { |
| 151 |
position: 'absolute', |
| 152 |
right: mvs(20), |
| 153 |
top: mvs(20), |
| 154 |
}, |
| 155 |
rowContainer: { |
| 156 |
flexDirection: 'row', |
| 157 |
alignItems: 'center', |
| 158 |
width: '100%', |
| 159 |
justifyContent: 'space-between', |
| 160 |
marginTop: mvs(11), |
| 161 |
}, |
| 162 |
title: { |
| 163 |
height: mvs(38), |
| Error |
Row 164, Column 12: "Replace `"49%"` with `'49%'`"
prettier/prettier
|
| Warning |
Row 164, Column 12: "Strings must use singlequote."
quotes
|
| 164 |
width: "49%", |
| 165 |
borderRadius: mvs(10), |
| 166 |
justifyContent: 'center', |
| 167 |
}, |
| 168 |
input: { |
| 169 |
//borderWidth:1, |
| 170 |
width: '49%', |
| 171 |
height: mvs(38), |
| 172 |
backgroundColor: colors.secondary, |
| 173 |
borderRadius: mvs(10), |
| 174 |
paddingHorizontal: mvs(10), |
| 175 |
color: colors.primary, |
| 176 |
fontSize: mvs(15), |
| 177 |
fontFamily: fonts.carosSoftRegular, |
| 178 |
justifyContent: 'center', |
| Error |
Row 179, Column 15: "Insert `,`"
prettier/prettier
|
| Warning |
Row 179, Column 15: "Missing trailing comma."
comma-dangle
|
| 179 |
padding: 0 |
| 180 |
}, |
| 181 |
}); |
| 182 |
|
|
|
|
/src/components/molecules/calendar/calendar.js
|
136 problems (108 errors, 28 warnings)
|
| Severity |
Rule |
| Error |
Row 4, Column 9: "Replace `·View,·Text,·StyleSheet,·TouchableOpacity,·ScrollView·` with `⏎··View,⏎··Text,⏎··StyleSheet,⏎··TouchableOpacity,⏎··ScrollView,⏎`"
prettier/prettier
|
| Warning |
Row 4, Column 16: "'Text' is defined but never used."
no-unused-vars
|
| Error |
Row 7, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 15, Column 21: "Replace `'Jan',·'Feb',·'Mar',·'Apr',·'May',·'Jun',·'Jul',·'Aug',·'Sep',·'Oct',·'Nov',·'Dec'` with `⏎··'Jan',⏎··'Feb',⏎··'Mar',⏎··'Apr',⏎··'May',⏎··'Jun',⏎··'Jul',⏎··'Aug',⏎··'Sep',⏎··'Oct',⏎··'Nov',⏎··'Dec',⏎`"
prettier/prettier
|
| Error |
Row 16, Column 20: "Replace `unselectedYearColor=colors.white,·unselectedMonthColor=colors.white,dayMonthYear,·setDayMonthYear,·style,monthStyle,yearStyle,dayStyle,dayContainerStyle,·` with `⏎··unselectedYearColor·=·colors.white,⏎··unselectedMonthColor·=·colors.white,⏎··dayMonthYear,⏎··setDayMonthYear,⏎··style,⏎··monthStyle,⏎··yearStyle,⏎··dayStyle,⏎··dayContainerStyle,⏎`"
prettier/prettier
|
| Warning |
Row 16, Column 39: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 16, Column 74: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 16, Column 172: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 17, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 18, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 19, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 20, Column 1: "Replace `····const·itemWidth·=·mvs(·` with `··const·itemWidth·=·mvs(`"
prettier/prettier
|
| Error |
Row 22, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 22, Column 41: "'month' is already declared in the upper scope."
no-shadow
|
| Error |
Row 23, Column 1: "Replace `········const·fullMonths·=·TAKE_TO_CONSTANT.getMonth(parseInt(year),·parseInt(month));` with `····const·fullMonths·=·TAKE_TO_CONSTANT.getMonth(⏎······parseInt(year),⏎······parseInt(month),`"
prettier/prettier
|
| Warning |
Row 23, Column 54: "Missing radix parameter."
radix
|
| Warning |
Row 23, Column 70: "Missing radix parameter."
radix
|
| Error |
Row 24, Column 5: "Insert `);⏎`"
prettier/prettier
|
| Error |
Row 25, Column 3: "Replace `··}` with `};`"
prettier/prettier
|
| Warning |
Row 25, Column 6: "Missing semicolon."
semi
|
| Error |
Row 26, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 27, Column 5: "Replace `····scrollToIndex()` with `scrollToIndex();`"
prettier/prettier
|
| Warning |
Row 27, Column 24: "Missing semicolon."
semi
|
| Error |
Row 28, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 29, Column 5: "Replace `····getFullMonthCalendar(date.getFullYear(),·date.getMonth()+` with `getFullMonthCalendar(date.getFullYear(),·date.getMonth()·+·`"
prettier/prettier
|
| Warning |
Row 29, Column 65: "Operator '+' must be spaced."
space-infix-ops
|
| Error |
Row 30, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 30, Column 8: "React Hook React.useEffect has a missing dependency: 'scrollToIndex'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 31, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 32, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 33, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 34, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 35, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 36, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 37, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 38, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 39, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 40, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 41, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 42, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 43, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 44, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 45, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 46, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 47, Column 7: "Replace `······` with `prettier/prettier
|
| Warning |
Row 47, Column 51: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 48, Column 7: "Replace `······` with `/>⏎······prettier/prettier
|
| Warning |
Row 48, Column 27: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Warning |
Row 48, Column 53: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 49, Column 9: "Insert `]}>⏎`"
prettier/prettier
|
| Error |
Row 50, Column 11: "Delete `··········`"
prettier/prettier
|
| Error |
Row 51, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 52, Column 1: "Replace `························setDayMonthYear({·...dayMonthYear,·year:·currentYear,·day:·currentDate,·month:·currentMonth·});` with `············setDayMonthYear({⏎··············...dayMonthYear,⏎··············year:·currentYear,⏎··············day:·currentDate,⏎··············month:·currentMonth,`"
prettier/prettier
|
| Error |
Row 53, Column 13: "Replace `········}}` with `});`"
prettier/prettier
|
| Error |
Row 54, Column 11: "Insert `}}⏎`"
prettier/prettier
|
| Error |
Row 55, Column 11: "Replace `··········textStyle={{·color:·dayMonthYear.year·==·currentYear·?·colors.white·:·colors.typeHeader,·fontSize:·mvs(15),·fontFamily:·fonts.carosSoftMedium·}}` with `textStyle={{⏎············color:⏎··············dayMonthYear.year·==·currentYear⏎················?·colors.white⏎················:·colors.typeHeader,⏎············fontSize:·mvs(15),⏎············fontFamily:·fonts.carosSoftMedium,`"
prettier/prettier
|
| Warning |
Row 55, Column 59: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 56, Column 11: "Replace `··········style={{·width:·mvs(100),·height:··mvs(38),·backgroundColor:·dayMonthYear.year·===·currentYear·?·colors.primary·:·unselectedYearColor,·}}` with `}}⏎··········style={{⏎············width:·mvs(100),⏎············height:·mvs(38),⏎············backgroundColor:⏎··············dayMonthYear.year·===·currentYear⏎················?·colors.primary⏎················:·unselectedYearColor,`"
prettier/prettier
|
| Warning |
Row 56, Column 154: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 57, Column 10: "Replace `·······` with `·}}⏎········`"
prettier/prettier
|
| Error |
Row 58, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 59, Column 11: "Delete `··········`"
prettier/prettier
|
| Error |
Row 60, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 61, Column 1: "Replace `························setDayMonthYear({·...dayMonthYear,·year:·nextYear·` with `············setDayMonthYear({...dayMonthYear,·year:·nextYear`"
prettier/prettier
|
| Error |
Row 62, Column 1: "Replace `····················}⏎····················` with `··········}`"
prettier/prettier
|
| Error |
Row 64, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 65, Column 11: "Replace `··········textStyle={{·color:·dayMonthYear.year·==·nextYear·?·colors.white·:·colors.typeHeader,·fontSize:·mvs(15),·fontFamily:·fonts.carosSoftMedium·}}` with `textStyle={{⏎············color:⏎··············dayMonthYear.year·==·nextYear·?·colors.white·:·colors.typeHeader,⏎············fontSize:·mvs(15),⏎············fontFamily:·fonts.carosSoftMedium,`"
prettier/prettier
|
| Warning |
Row 65, Column 59: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 66, Column 11: "Replace `··········style={{·width:·mvs(100),·height:··mvs(38),·backgroundColor:·dayMonthYear.year·===·nextYear·?·colors.primary·:·unselectedYearColor,·marginLeft:·mvs(20),...yearStyle·}}⏎········` with `}}⏎··········style={{⏎············width:·mvs(100),⏎············height:·mvs(38),⏎············backgroundColor:⏎··············dayMonthYear.year·===·nextYear⏎················?·colors.primary⏎················:·unselectedYearColor,⏎············marginLeft:·mvs(20),⏎············...yearStyle,⏎··········}}⏎`"
prettier/prettier
|
| Error |
Row 68, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 69, Column 1: "Replace `············prettier/prettier
|
| Warning |
Row 69, Column 49: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 70, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 71, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 72, Column 1: "Delete `··········`"
prettier/prettier
|
| Error |
Row 73, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 74, Column 1: "Replace `····················contentContainerStyle={{·paddingRight:·mvs(10)·` with `··········contentContainerStyle={{paddingRight:·mvs(10)`"
prettier/prettier
|
| Error |
Row 75, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 75, Column 21: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Error |
Row 76, Column 1: "Delete `··········`"
prettier/prettier
|
| Error |
Row 77, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 78, Column 15: "Replace `··············disabled={index·<·currentMonth·&&·dayMonthYear.year·===·currentYear}` with `disabled={⏎················index·<·currentMonth·&&·dayMonthYear.year·===·currentYear`"
prettier/prettier
|
| Error |
Row 79, Column 15: "Insert `}⏎`"
prettier/prettier
|
| Error |
Row 80, Column 17: "Delete `················`"
prettier/prettier
|
| Error |
Row 81, Column 1: "Replace `································setDayMonthYear({·...dayMonthYear,·month:·index·` with `················setDayMonthYear({...dayMonthYear,·month:·index`"
prettier/prettier
|
| Error |
Row 82, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 83, Column 1: "Delete `··············`"
prettier/prettier
|
| Error |
Row 84, Column 15: "Replace `··············textStyle={{·color:·dayMonthYear.month·===·index·?·colors.white·:·colors.typeHeader,·fontSize:·mvs(15),·fontFamily:·fonts.carosSoftMedium·}}` with `textStyle={{⏎················color:⏎··················dayMonthYear.month·===·index⏎····················?·colors.white⏎····················:·colors.typeHeader,⏎················fontSize:·mvs(15),⏎················fontFamily:·fonts.carosSoftMedium,`"
prettier/prettier
|
| Error |
Row 85, Column 15: "Replace `··············style={{·width:·mvs(46),·height:·mvs(65),·backgroundColor:·dayMonthYear.month·===·index·?·colors.primary·:·unselectedMonthColor,·marginLeft:·mvs(10),...monthStyle·}}` with `}}⏎··············style={{⏎················width:·mvs(46),⏎················height:·mvs(65),⏎················backgroundColor:⏎··················dayMonthYear.month·===·index⏎····················?·colors.primary⏎····················:·unselectedMonthColor,⏎················marginLeft:·mvs(10),⏎················...monthStyle,`"
prettier/prettier
|
| Error |
Row 86, Column 15: "Replace `··········` with `}}⏎············`"
prettier/prettier
|
| Error |
Row 87, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 88, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 89, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 90, Column 7: "Replace `······` with `prettier/prettier
|
| Warning |
Row 90, Column 174: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 91, Column 9: "Insert `}}>⏎`"
prettier/prettier
|
| Error |
Row 92, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 93, Column 1: "Delete `··········`"
prettier/prettier
|
| Error |
Row 94, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 95, Column 1: "Replace `····················contentContainerStyle={{·paddingRight:·mvs(10)·}}⏎⏎················` with `··········contentContainerStyle={{paddingRight:·mvs(10)}}`"
prettier/prettier
|
| Error |
Row 98, Column 11: "Delete `··········`"
prettier/prettier
|
| Error |
Row 99, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 100, Column 1: "Delete `··············`"
prettier/prettier
|
| Error |
Row 101, Column 15: "Replace `··············disabled={moment(day).format('DD')·<·currentDate·&&·currentMonth·===·dayMonthYear.month·&&·currentYear·===·dayMonthYear.year}` with `disabled={⏎················moment(day).format('DD')·<·currentDate·&&⏎················currentMonth·===·dayMonthYear.month·&&⏎················currentYear·===·dayMonthYear.year`"
prettier/prettier
|
| Error |
Row 102, Column 15: "Replace `··············onPress={()·=>·{·setDayMonthYear({·...dayMonthYear,·day:·moment(day).format('DD')·})·}}` with `}⏎··············onPress={()·=>·{⏎················setDayMonthYear({⏎··················...dayMonthYear,⏎··················day:·moment(day).format('DD'),`"
prettier/prettier
|
| Warning |
Row 102, Column 113: "Missing semicolon."
semi
|
| Error |
Row 103, Column 17: "Replace `············style={{` with `});⏎··············}}`"
prettier/prettier
|
| Warning |
Row 103, Column 36: "Inline style: {
borderWidth: "dayMonthYear.day == moment(day).format('DD')?0:StyleSheet.hairlineWidth",
alignItems: 'center',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| Error |
Row 104, Column 15: "Replace `··················borderWidth:dayMonthYear.day·==·moment(day).format('DD')?0:StyleSheet.hairlineWidth,borderColor:colors.doted,width:·itemWidth,·alignItems:·'center',·justifyContent:·'space-between',·height:·mvs(·90),` with `style={{⏎················borderWidth:⏎··················dayMonthYear.day·==·moment(day).format('DD')⏎····················?·0⏎····················:·StyleSheet.hairlineWidth,⏎················borderColor:·colors.doted,⏎················width:·itemWidth,⏎················alignItems:·'center',⏎················justifyContent:·'space-between',⏎················height:·mvs(90),⏎···············`"
prettier/prettier
|
| Warning |
Row 104, Column 62: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 104, Column 89: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 105, Column 17: "Replace `················backgroundColor:·dayMonthYear.day·==·moment(day).format('DD')·?·colors.primary·:·colors.white,·marginRight:·mvs(10),` with `backgroundColor:⏎··················dayMonthYear.day·==·moment(day).format('DD')⏎····················?·colors.primary⏎····················:·colors.white,⏎················marginRight:·mvs(10),⏎···············`"
prettier/prettier
|
| Warning |
Row 105, Column 67: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 106, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 107, Column 1: "Replace `····························}}` with `··············}}>`"
prettier/prettier
|
| Error |
Row 108, Column 15: "Replace `··········>` with `prettier/prettier
|
| Error |
Row 109, Column 17: "Delete `············prettier/prettier
|
| Error |
Row 110, Column 17: "Replace `················style={{·color:·dayMonthYear.day·==·moment(day).format('DD')·?·colors.white·:·colors.typeHeader,·fontSize:·mvs(·15),·textAlign:·'center'·}}⏎····························` with `style={{⏎··················color:⏎····················dayMonthYear.day·==·moment(day).format('DD')⏎······················?·colors.white⏎······················:·colors.typeHeader,⏎··················fontSize:·mvs(15),⏎··················textAlign:·'center',⏎················}}⏎··············`"
prettier/prettier
|
| Warning |
Row 110, Column 40: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 110, Column 66: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 112, Column 1: "Replace `····························prettier/prettier
|
| Error |
Row 113, Column 17: "Replace `················style={{·color:·dayMonthYear.day·==·moment(day).format('DD')·?·colors.white·:·colors.label,·fontSize:·mvs(15),·textAlign:·'center'·}}⏎···············` with `style={{⏎··················color:⏎····················dayMonthYear.day·==·moment(day).format('DD')⏎······················?·colors.white⏎······················:·colors.label,⏎··················fontSize:·mvs(15),⏎··················textAlign:·'center',⏎················}}⏎·`"
prettier/prettier
|
| Warning |
Row 113, Column 40: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 113, Column 66: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 115, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 116, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 117, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 118, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 119, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 120, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 124, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 125, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 126, Column 1: "Replace `········marginBottom:` with `····marginBottom:·`"
prettier/prettier
|
| Error |
Row 127, Column 3: "Delete `··`"
prettier/prettier
|
| Warning |
Row 128, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 128, Column 4: "Insert `⏎`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 2 |
import moment from 'moment'; |
| 3 |
import React from 'react'; |
| Error |
Row 4, Column 9: "Replace `·View,·Text,·StyleSheet,·TouchableOpacity,·ScrollView·` with `⏎··View,⏎··Text,⏎··StyleSheet,⏎··TouchableOpacity,⏎··ScrollView,⏎`"
prettier/prettier
|
| Warning |
Row 4, Column 16: "'Text' is defined but never used."
no-unused-vars
|
| 4 |
import { View, Text, StyleSheet, TouchableOpacity, ScrollView } from 'react-native'; |
| 5 |
import colors from '../../../config/colors'; |
| 6 |
import fonts from '../../../config/fonts'; |
| Error |
Row 7, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 7 |
import { mvs } from '../../../config/metrices'; |
| 8 |
import Medium from '../../../presentation/typography/medium-text'; |
| 9 |
import Regular from '../../../presentation/typography/regular-text'; |
| 10 |
import Buttons from '../../atoms/Button'; |
| 11 |
const currentYear = new Date().getFullYear(); |
| 12 |
const currentMonth = new Date().getMonth(); |
| 13 |
const currentDate = new Date().getDate(); |
| 14 |
const nextYear = moment().add(1, 'years').format('YYYY'); |
| Error |
Row 15, Column 21: "Replace `'Jan',·'Feb',·'Mar',·'Apr',·'May',·'Jun',·'Jul',·'Aug',·'Sep',·'Oct',·'Nov',·'Dec'` with `⏎··'Jan',⏎··'Feb',⏎··'Mar',⏎··'Apr',⏎··'May',⏎··'Jun',⏎··'Jul',⏎··'Aug',⏎··'Sep',⏎··'Oct',⏎··'Nov',⏎··'Dec',⏎`"
prettier/prettier
|
| 15 |
const monthNames = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; |
| Error |
Row 16, Column 20: "Replace `unselectedYearColor=colors.white,·unselectedMonthColor=colors.white,dayMonthYear,·setDayMonthYear,·style,monthStyle,yearStyle,dayStyle,dayContainerStyle,·` with `⏎··unselectedYearColor·=·colors.white,⏎··unselectedMonthColor·=·colors.white,⏎··dayMonthYear,⏎··setDayMonthYear,⏎··style,⏎··monthStyle,⏎··yearStyle,⏎··dayStyle,⏎··dayContainerStyle,⏎`"
prettier/prettier
|
| Warning |
Row 16, Column 39: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 16, Column 74: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 16, Column 172: "Unexpected trailing comma."
comma-dangle
|
| 16 |
const Calendar = ({unselectedYearColor=colors.white, unselectedMonthColor=colors.white,dayMonthYear, setDayMonthYear, style,monthStyle,yearStyle,dayStyle,dayContainerStyle, }) => { |
| Error |
Row 17, Column 1: "Delete `··`"
prettier/prettier
|
| 17 |
const scrollViewRef = React.useRef(null); |
| Error |
Row 18, Column 3: "Delete `··`"
prettier/prettier
|
| 18 |
const scrollViewRef2 = React.useRef(null); |
| Error |
Row 19, Column 1: "Delete `··`"
prettier/prettier
|
| 19 |
const [month, setMonth] = React.useState([]); |
| Error |
Row 20, Column 1: "Replace `····const·itemWidth·=·mvs(·` with `··const·itemWidth·=·mvs(`"
prettier/prettier
|
| 20 |
const itemWidth = mvs( 46); |
| 21 |
|
| Error |
Row 22, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 22, Column 41: "'month' is already declared in the upper scope."
no-shadow
|
| 22 |
const getFullMonthCalendar = (year, month) => { |
| Error |
Row 23, Column 1: "Replace `········const·fullMonths·=·TAKE_TO_CONSTANT.getMonth(parseInt(year),·parseInt(month));` with `····const·fullMonths·=·TAKE_TO_CONSTANT.getMonth(⏎······parseInt(year),⏎······parseInt(month),`"
prettier/prettier
|
| Warning |
Row 23, Column 54: "Missing radix parameter."
radix
|
| Warning |
Row 23, Column 70: "Missing radix parameter."
radix
|
| 23 |
const fullMonths = TAKE_TO_CONSTANT.getMonth(parseInt(year), parseInt(month)); |
| Error |
Row 24, Column 5: "Insert `);⏎`"
prettier/prettier
|
| 24 |
setMonth(fullMonths); |
| Error |
Row 25, Column 3: "Replace `··}` with `};`"
prettier/prettier
|
| Warning |
Row 25, Column 6: "Missing semicolon."
semi
|
| 25 |
} |
| Error |
Row 26, Column 1: "Delete `··`"
prettier/prettier
|
| 26 |
React.useEffect(() => { |
| Error |
Row 27, Column 5: "Replace `····scrollToIndex()` with `scrollToIndex();`"
prettier/prettier
|
| Warning |
Row 27, Column 24: "Missing semicolon."
semi
|
| 27 |
scrollToIndex() |
| Error |
Row 28, Column 1: "Delete `····`"
prettier/prettier
|
| 28 |
const date = new Date(); |
| Error |
Row 29, Column 5: "Replace `····getFullMonthCalendar(date.getFullYear(),·date.getMonth()+` with `getFullMonthCalendar(date.getFullYear(),·date.getMonth()·+·`"
prettier/prettier
|
| Warning |
Row 29, Column 65: "Operator '+' must be spaced."
space-infix-ops
|
| 29 |
getFullMonthCalendar(date.getFullYear(), date.getMonth()+1); |
| Error |
Row 30, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 30, Column 8: "React Hook React.useEffect has a missing dependency: 'scrollToIndex'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 30 |
}, []); |
| Error |
Row 31, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 31 |
const scrollToIndex = () => { |
| Error |
Row 32, Column 1: "Delete `····`"
prettier/prettier
|
| 32 |
if (scrollViewRef2.current !== null) { |
| Error |
Row 33, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 33 |
scrollViewRef2.current.scrollTo({ |
| Error |
Row 34, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 34 |
x: itemWidth * currentMonth, |
| Error |
Row 35, Column 9: "Delete `········`"
prettier/prettier
|
| 35 |
animated: true, |
| Error |
Row 36, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 36 |
}); |
| Error |
Row 37, Column 1: "Delete `····`"
prettier/prettier
|
| 37 |
} |
| Error |
Row 38, Column 5: "Delete `····`"
prettier/prettier
|
| 38 |
if (scrollViewRef.current !== null) { |
| Error |
Row 39, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 39 |
scrollViewRef.current.scrollTo({ |
| Error |
Row 40, Column 1: "Delete `········`"
prettier/prettier
|
| 40 |
x: itemWidth * (currentDate - 1), |
| Error |
Row 41, Column 9: "Delete `········`"
prettier/prettier
|
| 41 |
animated: true, |
| Error |
Row 42, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 42 |
}); |
| Error |
Row 43, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 43 |
} |
| Error |
Row 44, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 44 |
}; |
| Error |
Row 45, Column 1: "Delete `··`"
prettier/prettier
|
| 45 |
return ( |
| Error |
Row 46, Column 1: "Delete `····`"
prettier/prettier
|
| 46 |
<View style={[styles.CALENDAR, style]}> |
| Error |
Row 47, Column 7: "Replace `······` with `prettier/prettier
|
| Warning |
Row 47, Column 51: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| 47 |
<Regular label={'Choose Date'} style={{color:colors.primary,fontSize:mvs(18),alignSelf:'center',marginBottom:mvs(29)}}/> |
| Error |
Row 48, Column 7: "Replace `······` with `/>⏎······prettier/prettier
|
| Warning |
Row 48, Column 27: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Warning |
Row 48, Column 53: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| 48 |
<View style={[{ flexDirection: 'row' }, {justifyContent:'center',marginBottom:mvs(30)}]}> |
| Error |
Row 49, Column 9: "Insert `]}>⏎`"
prettier/prettier
|
| 49 |
<Buttons.ButtonSecondaryOutline |
| Error |
Row 50, Column 11: "Delete `··········`"
prettier/prettier
|
| 50 |
onClick={() => { |
| Error |
Row 51, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 51 |
getFullMonthCalendar(currentYear, dayMonthYear.month + 1); |
| Error |
Row 52, Column 1: "Replace `························setDayMonthYear({·...dayMonthYear,·year:·currentYear,·day:·currentDate,·month:·currentMonth·});` with `············setDayMonthYear({⏎··············...dayMonthYear,⏎··············year:·currentYear,⏎··············day:·currentDate,⏎··············month:·currentMonth,`"
prettier/prettier
|
| 52 |
setDayMonthYear({ ...dayMonthYear, year: currentYear, day: currentDate, month: currentMonth }); |
| Error |
Row 53, Column 13: "Replace `········}}` with `});`"
prettier/prettier
|
| 53 |
}} |
| Error |
Row 54, Column 11: "Insert `}}⏎`"
prettier/prettier
|
| 54 |
title={currentYear} |
| Error |
Row 55, Column 11: "Replace `··········textStyle={{·color:·dayMonthYear.year·==·currentYear·?·colors.white·:·colors.typeHeader,·fontSize:·mvs(15),·fontFamily:·fonts.carosSoftMedium·}}` with `textStyle={{⏎············color:⏎··············dayMonthYear.year·==·currentYear⏎················?·colors.white⏎················:·colors.typeHeader,⏎············fontSize:·mvs(15),⏎············fontFamily:·fonts.carosSoftMedium,`"
prettier/prettier
|
| Warning |
Row 55, Column 59: "Expected '===' and instead saw '=='."
eqeqeq
|
| 55 |
textStyle={{ color: dayMonthYear.year == currentYear ? colors.white : colors.typeHeader, fontSize: mvs(15), fontFamily: fonts.carosSoftMedium }} |
| Error |
Row 56, Column 11: "Replace `··········style={{·width:·mvs(100),·height:··mvs(38),·backgroundColor:·dayMonthYear.year·===·currentYear·?·colors.primary·:·unselectedYearColor,·}}` with `}}⏎··········style={{⏎············width:·mvs(100),⏎············height:·mvs(38),⏎············backgroundColor:⏎··············dayMonthYear.year·===·currentYear⏎················?·colors.primary⏎················:·unselectedYearColor,`"
prettier/prettier
|
| Warning |
Row 56, Column 154: "Unexpected trailing comma."
comma-dangle
|
| 56 |
style={{ width: mvs(100), height: mvs(38), backgroundColor: dayMonthYear.year === currentYear ? colors.primary : unselectedYearColor, }} |
| Error |
Row 57, Column 10: "Replace `·······` with `·}}⏎········`"
prettier/prettier
|
| 57 |
/> |
| Error |
Row 58, Column 1: "Delete `········`"
prettier/prettier
|
| 58 |
<Buttons.ButtonSecondaryOutline |
| Error |
Row 59, Column 11: "Delete `··········`"
prettier/prettier
|
| 59 |
onClick={() => { |
| Error |
Row 60, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 60 |
getFullMonthCalendar(nextYear, dayMonthYear.month + 1); |
| Error |
Row 61, Column 1: "Replace `························setDayMonthYear({·...dayMonthYear,·year:·nextYear·` with `············setDayMonthYear({...dayMonthYear,·year:·nextYear`"
prettier/prettier
|
| 61 |
setDayMonthYear({ ...dayMonthYear, year: nextYear }); |
| Error |
Row 62, Column 1: "Replace `····················}⏎····················` with `··········}`"
prettier/prettier
|
| 62 |
} |
| 63 |
} |
| Error |
Row 64, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 64 |
title={nextYear} |
| Error |
Row 65, Column 11: "Replace `··········textStyle={{·color:·dayMonthYear.year·==·nextYear·?·colors.white·:·colors.typeHeader,·fontSize:·mvs(15),·fontFamily:·fonts.carosSoftMedium·}}` with `textStyle={{⏎············color:⏎··············dayMonthYear.year·==·nextYear·?·colors.white·:·colors.typeHeader,⏎············fontSize:·mvs(15),⏎············fontFamily:·fonts.carosSoftMedium,`"
prettier/prettier
|
| Warning |
Row 65, Column 59: "Expected '===' and instead saw '=='."
eqeqeq
|
| 65 |
textStyle={{ color: dayMonthYear.year == nextYear ? colors.white : colors.typeHeader, fontSize: mvs(15), fontFamily: fonts.carosSoftMedium }} |
| Error |
Row 66, Column 11: "Replace `··········style={{·width:·mvs(100),·height:··mvs(38),·backgroundColor:·dayMonthYear.year·===·nextYear·?·colors.primary·:·unselectedYearColor,·marginLeft:·mvs(20),...yearStyle·}}⏎········` with `}}⏎··········style={{⏎············width:·mvs(100),⏎············height:·mvs(38),⏎············backgroundColor:⏎··············dayMonthYear.year·===·nextYear⏎················?·colors.primary⏎················:·unselectedYearColor,⏎············marginLeft:·mvs(20),⏎············...yearStyle,⏎··········}}⏎`"
prettier/prettier
|
| 66 |
style={{ width: mvs(100), height: mvs(38), backgroundColor: dayMonthYear.year === nextYear ? colors.primary : unselectedYearColor, marginLeft: mvs(20),...yearStyle }} |
| 67 |
/> |
| Error |
Row 68, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 68 |
</View> |
| Error |
Row 69, Column 1: "Replace `············prettier/prettier
|
| Warning |
Row 69, Column 49: "Unexpected trailing comma."
comma-dangle
|
| 69 |
<View style={{ marginBottom: mvs(30), }} > |
| Error |
Row 70, Column 1: "Delete `········`"
prettier/prettier
|
| 70 |
<ScrollView |
| Error |
Row 71, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 71 |
horizontal |
| Error |
Row 72, Column 1: "Delete `··········`"
prettier/prettier
|
| 72 |
ref={scrollViewRef2} |
| Error |
Row 73, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 73 |
showsHorizontalScrollIndicator={false} |
| Error |
Row 74, Column 1: "Replace `····················contentContainerStyle={{·paddingRight:·mvs(10)·` with `··········contentContainerStyle={{paddingRight:·mvs(10)`"
prettier/prettier
|
| 74 |
contentContainerStyle={{ paddingRight: mvs(10) }} |
| Error |
Row 75, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 75, Column 21: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 75 |
horizontal> |
| Error |
Row 76, Column 1: "Delete `··········`"
prettier/prettier
|
| 76 |
{monthNames.map((m, index) => ( |
| Error |
Row 77, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 77 |
<Buttons.ButtonSecondaryOutline |
| Error |
Row 78, Column 15: "Replace `··············disabled={index·<·currentMonth·&&·dayMonthYear.year·===·currentYear}` with `disabled={⏎················index·<·currentMonth·&&·dayMonthYear.year·===·currentYear`"
prettier/prettier
|
| 78 |
disabled={index < currentMonth && dayMonthYear.year === currentYear} |
| Error |
Row 79, Column 15: "Insert `}⏎`"
prettier/prettier
|
| 79 |
onClick={() => { |
| Error |
Row 80, Column 17: "Delete `················`"
prettier/prettier
|
| 80 |
getFullMonthCalendar(dayMonthYear.year, index + 1); |
| Error |
Row 81, Column 1: "Replace `································setDayMonthYear({·...dayMonthYear,·month:·index·` with `················setDayMonthYear({...dayMonthYear,·month:·index`"
prettier/prettier
|
| 81 |
setDayMonthYear({ ...dayMonthYear, month: index }); |
| Error |
Row 82, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 82 |
}} |
| Error |
Row 83, Column 1: "Delete `··············`"
prettier/prettier
|
| 83 |
title={m} |
| Error |
Row 84, Column 15: "Replace `··············textStyle={{·color:·dayMonthYear.month·===·index·?·colors.white·:·colors.typeHeader,·fontSize:·mvs(15),·fontFamily:·fonts.carosSoftMedium·}}` with `textStyle={{⏎················color:⏎··················dayMonthYear.month·===·index⏎····················?·colors.white⏎····················:·colors.typeHeader,⏎················fontSize:·mvs(15),⏎················fontFamily:·fonts.carosSoftMedium,`"
prettier/prettier
|
| 84 |
textStyle={{ color: dayMonthYear.month === index ? colors.white : colors.typeHeader, fontSize: mvs(15), fontFamily: fonts.carosSoftMedium }} |
| Error |
Row 85, Column 15: "Replace `··············style={{·width:·mvs(46),·height:·mvs(65),·backgroundColor:·dayMonthYear.month·===·index·?·colors.primary·:·unselectedMonthColor,·marginLeft:·mvs(10),...monthStyle·}}` with `}}⏎··············style={{⏎················width:·mvs(46),⏎················height:·mvs(65),⏎················backgroundColor:⏎··················dayMonthYear.month·===·index⏎····················?·colors.primary⏎····················:·unselectedMonthColor,⏎················marginLeft:·mvs(10),⏎················...monthStyle,`"
prettier/prettier
|
| 85 |
style={{ width: mvs(46), height: mvs(65), backgroundColor: dayMonthYear.month === index ? colors.primary : unselectedMonthColor, marginLeft: mvs(10),...monthStyle }} |
| Error |
Row 86, Column 15: "Replace `··········` with `}}⏎············`"
prettier/prettier
|
| 86 |
/> |
| Error |
Row 87, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 87 |
))} |
| Error |
Row 88, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 88 |
</ScrollView> |
| Error |
Row 89, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 89 |
</View> |
| Error |
Row 90, Column 7: "Replace `······` with `prettier/prettier
|
| Warning |
Row 90, Column 174: "Unexpected trailing comma."
comma-dangle
|
| 90 |
<View style={{ backgroundColor: colors.white, paddingHorizontal: mvs(10), paddingVertical: mvs(8), borderBottomLeftRadius: mvs(10), borderTopLeftRadius: mvs(10) ,}}> |
| Error |
Row 91, Column 9: "Insert `}}>⏎`"
prettier/prettier
|
| 91 |
<ScrollView |
| Error |
Row 92, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 92 |
horizontal |
| Error |
Row 93, Column 1: "Delete `··········`"
prettier/prettier
|
| 93 |
ref={scrollViewRef} |
| Error |
Row 94, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 94 |
showsHorizontalScrollIndicator={false} |
| Error |
Row 95, Column 1: "Replace `····················contentContainerStyle={{·paddingRight:·mvs(10)·}}⏎⏎················` with `··········contentContainerStyle={{paddingRight:·mvs(10)}}`"
prettier/prettier
|
| 95 |
contentContainerStyle={{ paddingRight: mvs(10) }} |
| 96 |
|
| 97 |
> |
| Error |
Row 98, Column 11: "Delete `··········`"
prettier/prettier
|
| 98 |
{month.map((day, index) => ( |
| Error |
Row 99, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 99 |
<TouchableOpacity |
| Error |
Row 100, Column 1: "Delete `··············`"
prettier/prettier
|
| 100 |
key={index} |
| Error |
Row 101, Column 15: "Replace `··············disabled={moment(day).format('DD')·<·currentDate·&&·currentMonth·===·dayMonthYear.month·&&·currentYear·===·dayMonthYear.year}` with `disabled={⏎················moment(day).format('DD')·<·currentDate·&&⏎················currentMonth·===·dayMonthYear.month·&&⏎················currentYear·===·dayMonthYear.year`"
prettier/prettier
|
| 101 |
disabled={moment(day).format('DD') < currentDate && currentMonth === dayMonthYear.month && currentYear === dayMonthYear.year} |
| Error |
Row 102, Column 15: "Replace `··············onPress={()·=>·{·setDayMonthYear({·...dayMonthYear,·day:·moment(day).format('DD')·})·}}` with `}⏎··············onPress={()·=>·{⏎················setDayMonthYear({⏎··················...dayMonthYear,⏎··················day:·moment(day).format('DD'),`"
prettier/prettier
|
| Warning |
Row 102, Column 113: "Missing semicolon."
semi
|
| 102 |
onPress={() => { setDayMonthYear({ ...dayMonthYear, day: moment(day).format('DD') }) }} |
| Error |
Row 103, Column 17: "Replace `············style={{` with `});⏎··············}}`"
prettier/prettier
|
| Warning |
Row 103, Column 36: "Inline style: {
borderWidth: "dayMonthYear.day == moment(day).format('DD')?0:StyleSheet.hairlineWidth",
alignItems: 'center',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| 103 |
style={{ |
| Error |
Row 104, Column 15: "Replace `··················borderWidth:dayMonthYear.day·==·moment(day).format('DD')?0:StyleSheet.hairlineWidth,borderColor:colors.doted,width:·itemWidth,·alignItems:·'center',·justifyContent:·'space-between',·height:·mvs(·90),` with `style={{⏎················borderWidth:⏎··················dayMonthYear.day·==·moment(day).format('DD')⏎····················?·0⏎····················:·StyleSheet.hairlineWidth,⏎················borderColor:·colors.doted,⏎················width:·itemWidth,⏎················alignItems:·'center',⏎················justifyContent:·'space-between',⏎················height:·mvs(90),⏎···············`"
prettier/prettier
|
| Warning |
Row 104, Column 62: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 104, Column 89: "Operator '?' must be spaced."
space-infix-ops
|
| 104 |
borderWidth:dayMonthYear.day == moment(day).format('DD')?0:StyleSheet.hairlineWidth,borderColor:colors.doted,width: itemWidth, alignItems: 'center', justifyContent: 'space-between', height: mvs( 90), paddingVertical: mvs(12), |
| Error |
Row 105, Column 17: "Replace `················backgroundColor:·dayMonthYear.day·==·moment(day).format('DD')·?·colors.primary·:·colors.white,·marginRight:·mvs(10),` with `backgroundColor:⏎··················dayMonthYear.day·==·moment(day).format('DD')⏎····················?·colors.primary⏎····················:·colors.white,⏎················marginRight:·mvs(10),⏎···············`"
prettier/prettier
|
| Warning |
Row 105, Column 67: "Expected '===' and instead saw '=='."
eqeqeq
|
| 105 |
backgroundColor: dayMonthYear.day == moment(day).format('DD') ? colors.primary : colors.white, marginRight: mvs(10), borderRadius: mvs(10), |
| Error |
Row 106, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 106 |
...dayStyle, |
| Error |
Row 107, Column 1: "Replace `····························}}` with `··············}}>`"
prettier/prettier
|
| 107 |
}} |
| Error |
Row 108, Column 15: "Replace `··········>` with `prettier/prettier
|
| 108 |
> |
| Error |
Row 109, Column 17: "Delete `············prettier/prettier
|
| 109 |
<Medium label={moment(day).format('dd')} |
| Error |
Row 110, Column 17: "Replace `················style={{·color:·dayMonthYear.day·==·moment(day).format('DD')·?·colors.white·:·colors.typeHeader,·fontSize:·mvs(·15),·textAlign:·'center'·}}⏎····························` with `style={{⏎··················color:⏎····················dayMonthYear.day·==·moment(day).format('DD')⏎······················?·colors.white⏎······················:·colors.typeHeader,⏎··················fontSize:·mvs(15),⏎··················textAlign:·'center',⏎················}}⏎··············`"
prettier/prettier
|
| Warning |
Row 110, Column 40: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 110, Column 66: "Expected '===' and instead saw '=='."
eqeqeq
|
| 110 |
style={{ color: dayMonthYear.day == moment(day).format('DD') ? colors.white : colors.typeHeader, fontSize: mvs( 15), textAlign: 'center' }} |
| 111 |
/> |
| Error |
Row 112, Column 1: "Replace `····························prettier/prettier
|
| 112 |
<Medium label={moment(day).format('DD')} |
| Error |
Row 113, Column 17: "Replace `················style={{·color:·dayMonthYear.day·==·moment(day).format('DD')·?·colors.white·:·colors.label,·fontSize:·mvs(15),·textAlign:·'center'·}}⏎···············` with `style={{⏎··················color:⏎····················dayMonthYear.day·==·moment(day).format('DD')⏎······················?·colors.white⏎······················:·colors.label,⏎··················fontSize:·mvs(15),⏎··················textAlign:·'center',⏎················}}⏎·`"
prettier/prettier
|
| Warning |
Row 113, Column 40: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 113, Column 66: "Expected '===' and instead saw '=='."
eqeqeq
|
| 113 |
style={{ color: dayMonthYear.day == moment(day).format('DD') ? colors.white : colors.label, fontSize: mvs(15), textAlign: 'center' }} |
| 114 |
/> |
| Error |
Row 115, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 115 |
</TouchableOpacity> |
| Error |
Row 116, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 116 |
))} |
| Error |
Row 117, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 117 |
</ScrollView> |
| Error |
Row 118, Column 7: "Delete `······`"
prettier/prettier
|
| 118 |
</View> |
| Error |
Row 119, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 119 |
</View> |
| Error |
Row 120, Column 1: "Delete `··`"
prettier/prettier
|
| 120 |
); |
| 121 |
}; |
| 122 |
export default Calendar; |
| 123 |
const styles = StyleSheet.create({ |
| Error |
Row 124, Column 3: "Delete `··`"
prettier/prettier
|
| 124 |
CALENDAR: { |
| Error |
Row 125, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 125 |
marginTop: mvs(15), |
| Error |
Row 126, Column 1: "Replace `········marginBottom:` with `····marginBottom:·`"
prettier/prettier
|
| 126 |
marginBottom:mvs(30), |
| Error |
Row 127, Column 3: "Delete `··`"
prettier/prettier
|
| 127 |
}, |
| Warning |
Row 128, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 128, Column 4: "Insert `⏎`"
prettier/prettier
|
| 128 |
}); |
|
|
|
/src/components/molecules/chat_card/conversation-card.js
|
22 problems (18 errors, 4 warnings)
|
| Severity |
Rule |
| Error |
Row 3, Column 9: "Replace `·StyleSheet,·TouchableOpacity,·View·` with `StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| Error |
Row 4, Column 9: "Replace `·location_deactive·as·Location·` with `location_deactive·as·Location`"
prettier/prettier
|
| Error |
Row 6, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 12, Column 13: "'Icons' is defined but never used."
no-unused-vars
|
| Error |
Row 13, Column 65: "Delete `⏎`"
prettier/prettier
|
| Warning |
Row 46, Column 42: "Inline style: { justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Error |
Row 46, Column 43: "Replace `·justifyContent:·'space-between'·` with `justifyContent:·'space-between'`"
prettier/prettier
|
| Error |
Row 48, Column 40: "Insert `(⏎············`"
prettier/prettier
|
| Error |
Row 49, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 50, Column 1: "Replace `··············message.length·>·22·?·`${message.substring(0,·18)}·...`` with `················message.length·>·22⏎··················?·`${message.substring(0,·18)}·...`⏎·················`"
prettier/prettier
|
| Error |
Row 51, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 52, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 53, Column 1: "Replace `··········/>·:·lastMessage·===·'MAP'·?` with `············/>⏎··········)·:·lastMessage·===·'MAP'·?·(`"
prettier/prettier
|
| Error |
Row 54, Column 25: "Delete `·:`"
prettier/prettier
|
| Error |
Row 55, Column 11: "Replace `··lastMessage·===·'RECEIPT_IMAGE_MESSAGE'·?` with `)·:·lastMessage·===·'RECEIPT_IMAGE_MESSAGE'·?·(`"
prettier/prettier
|
| Error |
Row 56, Column 81: "Delete `·:`"
prettier/prettier
|
| Error |
Row 57, Column 11: "Replace `····lastMessage·===·'IMAGE_MESSAGE'·?⏎···············:` with `)·:·lastMessage·===·'IMAGE_MESSAGE'·?·(⏎············`"
prettier/prettier
|
| Error |
Row 59, Column 11: "Replace `······lastMessage·===·'DOCUMENT_MESSAGE'·?⏎·················:⏎··················lastMessage·===·'AUDIO_MESSAGE'·?⏎···················:⏎····················lastMessage·===·'VIDEO_MESSAGE'·&&⏎····················⏎··········)·:·lastMessage·===·'AUDIO_MESSAGE'·?·(⏎············⏎··········)·:·(⏎············lastMessage·===·'VIDEO_MESSAGE'·&&·(⏎··············prettier/prettier
|
| Error |
Row 65, Column 11: "Insert `··)⏎··········)`"
prettier/prettier
|
| Warning |
Row 68, Column 18: "Inline style: {
width: '27%',
alignItems: 'flex-end',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| Error |
Row 79, Column 22: "Replace `·label={counter·>·99·?·`99+`·:·counter}·style={{...styles.counter,·fontSize·:·counter·>·99·?·mvs(9)·:·mvs(12)}}` with `⏎················label={counter·>·99·?·`99+`·:·counter}⏎················style={{⏎··················...styles.counter,⏎··················fontSize:·counter·>·99·?·mvs(9)·:·mvs(12),⏎················}}⏎·············`"
prettier/prettier
|
| Warning |
Row 79, Column 45: "Strings must use singlequote."
quotes
|
| Line |
Source |
| 1 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 2 |
import React from 'react'; |
| Error |
Row 3, Column 9: "Replace `·StyleSheet,·TouchableOpacity,·View·` with `StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| 3 |
import { StyleSheet, TouchableOpacity, View } from 'react-native'; |
| Error |
Row 4, Column 9: "Replace `·location_deactive·as·Location·` with `location_deactive·as·Location`"
prettier/prettier
|
| 4 |
import { location_deactive as Location } from '../../../../resource/assets/order-car-icons'; |
| 5 |
import colors from '../../../config/colors'; |
| Error |
Row 6, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 6 |
import { mvs } from '../../../config/metrices'; |
| 7 |
import Bold from '../../../presentation/typography/bold-text'; |
| 8 |
//import { View , Image} from 'native-base' |
| 9 |
import Medium from '../../../presentation/typography/medium-text'; |
| 10 |
import Regular from '../../../presentation/typography/regular-text'; |
| 11 |
import ImagePlaceholder from '../../atoms/Placeholder'; |
| Warning |
Row 12, Column 13: "'Icons' is defined but never used."
no-unused-vars
|
| 12 |
import * as Icons from '../../../../resource/assets/chat-options-modal-icons'; |
| Error |
Row 13, Column 65: "Delete `⏎`"
prettier/prettier
|
| 13 |
import FontAwesome from 'react-native-vector-icons/FontAwesome'; |
| 14 |
|
| 15 |
|
| 16 |
const Conversation = ({ |
| 17 |
user_img, |
| 18 |
user_name, |
| 19 |
message, |
| 20 |
time, |
| 21 |
counter, |
| 22 |
lastMessage, |
| 23 |
isMessageTab, |
| 24 |
thread_id, |
| 25 |
order_id, |
| 26 |
onPress, |
| 27 |
...props |
| 28 |
}) => { |
| 29 |
console.log(user_img, counter); |
| 30 |
return ( |
| 31 |
<View> |
| 32 |
<TouchableOpacity |
| 33 |
onPress={onPress} |
| 34 |
style={[ |
| 35 |
styles.container, |
| 36 |
{ |
| 37 |
borderWidth: StyleSheet.hairlineWidth, |
| 38 |
borderColor: colors.lightgrey2, |
| 39 |
backgroundColor: colors.white, |
| 40 |
}, |
| 41 |
]}> |
| 42 |
<View style={styles.dp}> |
| 43 |
<ImagePlaceholder bg_img={user_img} /> |
| 44 |
</View> |
| 45 |
<View |
| Warning |
Row 46, Column 42: "Inline style: { justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Error |
Row 46, Column 43: "Replace `·justifyContent:·'space-between'·` with `justifyContent:·'space-between'`"
prettier/prettier
|
| 46 |
style={[styles.innerContainer, { justifyContent: 'space-between' }]}> |
| 47 |
<Bold label={user_name} style={styles.name} /> |
| Error |
Row 48, Column 40: "Insert `(⏎············`"
prettier/prettier
|
| 48 |
{lastMessage === 'MESSAGE' ? <Regular |
| Error |
Row 49, Column 13: "Insert `··`"
prettier/prettier
|
| 49 |
label={ |
| Error |
Row 50, Column 1: "Replace `··············message.length·>·22·?·`${message.substring(0,·18)}·...`` with `················message.length·>·22⏎··················?·`${message.substring(0,·18)}·...`⏎·················`"
prettier/prettier
|
| 50 |
message.length > 22 ? `${message.substring(0, 18)} ...` : message |
| Error |
Row 51, Column 13: "Insert `··`"
prettier/prettier
|
| 51 |
} |
| Error |
Row 52, Column 1: "Insert `··`"
prettier/prettier
|
| 52 |
style={styles.message} |
| Error |
Row 53, Column 1: "Replace `··········/>·:·lastMessage·===·'MAP'·?` with `············/>⏎··········)·:·lastMessage·===·'MAP'·?·(`"
prettier/prettier
|
| 53 |
/> : lastMessage === 'MAP' ? |
| Error |
Row 54, Column 25: "Delete `·:`"
prettier/prettier
|
| 54 |
<Location /> : |
| Error |
Row 55, Column 11: "Replace `··lastMessage·===·'RECEIPT_IMAGE_MESSAGE'·?` with `)·:·lastMessage·===·'RECEIPT_IMAGE_MESSAGE'·?·(`"
prettier/prettier
|
| 55 |
lastMessage === 'RECEIPT_IMAGE_MESSAGE' ? |
| Error |
Row 56, Column 81: "Delete `·:`"
prettier/prettier
|
| 56 |
<FontAwesome color={colors.primary} name={'image'} size={mvs(20)} /> : |
| Error |
Row 57, Column 11: "Replace `····lastMessage·===·'IMAGE_MESSAGE'·?⏎···············:` with `)·:·lastMessage·===·'IMAGE_MESSAGE'·?·(⏎············`"
prettier/prettier
|
| 57 |
lastMessage === 'IMAGE_MESSAGE' ? |
| 58 |
<FontAwesome color={colors.primary} name={'image'} size={mvs(20)} /> : |
| Error |
Row 59, Column 11: "Replace `······lastMessage·===·'DOCUMENT_MESSAGE'·?⏎·················:⏎··················lastMessage·===·'AUDIO_MESSAGE'·?⏎···················:⏎····················lastMessage·===·'VIDEO_MESSAGE'·&&⏎····················⏎··········)·:·lastMessage·===·'AUDIO_MESSAGE'·?·(⏎············⏎··········)·:·(⏎············lastMessage·===·'VIDEO_MESSAGE'·&&·(⏎··············prettier/prettier
|
| 59 |
lastMessage === 'DOCUMENT_MESSAGE' ? |
| 60 |
<FontAwesome color={colors.primary} name={'file-text-o'} size={mvs(20)} /> : |
| 61 |
lastMessage === 'AUDIO_MESSAGE' ? |
| 62 |
<FontAwesome color={colors.primary} name={'microphone'} size={mvs(20)} /> : |
| 63 |
lastMessage === 'VIDEO_MESSAGE' && |
| 64 |
<FontAwesome color={colors.primary} name={'file-video-o'} size={mvs(20)} /> |
| Error |
Row 65, Column 11: "Insert `··)⏎··········)`"
prettier/prettier
|
| 65 |
} |
| 66 |
</View> |
| 67 |
<View |
| Warning |
Row 68, Column 18: "Inline style: {
width: '27%',
alignItems: 'flex-end',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| 68 |
style={{ |
| 69 |
width: '27%', |
| 70 |
alignItems: 'flex-end', |
| 71 |
justifyContent: 'space-between', |
| 72 |
}}> |
| 73 |
<Regular |
| 74 |
label={TAKE_TO_CONSTANT.getConversationTime(time)} |
| 75 |
style={styles.time} |
| 76 |
/> |
| 77 |
{counter > 0 && ( |
| 78 |
<View style={styles.counterContainer}> |
| Error |
Row 79, Column 22: "Replace `·label={counter·>·99·?·`99+`·:·counter}·style={{...styles.counter,·fontSize·:·counter·>·99·?·mvs(9)·:·mvs(12)}}` with `⏎················label={counter·>·99·?·`99+`·:·counter}⏎················style={{⏎··················...styles.counter,⏎··················fontSize:·counter·>·99·?·mvs(9)·:·mvs(12),⏎················}}⏎·············`"
prettier/prettier
|
| Warning |
Row 79, Column 45: "Strings must use singlequote."
quotes
|
| 79 |
<Medium label={counter > 99 ? `99+` : counter} style={{...styles.counter, fontSize : counter > 99 ? mvs(9) : mvs(12)}} /> |
| 80 |
</View> |
| 81 |
)} |
| 82 |
</View> |
| 83 |
</TouchableOpacity> |
| 84 |
</View> |
| 85 |
); |
| 86 |
}; |
| 87 |
|
| 88 |
export default Conversation; |
| 89 |
|
| 90 |
const styles = StyleSheet.create({ |
| 91 |
container: { |
| 92 |
width: '100%', |
| 93 |
flexDirection: 'row', |
| 94 |
marginBottom: mvs(15), |
| 95 |
padding: mvs(10), |
| 96 |
borderRadius: mvs(10), |
| 97 |
}, |
| 98 |
dp: { |
| 99 |
height: mvs(46), |
| 100 |
width: mvs(50), |
| 101 |
borderRadius: mvs(8), |
| 102 |
}, |
| 103 |
innerContainer: { |
| 104 |
flex: 1, |
| 105 |
marginLeft: mvs(10), |
| 106 |
justifyContent: 'space-between', |
| 107 |
}, |
| 108 |
name: { |
| 109 |
fontSize: mvs(15), |
| 110 |
color: colors.headerTitle, |
| 111 |
}, |
| 112 |
message: { |
| 113 |
fontSize: mvs(13), |
| 114 |
color: colors.lightgrey2, |
| 115 |
}, |
| 116 |
time: { |
| 117 |
fontSize: mvs(10), |
| 118 |
color: colors.message, |
| 119 |
}, |
| 120 |
counterContainer: { |
| 121 |
height: mvs(22), |
| 122 |
width: mvs(22), |
| 123 |
borderRadius: mvs(22 / 2), |
| 124 |
backgroundColor: colors.primary, |
| 125 |
justifyContent: 'center', |
| 126 |
alignItems: 'center', |
| 127 |
}, |
| 128 |
counter: { |
| 129 |
fontSize: mvs(9), |
| 130 |
color: colors.white, |
| 131 |
}, |
| 132 |
line: { |
| 133 |
width: '81%', |
| 134 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 135 |
borderColor: colors.price_border, |
| 136 |
marginTop: mvs(15), |
| 137 |
alignSelf: 'flex-end', |
| 138 |
}, |
| 139 |
}); |
| 140 |
|
|
|
|
/src/components/molecules/chat_card/input-toolbar.js
|
137 problems (97 errors, 40 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| Warning |
Row 1, Column 17: "'useState' is defined but never used."
no-unused-vars
|
| Warning |
Row 10, Column 3: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 12, Column 8: "'FontAwesome' is defined but never used."
no-unused-vars
|
| Error |
Row 14, Column 9: "Replace `·MicroPhone_White,·MicroPhone,·Plus·` with `⏎··MicroPhone_White,⏎··MicroPhone,⏎··Plus,⏎`"
prettier/prettier
|
| Error |
Row 16, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 22, Column 3: "'AudioSet' is defined but never used."
no-unused-vars
|
| Warning |
Row 26, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Error |
Row 41, Column 8: "Delete `⏎`"
prettier/prettier
|
| Warning |
Row 43, Column 10: "'stopWatch' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 43, Column 21: "'setStopWatch' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 43, Column 58: "Insert `;`"
prettier/prettier
|
| Warning |
Row 43, Column 58: "Missing semicolon."
semi
|
| Error |
Row 51, Column 6: "Delete `⏎`"
prettier/prettier
|
| Warning |
Row 55, Column 9: "'date' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 81, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 81, Column 4: "Missing semicolon."
semi
|
| Error |
Row 96, Column 19: "Replace `"time:",·timer?.sec)` with `'time:',·timer?.sec);`"
prettier/prettier
|
| Warning |
Row 96, Column 19: "Strings must use singlequote."
quotes
|
| Warning |
Row 96, Column 39: "Missing semicolon."
semi
|
| Error |
Row 98, Column 6: "React Hook React.useEffect has missing dependencies: 'recording' and 'startTime'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 102, Column 1: "Delete `⏎⏎`"
prettier/prettier
|
| Warning |
Row 104, Column 10: "'isRecording' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 105, Column 59: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 122, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 124, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 126, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 128, Column 31: "Insert `;`"
prettier/prettier
|
| Warning |
Row 128, Column 31: "Missing semicolon."
semi
|
| Warning |
Row 142, Column 17: "'result' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 142, Column 66: "Replace `path,·audioSet,·false` with `⏎············path,⏎············audioSet,⏎············false,⏎··········`"
prettier/prettier
|
| Error |
Row 144, Column 53: "Replace `(e)` with `e`"
prettier/prettier
|
| Error |
Row 148, Column 32: "Insert `;`"
prettier/prettier
|
| Warning |
Row 148, Column 32: "Missing semicolon."
semi
|
| Error |
Row 153, Column 30: "Insert `;`"
prettier/prettier
|
| Warning |
Row 153, Column 30: "Missing semicolon."
semi
|
| Error |
Row 158, Column 27: "Insert `;`"
prettier/prettier
|
| Warning |
Row 158, Column 27: "Missing semicolon."
semi
|
| Warning |
Row 172, Column 13: "'result' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 172, Column 62: "Replace `path,·audioSet,·false` with `⏎········path,⏎········audioSet,⏎········false,⏎······`"
prettier/prettier
|
| Error |
Row 174, Column 49: "Replace `(e)` with `e`"
prettier/prettier
|
| Error |
Row 177, Column 6: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 179, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 179, Column 4: "Missing semicolon."
semi
|
| Error |
Row 181, Column 30: "Replace `(send)` with `send`"
prettier/prettier
|
| Warning |
Row 181, Column 31: "'send' is already declared in the upper scope."
no-shadow
|
| Error |
Row 182, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 182, Column 26: "Missing semicolon."
semi
|
| Error |
Row 191, Column 45: "Insert `;`"
prettier/prettier
|
| Warning |
Row 191, Column 45: "Missing semicolon."
semi
|
| Warning |
Row 225, Column 20: "Inline style: { flexDirection: 'column' }"
react-native/no-inline-styles
|
| Error |
Row 225, Column 21: "Replace `·...styles.CONTAINER,·flexDirection:·'column'·` with `...styles.CONTAINER,·flexDirection:·'column'`"
prettier/prettier
|
| Error |
Row 242, Column 7: "Replace `{recording·?` with `··{recording·?·(`"
prettier/prettier
|
| Error |
Row 243, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 244, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 244, Column 18: "Inline style: {
width: '100%',
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| Error |
Row 245, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 246, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 247, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 248, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 249, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 250, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 251, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 252, Column 1: "Replace `············paddingHorizontal:·mvs(10)` with `··············paddingHorizontal:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 252, Column 39: "Missing trailing comma."
comma-dangle
|
| Error |
Row 253, Column 1: "Replace `··········}}` with `············}}>`"
prettier/prettier
|
| Error |
Row 254, Column 6: "Replace `···>⏎··········prettier/prettier
|
| Error |
Row 259, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 260, Column 1: "Replace `············label={`${timer.hour·<·10·?·`0${timer.hour}`·:·`${timer.hour}`}:${timer.min·<·10·?·`0${timer.min}`·:·`${timer.min}`` with `··············label={`${timer.hour·<·10·?·`0${timer.hour}`·:·`${timer.hour}`}:${⏎················timer.min·<·10·?·`0${timer.min}`·:·`${timer.min}`⏎··············`"
prettier/prettier
|
| Error |
Row 261, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 262, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 263, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 264, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 265, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 266, Column 1: "Replace `··········prettier/prettier
|
| Warning |
Row 266, Column 24: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 267, Column 1: "Replace `············prettier/prettier
|
| Error |
Row 268, Column 1: "Replace `··············setRecording(false)` with `··················setRecording(false);`"
prettier/prettier
|
| Warning |
Row 268, Column 34: "Missing semicolon."
semi
|
| Error |
Row 269, Column 1: "Replace `··············onStopRecord(false)` with `··················onStopRecord(false);`"
prettier/prettier
|
| Warning |
Row 269, Column 34: "Missing semicolon."
semi
|
| Error |
Row 270, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| Error |
Row 271, Column 13: "Replace `}}·name='close'·size={mvs(30)}·color={colors.white}` with `····}}⏎················name="close"⏎················size={mvs(30)}⏎················color={colors.white}⏎·············`"
prettier/prettier
|
| Warning |
Row 271, Column 21: "Unexpected usage of singlequote."
jsx-quotes
|
| Error |
Row 272, Column 1: "Replace `············prettier/prettier
|
| Error |
Row 273, Column 15: "Replace `setRecording(false)` with `····setRecording(false);`"
prettier/prettier
|
| Warning |
Row 273, Column 34: "Missing semicolon."
semi
|
| Error |
Row 274, Column 1: "Replace `··············onStopRecord(true)` with `··················onStopRecord(true);`"
prettier/prettier
|
| Warning |
Row 274, Column 33: "Missing semicolon."
semi
|
| Error |
Row 275, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 276, Column 15: "Insert `····`"
prettier/prettier
|
| Error |
Row 277, Column 13: "Replace `}}·name='check'·size={mvs(30)}·color={colors.white}·style={{·marginLeft:·mvs(20)·}}` with `····}}⏎················name="check"⏎················size={mvs(30)}⏎················color={colors.white}⏎················style={{marginLeft:·mvs(20)}}⏎·············`"
prettier/prettier
|
| Warning |
Row 277, Column 21: "Unexpected usage of singlequote."
jsx-quotes
|
| Error |
Row 278, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 279, Column 1: "Replace `⏎⏎` with `··`"
prettier/prettier
|
| Error |
Row 282, Column 9: "Replace `:` with `)·:·(`"
prettier/prettier
|
| Error |
Row 283, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 284, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 285, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 286, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 287, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 288, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 288, Column 20: "Inline style: {
width: '85%',
justifyContent: 'space-between',
alignItems: 'center',
flexDirection: 'row'
}"
react-native/no-inline-styles
|
| Error |
Row 289, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 290, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 291, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 292, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 293, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 294, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 295, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 296, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 297, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 298, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 299, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 300, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 301, Column 1: "Replace `··············placeholderTextColor·=·` with `················placeholderTextColor=`"
prettier/prettier
|
| Error |
Row 302, Column 1: "Replace `··············style={{·width:·'90%',·color:·colors.typeHeader·` with `················style={{width:·'90%',·color:·colors.typeHeader`"
prettier/prettier
|
| Warning |
Row 302, Column 22: "Inline style: { width: '90%' }"
react-native/no-inline-styles
|
| Error |
Row 303, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 304, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 305, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 306, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 307, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 308, Column 13: "Replace `{⏎··············` with `··{`"
prettier/prettier
|
| Error |
Row 326, Column 29: "Insert `,`"
prettier/prettier
|
| Warning |
Row 326, Column 29: "Missing trailing comma."
comma-dangle
|
| Error |
Row 327, Column 23: "Insert `;`"
prettier/prettier
|
| Warning |
Row 327, Column 23: "Missing semicolon."
semi
|
| Error |
Row 328, Column 36: "Insert `;`"
prettier/prettier
|
| Warning |
Row 328, Column 36: "Missing semicolon."
semi
|
| Error |
Row 332, Column 16: "Insert `}`"
prettier/prettier
|
| Error |
Row 333, Column 13: "Replace `}` with ``"
prettier/prettier
|
| Error |
Row 334, Column 13: "Delete `View`"
prettier/prettier
|
| Error |
Row 335, Column 9: "Replace `>` with `)`"
prettier/prettier
|
| Warning |
Row 336, Column 10: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 336, Column 10: "Delete `·`"
prettier/prettier
|
| Warning |
Row 350, Column 14: "Trailing spaces not allowed."
no-trailing-spaces
|
| Line |
Source |
| Error |
Row 1, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| Warning |
Row 1, Column 17: "'useState' is defined but never used."
no-unused-vars
|
| 1 |
import React, { useState } from 'react'; |
| 2 |
import { |
| 3 |
StyleSheet, |
| 4 |
TextInput, |
| 5 |
TouchableOpacity, |
| 6 |
View, |
| 7 |
Pressable, |
| 8 |
PermissionsAndroid, |
| 9 |
Platform, |
| Warning |
Row 10, Column 3: "'Text' is defined but never used."
no-unused-vars
|
| 10 |
Text, |
| 11 |
} from 'react-native'; |
| Warning |
Row 12, Column 8: "'FontAwesome' is defined but never used."
no-unused-vars
|
| 12 |
import FontAwesome from 'react-native-vector-icons/FontAwesome'; |
| 13 |
import MaterialIcons from 'react-native-vector-icons/MaterialIcons'; |
| Error |
Row 14, Column 9: "Replace `·MicroPhone_White,·MicroPhone,·Plus·` with `⏎··MicroPhone_White,⏎··MicroPhone,⏎··Plus,⏎`"
prettier/prettier
|
| 14 |
import { MicroPhone_White, MicroPhone, Plus } from '../../../../resource/assets/common-icons'; |
| 15 |
import colors from '../../../config/colors'; |
| Error |
Row 16, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 16 |
import { mvs } from '../../../config/metrices'; |
| 17 |
import Regular from '../../../presentation/typography/regular-text'; |
| 18 |
import AudioRecorderPlayer, { |
| 19 |
AVEncoderAudioQualityIOSType, |
| 20 |
AVEncodingOption, |
| 21 |
AudioEncoderAndroidType, |
| Warning |
Row 22, Column 3: "'AudioSet' is defined but never used."
no-unused-vars
|
| 22 |
AudioSet, |
| 23 |
AudioSourceAndroidType, |
| 24 |
} from 'react-native-audio-recorder-player'; |
| 25 |
import RNFS from 'react-native-fs'; |
| Warning |
Row 26, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| 26 |
import Medium from '../../../presentation/typography/medium-text'; |
| 27 |
|
| 28 |
const audioRecorderPlayer = new AudioRecorderPlayer(); |
| 29 |
|
| 30 |
const InputToolbar = ({ |
| 31 |
onStop, |
| 32 |
onCamera, |
| 33 |
onPlus, |
| 34 |
close, |
| 35 |
onChangeText, |
| 36 |
send, |
| 37 |
onSendMessage, |
| 38 |
value, |
| 39 |
onFocus, |
| 40 |
status, |
| Error |
Row 41, Column 8: "Delete `⏎`"
prettier/prettier
|
| 41 |
}) => { |
| 42 |
|
| Warning |
Row 43, Column 10: "'stopWatch' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 43, Column 21: "'setStopWatch' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 43, Column 58: "Insert `;`"
prettier/prettier
|
| Warning |
Row 43, Column 58: "Missing semicolon."
semi
|
| 43 |
const [stopWatch, setStopWatch] = React.useState(false) |
| 44 |
|
| 45 |
///////////////////////////////////////////Timer///////////////////////////////////////////////// |
| 46 |
|
| 47 |
const [timer, setTimer] = React.useState({ |
| 48 |
hour: 0, |
| 49 |
sec: -1, |
| 50 |
min: 0, |
| Error |
Row 51, Column 6: "Delete `⏎`"
prettier/prettier
|
| 51 |
}); |
| 52 |
|
| 53 |
|
| 54 |
const startTime = () => { |
| Warning |
Row 55, Column 9: "'date' is assigned a value but never used."
no-unused-vars
|
| 55 |
var date = new Date(); /* creating object of Date class */ |
| 56 |
|
| 57 |
var hour = timer.hour; // if(){ |
| 58 |
var min = timer.min; // if(){ |
| 59 |
var sec = timer.sec; // if(){ |
| 60 |
|
| 61 |
if (timer.min >= 59) { |
| 62 |
hour = hour + 1; |
| 63 |
} |
| 64 |
if (timer.sec >= 59) { |
| 65 |
min = min + 1; |
| 66 |
} |
| 67 |
if (timer.sec >= 59) { |
| 68 |
sec = 0; |
| 69 |
} else { |
| 70 |
sec = sec + 1; |
| 71 |
} |
| 72 |
hour = updateTime(hour); |
| 73 |
min = updateTime(min); |
| 74 |
sec = updateTime(sec); |
| 75 |
|
| 76 |
setTimer({ |
| 77 |
hour, |
| 78 |
min, |
| 79 |
sec, |
| 80 |
}); /* adding time to the div */ |
| Error |
Row 81, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 81, Column 4: "Missing semicolon."
semi
|
| 81 |
} |
| 82 |
|
| 83 |
function updateTime(k) { |
| 84 |
if (k < 10) { |
| 85 |
return k; |
| 86 |
} else { |
| 87 |
return k; |
| 88 |
} |
| 89 |
} |
| 90 |
|
| 91 |
React.useEffect(() => { |
| 92 |
if (recording) { |
| 93 |
setTimeout(function () { |
| 94 |
startTime(); |
| 95 |
}, 1000); |
| Error |
Row 96, Column 19: "Replace `"time:",·timer?.sec)` with `'time:',·timer?.sec);`"
prettier/prettier
|
| Warning |
Row 96, Column 19: "Strings must use singlequote."
quotes
|
| Warning |
Row 96, Column 39: "Missing semicolon."
semi
|
| 96 |
console.log("time:", timer?.sec) |
| 97 |
} |
| Error |
Row 98, Column 6: "React Hook React.useEffect has missing dependencies: 'recording' and 'startTime'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| 98 |
}, [timer]); |
| 99 |
|
| 100 |
//////////////////////////////////////////////////////////////////////////////////////////////// |
| 101 |
|
| Error |
Row 102, Column 1: "Delete `⏎⏎`"
prettier/prettier
|
| 102 |
|
| 103 |
|
| Warning |
Row 104, Column 10: "'isRecording' is assigned a value but never used."
no-unused-vars
|
| 104 |
const [isRecording, setIsRecording] = React.useState(false); |
| Error |
Row 105, Column 59: "Delete `⏎`"
prettier/prettier
|
| 105 |
const [recording, setRecording] = React.useState(false); |
| 106 |
|
| 107 |
|
| 108 |
const onStartRecord = async () => { |
| 109 |
// await onSetStartIcon(); |
| 110 |
if (Platform.OS === 'android') { |
| 111 |
try { |
| 112 |
const grants = await PermissionsAndroid.requestMultiple([ |
| 113 |
PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE, |
| 114 |
PermissionsAndroid.PERMISSIONS.READ_EXTERNAL_STORAGE, |
| 115 |
PermissionsAndroid.PERMISSIONS.RECORD_AUDIO, |
| 116 |
]); |
| 117 |
|
| 118 |
console.log('write external stroage', grants); |
| 119 |
|
| 120 |
if ( |
| 121 |
grants['android.permission.WRITE_EXTERNAL_STORAGE'] === |
| Error |
Row 122, Column 1: "Insert `··`"
prettier/prettier
|
| 122 |
PermissionsAndroid.RESULTS.GRANTED && |
| 123 |
grants['android.permission.READ_EXTERNAL_STORAGE'] === |
| Error |
Row 124, Column 11: "Insert `··`"
prettier/prettier
|
| 124 |
PermissionsAndroid.RESULTS.GRANTED && |
| 125 |
grants['android.permission.RECORD_AUDIO'] === |
| Error |
Row 126, Column 11: "Insert `··`"
prettier/prettier
|
| 126 |
PermissionsAndroid.RESULTS.GRANTED |
| 127 |
) { |
| Error |
Row 128, Column 31: "Insert `;`"
prettier/prettier
|
| Warning |
Row 128, Column 31: "Missing semicolon."
semi
|
| 128 |
setIsRecording(true) |
| 129 |
console.log('You can use the storage'); |
| 130 |
const path = Platform.select({ |
| 131 |
ios: 'hello.m4a', |
| 132 |
android: `${RNFS.DocumentDirectoryPath}/audio_${Math.random()}.mp3`, // should give extra dir name in android. Won't grant permission to the first level of dir. |
| 133 |
}); |
| 134 |
const audioSet = { |
| 135 |
AudioEncoderAndroid: AudioEncoderAndroidType.AAC, |
| 136 |
AudioSourceAndroid: AudioSourceAndroidType.MIC, |
| 137 |
AVEncoderAudioQualityKeyIOS: AVEncoderAudioQualityIOSType.high, |
| 138 |
AVNumberOfChannelsKeyIOS: 2, |
| 139 |
AVFormatIDKeyIOS: AVEncodingOption.aac, |
| 140 |
}; |
| 141 |
// const result = await audioRecorderPlayer.startRecord(path); |
| Warning |
Row 142, Column 17: "'result' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 142, Column 66: "Replace `path,·audioSet,·false` with `⏎············path,⏎············audioSet,⏎············false,⏎··········`"
prettier/prettier
|
| 142 |
const result = await audioRecorderPlayer.startRecorder(path, audioSet, false); |
| 143 |
|
| Error |
Row 144, Column 53: "Replace `(e)` with `e`"
prettier/prettier
|
| 144 |
audioRecorderPlayer.addRecordBackListener((e) => { |
| 145 |
return; |
| 146 |
}); |
| 147 |
} else { |
| Error |
Row 148, Column 32: "Insert `;`"
prettier/prettier
|
| Warning |
Row 148, Column 32: "Missing semicolon."
semi
|
| 148 |
setIsRecording(false) |
| 149 |
console.log('All required permissions not granted'); |
| 150 |
//return; |
| 151 |
} |
| 152 |
} catch (err) { |
| Error |
Row 153, Column 30: "Insert `;`"
prettier/prettier
|
| Warning |
Row 153, Column 30: "Missing semicolon."
semi
|
| 153 |
setIsRecording(false) |
| 154 |
console.warn(err); |
| 155 |
//return; |
| 156 |
} |
| 157 |
} else { |
| Error |
Row 158, Column 27: "Insert `;`"
prettier/prettier
|
| Warning |
Row 158, Column 27: "Missing semicolon."
semi
|
| 158 |
setIsRecording(true) |
| 159 |
console.log('You can use the storage'); |
| 160 |
const path = Platform.select({ |
| 161 |
ios: 'hello.m4a', |
| 162 |
android: `${RNFS.DocumentDirectoryPath}/audio_${Math.random()}.mp3`, // should give extra dir name in android. Won't grant permission to the first level of dir. |
| 163 |
}); |
| 164 |
const audioSet = { |
| 165 |
AudioEncoderAndroid: AudioEncoderAndroidType.AAC, |
| 166 |
AudioSourceAndroid: AudioSourceAndroidType.MIC, |
| 167 |
AVEncoderAudioQualityKeyIOS: AVEncoderAudioQualityIOSType.high, |
| 168 |
AVNumberOfChannelsKeyIOS: 2, |
| 169 |
AVFormatIDKeyIOS: AVEncodingOption.aac, |
| 170 |
}; |
| 171 |
// const result = await audioRecorderPlayer.startRecord(path); |
| Warning |
Row 172, Column 13: "'result' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 172, Column 62: "Replace `path,·audioSet,·false` with `⏎········path,⏎········audioSet,⏎········false,⏎······`"
prettier/prettier
|
| 172 |
const result = await audioRecorderPlayer.startRecorder(path, audioSet, false); |
| 173 |
|
| Error |
Row 174, Column 49: "Replace `(e)` with `e`"
prettier/prettier
|
| 174 |
audioRecorderPlayer.addRecordBackListener((e) => { |
| 175 |
return; |
| 176 |
}); |
| Error |
Row 177, Column 6: "Delete `⏎`"
prettier/prettier
|
| 177 |
} |
| 178 |
|
| Error |
Row 179, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 179, Column 4: "Missing semicolon."
semi
|
| 179 |
} |
| 180 |
|
| Error |
Row 181, Column 30: "Replace `(send)` with `send`"
prettier/prettier
|
| Warning |
Row 181, Column 31: "'send' is already declared in the upper scope."
no-shadow
|
| 181 |
const onStopRecord = async (send) => { |
| Error |
Row 182, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 182, Column 26: "Missing semicolon."
semi
|
| 182 |
setIsRecording(false) |
| 183 |
const result = await audioRecorderPlayer.stopRecorder(); |
| 184 |
//console.log("result:", result) |
| 185 |
audioRecorderPlayer.removeRecordBackListener(); |
| 186 |
// setState({ |
| 187 |
// recordSecs: 0, |
| 188 |
// }); |
| 189 |
// console.log("result?.replace('////','///') :: ",result?.replace('////','///')); |
| 190 |
if (send) { |
| Error |
Row 191, Column 45: "Insert `;`"
prettier/prettier
|
| Warning |
Row 191, Column 45: "Missing semicolon."
semi
|
| 191 |
onStop(result?.replace('////', '///')) |
| 192 |
} |
| 193 |
}; |
| 194 |
|
| 195 |
// const onMicroPhone = async () => { |
| 196 |
// if (!(await requestAudioPermission())) { |
| 197 |
// return; |
| 198 |
// } |
| 199 |
// if (!isRecording) { |
| 200 |
// startRecording(); |
| 201 |
// setIsRecording(true); |
| 202 |
// } else { |
| 203 |
// const path = await stopRecording(); |
| 204 |
// console.log('returned path :', path); |
| 205 |
// onStop(path); |
| 206 |
// } |
| 207 |
// // setIsRecording(!isRecording); |
| 208 |
// // RNVoiceRecorder.Record({ |
| 209 |
// // onDone: (path) => { |
| 210 |
// // console.log("RECORDING PATH :: ",path); |
| 211 |
// // onStop(path) |
| 212 |
// // }, |
| 213 |
// // onCancel: () => { |
| 214 |
|
| 215 |
// // } |
| 216 |
// // }) |
| 217 |
// setRecording(true); |
| 218 |
// // onStartRecord() |
| 219 |
// }; |
| 220 |
|
| 221 |
// const onSend = () => {onSendMessage()} |
| 222 |
|
| 223 |
if (close) { |
| 224 |
return ( |
| Warning |
Row 225, Column 20: "Inline style: { flexDirection: 'column' }"
react-native/no-inline-styles
|
| Error |
Row 225, Column 21: "Replace `·...styles.CONTAINER,·flexDirection:·'column'·` with `...styles.CONTAINER,·flexDirection:·'column'`"
prettier/prettier
|
| 225 |
<View style={{ ...styles.CONTAINER, flexDirection: 'column' }}> |
| 226 |
<Regular |
| 227 |
label="Chat is closed while the dispute is being investigated." |
| 228 |
style={styles.footer} |
| 229 |
/> |
| 230 |
<Regular |
| 231 |
label="When the investigation is over, both parties will be" |
| 232 |
style={styles.footer} |
| 233 |
/> |
| 234 |
<Regular label="notified. Thank you" style={styles.footer} /> |
| 235 |
</View> |
| 236 |
); |
| 237 |
} |
| 238 |
return ( |
| 239 |
<View style={styles.CONTAINER}> |
| 240 |
{/* {status !== 'Disputed'? */} |
| 241 |
<> |
| Error |
Row 242, Column 7: "Replace `{recording·?` with `··{recording·?·(`"
prettier/prettier
|
| 242 |
{recording ? |
| Error |
Row 243, Column 9: "Insert `··`"
prettier/prettier
|
| 243 |
<View |
| Error |
Row 244, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 244, Column 18: "Inline style: {
width: '100%',
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| 244 |
style={{ |
| Error |
Row 245, Column 13: "Insert `··`"
prettier/prettier
|
| 245 |
height: mvs(52), |
| Error |
Row 246, Column 1: "Insert `··`"
prettier/prettier
|
| 246 |
width: '100%', |
| Error |
Row 247, Column 13: "Insert `··`"
prettier/prettier
|
| 247 |
backgroundColor: colors.primary, |
| Error |
Row 248, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 248 |
borderRadius: mvs(10), |
| Error |
Row 249, Column 13: "Insert `··`"
prettier/prettier
|
| 249 |
flexDirection: 'row', |
| Error |
Row 250, Column 1: "Insert `··`"
prettier/prettier
|
| 250 |
alignItems: 'center', |
| Error |
Row 251, Column 13: "Insert `··`"
prettier/prettier
|
| 251 |
justifyContent: 'space-between', |
| Error |
Row 252, Column 1: "Replace `············paddingHorizontal:·mvs(10)` with `··············paddingHorizontal:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 252, Column 39: "Missing trailing comma."
comma-dangle
|
| 252 |
paddingHorizontal: mvs(10) |
| Error |
Row 253, Column 1: "Replace `··········}}` with `············}}>`"
prettier/prettier
|
| 253 |
}} |
| Error |
Row 254, Column 6: "Replace `···>⏎··········prettier/prettier
|
| 254 |
> |
| 255 |
<MicroPhone_White |
| 256 |
height={mvs(30)} |
| 257 |
width={mvs(30)} |
| 258 |
/> |
| Error |
Row 259, Column 1: "Insert `··`"
prettier/prettier
|
| 259 |
<Regular |
| Error |
Row 260, Column 1: "Replace `············label={`${timer.hour·<·10·?·`0${timer.hour}`·:·`${timer.hour}`}:${timer.min·<·10·?·`0${timer.min}`·:·`${timer.min}`` with `··············label={`${timer.hour·<·10·?·`0${timer.hour}`·:·`${timer.hour}`}:${⏎················timer.min·<·10·?·`0${timer.min}`·:·`${timer.min}`⏎··············`"
prettier/prettier
|
| 260 |
label={`${timer.hour < 10 ? `0${timer.hour}` : `${timer.hour}`}:${timer.min < 10 ? `0${timer.min}` : `${timer.min}`}:${timer.sec < 10 ? `0${timer.sec}` : `${timer.sec}`}`} |
| Error |
Row 261, Column 13: "Insert `··`"
prettier/prettier
|
| 261 |
style={{ |
| Error |
Row 262, Column 1: "Insert `··`"
prettier/prettier
|
| 262 |
fontSize: mvs(20), |
| Error |
Row 263, Column 15: "Insert `··`"
prettier/prettier
|
| 263 |
color: colors.white, |
| Error |
Row 264, Column 1: "Insert `··`"
prettier/prettier
|
| 264 |
}} |
| Error |
Row 265, Column 11: "Insert `··`"
prettier/prettier
|
| 265 |
/> |
| Error |
Row 266, Column 1: "Replace `··········prettier/prettier
|
| Warning |
Row 266, Column 24: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| 266 |
<View style={{ flexDirection: 'row' }}> |
| Error |
Row 267, Column 1: "Replace `············prettier/prettier
|
| 267 |
<MaterialIcons onPress={async () => { |
| Error |
Row 268, Column 1: "Replace `··············setRecording(false)` with `··················setRecording(false);`"
prettier/prettier
|
| Warning |
Row 268, Column 34: "Missing semicolon."
semi
|
| 268 |
setRecording(false) |
| Error |
Row 269, Column 1: "Replace `··············onStopRecord(false)` with `··················onStopRecord(false);`"
prettier/prettier
|
| Warning |
Row 269, Column 34: "Missing semicolon."
semi
|
| 269 |
onStopRecord(false) |
| Error |
Row 270, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| 270 |
//const path = await stopRecording(); |
| Error |
Row 271, Column 13: "Replace `}}·name='close'·size={mvs(30)}·color={colors.white}` with `····}}⏎················name="close"⏎················size={mvs(30)}⏎················color={colors.white}⏎·············`"
prettier/prettier
|
| Warning |
Row 271, Column 21: "Unexpected usage of singlequote."
jsx-quotes
|
| 271 |
}} name='close' size={mvs(30)} color={colors.white} /> |
| Error |
Row 272, Column 1: "Replace `············prettier/prettier
|
| 272 |
<MaterialIcons onPress={async () => { |
| Error |
Row 273, Column 15: "Replace `setRecording(false)` with `····setRecording(false);`"
prettier/prettier
|
| Warning |
Row 273, Column 34: "Missing semicolon."
semi
|
| 273 |
setRecording(false) |
| Error |
Row 274, Column 1: "Replace `··············onStopRecord(true)` with `··················onStopRecord(true);`"
prettier/prettier
|
| Warning |
Row 274, Column 33: "Missing semicolon."
semi
|
| 274 |
onStopRecord(true) |
| Error |
Row 275, Column 1: "Insert `····`"
prettier/prettier
|
| 275 |
// const path = await stopRecording(); |
| Error |
Row 276, Column 15: "Insert `····`"
prettier/prettier
|
| 276 |
// onStop(path); |
| Error |
Row 277, Column 13: "Replace `}}·name='check'·size={mvs(30)}·color={colors.white}·style={{·marginLeft:·mvs(20)·}}` with `····}}⏎················name="check"⏎················size={mvs(30)}⏎················color={colors.white}⏎················style={{marginLeft:·mvs(20)}}⏎·············`"
prettier/prettier
|
| Warning |
Row 277, Column 21: "Unexpected usage of singlequote."
jsx-quotes
|
| 277 |
}} name='check' size={mvs(30)} color={colors.white} style={{ marginLeft: mvs(20) }} /> |
| Error |
Row 278, Column 1: "Insert `··`"
prettier/prettier
|
| 278 |
</View> |
| Error |
Row 279, Column 1: "Replace `⏎⏎` with `··`"
prettier/prettier
|
| 279 |
|
| 280 |
|
| 281 |
</View> |
| Error |
Row 282, Column 9: "Replace `:` with `)·:·(`"
prettier/prettier
|
| 282 |
: |
| Error |
Row 283, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 283 |
<> |
| Error |
Row 284, Column 1: "Insert `··`"
prettier/prettier
|
| 284 |
<TouchableOpacity onPress={onPlus}> |
| Error |
Row 285, Column 13: "Insert `··`"
prettier/prettier
|
| 285 |
<Plus /> |
| Error |
Row 286, Column 1: "Insert `··`"
prettier/prettier
|
| 286 |
</TouchableOpacity> |
| Error |
Row 287, Column 1: "Insert `··`"
prettier/prettier
|
| 287 |
<View |
| Error |
Row 288, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 288, Column 20: "Inline style: {
width: '85%',
justifyContent: 'space-between',
alignItems: 'center',
flexDirection: 'row'
}"
react-native/no-inline-styles
|
| 288 |
style={{ |
| Error |
Row 289, Column 1: "Insert `··`"
prettier/prettier
|
| 289 |
marginHorizontal: mvs(10), |
| Error |
Row 290, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 290 |
backgroundColor: colors.secondary, |
| Error |
Row 291, Column 15: "Insert `··`"
prettier/prettier
|
| 291 |
width: '85%', |
| Error |
Row 292, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 292 |
borderRadius: mvs(10), |
| Error |
Row 293, Column 15: "Insert `··`"
prettier/prettier
|
| 293 |
height: mvs(52), |
| Error |
Row 294, Column 1: "Insert `··`"
prettier/prettier
|
| 294 |
paddingHorizontal: mvs(9), |
| Error |
Row 295, Column 15: "Insert `··`"
prettier/prettier
|
| 295 |
justifyContent: 'space-between', |
| Error |
Row 296, Column 1: "Insert `··`"
prettier/prettier
|
| 296 |
alignItems: 'center', |
| Error |
Row 297, Column 15: "Insert `··`"
prettier/prettier
|
| 297 |
flexDirection: 'row', |
| Error |
Row 298, Column 13: "Insert `··`"
prettier/prettier
|
| 298 |
}}> |
| Error |
Row 299, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 299 |
<TextInput |
| Error |
Row 300, Column 1: "Insert `··`"
prettier/prettier
|
| 300 |
onChangeText={onChangeText} |
| Error |
Row 301, Column 1: "Replace `··············placeholderTextColor·=·` with `················placeholderTextColor=`"
prettier/prettier
|
| 301 |
placeholderTextColor = {colors.input_placehoder} |
| Error |
Row 302, Column 1: "Replace `··············style={{·width:·'90%',·color:·colors.typeHeader·` with `················style={{width:·'90%',·color:·colors.typeHeader`"
prettier/prettier
|
| Warning |
Row 302, Column 22: "Inline style: { width: '90%' }"
react-native/no-inline-styles
|
| 302 |
style={{ width: '90%', color: colors.typeHeader }} |
| Error |
Row 303, Column 1: "Insert `··`"
prettier/prettier
|
| 303 |
placeholder={'Type a Message …'} |
| Error |
Row 304, Column 15: "Insert `··`"
prettier/prettier
|
| 304 |
value={value} |
| Error |
Row 305, Column 15: "Insert `··`"
prettier/prettier
|
| 305 |
multiline |
| Error |
Row 306, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 306 |
onFocus={onFocus} |
| Error |
Row 307, Column 13: "Insert `··`"
prettier/prettier
|
| 307 |
/> |
| Error |
Row 308, Column 13: "Replace `{⏎··············` with `··{`"
prettier/prettier
|
| 308 |
{ |
| 309 |
send ? ( |
| 310 |
<TouchableOpacity |
| 311 |
onPress={() => { |
| 312 |
onSendMessage(); |
| 313 |
}}> |
| 314 |
<MaterialIcons |
| 315 |
color={colors.primary} |
| 316 |
name={'send'} |
| 317 |
size={mvs(20)} |
| 318 |
/> |
| 319 |
</TouchableOpacity> |
| 320 |
) : ( |
| 321 |
<Pressable |
| 322 |
onPress={() => { |
| 323 |
setRecording(true); |
| 324 |
setTimer({ |
| 325 |
...timer, |
| Error |
Row 326, Column 29: "Insert `,`"
prettier/prettier
|
| Warning |
Row 326, Column 29: "Missing trailing comma."
comma-dangle
|
| 326 |
sec: 0 |
| Error |
Row 327, Column 23: "Insert `;`"
prettier/prettier
|
| Warning |
Row 327, Column 23: "Missing semicolon."
semi
|
| 327 |
}) |
| Error |
Row 328, Column 36: "Insert `;`"
prettier/prettier
|
| Warning |
Row 328, Column 36: "Missing semicolon."
semi
|
| 328 |
onStartRecord() |
| 329 |
}}> |
| 330 |
<MicroPhone /> |
| 331 |
</Pressable> |
| Error |
Row 332, Column 16: "Insert `}`"
prettier/prettier
|
| 332 |
) |
| Error |
Row 333, Column 13: "Replace `}` with ``"
prettier/prettier
|
| 333 |
} |
| Error |
Row 334, Column 13: "Delete `View`"
prettier/prettier
|
| 334 |
</View> |
| Error |
Row 335, Column 9: "Replace `>` with `)`"
prettier/prettier
|
| 335 |
</>} |
| Warning |
Row 336, Column 10: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 336, Column 10: "Delete `·`"
prettier/prettier
|
| 336 |
</> |
| 337 |
{/* : |
| 338 |
<View style = {{ |
| 339 |
height : mvs(52), |
| 340 |
width : '100%', |
| 341 |
justifyContent:'center', |
| 342 |
alignItems:'center', |
| 343 |
}}> |
| 344 |
<Medium |
| 345 |
label = "Chat Ended." |
| 346 |
style = {{ |
| 347 |
color : colors.pink |
| 348 |
}} |
| 349 |
/> |
| Warning |
Row 350, Column 14: "Trailing spaces not allowed."
no-trailing-spaces
|
| 350 |
</View> |
| 351 |
} */} |
| 352 |
</View> |
| 353 |
); |
| 354 |
}; |
| 355 |
export default InputToolbar; |
| 356 |
const styles = StyleSheet.create({ |
| 357 |
CONTAINER: { |
| 358 |
//position: 'absolute', |
| 359 |
backgroundColor: colors.white, |
| 360 |
bottom: mvs(10), |
| 361 |
width: '100%', |
| 362 |
justifyContent: 'space-between', |
| 363 |
flexDirection: 'row', |
| 364 |
alignItems: 'center', |
| 365 |
paddingHorizontal: mvs(22), |
| 366 |
//backgroundColor:'red' |
| 367 |
//borderWidth : 1 |
| 368 |
}, |
| 369 |
ROW: { |
| 370 |
flexDirection: 'row', |
| 371 |
justifyContent: 'space-between', |
| 372 |
alignItems: 'center', |
| 373 |
}, |
| 374 |
footer: { |
| 375 |
color: colors.headerTitle, |
| 376 |
fontSize: mvs(13), |
| 377 |
alignSelf: 'center', |
| 378 |
}, |
| 379 |
}); |
| 380 |
|
|
|
|
/src/components/molecules/chat_card/notification-card.js
|
14 problems (9 errors, 5 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·TouchableOpacity,·View·` with `StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| Error |
Row 3, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 21, Column 24: "Replace `·onPress={onPress}·style={[styles.container,·{·borderWidth:·counter·>·0·?·0·:·StyleSheet.hairlineWidth,·borderColor:·colors.lightgrey2,·backgroundColor:·counter·>·0·?·colors.secondary·:·colors.white,·}` with `⏎········onPress={onPress}⏎········style={[⏎··········styles.container,⏎··········{⏎············borderWidth:·counter·>·0·?·0·:·StyleSheet.hairlineWidth,⏎············borderColor:·colors.lightgrey2,⏎············backgroundColor:·counter·>·0·?·colors.secondary·:·colors.white,⏎··········},⏎········`"
prettier/prettier
|
| Warning |
Row 21, Column 69: "Inline style: { borderWidth: 'counter > 0 ? 0 : StyleSheet.hairlineWidth' }"
react-native/no-inline-styles
|
| Warning |
Row 21, Column 222: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 23, Column 14: "Replace `·style={[styles.innerContainer,·{·justifyContent:·'space-between'·` with `⏎··········style={[styles.innerContainer,·{justifyContent:·'space-between'`"
prettier/prettier
|
| Warning |
Row 23, Column 46: "Inline style: { justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Error |
Row 26, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 33, Column 14: "Replace `·style={{·width:·'27%',·flexDirection:·'row',·alignItems:·'flex-start',·justifyContent:·'flex-end',` with `⏎··········style={{⏎············width:·'27%',⏎············flexDirection:·'row',⏎············alignItems:·'flex-start',⏎············justifyContent:·'flex-end',⏎·········`"
prettier/prettier
|
| Warning |
Row 33, Column 22: "Inline style: {
width: '27%',
flexDirection: 'row',
alignItems: 'flex-start',
justifyContent: 'flex-end'
}"
react-native/no-inline-styles
|
| Warning |
Row 33, Column 112: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 46, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 51, Column 36: "Delete `⏎`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·TouchableOpacity,·View·` with `StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| 2 |
import { StyleSheet, TouchableOpacity, View } from 'react-native'; |
| Error |
Row 3, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 3 |
import { connect } from 'react-redux'; |
| 4 |
import colors from '../../../config/colors'; |
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 5 |
import { mvs } from '../../../config/metrices'; |
| 6 |
import Regular from '../../../presentation/typography/regular-text'; |
| 7 |
import ImagePlaceholder from '../../atoms/Placeholder'; |
| 8 |
|
| 9 |
const NotificationCard = ({ |
| 10 |
user_img, |
| 11 |
user_name, |
| 12 |
message, |
| 13 |
time, |
| 14 |
counter, |
| 15 |
onPress, |
| 16 |
langauge, |
| 17 |
...props |
| 18 |
}) => { |
| 19 |
return ( |
| 20 |
<View> |
| Error |
Row 21, Column 24: "Replace `·onPress={onPress}·style={[styles.container,·{·borderWidth:·counter·>·0·?·0·:·StyleSheet.hairlineWidth,·borderColor:·colors.lightgrey2,·backgroundColor:·counter·>·0·?·colors.secondary·:·colors.white,·}` with `⏎········onPress={onPress}⏎········style={[⏎··········styles.container,⏎··········{⏎············borderWidth:·counter·>·0·?·0·:·StyleSheet.hairlineWidth,⏎············borderColor:·colors.lightgrey2,⏎············backgroundColor:·counter·>·0·?·colors.secondary·:·colors.white,⏎··········},⏎········`"
prettier/prettier
|
| Warning |
Row 21, Column 69: "Inline style: { borderWidth: 'counter > 0 ? 0 : StyleSheet.hairlineWidth' }"
react-native/no-inline-styles
|
| Warning |
Row 21, Column 222: "Unexpected trailing comma."
comma-dangle
|
| 21 |
<TouchableOpacity onPress={onPress} style={[styles.container, { borderWidth: counter > 0 ? 0 : StyleSheet.hairlineWidth, borderColor: colors.lightgrey2, backgroundColor: counter > 0 ? colors.secondary : colors.white, }]}> |
| 22 |
<ImagePlaceholder bg_img={user_img} containerStyle={styles.dp} /> |
| Error |
Row 23, Column 14: "Replace `·style={[styles.innerContainer,·{·justifyContent:·'space-between'·` with `⏎··········style={[styles.innerContainer,·{justifyContent:·'space-between'`"
prettier/prettier
|
| Warning |
Row 23, Column 46: "Inline style: { justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| 23 |
<View style={[styles.innerContainer, { justifyContent: 'space-between' }]}> |
| 24 |
<Regular label={user_name} style={[styles.name]} /> |
| 25 |
<Regular |
| Error |
Row 26, Column 1: "Insert `··`"
prettier/prettier
|
| 26 |
// numberOfLines={1} |
| 27 |
label={message} |
| 28 |
style={{ |
| 29 |
...styles.message, |
| 30 |
}} |
| 31 |
/> |
| 32 |
</View> |
| Error |
Row 33, Column 14: "Replace `·style={{·width:·'27%',·flexDirection:·'row',·alignItems:·'flex-start',·justifyContent:·'flex-end',` with `⏎··········style={{⏎············width:·'27%',⏎············flexDirection:·'row',⏎············alignItems:·'flex-start',⏎············justifyContent:·'flex-end',⏎·········`"
prettier/prettier
|
| Warning |
Row 33, Column 22: "Inline style: {
width: '27%',
flexDirection: 'row',
alignItems: 'flex-start',
justifyContent: 'flex-end'
}"
react-native/no-inline-styles
|
| Warning |
Row 33, Column 112: "Unexpected trailing comma."
comma-dangle
|
| 33 |
<View style={{ width: '27%', flexDirection: 'row', alignItems: 'flex-start', justifyContent: 'flex-end', }}> |
| 34 |
<Regular label={time} style={styles.time} /> |
| 35 |
{/* {counter > 0 && ( |
| 36 |
isMessageTab?<View style={styles.counterContainer}> |
| 37 |
<Medium label={counter} style={styles.counter} /> |
| 38 |
</View>:null |
| 39 |
)} */} |
| 40 |
</View> |
| 41 |
</TouchableOpacity> |
| 42 |
</View> |
| 43 |
); |
| 44 |
}; |
| 45 |
|
| Error |
Row 46, Column 1: "Delete `⏎`"
prettier/prettier
|
| 46 |
|
| 47 |
export const mapStateToProps = state => ({ |
| 48 |
langauge: state.common?.langauge, |
| 49 |
}); |
| 50 |
|
| Error |
Row 51, Column 36: "Delete `⏎`"
prettier/prettier
|
| 51 |
export const mapDispatchToProps = { |
| 52 |
}; |
| 53 |
export default connect(mapStateToProps, mapDispatchToProps)(NotificationCard); |
| 54 |
|
| 55 |
const styles = StyleSheet.create({ |
| 56 |
container: { |
| 57 |
width: '100%', |
| 58 |
flexDirection: 'row', |
| 59 |
marginBottom: mvs(15), |
| 60 |
padding: mvs(10), |
| 61 |
borderRadius: mvs(10), |
| 62 |
}, |
| 63 |
dp: { |
| 64 |
height: mvs(46), |
| 65 |
width: mvs(50), |
| 66 |
borderRadius: mvs(8), |
| 67 |
}, |
| 68 |
innerContainer: { |
| 69 |
flex: 1, |
| 70 |
marginLeft: mvs(10), |
| 71 |
justifyContent: 'space-between', |
| 72 |
}, |
| 73 |
name: { |
| 74 |
fontSize: mvs(15), |
| 75 |
color: colors.headerTitle, |
| 76 |
}, |
| 77 |
message: { |
| 78 |
fontSize: mvs(13), |
| 79 |
color: colors.primary, |
| 80 |
}, |
| 81 |
time: { |
| 82 |
fontSize: mvs(10), |
| 83 |
color: colors.message, |
| 84 |
}, |
| 85 |
counterContainer: { |
| 86 |
height: mvs(21), |
| 87 |
width: mvs(21), |
| 88 |
borderRadius: mvs(21 / 2), |
| 89 |
backgroundColor: colors.primary, |
| 90 |
justifyContent: 'center', |
| 91 |
alignItems: 'center', |
| 92 |
}, |
| 93 |
counter: { |
| 94 |
fontSize: mvs(12), |
| 95 |
color: colors.white, |
| 96 |
}, |
| 97 |
line: { |
| 98 |
width: '81%', |
| 99 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 100 |
borderColor: colors.price_border, |
| 101 |
marginTop: mvs(15), |
| 102 |
alignSelf: 'flex-end', |
| 103 |
}, |
| 104 |
}); |
| 105 |
|
|
|
|
/src/components/molecules/chat_card/order-status-card.js
|
67 problems (47 errors, 20 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·View,·Text,·StyleSheet·` with `View,·Text,·StyleSheet`"
prettier/prettier
|
| Warning |
Row 2, Column 16: "'Text' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 8, Column 23: "Replace `·index·` with `index`"
prettier/prettier
|
| Warning |
Row 10, Column 12: "Inline style: { flexDirection: 'row', justifyContent: 'space-between', width: '23%' }"
react-native/no-inline-styles
|
| Error |
Row 59, Column 5: "Delete `··`"
prettier/prettier
|
| Error |
Row 60, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 61, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 62, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 63, Column 10: "Replace `·data·` with `data`"
prettier/prettier
|
| Warning |
Row 63, Column 11: "'data' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 76, Column 21: "Replace `·lineHeight:·mvs(21),·color:·colors.typeHeader·` with `lineHeight:·mvs(21),·color:·colors.typeHeader`"
prettier/prettier
|
| Error |
Row 80, Column 21: "Replace `·lineHeight:·mvs(21),·color:·colors.lightgrey2·` with `lineHeight:·mvs(21),·color:·colors.lightgrey2`"
prettier/prettier
|
| Error |
Row 86, Column 21: "Replace `·color:·colors.primary,·marginTop:·mvs(3)·` with `color:·colors.primary,·marginTop:·mvs(3)`"
prettier/prettier
|
| Error |
Row 90, Column 21: "Replace `·color:·colors.primary,·marginTop:·mvs(3)·` with `color:·colors.primary,·marginTop:·mvs(3)`"
prettier/prettier
|
| Warning |
Row 103, Column 22: "Inline style: { flexDirection: 'row', alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 103, Column 23: "Replace `·flexDirection:·'row',·alignSelf:·'center'·` with `flexDirection:·'row',·alignSelf:·'center'`"
prettier/prettier
|
| Warning |
Row 113, Column 18: "Inline style: { flexDirection: 'row', width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 113, Column 19: "Replace `·flexDirection:·'row',·width:·'100%',·marginTop:·-mvs(4.5)·` with `flexDirection:·'row',·width:·'100%',·marginTop:·-mvs(4.5)`"
prettier/prettier
|
| Warning |
Row 114, Column 24: "Inline style: { width: '25%', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 114, Column 25: "Replace `·width:·'25%',·alignItems:·'center'·` with `width:·'25%',·alignItems:·'center'`"
prettier/prettier
|
| Warning |
Row 119, Column 58: "Operator '>=' must be spaced."
space-infix-ops
|
| Error |
Row 119, Column 60: "Insert `·`"
prettier/prettier
|
| Warning |
Row 121, Column 62: "Operator '<' must be spaced."
space-infix-ops
|
| Error |
Row 121, Column 63: "Insert `·`"
prettier/prettier
|
| Error |
Row 122, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 123, Column 1: "Replace `····················` with `··················`"
prettier/prettier
|
| Warning |
Row 127, Column 24: "Inline style: { width: '25%', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 127, Column 25: "Replace `·width:·'25%',·alignItems:·'center'·` with `width:·'25%',·alignItems:·'center'`"
prettier/prettier
|
| Warning |
Row 134, Column 32: "Operator '>=' must be spaced."
space-infix-ops
|
| Error |
Row 134, Column 34: "Insert `·`"
prettier/prettier
|
| Error |
Row 135, Column 21: "Replace `activeStep·===·'disputed'·&&·dispute_type·===·'IMAGE'` with `(activeStep·===·'disputed'·&&·dispute_type·===·'IMAGE')`"
prettier/prettier
|
| Error |
Row 136, Column 21: "Replace `activeStep·===·'disputed'·&&dispute_type·===·'RECIEPT'` with `(activeStep·===·'disputed'·&&·dispute_type·===·'RECIEPT')`"
prettier/prettier
|
| Warning |
Row 136, Column 47: "Operator '&&' must be spaced."
space-infix-ops
|
| Error |
Row 137, Column 21: "Replace `activeStep·===·'disputed'·&&dispute_type·===·'DISPUTE_DELIVERY'` with `(activeStep·===·'disputed'·&&⏎······················dispute_type·===·'DISPUTE_DELIVERY')`"
prettier/prettier
|
| Warning |
Row 137, Column 47: "Operator '&&' must be spaced."
space-infix-ops
|
| Error |
Row 138, Column 1: "Replace `····················` with `··················`"
prettier/prettier
|
| Error |
Row 139, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 140, Column 1: "Replace `······················activeStep·>=` with `····················activeStep·>=·`"
prettier/prettier
|
| Warning |
Row 140, Column 34: "Operator '>=' must be spaced."
space-infix-ops
|
| Error |
Row 141, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 142, Column 19: "Delete `····`"
prettier/prettier
|
| Error |
Row 143, Column 1: "Replace `······················` with `··················`"
prettier/prettier
|
| Warning |
Row 147, Column 24: "Inline style: { width: '25%', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 147, Column 25: "Replace `·width:·'25%',·alignItems:·'center'·` with `width:·'25%',·alignItems:·'center'`"
prettier/prettier
|
| Warning |
Row 154, Column 32: "Operator '>=' must be spaced."
space-infix-ops
|
| Error |
Row 154, Column 34: "Insert `·`"
prettier/prettier
|
| Error |
Row 155, Column 21: "Replace `activeStep·===·'disputed'·&&··dispute_type·===·'RECIEPT'` with `(activeStep·===·'disputed'·&&·dispute_type·===·'RECIEPT')`"
prettier/prettier
|
| Error |
Row 156, Column 21: "Replace `activeStep·===·'disputed'·&&··dispute_type·===·'DISPUTE_DELIVERY'` with `(activeStep·===·'disputed'·&&⏎······················dispute_type·===·'DISPUTE_DELIVERY')`"
prettier/prettier
|
| Error |
Row 157, Column 1: "Replace `····················` with `··················`"
prettier/prettier
|
| Error |
Row 158, Column 1: "Replace `····················` with `··················`"
prettier/prettier
|
| Error |
Row 159, Column 21: "Replace `··activeStep·>=` with `activeStep·>=·`"
prettier/prettier
|
| Warning |
Row 159, Column 34: "Operator '>=' must be spaced."
space-infix-ops
|
| Error |
Row 160, Column 1: "Replace `······················` with `····················`"
prettier/prettier
|
| Error |
Row 161, Column 19: "Delete `····`"
prettier/prettier
|
| Error |
Row 162, Column 1: "Delete `····`"
prettier/prettier
|
| Warning |
Row 166, Column 24: "Inline style: { width: '25%', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 166, Column 25: "Replace `·width:·'25%',·alignItems:·'center'·` with `width:·'25%',·alignItems:·'center'`"
prettier/prettier
|
| Error |
Row 173, Column 19: "Delete `··`"
prettier/prettier
|
| Error |
Row 174, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 175, Column 21: "Replace `··activeStep·>=` with `activeStep·>=·`"
prettier/prettier
|
| Warning |
Row 175, Column 34: "Operator '>=' must be spaced."
space-infix-ops
|
| Error |
Row 176, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 177, Column 19: "Delete `····`"
prettier/prettier
|
| Error |
Row 178, Column 1: "Delete `····`"
prettier/prettier
|
| Warning |
Row 186, Column 12: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 187, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·Text,·StyleSheet·` with `View,·Text,·StyleSheet`"
prettier/prettier
|
| Warning |
Row 2, Column 16: "'Text' is defined but never used."
no-unused-vars
|
| 2 |
import { View, Text, StyleSheet } from 'react-native'; |
| 3 |
import colors from '../../../config/colors'; |
| Error |
Row 4, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 4 |
import { mvs } from '../../../config/metrices'; |
| 5 |
import Medium from '../../../presentation/typography/medium-text'; |
| 6 |
import Regular from '../../../presentation/typography/regular-text'; |
| 7 |
import OrderStatus from '../../atoms/OrderStatus'; |
| Error |
Row 8, Column 23: "Replace `·index·` with `index`"
prettier/prettier
|
| 8 |
const DotttedLine = ({ index }) => ( |
| 9 |
<View |
| Warning |
Row 10, Column 12: "Inline style: { flexDirection: 'row', justifyContent: 'space-between', width: '23%' }"
react-native/no-inline-styles
|
| 10 |
style={{ |
| 11 |
flexDirection: 'row', |
| 12 |
justifyContent: 'space-between', |
| 13 |
width: '23%', |
| 14 |
marginHorizontal: mvs(3), |
| 15 |
}}> |
| 16 |
{Array(15) |
| 17 |
.fill() |
| 18 |
.map(ele => ( |
| 19 |
<View |
| 20 |
style={{ |
| 21 |
height: mvs(1), |
| 22 |
borderRadius: mvs(1), |
| 23 |
width: mvs(2.5), |
| 24 |
marginBottom: mvs(2), |
| 25 |
backgroundColor: colors.typeHeader, |
| 26 |
}} |
| 27 |
/> |
| 28 |
))} |
| 29 |
{/* <View style={{ height: mvs(1), borderRadius: mvs(1), width: mvs(4), backgroundColor: colors.typeHeader }} /> */} |
| 30 |
</View> |
| 31 |
); |
| 32 |
|
| 33 |
const OrderStatusCard = props => { |
| 34 |
// const { } = props || {}; |
| 35 |
const {active_chat, message} = props || {}; |
| 36 |
|
| 37 |
// console.log(active_chat?.data) |
| 38 |
// const active_chat = { |
| 39 |
// order: { |
| 40 |
// is_buyer: true, |
| 41 |
// order_id: 4, |
| 42 |
// order_reward: "USD 65", |
| 43 |
// order_shop_name: "Samsung galaxy s5", |
| 44 |
// order_step: "order_step_3", |
| 45 |
// type_verbose: 'PRODUCT_IMAGE' |
| 46 |
// } |
| 47 |
// }; |
| 48 |
|
| 49 |
// const message = { |
| 50 |
// type_verbose: 'PRODUCT_IMAGE' |
| 51 |
// } |
| 52 |
// console.log(props) |
| 53 |
const activeStep = active_chat?.order?.order_step?.includes('_') |
| 54 |
? active_chat?.order?.order_step?.split('_')[2] * 1 |
| 55 |
: active_chat?.order?.order_step?.toLowerCase(); |
| 56 |
const dispute_type = message?.type_verbose?.startsWith('PRODUCT_IMAGE') |
| 57 |
? 'IMAGE' |
| 58 |
: message?.type_verbose?.startsWith('RECEIPT_IMAGE') |
| Error |
Row 59, Column 5: "Delete `··`"
prettier/prettier
|
| 59 |
? 'RECIEPT' |
| Error |
Row 60, Column 1: "Delete `··`"
prettier/prettier
|
| 60 |
: message?.type_verbose?.startsWith('MAP') |
| Error |
Row 61, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 61 |
? 'DISPUTE_DELIVERY' |
| Error |
Row 62, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 62 |
: ''; |
| Error |
Row 63, Column 10: "Replace `·data·` with `data`"
prettier/prettier
|
| Warning |
Row 63, Column 11: "'data' is assigned a value but never used."
no-unused-vars
|
| 63 |
const { data } = active_chat; |
| 64 |
// console.log('activeStep :: ', activeStep); |
| 65 |
// console.log('dispute_type :: ', dispute_type); |
| 66 |
return ( |
| 67 |
<View style={[styles.CONTAINER]}> |
| 68 |
<View style={[styles.LEFT_CONTAINER, styles.ROW]}> |
| 69 |
<View> |
| 70 |
<Regular |
| 71 |
label={ |
| 72 |
active_chat?.order?.order_shop_name?.length > 27 |
| 73 |
? `${active_chat?.order?.order_shop_name?.substring(0, 27)} ...` |
| 74 |
: active_chat?.order?.order_shop_name |
| 75 |
} |
| Error |
Row 76, Column 21: "Replace `·lineHeight:·mvs(21),·color:·colors.typeHeader·` with `lineHeight:·mvs(21),·color:·colors.typeHeader`"
prettier/prettier
|
| 76 |
style={{ lineHeight: mvs(21), color: colors.typeHeader }} |
| 77 |
/> |
| 78 |
<Regular |
| 79 |
label={''} |
| Error |
Row 80, Column 21: "Replace `·lineHeight:·mvs(21),·color:·colors.lightgrey2·` with `lineHeight:·mvs(21),·color:·colors.lightgrey2`"
prettier/prettier
|
| 80 |
style={{ lineHeight: mvs(21), color: colors.lightgrey2 }} |
| 81 |
/> |
| 82 |
</View> |
| 83 |
<View> |
| 84 |
<Regular |
| 85 |
label={'Reward'} |
| Error |
Row 86, Column 21: "Replace `·color:·colors.primary,·marginTop:·mvs(3)·` with `color:·colors.primary,·marginTop:·mvs(3)`"
prettier/prettier
|
| 86 |
style={{ color: colors.primary, marginTop: mvs(3) }} |
| 87 |
/> |
| 88 |
<Medium |
| 89 |
label={active_chat?.order?.order_reward} |
| Error |
Row 90, Column 21: "Replace `·color:·colors.primary,·marginTop:·mvs(3)·` with `color:·colors.primary,·marginTop:·mvs(3)`"
prettier/prettier
|
| 90 |
style={{ color: colors.primary, marginTop: mvs(3) }} |
| 91 |
/> |
| 92 |
</View> |
| 93 |
</View> |
| 94 |
<View |
| 95 |
style={{ |
| 96 |
borderWidth: StyleSheet.hairlineWidth, |
| 97 |
marginTop: mvs(20), |
| 98 |
borderColor: colors.doted, |
| 99 |
borderRadius: mvs(10), |
| 100 |
paddingVertical: mvs(10), |
| 101 |
paddingHorizontal: mvs(13), |
| 102 |
}}> |
| Warning |
Row 103, Column 22: "Inline style: { flexDirection: 'row', alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 103, Column 23: "Replace `·flexDirection:·'row',·alignSelf:·'center'·` with `flexDirection:·'row',·alignSelf:·'center'`"
prettier/prettier
|
| 103 |
<View style={{ flexDirection: 'row', alignSelf: 'center' }}> |
| 104 |
{Array(3) |
| 105 |
.fill() |
| 106 |
.map((e, index) => ( |
| 107 |
<> |
| 108 |
<DotttedLine key={index} index={index} /> |
| 109 |
</> |
| 110 |
))} |
| 111 |
</View> |
| 112 |
<View |
| Warning |
Row 113, Column 18: "Inline style: { flexDirection: 'row', width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 113, Column 19: "Replace `·flexDirection:·'row',·width:·'100%',·marginTop:·-mvs(4.5)·` with `flexDirection:·'row',·width:·'100%',·marginTop:·-mvs(4.5)`"
prettier/prettier
|
| 113 |
style={{ flexDirection: 'row', width: '100%', marginTop: -mvs(4.5) }}> |
| Warning |
Row 114, Column 24: "Inline style: { width: '25%', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 114, Column 25: "Replace `·width:·'25%',·alignItems:·'center'·` with `width:·'25%',·alignItems:·'center'`"
prettier/prettier
|
| 114 |
<View style={{ width: '25%', alignItems: 'center' }}> |
| 115 |
<OrderStatus |
| 116 |
label={'Offer Approved'} |
| 117 |
//(activeStep === 'disputed' && dispute_type==='IMAGE') ? 'disputed' : |
| 118 |
level={ |
| Warning |
Row 119, Column 58: "Operator '>=' must be spaced."
space-infix-ops
|
| Error |
Row 119, Column 60: "Insert `·`"
prettier/prettier
|
| 119 |
activeStep === 'completed' || activeStep >=1 || dispute_type |
| 120 |
? 'completed' |
| Warning |
Row 121, Column 62: "Operator '<' must be spaced."
space-infix-ops
|
| Error |
Row 121, Column 63: "Insert `·`"
prettier/prettier
|
| 121 |
: activeStep !== 'completed' && activeStep <2 |
| Error |
Row 122, Column 1: "Delete `··`"
prettier/prettier
|
| 122 |
? 'active' |
| Error |
Row 123, Column 1: "Replace `····················` with `··················`"
prettier/prettier
|
| 123 |
: 0 |
| 124 |
} |
| 125 |
/> |
| 126 |
</View> |
| Warning |
Row 127, Column 24: "Inline style: { width: '25%', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 127, Column 25: "Replace `·width:·'25%',·alignItems:·'center'·` with `width:·'25%',·alignItems:·'center'`"
prettier/prettier
|
| 127 |
<View style={{ width: '25%', alignItems: 'center' }}> |
| 128 |
<OrderStatus |
| 129 |
label={'Product Approved'} //activeStep === 'completed' || activeStep >=5 |
| 130 |
level={ |
| 131 |
activeStep === 'disputed' && dispute_type === 'IMAGE' |
| 132 |
? 'disputed' |
| 133 |
: activeStep === 'completed' || |
| Warning |
Row 134, Column 32: "Operator '>=' must be spaced."
space-infix-ops
|
| Error |
Row 134, Column 34: "Insert `·`"
prettier/prettier
|
| 134 |
activeStep >=3 || |
| Error |
Row 135, Column 21: "Replace `activeStep·===·'disputed'·&&·dispute_type·===·'IMAGE'` with `(activeStep·===·'disputed'·&&·dispute_type·===·'IMAGE')`"
prettier/prettier
|
| 135 |
activeStep === 'disputed' && dispute_type === 'IMAGE' || |
| Error |
Row 136, Column 21: "Replace `activeStep·===·'disputed'·&&dispute_type·===·'RECIEPT'` with `(activeStep·===·'disputed'·&&·dispute_type·===·'RECIEPT')`"
prettier/prettier
|
| Warning |
Row 136, Column 47: "Operator '&&' must be spaced."
space-infix-ops
|
| 136 |
activeStep === 'disputed' &&dispute_type === 'RECIEPT' || |
| Error |
Row 137, Column 21: "Replace `activeStep·===·'disputed'·&&dispute_type·===·'DISPUTE_DELIVERY'` with `(activeStep·===·'disputed'·&&⏎······················dispute_type·===·'DISPUTE_DELIVERY')`"
prettier/prettier
|
| Warning |
Row 137, Column 47: "Operator '&&' must be spaced."
space-infix-ops
|
| 137 |
activeStep === 'disputed' &&dispute_type === 'DISPUTE_DELIVERY' |
| Error |
Row 138, Column 1: "Replace `····················` with `··················`"
prettier/prettier
|
| 138 |
? 'completed' |
| Error |
Row 139, Column 1: "Delete `··`"
prettier/prettier
|
| 139 |
: activeStep !== 'completed' && |
| Error |
Row 140, Column 1: "Replace `······················activeStep·>=` with `····················activeStep·>=·`"
prettier/prettier
|
| Warning |
Row 140, Column 34: "Operator '>=' must be spaced."
space-infix-ops
|
| 140 |
activeStep >=1 && |
| Error |
Row 141, Column 1: "Delete `··`"
prettier/prettier
|
| 141 |
activeStep <= 4 |
| Error |
Row 142, Column 19: "Delete `····`"
prettier/prettier
|
| 142 |
? 'active' |
| Error |
Row 143, Column 1: "Replace `······················` with `··················`"
prettier/prettier
|
| 143 |
: 0 |
| 144 |
} |
| 145 |
/> |
| 146 |
</View> |
| Warning |
Row 147, Column 24: "Inline style: { width: '25%', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 147, Column 25: "Replace `·width:·'25%',·alignItems:·'center'·` with `width:·'25%',·alignItems:·'center'`"
prettier/prettier
|
| 147 |
<View style={{ width: '25%', alignItems: 'center' }}> |
| 148 |
<OrderStatus |
| 149 |
label={'Receipt Approved'} |
| 150 |
level={ |
| 151 |
activeStep === 'disputed' && dispute_type === 'RECIEPT' |
| 152 |
? 'disputed' |
| 153 |
: activeStep === 'completed' || |
| Warning |
Row 154, Column 32: "Operator '>=' must be spaced."
space-infix-ops
|
| Error |
Row 154, Column 34: "Insert `·`"
prettier/prettier
|
| 154 |
activeStep >=5 || |
| Error |
Row 155, Column 21: "Replace `activeStep·===·'disputed'·&&··dispute_type·===·'RECIEPT'` with `(activeStep·===·'disputed'·&&·dispute_type·===·'RECIEPT')`"
prettier/prettier
|
| 155 |
activeStep === 'disputed' && dispute_type === 'RECIEPT' || |
| Error |
Row 156, Column 21: "Replace `activeStep·===·'disputed'·&&··dispute_type·===·'DISPUTE_DELIVERY'` with `(activeStep·===·'disputed'·&&⏎······················dispute_type·===·'DISPUTE_DELIVERY')`"
prettier/prettier
|
| 156 |
activeStep === 'disputed' && dispute_type === 'DISPUTE_DELIVERY' |
| Error |
Row 157, Column 1: "Replace `····················` with `··················`"
prettier/prettier
|
| 157 |
? 'completed' |
| Error |
Row 158, Column 1: "Replace `····················` with `··················`"
prettier/prettier
|
| 158 |
: activeStep !== 'completed' && |
| Error |
Row 159, Column 21: "Replace `··activeStep·>=` with `activeStep·>=·`"
prettier/prettier
|
| Warning |
Row 159, Column 34: "Operator '>=' must be spaced."
space-infix-ops
|
| 159 |
activeStep >=3 && |
| Error |
Row 160, Column 1: "Replace `······················` with `····················`"
prettier/prettier
|
| 160 |
activeStep <= 6 |
| Error |
Row 161, Column 19: "Delete `····`"
prettier/prettier
|
| 161 |
? 'active' |
| Error |
Row 162, Column 1: "Delete `····`"
prettier/prettier
|
| 162 |
: 0 |
| 163 |
} |
| 164 |
/> |
| 165 |
</View> |
| Warning |
Row 166, Column 24: "Inline style: { width: '25%', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 166, Column 25: "Replace `·width:·'25%',·alignItems:·'center'·` with `width:·'25%',·alignItems:·'center'`"
prettier/prettier
|
| 166 |
<View style={{ width: '25%', alignItems: 'center' }}> |
| 167 |
<OrderStatus |
| 168 |
label={'Delivery Confirmed'} |
| 169 |
level={ |
| 170 |
activeStep === 'disputed' && dispute_type === 'DISPUTE_DELIVERY' |
| 171 |
? 'disputed' |
| 172 |
: activeStep === 'completed' || activeStep > 8 |
| Error |
Row 173, Column 19: "Delete `··`"
prettier/prettier
|
| 173 |
? 'completed' |
| Error |
Row 174, Column 1: "Delete `··`"
prettier/prettier
|
| 174 |
: activeStep !== 'completed' && |
| Error |
Row 175, Column 21: "Replace `··activeStep·>=` with `activeStep·>=·`"
prettier/prettier
|
| Warning |
Row 175, Column 34: "Operator '>=' must be spaced."
space-infix-ops
|
| 175 |
activeStep >=5 && |
| Error |
Row 176, Column 1: "Delete `··`"
prettier/prettier
|
| 176 |
activeStep <= 8 |
| Error |
Row 177, Column 19: "Delete `····`"
prettier/prettier
|
| 177 |
? 'active' |
| Error |
Row 178, Column 1: "Delete `····`"
prettier/prettier
|
| 178 |
: 0 |
| 179 |
} |
| 180 |
/> |
| 181 |
</View> |
| 182 |
{/* <OrderStatus label={'Approve Product'} level={2} /> |
| 183 |
<OrderStatus label={'Approve Product'} level={2} /> |
| 184 |
<OrderStatus label={'Approve Product'} level={2} /> */} |
| 185 |
</View> |
| Warning |
Row 186, Column 12: "Trailing spaces not allowed."
no-trailing-spaces
|
| 186 |
{/* |
| Warning |
Row 187, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| 187 |
// |
| 188 |
<DotttedLine /> |
| 189 |
<OrderStatus label={'Approve Receipt'} level={1} /> |
| 190 |
<DotttedLine /> |
| 191 |
<OrderStatus label={'Confirm Delivery'} level={0} /> */} |
| 192 |
</View> |
| 193 |
</View> |
| 194 |
); |
| 195 |
}; |
| 196 |
export default OrderStatusCard; |
| 197 |
const styles = StyleSheet.create({ |
| 198 |
CONTAINER: { |
| 199 |
paddingHorizontal: mvs(22), |
| 200 |
backgroundColor: colors.white, |
| 201 |
// borderBottomLeftRadius: mvs(20), |
| 202 |
// borderBottomRightRadius: mvs(20), |
| 203 |
}, |
| 204 |
LEFT_CONTAINER: { |
| 205 |
// width: '45%', |
| 206 |
}, |
| 207 |
ROW: { |
| 208 |
flexDirection: 'row', |
| 209 |
justifyContent: 'space-between', |
| 210 |
}, |
| 211 |
DOT: { |
| 212 |
marginTop: -mvs(5), |
| 213 |
height: mvs(12), |
| 214 |
width: mvs(12), |
| 215 |
borderColor: colors.price_border, |
| 216 |
borderRadius: mvs(6), |
| 217 |
}, |
| 218 |
}); |
| 219 |
|
|
|
|
/src/components/molecules/chat_card/product-status-card.js
|
83 problems (47 errors, 36 warnings)
|
| Severity |
Rule |
| Warning |
Row 4, Column 3: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 3: "'Image' is defined but never used."
no-unused-vars
|
| Warning |
Row 8, Column 3: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Error |
Row 11, Column 9: "Replace `DCross,·Play2,·RCross,·Tick` with `⏎··DCross,⏎··Play2,⏎··RCross,⏎··Tick,⏎`"
prettier/prettier
|
| Warning |
Row 11, Column 9: "'DCross' is defined but never used."
no-unused-vars
|
| Warning |
Row 11, Column 24: "'RCross' is defined but never used."
no-unused-vars
|
| Warning |
Row 11, Column 32: "'Tick' is defined but never used."
no-unused-vars
|
| Warning |
Row 12, Column 9: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Error |
Row 17, Column 65: "Insert `;`"
prettier/prettier
|
| Warning |
Row 17, Column 65: "Missing semicolon."
semi
|
| Error |
Row 18, Column 66: "Delete `⏎⏎`"
prettier/prettier
|
| Error |
Row 37, Column 1: "Delete `⏎··⏎··⏎`"
prettier/prettier
|
| Warning |
Row 38, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 39, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 40, Column 21: "["seened"] is better written in dot notation."
dot-notation
|
| Warning |
Row 41, Column 24: "["delivered"] is better written in dot notation."
dot-notation
|
| Warning |
Row 42, Column 9: "'Sent' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 42, Column 21: "["sent"] is better written in dot notation."
dot-notation
|
| Error |
Row 42, Column 28: "Insert `;`"
prettier/prettier
|
| Warning |
Row 42, Column 28: "Missing semicolon."
semi
|
| Warning |
Row 48, Column 9: "Inline style: { justifyContent: "!showStatus ? 'flex-end' : 'space-between'" }"
react-native/no-inline-styles
|
| Warning |
Row 56, Column 22: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 58, Column 26: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 70, Column 20: "Inline style: {
borderWidth: 1,
justifyContent: 'center',
alignItems: 'center',
overflow: 'hidden'
}"
react-native/no-inline-styles
|
| Error |
Row 80, Column 30: "Insert `·`"
prettier/prettier
|
| Error |
Row 81, Column 26: "Insert `·`"
prettier/prettier
|
| Error |
Row 82, Column 23: "Delete `·`"
prettier/prettier
|
| Error |
Row 85, Column 21: "Replace `?` with `·?·(`"
prettier/prettier
|
| Warning |
Row 85, Column 21: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 86, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 87, Column 1: "Replace `············size·=·{video` with `················size={video·`"
prettier/prettier
|
| Warning |
Row 87, Column 26: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 88, Column 1: "Replace `············color·=·` with `················color=`"
prettier/prettier
|
| Error |
Row 89, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 90, Column 13: "Replace `:··` with `)·:·(`"
prettier/prettier
|
| Warning |
Row 90, Column 14: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 91, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 92, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 93, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 93, Column 31: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 94, Column 13: "Replace `/>` with `··/>⏎············)`"
prettier/prettier
|
| Error |
Row 95, Column 14: "Replace `(!sending·&&·video)·&&` with `!sending·&&·video·&&·(⏎··············`"
prettier/prettier
|
| Warning |
Row 95, Column 34: "Operator '&&' must be spaced."
space-infix-ops
|
| Error |
Row 96, Column 1: "Replace `············height·=·` with `················height=`"
prettier/prettier
|
| Error |
Row 97, Column 1: "Replace `············width·=·` with `················width=`"
prettier/prettier
|
| Error |
Row 98, Column 1: "Replace `············style·=·` with `················style=`"
prettier/prettier
|
| Warning |
Row 98, Column 22: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| Error |
Row 99, Column 1: "Replace `··············position·` with `··················position`"
prettier/prettier
|
| Error |
Row 100, Column 13: "Insert `····`"
prettier/prettier
|
| Error |
Row 101, Column 13: "Replace `/>` with `··/>⏎············)`"
prettier/prettier
|
| Warning |
Row 103, Column 29: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 109, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 109, Column 9: "Delete `····⏎········`"
prettier/prettier
|
| Warning |
Row 112, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 112, Column 1: "Delete `······`"
prettier/prettier
|
| Warning |
Row 113, Column 12: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 113, Column 12: "Delete `·`"
prettier/prettier
|
| Error |
Row 114, Column 7: "Replace `style·=·` with `··style=`"
prettier/prettier
|
| Warning |
Row 114, Column 16: "Inline style: { position: 'absolute', bottom: 0, right: 0, alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 115, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 116, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 117, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 118, Column 1: "Replace `········right:` with `··········right:·`"
prettier/prettier
|
| Error |
Row 119, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 120, Column 9: "Replace `alignItems·` with `··alignItems`"
prettier/prettier
|
| Error |
Row 121, Column 1: "Replace `········...timeContainerStyle` with `··········...timeContainerStyle,`"
prettier/prettier
|
| Warning |
Row 121, Column 30: "Missing trailing comma."
comma-dangle
|
| Error |
Row 122, Column 1: "Replace `······}}` with `········}}>`"
prettier/prettier
|
| Error |
Row 123, Column 7: "Delete `>⏎····`"
prettier/prettier
|
| Error |
Row 125, Column 9: "Replace `(item?.unread?·⏎··········⏎··········:⏎··········)⏎········}··⏎` with `··(item?.unread·?··:·)}⏎··`"
prettier/prettier
|
| Warning |
Row 125, Column 22: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 125, Column 23: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 129, Column 10: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 131, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 132, Column 1: "Replace `············style·=·` with `··········style=`"
prettier/prettier
|
| Error |
Row 133, Column 1: "Replace `··············color·` with `············color`"
prettier/prettier
|
| Error |
Row 134, Column 13: "Replace `··fontSize·` with `fontSize`"
prettier/prettier
|
| Error |
Row 135, Column 13: "Replace `··marginTop·:·mvs(10)` with `marginTop:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 135, Column 34: "Missing trailing comma."
comma-dangle
|
| Error |
Row 136, Column 11: "Delete `··`"
prettier/prettier
|
| Error |
Row 137, Column 1: "Replace `············` with `········`"
prettier/prettier
|
| Warning |
Row 138, Column 14: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 138, Column 14: "Delete `······`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| 2 |
import { |
| 3 |
View, |
| Warning |
Row 4, Column 3: "'Text' is defined but never used."
no-unused-vars
|
| 4 |
Text, |
| 5 |
StyleSheet, |
| Warning |
Row 6, Column 3: "'Image' is defined but never used."
no-unused-vars
|
| 6 |
Image, |
| 7 |
TouchableOpacity, |
| Warning |
Row 8, Column 3: "'ImageBackground' is defined but never used."
no-unused-vars
|
| 8 |
ImageBackground, |
| 9 |
ActivityIndicator, |
| 10 |
} from 'react-native'; |
| Error |
Row 11, Column 9: "Replace `DCross,·Play2,·RCross,·Tick` with `⏎··DCross,⏎··Play2,⏎··RCross,⏎··Tick,⏎`"
prettier/prettier
|
| Warning |
Row 11, Column 9: "'DCross' is defined but never used."
no-unused-vars
|
| Warning |
Row 11, Column 24: "'RCross' is defined but never used."
no-unused-vars
|
| Warning |
Row 11, Column 32: "'Tick' is defined but never used."
no-unused-vars
|
| 11 |
import {DCross, Play2, RCross, Tick} from '../../../../resource/assets/common-icons'; |
| Warning |
Row 12, Column 9: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 12 |
import {TAKE_TO_IMAGES} from '../../../../resource/assets/image_resouce'; |
| 13 |
import colors from '../../../config/colors'; |
| 14 |
import {mvs} from '../../../config/metrices'; |
| 15 |
import Regular from '../../../presentation/typography/regular-text'; |
| 16 |
import ImagePlaceholder from '../../atoms/Placeholder'; |
| Error |
Row 17, Column 65: "Insert `;`"
prettier/prettier
|
| Warning |
Row 17, Column 65: "Missing semicolon."
semi
|
| 17 |
import * as SVGS from '../../../../resource/assets/common-icons' |
| Error |
Row 18, Column 66: "Delete `⏎⏎`"
prettier/prettier
|
| 18 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
const ProductStatusCard = ({ |
| 23 |
label = label, |
| 24 |
item = {}, |
| 25 |
profileData = {}, |
| 26 |
status, |
| 27 |
showStatus, |
| 28 |
image, |
| 29 |
onPressImage, |
| 30 |
show_img = true, |
| 31 |
sending, |
| 32 |
style, |
| 33 |
imageStyle, |
| 34 |
video = false, |
| 35 |
timeContainerStyle, |
| 36 |
}) => { |
| Error |
Row 37, Column 1: "Delete `⏎··⏎··⏎`"
prettier/prettier
|
| 37 |
|
| Warning |
Row 38, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| 38 |
|
| Warning |
Row 39, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| 39 |
|
| Warning |
Row 40, Column 21: "["seened"] is better written in dot notation."
dot-notation
|
| 40 |
const Seen = SVGS['seened']; |
| Warning |
Row 41, Column 24: "["delivered"] is better written in dot notation."
dot-notation
|
| 41 |
const Deliver = SVGS['delivered']; |
| Warning |
Row 42, Column 9: "'Sent' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 42, Column 21: "["sent"] is better written in dot notation."
dot-notation
|
| Error |
Row 42, Column 28: "Insert `;`"
prettier/prettier
|
| Warning |
Row 42, Column 28: "Missing semicolon."
semi
|
| 42 |
const Sent = SVGS['sent'] |
| 43 |
|
| 44 |
return ( |
| 45 |
<View |
| 46 |
style={[ |
| 47 |
styles.CONTAINER, |
| Warning |
Row 48, Column 9: "Inline style: { justifyContent: "!showStatus ? 'flex-end' : 'space-between'" }"
react-native/no-inline-styles
|
| 48 |
{justifyContent: !showStatus ? 'flex-end' : 'space-between'}, |
| 49 |
style, |
| 50 |
]}> |
| 51 |
{showStatus && ( |
| 52 |
<Regular |
| 53 |
label={label} |
| 54 |
style={{ |
| 55 |
color: |
| Warning |
Row 56, Column 22: "Expected '===' and instead saw '=='."
eqeqeq
|
| 56 |
status == 'Rejected' |
| 57 |
? colors.pink |
| Warning |
Row 58, Column 26: "Expected '===' and instead saw '=='."
eqeqeq
|
| 58 |
: status == 'Disputed' |
| 59 |
? colors.disputes |
| 60 |
: colors.green, |
| 61 |
fontSize: mvs(12), |
| 62 |
}} |
| 63 |
/> |
| 64 |
)} |
| 65 |
{show_img && ( |
| 66 |
<View style={[styles.ROW, {}]}> |
| 67 |
<TouchableOpacity |
| 68 |
activeOpacity={1} |
| 69 |
onPress={onPressImage} |
| Warning |
Row 70, Column 20: "Inline style: {
borderWidth: 1,
justifyContent: 'center',
alignItems: 'center',
overflow: 'hidden'
}"
react-native/no-inline-styles
|
| 70 |
style={{ |
| 71 |
borderWidth: 1, |
| 72 |
borderColor: colors.primary, |
| 73 |
backgroundColor: colors.white, |
| 74 |
width: mvs(73), |
| 75 |
height: mvs(73), |
| 76 |
paddingVertical: mvs(5), |
| 77 |
paddingHorizontal: mvs(12), |
| 78 |
borderRadius: mvs(13), |
| 79 |
marginRight: mvs(19), |
| Error |
Row 80, Column 30: "Insert `·`"
prettier/prettier
|
| 80 |
justifyContent:'center', |
| Error |
Row 81, Column 26: "Insert `·`"
prettier/prettier
|
| 81 |
alignItems:'center', |
| Error |
Row 82, Column 23: "Delete `·`"
prettier/prettier
|
| 82 |
overflow : 'hidden', |
| 83 |
...imageStyle, |
| 84 |
}}> |
| Error |
Row 85, Column 21: "Replace `?` with `·?·(`"
prettier/prettier
|
| Warning |
Row 85, Column 21: "Operator '?' must be spaced."
space-infix-ops
|
| 85 |
{sending? |
| Error |
Row 86, Column 13: "Insert `··`"
prettier/prettier
|
| 86 |
<ActivityIndicator |
| Error |
Row 87, Column 1: "Replace `············size·=·{video` with `················size={video·`"
prettier/prettier
|
| Warning |
Row 87, Column 26: "Operator '?' must be spaced."
space-infix-ops
|
| 87 |
size = {video? 'large' : 'small'} |
| Error |
Row 88, Column 1: "Replace `············color·=·` with `················color=`"
prettier/prettier
|
| 88 |
color = {colors.primary} |
| Error |
Row 89, Column 13: "Insert `··`"
prettier/prettier
|
| 89 |
/> |
| Error |
Row 90, Column 13: "Replace `:··` with `)·:·(`"
prettier/prettier
|
| Warning |
Row 90, Column 14: "Trailing spaces not allowed."
no-trailing-spaces
|
| 90 |
: |
| Error |
Row 91, Column 13: "Insert `··`"
prettier/prettier
|
| 91 |
<ImagePlaceholder |
| Error |
Row 92, Column 15: "Insert `··`"
prettier/prettier
|
| 92 |
bg_img={image} |
| Error |
Row 93, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 93, Column 31: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| 93 |
containerStyle={{height: '100%', width: '100%'}} |
| Error |
Row 94, Column 13: "Replace `/>` with `··/>⏎············)`"
prettier/prettier
|
| 94 |
/>} |
| Error |
Row 95, Column 14: "Replace `(!sending·&&·video)·&&` with `!sending·&&·video·&&·(⏎··············`"
prettier/prettier
|
| Warning |
Row 95, Column 34: "Operator '&&' must be spaced."
space-infix-ops
|
| 95 |
{(!sending && video) &&<Play2 |
| Error |
Row 96, Column 1: "Replace `············height·=·` with `················height=`"
prettier/prettier
|
| 96 |
height = {mvs(50)} |
| Error |
Row 97, Column 1: "Replace `············width·=·` with `················width=`"
prettier/prettier
|
| 97 |
width = {mvs(50)} |
| Error |
Row 98, Column 1: "Replace `············style·=·` with `················style=`"
prettier/prettier
|
| Warning |
Row 98, Column 22: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| 98 |
style = {{ |
| Error |
Row 99, Column 1: "Replace `··············position·` with `··················position`"
prettier/prettier
|
| 99 |
position : 'absolute', |
| Error |
Row 100, Column 13: "Insert `····`"
prettier/prettier
|
| 100 |
}} |
| Error |
Row 101, Column 13: "Replace `/>` with `··/>⏎············)`"
prettier/prettier
|
| 101 |
/>} |
| 102 |
</TouchableOpacity> |
| Warning |
Row 103, Column 29: "Trailing spaces not allowed."
no-trailing-spaces
|
| 103 |
{/* {showStatus && |
| 104 |
<> |
| 105 |
{status == "Approved" && <Tick width={mvs(14)} height={mvs(18)} style={{marginLeft:mvs(5)}}/>} |
| 106 |
{status == "Rejected" && <RCross width={mvs(14)} height={mvs(18)} style={{marginLeft:mvs(5)}}/>} |
| 107 |
{status == "Disputed" && <DCross width={mvs(14)} height={mvs(18)} style={{marginLeft:mvs(5)}}/>} |
| 108 |
</>} */} |
| Warning |
Row 109, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 109, Column 9: "Delete `····⏎········`"
prettier/prettier
|
| 109 |
|
| 110 |
</View> |
| 111 |
)} |
| Warning |
Row 112, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 112, Column 1: "Delete `······`"
prettier/prettier
|
| 112 |
|
| Warning |
Row 113, Column 12: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 113, Column 12: "Delete `·`"
prettier/prettier
|
| 113 |
<View |
| Error |
Row 114, Column 7: "Replace `style·=·` with `··style=`"
prettier/prettier
|
| Warning |
Row 114, Column 16: "Inline style: { position: 'absolute', bottom: 0, right: 0, alignItems: 'center' }"
react-native/no-inline-styles
|
| 114 |
style = {{ |
| Error |
Row 115, Column 9: "Insert `··`"
prettier/prettier
|
| 115 |
position: 'absolute', |
| Error |
Row 116, Column 1: "Insert `··`"
prettier/prettier
|
| 116 |
bottom: 0, |
| Error |
Row 117, Column 9: "Insert `··`"
prettier/prettier
|
| 117 |
//borderWidth : 1, |
| Error |
Row 118, Column 1: "Replace `········right:` with `··········right:·`"
prettier/prettier
|
| 118 |
right:0, |
| Error |
Row 119, Column 1: "Insert `··`"
prettier/prettier
|
| 119 |
//width : mvs(50), |
| Error |
Row 120, Column 9: "Replace `alignItems·` with `··alignItems`"
prettier/prettier
|
| 120 |
alignItems : 'center', |
| Error |
Row 121, Column 1: "Replace `········...timeContainerStyle` with `··········...timeContainerStyle,`"
prettier/prettier
|
| Warning |
Row 121, Column 30: "Missing trailing comma."
comma-dangle
|
| 121 |
...timeContainerStyle |
| Error |
Row 122, Column 1: "Replace `······}}` with `········}}>`"
prettier/prettier
|
| 122 |
}} |
| Error |
Row 123, Column 7: "Delete `>⏎····`"
prettier/prettier
|
| 123 |
> |
| 124 |
{item?.owner_id === profileData?.id && |
| Error |
Row 125, Column 9: "Replace `(item?.unread?·⏎··········⏎··········:⏎··········)⏎········}··⏎` with `··(item?.unread·?··:·)}⏎··`"
prettier/prettier
|
| Warning |
Row 125, Column 22: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 125, Column 23: "Trailing spaces not allowed."
no-trailing-spaces
|
| 125 |
(item?.unread? |
| 126 |
<Deliver/> |
| 127 |
: |
| 128 |
<Seen/>) |
| Warning |
Row 129, Column 10: "Trailing spaces not allowed."
no-trailing-spaces
|
| 129 |
} |
| 130 |
<Regular |
| Error |
Row 131, Column 1: "Delete `··`"
prettier/prettier
|
| 131 |
label={TAKE_TO_CONSTANT.getConversationTime(item?.created_at)} |
| Error |
Row 132, Column 1: "Replace `············style·=·` with `··········style=`"
prettier/prettier
|
| 132 |
style = {{ |
| Error |
Row 133, Column 1: "Replace `··············color·` with `············color`"
prettier/prettier
|
| 133 |
color : colors.typeHeader, |
| Error |
Row 134, Column 13: "Replace `··fontSize·` with `fontSize`"
prettier/prettier
|
| 134 |
fontSize : mvs(10), |
| Error |
Row 135, Column 13: "Replace `··marginTop·:·mvs(10)` with `marginTop:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 135, Column 34: "Missing trailing comma."
comma-dangle
|
| 135 |
marginTop : mvs(10) |
| Error |
Row 136, Column 11: "Delete `··`"
prettier/prettier
|
| 136 |
}} |
| Error |
Row 137, Column 1: "Replace `············` with `········`"
prettier/prettier
|
| 137 |
/> |
| Warning |
Row 138, Column 14: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 138, Column 14: "Delete `······`"
prettier/prettier
|
| 138 |
</View> |
| 139 |
</View> |
| 140 |
); |
| 141 |
}; |
| 142 |
export default ProductStatusCard; |
| 143 |
const styles = StyleSheet.create({ |
| 144 |
CONTAINER: { |
| 145 |
flexDirection: 'row', |
| 146 |
//justifyContent:'space-between', |
| 147 |
alignItems: 'center', |
| 148 |
paddingRight: mvs(39), |
| 149 |
marginTop: mvs(15), |
| 150 |
//borderWidth : 1, |
| 151 |
}, |
| 152 |
ROW: { |
| 153 |
flexDirection: 'row', |
| 154 |
justifyContent: 'space-between', |
| 155 |
alignItems: 'center', |
| 156 |
// borderWidth : 1, |
| 157 |
}, |
| 158 |
}); |
| 159 |
|
|
|
|
/src/components/molecules/chat_card/share-location.js
|
93 problems (55 errors, 38 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| Error |
Row 2, Column 9: "Replace `·View,·Text,·StyleSheet,·Image,·ImageBackground,·TouchableOpacity,·ActivityIndicator·` with `⏎··View,⏎··Text,⏎··StyleSheet,⏎··Image,⏎··ImageBackground,⏎··TouchableOpacity,⏎··ActivityIndicator,⏎`"
prettier/prettier
|
| Warning |
Row 2, Column 16: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 34: "'Image' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 41: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Error |
Row 3, Column 9: "Replace `·DCross,·RCross,·Tick·` with `DCross,·RCross,·Tick`"
prettier/prettier
|
| Warning |
Row 3, Column 10: "'DCross' is defined but never used."
no-unused-vars
|
| Warning |
Row 3, Column 18: "'RCross' is defined but never used."
no-unused-vars
|
| Warning |
Row 3, Column 26: "'Tick' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Error |
Row 6, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 8, Column 18: "Replace `·Marker,·PROVIDER_GOOGLE·` with `Marker,·PROVIDER_GOOGLE`"
prettier/prettier
|
| Warning |
Row 8, Column 19: "'Marker' is defined but never used."
no-unused-vars
|
| Warning |
Row 8, Column 27: "'PROVIDER_GOOGLE' is defined but never used."
no-unused-vars
|
| Warning |
Row 9, Column 8: "'ImagePlaceholder' is defined but never used."
no-unused-vars
|
| Error |
Row 11, Column 65: "Insert `;`"
prettier/prettier
|
| Warning |
Row 11, Column 65: "Missing semicolon."
semi
|
| Warning |
Row 22, Column 21: "["seened"] is better written in dot notation."
dot-notation
|
| Warning |
Row 23, Column 24: "["delivered"] is better written in dot notation."
dot-notation
|
| Warning |
Row 24, Column 9: "'Sent' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 24, Column 21: "["sent"] is better written in dot notation."
dot-notation
|
| Error |
Row 24, Column 28: "Insert `;`"
prettier/prettier
|
| Warning |
Row 24, Column 28: "Missing semicolon."
semi
|
| Warning |
Row 26, Column 10: "'region' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 33, Column 2: "Insert `·`"
prettier/prettier
|
| Warning |
Row 37, Column 25: "Missing radix parameter."
radix
|
| Warning |
Row 39, Column 26: "Missing radix parameter."
radix
|
| Error |
Row 42, Column 14: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 46, Column 19: "Replace `·...styles.CONTAINER,·...style·` with `...styles.CONTAINER,·...style`"
prettier/prettier
|
| Warning |
Row 56, Column 24: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 56, Column 24: "Replace `·⏎······onPress·=·` with `⏎········onPress=`"
prettier/prettier
|
| Error |
Row 58, Column 7: "Replace `disabled·=·` with `··disabled=`"
prettier/prettier
|
| Error |
Row 59, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 60, Column 14: "Replace `·style={{·` with `⏎··········style={{`"
prettier/prettier
|
| Warning |
Row 60, Column 22: "Inline style: {
height: '100%',
overflow: 'hidden',
justifyContent: "item?.body === ''? 'center' : null",
alignItems: "item?.body === ''? 'center' : null",
borderWidth: "item?.body === ''? 1 : 0"
}"
react-native/no-inline-styles
|
| Warning |
Row 60, Column 23: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 61, Column 1: "Replace `··········width·:·mvs(120),·⏎··········height·` with `············width:·mvs(120),⏎············height`"
prettier/prettier
|
| Warning |
Row 61, Column 28: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 63, Column 1: "Replace `··········borderRadius:mvs(10)·,·⏎··········overflow:'hidden',·` with `············borderRadius:·mvs(10),⏎············overflow:·'hidden',`"
prettier/prettier
|
| Warning |
Row 63, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 64, Column 29: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 65, Column 11: "Replace `justifyContent·:·item?.body·===·''?·'center'·:·null,·` with `··justifyContent:·item?.body·===·''·?·'center'·:·null,`"
prettier/prettier
|
| Warning |
Row 65, Column 45: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 65, Column 63: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 66, Column 11: "Replace `alignItems·:·item?.body·===·''` with `··alignItems:·item?.body·===·''·`"
prettier/prettier
|
| Warning |
Row 66, Column 41: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 67, Column 1: "Replace `··········borderWidth·:·item?.body·===·''` with `············borderWidth:·item?.body·===·''·`"
prettier/prettier
|
| Warning |
Row 67, Column 42: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 68, Column 11: "Replace `borderColor·:·colors.lightgrey` with `··borderColor:·colors.lightgrey,`"
prettier/prettier
|
| Warning |
Row 68, Column 41: "Missing trailing comma."
comma-dangle
|
| Error |
Row 70, Column 1: "Replace `········{item?.body·!==·''·?·` with `··········{item?.body·!==·''·?·(⏎············`"
prettier/prettier
|
| Error |
Row 71, Column 1: "Insert `·····`"
prettier/prettier
|
| Error |
Row 72, Column 1: "Replace `··········initialRegion·=·` with `··············initialRegion=`"
prettier/prettier
|
| Error |
Row 73, Column 1: "Insert `······`"
prettier/prettier
|
| Error |
Row 74, Column 1: "Replace `··········` with `················`"
prettier/prettier
|
| Error |
Row 75, Column 1: "Insert `······`"
prettier/prettier
|
| Error |
Row 76, Column 11: "Insert `······`"
prettier/prettier
|
| Error |
Row 77, Column 1: "Replace `········` with `··············`"
prettier/prettier
|
| Error |
Row 78, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 79, Column 1: "Replace `··········style={{·flex·` with `··············style={{flex`"
prettier/prettier
|
| Warning |
Row 79, Column 18: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 80, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 81, Column 1: "Replace `··········` with `··············`"
prettier/prettier
|
| Error |
Row 82, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 83, Column 9: "Insert `····`"
prettier/prettier
|
| Error |
Row 84, Column 1: "Replace `········:` with `··········)·:·(`"
prettier/prettier
|
| Error |
Row 85, Column 1: "Replace `·······`"
prettier/prettier
|
| Error |
Row 88, Column 8: "Replace `/>⏎·······` with `···)`"
prettier/prettier
|
| Error |
Row 94, Column 29: "Replace `prettier/prettier
|
| Warning |
Row 94, Column 34: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 95, Column 1: "Replace `······style·=·` with `··········style=`"
prettier/prettier
|
| Warning |
Row 95, Column 16: "Inline style: { position: 'absolute', bottom: 0, right: 0, alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 96, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 97, Column 1: "Replace `········` with `············`"
prettier/prettier
|
| Error |
Row 98, Column 9: "Replace `right:` with `····right:·`"
prettier/prettier
|
| Error |
Row 99, Column 1: "Replace `········alignItems·` with `············alignItems`"
prettier/prettier
|
| Error |
Row 100, Column 1: "Replace `······}}` with `··········}}>`"
prettier/prettier
|
| Error |
Row 101, Column 7: "Replace `>⏎······` with `····`"
prettier/prettier
|
| Error |
Row 103, Column 9: "Replace `(item?.unread?·⏎··········⏎··········:⏎···········)` with `····(item?.unread·?··:·)}`"
prettier/prettier
|
| Warning |
Row 103, Column 22: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 103, Column 23: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 107, Column 1: "Replace `········}··⏎` with `····`"
prettier/prettier
|
| Warning |
Row 107, Column 10: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 110, Column 18: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 111, Column 20: "Delete `·`"
prettier/prettier
|
| Error |
Row 112, Column 23: "Delete `·`"
prettier/prettier
|
| Error |
Row 113, Column 24: "Replace `·:·mvs(10)` with `:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 113, Column 34: "Missing trailing comma."
comma-dangle
|
| Error |
Row 115, Column 11: "Delete `··`"
prettier/prettier
|
| Error |
Row 116, Column 1: "Replace `······}·` with `········⏎······)}`"
prettier/prettier
|
| Warning |
Row 116, Column 15: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 136, Column 27: "Delete `⏎`"
prettier/prettier
|
| Line |
Source |
| Error |
Row 1, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| 1 |
import React, { useState } from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·Text,·StyleSheet,·Image,·ImageBackground,·TouchableOpacity,·ActivityIndicator·` with `⏎··View,⏎··Text,⏎··StyleSheet,⏎··Image,⏎··ImageBackground,⏎··TouchableOpacity,⏎··ActivityIndicator,⏎`"
prettier/prettier
|
| Warning |
Row 2, Column 16: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 34: "'Image' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 41: "'ImageBackground' is defined but never used."
no-unused-vars
|
| 2 |
import { View, Text, StyleSheet, Image, ImageBackground, TouchableOpacity, ActivityIndicator } from 'react-native'; |
| Error |
Row 3, Column 9: "Replace `·DCross,·RCross,·Tick·` with `DCross,·RCross,·Tick`"
prettier/prettier
|
| Warning |
Row 3, Column 10: "'DCross' is defined but never used."
no-unused-vars
|
| Warning |
Row 3, Column 18: "'RCross' is defined but never used."
no-unused-vars
|
| Warning |
Row 3, Column 26: "'Tick' is defined but never used."
no-unused-vars
|
| 3 |
import { DCross, RCross, Tick } from '../../../../resource/assets/common-icons'; |
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 4 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce'; |
| 5 |
import colors from '../../../config/colors'; |
| Error |
Row 6, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 6 |
import { mvs } from '../../../config/metrices'; |
| 7 |
import Regular from '../../../presentation/typography/regular-text'; |
| Error |
Row 8, Column 18: "Replace `·Marker,·PROVIDER_GOOGLE·` with `Marker,·PROVIDER_GOOGLE`"
prettier/prettier
|
| Warning |
Row 8, Column 19: "'Marker' is defined but never used."
no-unused-vars
|
| Warning |
Row 8, Column 27: "'PROVIDER_GOOGLE' is defined but never used."
no-unused-vars
|
| 8 |
import MapView, { Marker, PROVIDER_GOOGLE } from 'react-native-maps'; |
| Warning |
Row 9, Column 8: "'ImagePlaceholder' is defined but never used."
no-unused-vars
|
| 9 |
import ImagePlaceholder from '../../atoms/Placeholder'; |
| 10 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| Error |
Row 11, Column 65: "Insert `;`"
prettier/prettier
|
| Warning |
Row 11, Column 65: "Missing semicolon."
semi
|
| 11 |
import * as SVGS from '../../../../resource/assets/common-icons' |
| 12 |
|
| 13 |
const ShareLocation = ({ |
| 14 |
label = 'Shared Delivery Location', |
| 15 |
item, |
| 16 |
profileData = {}, |
| 17 |
style, |
| 18 |
mapStyles, |
| 19 |
onPress, |
| 20 |
...props |
| 21 |
}) => { |
| Warning |
Row 22, Column 21: "["seened"] is better written in dot notation."
dot-notation
|
| 22 |
const Seen = SVGS['seened']; |
| Warning |
Row 23, Column 24: "["delivered"] is better written in dot notation."
dot-notation
|
| 23 |
const Deliver = SVGS['delivered']; |
| Warning |
Row 24, Column 9: "'Sent' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 24, Column 21: "["sent"] is better written in dot notation."
dot-notation
|
| Error |
Row 24, Column 28: "Insert `;`"
prettier/prettier
|
| Warning |
Row 24, Column 28: "Missing semicolon."
semi
|
| 24 |
const Sent = SVGS['sent'] |
| 25 |
// console.log(item); |
| Warning |
Row 26, Column 10: "'region' is assigned a value but never used."
no-unused-vars
|
| 26 |
const [region, setRegion] = useState({ |
| 27 |
latitude: 37.78825, |
| 28 |
latitudeDelta: 0.015, |
| 29 |
longitude: -122.4324, |
| 30 |
longitudeDelta: 0.0121, |
| 31 |
}); |
| 32 |
// {console.log('item::',item)} |
| Error |
Row 33, Column 2: "Insert `·`"
prettier/prettier
|
| 33 |
// const mapRef = React.useRef(null); |
| 34 |
|
| 35 |
React.useEffect(() => { |
| 36 |
setRegion({ |
| Warning |
Row 37, Column 25: "Missing radix parameter."
radix
|
| 37 |
latitude: item && parseInt(item?.body?.split(',')[0]), |
| 38 |
latitudeDelta: 0.015, |
| Warning |
Row 39, Column 26: "Missing radix parameter."
radix
|
| 39 |
longitude: item && parseInt(item?.body?.split(',')[1]), |
| 40 |
longitudeDelta: 0.0121, |
| 41 |
}); |
| Error |
Row 42, Column 14: "Delete `⏎`"
prettier/prettier
|
| 42 |
}, [item]); |
| 43 |
|
| 44 |
|
| 45 |
return ( |
| Error |
Row 46, Column 19: "Replace `·...styles.CONTAINER,·...style·` with `...styles.CONTAINER,·...style`"
prettier/prettier
|
| 46 |
<View style={{ ...styles.CONTAINER, ...style }}> |
| 47 |
{ |
| 48 |
<Regular |
| 49 |
label={item?.body !== '' ? label : ''} |
| 50 |
style={{ |
| 51 |
color: colors.green, |
| 52 |
fontSize: mvs(12), |
| 53 |
}} |
| 54 |
/> |
| 55 |
} |
| Warning |
Row 56, Column 24: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 56, Column 24: "Replace `·⏎······onPress·=·` with `⏎········onPress=`"
prettier/prettier
|
| 56 |
<TouchableOpacity |
| 57 |
onPress = {onPress} |
| Error |
Row 58, Column 7: "Replace `disabled·=·` with `··disabled=`"
prettier/prettier
|
| 58 |
disabled = {item?.body === ''} |
| Error |
Row 59, Column 1: "Insert `··`"
prettier/prettier
|
| 59 |
style={[styles.ROW, mapStyles]}> |
| Error |
Row 60, Column 14: "Replace `·style={{·` with `⏎··········style={{`"
prettier/prettier
|
| Warning |
Row 60, Column 22: "Inline style: {
height: '100%',
overflow: 'hidden',
justifyContent: "item?.body === ''? 'center' : null",
alignItems: "item?.body === ''? 'center' : null",
borderWidth: "item?.body === ''? 1 : 0"
}"
react-native/no-inline-styles
|
| Warning |
Row 60, Column 23: "Trailing spaces not allowed."
no-trailing-spaces
|
| 60 |
<View style={{ |
| Error |
Row 61, Column 1: "Replace `··········width·:·mvs(120),·⏎··········height·` with `············width:·mvs(120),⏎············height`"
prettier/prettier
|
| Warning |
Row 61, Column 28: "Trailing spaces not allowed."
no-trailing-spaces
|
| 61 |
width : mvs(120), |
| 62 |
height : '100%', |
| Error |
Row 63, Column 1: "Replace `··········borderRadius:mvs(10)·,·⏎··········overflow:'hidden',·` with `············borderRadius:·mvs(10),⏎············overflow:·'hidden',`"
prettier/prettier
|
| Warning |
Row 63, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| 63 |
borderRadius:mvs(10) , |
| Warning |
Row 64, Column 29: "Trailing spaces not allowed."
no-trailing-spaces
|
| 64 |
overflow:'hidden', |
| Error |
Row 65, Column 11: "Replace `justifyContent·:·item?.body·===·''?·'center'·:·null,·` with `··justifyContent:·item?.body·===·''·?·'center'·:·null,`"
prettier/prettier
|
| Warning |
Row 65, Column 45: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 65, Column 63: "Trailing spaces not allowed."
no-trailing-spaces
|
| 65 |
justifyContent : item?.body === ''? 'center' : null, |
| Error |
Row 66, Column 11: "Replace `alignItems·:·item?.body·===·''` with `··alignItems:·item?.body·===·''·`"
prettier/prettier
|
| Warning |
Row 66, Column 41: "Operator '?' must be spaced."
space-infix-ops
|
| 66 |
alignItems : item?.body === ''? 'center' : null, |
| Error |
Row 67, Column 1: "Replace `··········borderWidth·:·item?.body·===·''` with `············borderWidth:·item?.body·===·''·`"
prettier/prettier
|
| Warning |
Row 67, Column 42: "Operator '?' must be spaced."
space-infix-ops
|
| 67 |
borderWidth : item?.body === ''? 1 : 0, |
| Error |
Row 68, Column 11: "Replace `borderColor·:·colors.lightgrey` with `··borderColor:·colors.lightgrey,`"
prettier/prettier
|
| Warning |
Row 68, Column 41: "Missing trailing comma."
comma-dangle
|
| 68 |
borderColor : colors.lightgrey |
| 69 |
}}> |
| Error |
Row 70, Column 1: "Replace `········{item?.body·!==·''·?·` with `··········{item?.body·!==·''·?·(⏎············`"
prettier/prettier
|
| 70 |
{item?.body !== '' ? <MapView |
| Error |
Row 71, Column 1: "Insert `·····`"
prettier/prettier
|
| 71 |
// ref={mapRef} |
| Error |
Row 72, Column 1: "Replace `··········initialRegion·=·` with `··············initialRegion=`"
prettier/prettier
|
| 72 |
initialRegion = {{ |
| Error |
Row 73, Column 1: "Insert `······`"
prettier/prettier
|
| 73 |
latitude: item && parseFloat(item?.body?.split(',')[0]), |
| Error |
Row 74, Column 1: "Replace `··········` with `················`"
prettier/prettier
|
| 74 |
latitudeDelta: 0.015, |
| Error |
Row 75, Column 1: "Insert `······`"
prettier/prettier
|
| 75 |
longitude: item && parseFloat(item?.body?.split(',')[1]), |
| Error |
Row 76, Column 11: "Insert `······`"
prettier/prettier
|
| 76 |
longitudeDelta: 0.0121, |
| Error |
Row 77, Column 1: "Replace `········` with `··············`"
prettier/prettier
|
| 77 |
}} |
| Error |
Row 78, Column 1: "Insert `····`"
prettier/prettier
|
| 78 |
//scrollEnabled={false} |
| Error |
Row 79, Column 1: "Replace `··········style={{·flex·` with `··············style={{flex`"
prettier/prettier
|
| Warning |
Row 79, Column 18: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 79 |
style={{ flex : 1}} |
| Error |
Row 80, Column 1: "Insert `····`"
prettier/prettier
|
| 80 |
//zoomEnabled={false} |
| Error |
Row 81, Column 1: "Replace `··········` with `··············`"
prettier/prettier
|
| 81 |
// mapType='standard' |
| Error |
Row 82, Column 1: "Insert `····`"
prettier/prettier
|
| 82 |
//showsMyLocationButton={false} |
| Error |
Row 83, Column 9: "Insert `····`"
prettier/prettier
|
| 83 |
/> |
| Error |
Row 84, Column 1: "Replace `········:` with `··········)·:·(`"
prettier/prettier
|
| 84 |
: |
| Error |
Row 85, Column 1: "Replace `·······`"
prettier/prettier
|
| 85 |
<ActivityIndicator |
| 86 |
size = {'small'} |
| 87 |
color = {colors.primary} |
| Error |
Row 88, Column 8: "Replace `/>⏎·······` with `···)`"
prettier/prettier
|
| 88 |
/> |
| 89 |
} |
| 90 |
</View> |
| 91 |
{/* <View style={styles.pointer} /> */} |
| 92 |
</TouchableOpacity> |
| 93 |
|
| Error |
Row 94, Column 29: "Replace `prettier/prettier
|
| Warning |
Row 94, Column 34: "Trailing spaces not allowed."
no-trailing-spaces
|
| 94 |
{item?.body !== '' && <View |
| Error |
Row 95, Column 1: "Replace `······style·=·` with `··········style=`"
prettier/prettier
|
| Warning |
Row 95, Column 16: "Inline style: { position: 'absolute', bottom: 0, right: 0, alignItems: 'center' }"
react-native/no-inline-styles
|
| 95 |
style = {{ |
| Error |
Row 96, Column 1: "Insert `····`"
prettier/prettier
|
| 96 |
position: 'absolute', |
| Error |
Row 97, Column 1: "Replace `········` with `············`"
prettier/prettier
|
| 97 |
bottom: 0, |
| Error |
Row 98, Column 9: "Replace `right:` with `····right:·`"
prettier/prettier
|
| 98 |
right:0, |
| Error |
Row 99, Column 1: "Replace `········alignItems·` with `············alignItems`"
prettier/prettier
|
| 99 |
alignItems : 'center', |
| Error |
Row 100, Column 1: "Replace `······}}` with `··········}}>`"
prettier/prettier
|
| 100 |
}} |
| Error |
Row 101, Column 7: "Replace `>⏎······` with `····`"
prettier/prettier
|
| 101 |
> |
| 102 |
{item?.owner_id === profileData?.id && |
| Error |
Row 103, Column 9: "Replace `(item?.unread?·⏎··········⏎··········:⏎···········)` with `····(item?.unread·?··:·)}`"
prettier/prettier
|
| Warning |
Row 103, Column 22: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 103, Column 23: "Trailing spaces not allowed."
no-trailing-spaces
|
| 103 |
(item?.unread? |
| 104 |
<Deliver/> |
| 105 |
: |
| 106 |
<Seen/> ) |
| Error |
Row 107, Column 1: "Replace `········}··⏎` with `····`"
prettier/prettier
|
| Warning |
Row 107, Column 10: "Trailing spaces not allowed."
no-trailing-spaces
|
| 107 |
} |
| 108 |
<Regular |
| 109 |
label={TAKE_TO_CONSTANT.getConversationTime(item?.created_at)} |
| Error |
Row 110, Column 18: "Replace `·=·` with `=`"
prettier/prettier
|
| 110 |
style = {{ |
| Error |
Row 111, Column 20: "Delete `·`"
prettier/prettier
|
| 111 |
color : colors.typeHeader, |
| Error |
Row 112, Column 23: "Delete `·`"
prettier/prettier
|
| 112 |
fontSize : mvs(10), |
| Error |
Row 113, Column 24: "Replace `·:·mvs(10)` with `:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 113, Column 34: "Missing trailing comma."
comma-dangle
|
| 113 |
marginTop : mvs(10) |
| 114 |
}} |
| Error |
Row 115, Column 11: "Delete `··`"
prettier/prettier
|
| 115 |
/> |
| Error |
Row 116, Column 1: "Replace `······}·` with `········⏎······)}`"
prettier/prettier
|
| Warning |
Row 116, Column 15: "Trailing spaces not allowed."
no-trailing-spaces
|
| 116 |
</View>} |
| 117 |
</View> |
| 118 |
); |
| 119 |
}; |
| 120 |
export default ShareLocation; |
| 121 |
|
| 122 |
const styles = StyleSheet.create({ |
| 123 |
CONTAINER: { |
| 124 |
flexDirection: 'row', |
| 125 |
justifyContent: 'space-between', |
| 126 |
alignItems: 'center', |
| 127 |
marginTop: mvs(15), |
| 128 |
paddingRight: mvs(39), |
| 129 |
//borderWidth : 1, |
| 130 |
}, |
| 131 |
ROW: { |
| 132 |
borderWidth: 1, |
| 133 |
borderColor: colors.white, |
| 134 |
height: mvs(62), |
| 135 |
//width: mvs(120), |
| Error |
Row 136, Column 27: "Delete `⏎`"
prettier/prettier
|
| 136 |
// overflow: 'hidden', |
| 137 |
|
| 138 |
}, |
| 139 |
pointer: { |
| 140 |
height: mvs(10), |
| 141 |
width: mvs(10), |
| 142 |
position: 'absolute', |
| 143 |
backgroundColor: colors.primary, |
| 144 |
alignSelf: 'center', |
| 145 |
borderRadius: mvs(10 / 2), |
| 146 |
shadowColor: '#000', |
| 147 |
shadowOffset: { |
| 148 |
width: 0, |
| 149 |
height: 12, |
| 150 |
}, |
| 151 |
shadowOpacity: 0.58, |
| 152 |
shadowRadius: 16.0, |
| 153 |
|
| 154 |
elevation: 24, |
| 155 |
}, |
| 156 |
}); |
| 157 |
|
|
|
|
/src/components/molecules/country-picker/index.js
|
56 problems (38 errors, 18 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 1, Column 26: "Missing semicolon."
semi
|
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·Text,·View,·ImageBackground,·Image·}·from·'react-native'` with `StyleSheet,·Text,·View,·ImageBackground,·Image}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 2, Column 22: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 78: "Missing semicolon."
semi
|
| Error |
Row 3, Column 9: "Replace `·TAKE_TO_IMAGES·}·from·'../../../../resource/assets/image_resouce'` with `TAKE_TO_IMAGES}·from·'../../../../resource/assets/image_resouce';`"
prettier/prettier
|
| Warning |
Row 3, Column 75: "Missing semicolon."
semi
|
| Error |
Row 4, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 4, Column 44: "Missing semicolon."
semi
|
| Error |
Row 5, Column 9: "Replace `·mvs·}·from·'../../../config/metrices'` with `mvs}·from·'../../../config/metrices';`"
prettier/prettier
|
| Warning |
Row 5, Column 47: "Missing semicolon."
semi
|
| Error |
Row 6, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 6, Column 68: "Missing semicolon."
semi
|
| Error |
Row 8, Column 25: "Replace `flag·,·style,textStyle,·title·=·"Lebanon",·flagSource·=·TAKE_TO_IMAGES.placeholder,...props` with `⏎··flag,⏎··style,⏎··textStyle,⏎··title·=·'Lebanon',⏎··flagSource·=·TAKE_TO_IMAGES.placeholder,⏎··...props⏎`"
prettier/prettier
|
| Warning |
Row 8, Column 57: "Strings must use singlequote."
quotes
|
| Error |
Row 9, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 10, Column 1: "Replace `········prettier/prettier
|
| Error |
Row 11, Column 7: "Replace `··prettier/prettier
|
| Error |
Row 12, Column 1: "Replace `········{flag·&&·prettier/prettier
|
| Error |
Row 16, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 17, Column 19: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 18, Column 18: "Replace `·=·{{height·:·'100%',·width·` with `={{height:·'100%',·width`"
prettier/prettier
|
| Warning |
Row 18, Column 22: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 19, Column 1: "Replace `············/>····` with `··········/>`"
prettier/prettier
|
| Warning |
Row 19, Column 15: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 20, Column 1: "Replace `·············}` with `········`"
prettier/prettier
|
| Error |
Row 21, Column 5: "Replace `········` with `··)}⏎····`"
prettier/prettier
|
| Warning |
Row 21, Column 16: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 22, Column 3: "Replace `··)` with `);`"
prettier/prettier
|
| Warning |
Row 22, Column 6: "Missing semicolon."
semi
|
| Error |
Row 23, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 23, Column 2: "Missing semicolon."
semi
|
| Error |
Row 25, Column 29: "Insert `;`"
prettier/prettier
|
| Warning |
Row 25, Column 29: "Missing semicolon."
semi
|
| Error |
Row 28, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 29, Column 1: "Replace `········height·` with `····height`"
prettier/prettier
|
| Error |
Row 30, Column 5: "Replace `····width·:·"49%"` with `width:·'49%'`"
prettier/prettier
|
| Warning |
Row 30, Column 17: "Strings must use singlequote."
quotes
|
| Error |
Row 31, Column 1: "Replace `········borderRadius·` with `····borderRadius`"
prettier/prettier
|
| Error |
Row 32, Column 5: "Replace `····backgroundColor·` with `backgroundColor`"
prettier/prettier
|
| Error |
Row 33, Column 1: "Replace `········justifyContent·` with `····justifyContent`"
prettier/prettier
|
| Error |
Row 34, Column 1: "Replace `········paddingHorizontal·` with `····paddingHorizontal`"
prettier/prettier
|
| Error |
Row 35, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 36, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 37, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 38, Column 5: "Replace `····height·` with `height`"
prettier/prettier
|
| Error |
Row 39, Column 1: "Replace `········width·` with `····width`"
prettier/prettier
|
| Error |
Row 40, Column 1: "Replace `········borderRadius·:·mvs(23/` with `····borderRadius:·mvs(23·/·`"
prettier/prettier
|
| Warning |
Row 40, Column 30: "Operator '/' must be spaced."
space-infix-ops
|
| Error |
Row 41, Column 1: "Replace `········position·` with `····position`"
prettier/prettier
|
| Error |
Row 42, Column 5: "Replace `····right·` with `right`"
prettier/prettier
|
| Error |
Row 43, Column 1: "Replace `········overflow·:·'hidden'` with `····overflow:·'hidden',`"
prettier/prettier
|
| Warning |
Row 43, Column 28: "Missing trailing comma."
comma-dangle
|
| Error |
Row 44, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 45, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 45, Column 3: "Missing semicolon."
semi
|
| Line |
Source |
| Error |
Row 1, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 1, Column 26: "Missing semicolon."
semi
|
| 1 |
import React from 'react' |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·Text,·View,·ImageBackground,·Image·}·from·'react-native'` with `StyleSheet,·Text,·View,·ImageBackground,·Image}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 2, Column 22: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 78: "Missing semicolon."
semi
|
| 2 |
import { StyleSheet, Text, View, ImageBackground, Image } from 'react-native' |
| Error |
Row 3, Column 9: "Replace `·TAKE_TO_IMAGES·}·from·'../../../../resource/assets/image_resouce'` with `TAKE_TO_IMAGES}·from·'../../../../resource/assets/image_resouce';`"
prettier/prettier
|
| Warning |
Row 3, Column 75: "Missing semicolon."
semi
|
| 3 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce' |
| Error |
Row 4, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 4, Column 44: "Missing semicolon."
semi
|
| 4 |
import colors from '../../../config/colors' |
| Error |
Row 5, Column 9: "Replace `·mvs·}·from·'../../../config/metrices'` with `mvs}·from·'../../../config/metrices';`"
prettier/prettier
|
| Warning |
Row 5, Column 47: "Missing semicolon."
semi
|
| 5 |
import { mvs } from '../../../config/metrices' |
| Error |
Row 6, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 6, Column 68: "Missing semicolon."
semi
|
| 6 |
import Regular from '../../../presentation/typography/regular-text' |
| 7 |
|
| Error |
Row 8, Column 25: "Replace `flag·,·style,textStyle,·title·=·"Lebanon",·flagSource·=·TAKE_TO_IMAGES.placeholder,...props` with `⏎··flag,⏎··style,⏎··textStyle,⏎··title·=·'Lebanon',⏎··flagSource·=·TAKE_TO_IMAGES.placeholder,⏎··...props⏎`"
prettier/prettier
|
| Warning |
Row 8, Column 57: "Strings must use singlequote."
quotes
|
| 8 |
const CountryPicker = ({flag , style,textStyle, title = "Lebanon", flagSource = TAKE_TO_IMAGES.placeholder,...props}) => { |
| Error |
Row 9, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 9 |
return ( |
| Error |
Row 10, Column 1: "Replace `········prettier/prettier
|
| 10 |
<View style = {{...styles.mainContainer, ...style}}> |
| Error |
Row 11, Column 7: "Replace `··prettier/prettier
|
| 11 |
<Regular label = {title} style = {{fontSize : mvs(15), color : colors.primary, ...textStyle}}/> |
| Error |
Row 12, Column 1: "Replace `········{flag·&&·prettier/prettier
|
| 12 |
{flag && <ImageBackground |
| 13 |
source = {flagSource} |
| 14 |
style = {styles.flag} |
| 15 |
> |
| Error |
Row 16, Column 1: "Delete `··`"
prettier/prettier
|
| 16 |
<Image |
| Error |
Row 17, Column 19: "Replace `·=·` with `=`"
prettier/prettier
|
| 17 |
source = {TAKE_TO_IMAGES.flag1} |
| Error |
Row 18, Column 18: "Replace `·=·{{height·:·'100%',·width·` with `={{height:·'100%',·width`"
prettier/prettier
|
| Warning |
Row 18, Column 22: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| 18 |
style = {{height : '100%', width : '100%'}} |
| Error |
Row 19, Column 1: "Replace `············/>····` with `··········/>`"
prettier/prettier
|
| Warning |
Row 19, Column 15: "Trailing spaces not allowed."
no-trailing-spaces
|
| 19 |
/> |
| Error |
Row 20, Column 1: "Replace `·············}` with `········`"
prettier/prettier
|
| 20 |
</ImageBackground> } |
| Error |
Row 21, Column 5: "Replace `········` with `··)}⏎····`"
prettier/prettier
|
| Warning |
Row 21, Column 16: "Trailing spaces not allowed."
no-trailing-spaces
|
| 21 |
</View> |
| Error |
Row 22, Column 3: "Replace `··)` with `);`"
prettier/prettier
|
| Warning |
Row 22, Column 6: "Missing semicolon."
semi
|
| 22 |
) |
| Error |
Row 23, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 23, Column 2: "Missing semicolon."
semi
|
| 23 |
} |
| 24 |
|
| Error |
Row 25, Column 29: "Insert `;`"
prettier/prettier
|
| Warning |
Row 25, Column 29: "Missing semicolon."
semi
|
| 25 |
export default CountryPicker |
| 26 |
|
| 27 |
const styles = StyleSheet.create({ |
| Error |
Row 28, Column 3: "Delete `··`"
prettier/prettier
|
| 28 |
mainContainer: { |
| Error |
Row 29, Column 1: "Replace `········height·` with `····height`"
prettier/prettier
|
| 29 |
height : mvs(38), |
| Error |
Row 30, Column 5: "Replace `····width·:·"49%"` with `width:·'49%'`"
prettier/prettier
|
| Warning |
Row 30, Column 17: "Strings must use singlequote."
quotes
|
| 30 |
width : "49%", |
| Error |
Row 31, Column 1: "Replace `········borderRadius·` with `····borderRadius`"
prettier/prettier
|
| 31 |
borderRadius : mvs(10), |
| Error |
Row 32, Column 5: "Replace `····backgroundColor·` with `backgroundColor`"
prettier/prettier
|
| 32 |
backgroundColor : colors.secondary, |
| Error |
Row 33, Column 1: "Replace `········justifyContent·` with `····justifyContent`"
prettier/prettier
|
| 33 |
justifyContent : 'center', |
| Error |
Row 34, Column 1: "Replace `········paddingHorizontal·` with `····paddingHorizontal`"
prettier/prettier
|
| 34 |
paddingHorizontal : mvs(10), |
| Error |
Row 35, Column 5: "Delete `····`"
prettier/prettier
|
| 35 |
//paddingVertical : mvs(14) |
| Error |
Row 36, Column 3: "Delete `··`"
prettier/prettier
|
| 36 |
}, |
| Error |
Row 37, Column 1: "Delete `··`"
prettier/prettier
|
| 37 |
flag: { |
| Error |
Row 38, Column 5: "Replace `····height·` with `height`"
prettier/prettier
|
| 38 |
height : mvs(23), |
| Error |
Row 39, Column 1: "Replace `········width·` with `····width`"
prettier/prettier
|
| 39 |
width : mvs(23), |
| Error |
Row 40, Column 1: "Replace `········borderRadius·:·mvs(23/` with `····borderRadius:·mvs(23·/·`"
prettier/prettier
|
| Warning |
Row 40, Column 30: "Operator '/' must be spaced."
space-infix-ops
|
| 40 |
borderRadius : mvs(23/2), |
| Error |
Row 41, Column 1: "Replace `········position·` with `····position`"
prettier/prettier
|
| 41 |
position : 'absolute', |
| Error |
Row 42, Column 5: "Replace `····right·` with `right`"
prettier/prettier
|
| 42 |
right : mvs(10), |
| Error |
Row 43, Column 1: "Replace `········overflow·:·'hidden'` with `····overflow:·'hidden',`"
prettier/prettier
|
| Warning |
Row 43, Column 28: "Missing trailing comma."
comma-dangle
|
| 43 |
overflow : 'hidden' |
| Error |
Row 44, Column 3: "Delete `··`"
prettier/prettier
|
| 44 |
}, |
| Error |
Row 45, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 45, Column 3: "Missing semicolon."
semi
|
| 45 |
}) |
| 46 |
|
|
|
|
/src/components/molecules/create_order_policy/order-policy.js
|
212 problems (143 errors, 69 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 9: "Replace `·flatMapDeep·}·from·'lodash'` with `flatMapDeep}·from·'lodash';`"
prettier/prettier
|
| Warning |
Row 1, Column 10: "'flatMapDeep' is defined but never used."
no-unused-vars
|
| Warning |
Row 1, Column 37: "Missing semicolon."
semi
|
| Error |
Row 2, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 2, Column 26: "Missing semicolon."
semi
|
| Error |
Row 3, Column 9: "Replace `·Image,·StyleSheet,·Text,·View·}·from·'react-native'` with `Image,·StyleSheet,·Text,·View}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 3, Column 10: "'Image' is defined but never used."
no-unused-vars
|
| Warning |
Row 3, Column 29: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 3, Column 61: "Missing semicolon."
semi
|
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·}·from·'../../../../resource/assets/image_resouce'` with `TAKE_TO_IMAGES}·from·'../../../../resource/assets/image_resouce';`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 4, Column 75: "Missing semicolon."
semi
|
| Error |
Row 5, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 5, Column 44: "Missing semicolon."
semi
|
| Error |
Row 6, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 7, Column 64: "Insert `;`"
prettier/prettier
|
| Warning |
Row 7, Column 64: "Missing semicolon."
semi
|
| Error |
Row 8, Column 66: "Insert `;`"
prettier/prettier
|
| Warning |
Row 8, Column 66: "Missing semicolon."
semi
|
| Error |
Row 9, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 9, Column 68: "Missing semicolon."
semi
|
| Error |
Row 10, Column 75: "Insert `;`"
prettier/prettier
|
| Warning |
Row 10, Column 75: "Missing semicolon."
semi
|
| Error |
Row 11, Column 38: "Delete `·`"
prettier/prettier
|
| Error |
Row 12, Column 3: "Replace `··const·Guard·=·Images['guard']` with `const·Guard·=·Images['guard'];`"
prettier/prettier
|
| Warning |
Row 12, Column 26: "["guard"] is better written in dot notation."
dot-notation
|
| Warning |
Row 12, Column 34: "Missing semicolon."
semi
|
| Error |
Row 13, Column 3: "Replace `··const·Lock·=·Images['lock']` with `const·Lock·=·Images['lock'];`"
prettier/prettier
|
| Warning |
Row 13, Column 25: "["lock"] is better written in dot notation."
dot-notation
|
| Warning |
Row 13, Column 32: "Missing semicolon."
semi
|
| Error |
Row 14, Column 3: "Replace `··const·Check·=·Images['check']` with `const·Check·=·Images['check'];`"
prettier/prettier
|
| Warning |
Row 14, Column 26: "["check"] is better written in dot notation."
dot-notation
|
| Warning |
Row 14, Column 34: "Missing semicolon."
semi
|
| Error |
Row 15, Column 3: "Replace `··const·Care·=·Images['care']` with `const·Care·=·Images['care'];`"
prettier/prettier
|
| Warning |
Row 15, Column 25: "["care"] is better written in dot notation."
dot-notation
|
| Warning |
Row 15, Column 32: "Missing semicolon."
semi
|
| Error |
Row 16, Column 1: "Replace `····const·Visa·=·Images['visa']` with `··const·Visa·=·Images['visa'];`"
prettier/prettier
|
| Warning |
Row 16, Column 25: "["visa"] is better written in dot notation."
dot-notation
|
| Warning |
Row 16, Column 32: "Missing semicolon."
semi
|
| Error |
Row 17, Column 1: "Replace `····const·Master·=·Images['master']` with `··const·Master·=·Images['master'];`"
prettier/prettier
|
| Warning |
Row 17, Column 27: "["master"] is better written in dot notation."
dot-notation
|
| Warning |
Row 17, Column 36: "Missing semicolon."
semi
|
| Error |
Row 18, Column 1: "Replace `····const·American·=·Images['amercian']` with `··const·American·=·Images['amercian'];`"
prettier/prettier
|
| Warning |
Row 18, Column 29: "["amercian"] is better written in dot notation."
dot-notation
|
| Warning |
Row 18, Column 40: "Missing semicolon."
semi
|
| Error |
Row 19, Column 1: "Replace `····const·Knet·=·Images['knet']` with `··const·Knet·=·Images['knet'];`"
prettier/prettier
|
| Warning |
Row 19, Column 25: "["knet"] is better written in dot notation."
dot-notation
|
| Warning |
Row 19, Column 32: "Missing semicolon."
semi
|
| Error |
Row 20, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 21, Column 1: "Replace `········prettier/prettier
|
| Error |
Row 22, Column 1: "Replace `··········prettier/prettier
|
| Error |
Row 23, Column 1: "Replace `··············` with `········`"
prettier/prettier
|
| Warning |
Row 23, Column 89: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 24, Column 9: "Replace `·····prettier/prettier
|
| Error |
Row 25, Column 1: "Replace `·················prettier/prettier
|
| Error |
Row 26, Column 1: "Replace `·················prettier/prettier
|
| Error |
Row 27, Column 1: "Replace `·················prettier/prettier
|
| Error |
Row 28, Column 1: "Replace `·················prettier/prettier
|
| Error |
Row 29, Column 9: "Delete `·····`"
prettier/prettier
|
| Error |
Row 30, Column 1: "Replace `··········` with `······`"
prettier/prettier
|
| Error |
Row 32, Column 1: "Replace `··········prettier/prettier
|
| Error |
Row 33, Column 9: "Replace `····prettier/prettier
|
| Warning |
Row 33, Column 28: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| Error |
Row 34, Column 11: "Replace `····prettier/prettier
|
| Error |
Row 35, Column 9: "Delete `····`"
prettier/prettier
|
| Warning |
Row 36, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 36, Column 1: "Delete `·················`"
prettier/prettier
|
| Error |
Row 37, Column 1: "Replace `············prettier/prettier
|
| Error |
Row 38, Column 11: "Replace `·····` with `prettier/prettier
|
| Warning |
Row 38, Column 32: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 38, Column 90: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 39, Column 11: "Replace `······⏎··············` with `/>⏎··········⏎········`"
prettier/prettier
|
| Warning |
Row 39, Column 32: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 39, Column 139: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 40, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 41, Column 1: "Replace `··········` with `······`"
prettier/prettier
|
| Error |
Row 43, Column 1: "Replace `··········prettier/prettier
|
| Error |
Row 44, Column 1: "Replace `············prettier/prettier
|
| Warning |
Row 44, Column 28: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| Error |
Row 45, Column 1: "Replace `··············prettier/prettier
|
| Error |
Row 46, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 48, Column 1: "Replace `············prettier/prettier
|
| Error |
Row 49, Column 1: "Replace `···············` with `··········`"
prettier/prettier
|
| Warning |
Row 49, Column 31: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 49, Column 79: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 50, Column 1: "Replace `················⏎··············` with `··········⏎········`"
prettier/prettier
|
| Warning |
Row 50, Column 30: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 50, Column 152: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 51, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 52, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 54, Column 1: "Replace `··········prettier/prettier
|
| Error |
Row 55, Column 1: "Replace `············prettier/prettier
|
| Warning |
Row 55, Column 28: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| Error |
Row 56, Column 1: "Replace `··············prettier/prettier
|
| Error |
Row 57, Column 1: "Replace `············` with `········`"
prettier/prettier
|
| Error |
Row 59, Column 1: "Replace `············prettier/prettier
|
| Warning |
Row 59, Column 50: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 60, Column 1: "Replace `···············` with `··········`"
prettier/prettier
|
| Warning |
Row 60, Column 31: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 60, Column 83: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 61, Column 1: "Replace `················` with `··········prettier/prettier
|
| Warning |
Row 61, Column 30: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 61, Column 171: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 62, Column 8: "Replace `·······` with `···/>⏎········`"
prettier/prettier
|
| Warning |
Row 62, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 63, Column 1: "Replace `··········` with `······`"
prettier/prettier
|
| Error |
Row 65, Column 1: "Replace `⏎··········prettier/prettier
|
| Warning |
Row 66, Column 63: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 67, Column 1: "Replace `············prettier/prettier
|
| Warning |
Row 67, Column 28: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| Error |
Row 68, Column 1: "Replace `··············prettier/prettier
|
| Error |
Row 69, Column 1: "Replace `············` with `········`"
prettier/prettier
|
| Error |
Row 70, Column 1: "Replace `············prettier/prettier
|
| Error |
Row 71, Column 11: "Replace `·····` with ``"
prettier/prettier
|
| Warning |
Row 71, Column 31: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 71, Column 82: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 72, Column 1: "Replace `················⏎··············` with `··········⏎········`"
prettier/prettier
|
| Warning |
Row 72, Column 30: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 72, Column 122: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 73, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 74, Column 1: "Replace `··········` with `······`"
prettier/prettier
|
| Error |
Row 75, Column 1: "Delete `⏎⏎····`"
prettier/prettier
|
| Error |
Row 78, Column 3: "Replace `··)` with `);`"
prettier/prettier
|
| Warning |
Row 78, Column 6: "Missing semicolon."
semi
|
| Error |
Row 79, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 79, Column 2: "Missing semicolon."
semi
|
| Error |
Row 81, Column 27: "Insert `;`"
prettier/prettier
|
| Warning |
Row 81, Column 27: "Missing semicolon."
semi
|
| Error |
Row 84, Column 1: "Replace `····mainContainer·` with `··mainContainer`"
prettier/prettier
|
| Error |
Row 85, Column 1: "Replace `········width·` with `····width`"
prettier/prettier
|
| Error |
Row 86, Column 5: "Replace `····backgroundColor·` with `backgroundColor`"
prettier/prettier
|
| Error |
Row 87, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 88, Column 1: "Replace `········paddingHorizontal·` with `····paddingHorizontal`"
prettier/prettier
|
| Error |
Row 89, Column 5: "Replace `····paddingVertical·:·mvs(20)` with `paddingVertical:·mvs(20),`"
prettier/prettier
|
| Warning |
Row 89, Column 34: "Missing trailing comma."
comma-dangle
|
| Error |
Row 90, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 91, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 92, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 93, Column 5: "Replace `····width·` with `width`"
prettier/prettier
|
| Error |
Row 94, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 95, Column 1: "Delete `···`"
prettier/prettier
|
| Error |
Row 96, Column 1: "Replace `········borderRadius·` with `····borderRadius`"
prettier/prettier
|
| Error |
Row 97, Column 1: "Replace `········backgroundColor·` with `····backgroundColor`"
prettier/prettier
|
| Error |
Row 98, Column 1: "Replace `········paddingLeft·` with `····paddingLeft`"
prettier/prettier
|
| Error |
Row 99, Column 1: "Replace `········paddingBottom·:·mvs(14)` with `····paddingBottom:·mvs(14),`"
prettier/prettier
|
| Warning |
Row 99, Column 32: "Missing trailing comma."
comma-dangle
|
| Error |
Row 100, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 101, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 102, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| Error |
Row 103, Column 1: "Replace `········color·` with `····color`"
prettier/prettier
|
| Error |
Row 104, Column 5: "Replace `····marginTop·:·mvs(18)` with `marginTop:·mvs(18),`"
prettier/prettier
|
| Warning |
Row 104, Column 28: "Missing trailing comma."
comma-dangle
|
| Error |
Row 105, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 106, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 107, Column 1: "Replace `········marginTop·` with `····marginTop`"
prettier/prettier
|
| Error |
Row 108, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 109, Column 5: "Replace `····width·` with `width`"
prettier/prettier
|
| Error |
Row 110, Column 1: "Replace `········flexDirection:` with `····flexDirection:·`"
prettier/prettier
|
| Error |
Row 111, Column 1: "Replace `········alignItems:` with `····alignItems:·`"
prettier/prettier
|
| Error |
Row 112, Column 1: "Replace `········justifyContent:` with `····justifyContent:·`"
prettier/prettier
|
| Error |
Row 113, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 114, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 115, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 116, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 117, Column 1: "Replace `········width·` with `····width`"
prettier/prettier
|
| Error |
Row 118, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 119, Column 1: "Replace `········marginTop·` with `····marginTop`"
prettier/prettier
|
| Error |
Row 120, Column 1: "Replace `········flexDirection·:·'row'` with `····flexDirection:·'row',`"
prettier/prettier
|
| Warning |
Row 120, Column 30: "Missing trailing comma."
comma-dangle
|
| Error |
Row 121, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 122, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 123, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 124, Column 5: "Replace `····height·` with `height`"
prettier/prettier
|
| Error |
Row 125, Column 1: "Replace `········marginLeft:` with `····marginLeft:·`"
prettier/prettier
|
| Error |
Row 126, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 127, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 128, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| Error |
Row 129, Column 1: "Replace `········color·:·colors.green` with `····color:·colors.green,`"
prettier/prettier
|
| Warning |
Row 129, Column 29: "Missing trailing comma."
comma-dangle
|
| Error |
Row 130, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 131, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 132, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| Error |
Row 133, Column 1: "Replace `········color·` with `····color`"
prettier/prettier
|
| Error |
Row 134, Column 1: "Replace `········marginTop·` with `····marginTop`"
prettier/prettier
|
| Error |
Row 135, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 136, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 137, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 138, Column 1: "Replace `········width·` with `····width`"
prettier/prettier
|
| Error |
Row 139, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 140, Column 5: "Replace `····marginTop·` with `marginTop`"
prettier/prettier
|
| Error |
Row 141, Column 5: "Replace `····flexDirection·:·'row'` with `flexDirection:·'row',`"
prettier/prettier
|
| Warning |
Row 141, Column 30: "Missing trailing comma."
comma-dangle
|
| Error |
Row 142, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 143, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 144, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 145, Column 1: "Replace `········height·` with `····height`"
prettier/prettier
|
| Error |
Row 146, Column 1: "Replace `········marginLeft:` with `····marginLeft:·`"
prettier/prettier
|
| Error |
Row 147, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 148, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 149, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 150, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| Error |
Row 151, Column 1: "Replace `········color·:·colors.headerTitle` with `····color:·colors.headerTitle,`"
prettier/prettier
|
| Warning |
Row 151, Column 35: "Missing trailing comma."
comma-dangle
|
| Error |
Row 152, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 153, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 154, Column 5: "Replace `····fontSize·` with `fontSize`"
prettier/prettier
|
| Error |
Row 155, Column 1: "Replace `········color·` with `····color`"
prettier/prettier
|
| Error |
Row 156, Column 1: "Replace `········marginTop·:·mvs(5)` with `····marginTop:·mvs(5),`"
prettier/prettier
|
| Warning |
Row 156, Column 27: "Missing trailing comma."
comma-dangle
|
| Error |
Row 157, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 158, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 158, Column 3: "Missing semicolon."
semi
|
| Line |
Source |
| Error |
Row 1, Column 9: "Replace `·flatMapDeep·}·from·'lodash'` with `flatMapDeep}·from·'lodash';`"
prettier/prettier
|
| Warning |
Row 1, Column 10: "'flatMapDeep' is defined but never used."
no-unused-vars
|
| Warning |
Row 1, Column 37: "Missing semicolon."
semi
|
| 1 |
import { flatMapDeep } from 'lodash' |
| Error |
Row 2, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 2, Column 26: "Missing semicolon."
semi
|
| 2 |
import React from 'react' |
| Error |
Row 3, Column 9: "Replace `·Image,·StyleSheet,·Text,·View·}·from·'react-native'` with `Image,·StyleSheet,·Text,·View}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 3, Column 10: "'Image' is defined but never used."
no-unused-vars
|
| Warning |
Row 3, Column 29: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 3, Column 61: "Missing semicolon."
semi
|
| 3 |
import { Image, StyleSheet, Text, View } from 'react-native' |
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·}·from·'../../../../resource/assets/image_resouce'` with `TAKE_TO_IMAGES}·from·'../../../../resource/assets/image_resouce';`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 4, Column 75: "Missing semicolon."
semi
|
| 4 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce' |
| Error |
Row 5, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 5, Column 44: "Missing semicolon."
semi
|
| 5 |
import colors from '../../../config/colors' |
| Error |
Row 6, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 6 |
import { mvs } from '../../../config/metrices'; |
| Error |
Row 7, Column 64: "Insert `;`"
prettier/prettier
|
| Warning |
Row 7, Column 64: "Missing semicolon."
semi
|
| 7 |
import Light from '../../../presentation/typography/light-text' |
| Error |
Row 8, Column 66: "Insert `;`"
prettier/prettier
|
| Warning |
Row 8, Column 66: "Missing semicolon."
semi
|
| 8 |
import Medium from '../../../presentation/typography/medium-text' |
| Error |
Row 9, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 9, Column 68: "Missing semicolon."
semi
|
| 9 |
import Regular from '../../../presentation/typography/regular-text' |
| Error |
Row 10, Column 75: "Insert `;`"
prettier/prettier
|
| Warning |
Row 10, Column 75: "Missing semicolon."
semi
|
| 10 |
import * as Images from './../../../../resource/assets/order-policy-icons' |
| Error |
Row 11, Column 38: "Delete `·`"
prettier/prettier
|
| 11 |
const OrderPolicy = ({style, ...props }) => { |
| Error |
Row 12, Column 3: "Replace `··const·Guard·=·Images['guard']` with `const·Guard·=·Images['guard'];`"
prettier/prettier
|
| Warning |
Row 12, Column 26: "["guard"] is better written in dot notation."
dot-notation
|
| Warning |
Row 12, Column 34: "Missing semicolon."
semi
|
| 12 |
const Guard = Images['guard'] |
| Error |
Row 13, Column 3: "Replace `··const·Lock·=·Images['lock']` with `const·Lock·=·Images['lock'];`"
prettier/prettier
|
| Warning |
Row 13, Column 25: "["lock"] is better written in dot notation."
dot-notation
|
| Warning |
Row 13, Column 32: "Missing semicolon."
semi
|
| 13 |
const Lock = Images['lock'] |
| Error |
Row 14, Column 3: "Replace `··const·Check·=·Images['check']` with `const·Check·=·Images['check'];`"
prettier/prettier
|
| Warning |
Row 14, Column 26: "["check"] is better written in dot notation."
dot-notation
|
| Warning |
Row 14, Column 34: "Missing semicolon."
semi
|
| 14 |
const Check = Images['check'] |
| Error |
Row 15, Column 3: "Replace `··const·Care·=·Images['care']` with `const·Care·=·Images['care'];`"
prettier/prettier
|
| Warning |
Row 15, Column 25: "["care"] is better written in dot notation."
dot-notation
|
| Warning |
Row 15, Column 32: "Missing semicolon."
semi
|
| 15 |
const Care = Images['care'] |
| Error |
Row 16, Column 1: "Replace `····const·Visa·=·Images['visa']` with `··const·Visa·=·Images['visa'];`"
prettier/prettier
|
| Warning |
Row 16, Column 25: "["visa"] is better written in dot notation."
dot-notation
|
| Warning |
Row 16, Column 32: "Missing semicolon."
semi
|
| 16 |
const Visa = Images['visa'] |
| Error |
Row 17, Column 1: "Replace `····const·Master·=·Images['master']` with `··const·Master·=·Images['master'];`"
prettier/prettier
|
| Warning |
Row 17, Column 27: "["master"] is better written in dot notation."
dot-notation
|
| Warning |
Row 17, Column 36: "Missing semicolon."
semi
|
| 17 |
const Master = Images['master'] |
| Error |
Row 18, Column 1: "Replace `····const·American·=·Images['amercian']` with `··const·American·=·Images['amercian'];`"
prettier/prettier
|
| Warning |
Row 18, Column 29: "["amercian"] is better written in dot notation."
dot-notation
|
| Warning |
Row 18, Column 40: "Missing semicolon."
semi
|
| 18 |
const American = Images['amercian'] |
| Error |
Row 19, Column 1: "Replace `····const·Knet·=·Images['knet']` with `··const·Knet·=·Images['knet'];`"
prettier/prettier
|
| Warning |
Row 19, Column 25: "["knet"] is better written in dot notation."
dot-notation
|
| Warning |
Row 19, Column 32: "Missing semicolon."
semi
|
| 19 |
const Knet = Images['knet'] |
| Error |
Row 20, Column 1: "Delete `··`"
prettier/prettier
|
| 20 |
return ( |
| Error |
Row 21, Column 1: "Replace `········prettier/prettier
|
| 21 |
<View style = {{...styles.mainContainer , ...style}}> |
| Error |
Row 22, Column 1: "Replace `··········prettier/prettier
|
| 22 |
<View style = {styles.partnersContainer}> |
| Error |
Row 23, Column 1: "Replace `··············` with `········`"
prettier/prettier
|
| Warning |
Row 23, Column 89: "Trailing spaces not allowed."
no-trailing-spaces
|
| 23 |
<Regular label = "Proud Partners" style = {styles.partnersContainerTitle}/> |
| Error |
Row 24, Column 9: "Replace `·····prettier/prettier
|
| 24 |
<View style = {styles.partnersTagContainer}> |
| Error |
Row 25, Column 1: "Replace `·················prettier/prettier
|
| 25 |
<Visa/> |
| Error |
Row 26, Column 1: "Replace `·················prettier/prettier
|
| 26 |
<Master/> |
| Error |
Row 27, Column 1: "Replace `·················prettier/prettier
|
| 27 |
<American/> |
| Error |
Row 28, Column 1: "Replace `·················prettier/prettier
|
| 28 |
<Knet/> |
| Error |
Row 29, Column 9: "Delete `·····`"
prettier/prettier
|
| 29 |
</View> |
| Error |
Row 30, Column 1: "Replace `··········` with `······`"
prettier/prettier
|
| 30 |
</View> |
| 31 |
|
| Error |
Row 32, Column 1: "Replace `··········prettier/prettier
|
| 32 |
<View style = {styles.point1}> |
| Error |
Row 33, Column 9: "Replace `····prettier/prettier
|
| Warning |
Row 33, Column 28: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| 33 |
<View style = {{position:'absolute'}}> |
| Error |
Row 34, Column 11: "Replace `····prettier/prettier
|
| 34 |
<Guard/> |
| Error |
Row 35, Column 9: "Delete `····`"
prettier/prettier
|
| 35 |
</View> |
| Warning |
Row 36, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 36, Column 1: "Delete `·················`"
prettier/prettier
|
| 36 |
|
| Error |
Row 37, Column 1: "Replace `············prettier/prettier
|
| 37 |
<View style = {styles.point1Inner}> |
| Error |
Row 38, Column 11: "Replace `·····` with `prettier/prettier
|
| Warning |
Row 38, Column 32: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 38, Column 90: "Trailing spaces not allowed."
no-trailing-spaces
|
| 38 |
<Regular label = '100% money back guarantee' style = {styles.point1Title}/> |
| Error |
Row 39, Column 11: "Replace `······⏎··············` with `/>⏎··········⏎········`"
prettier/prettier
|
| Warning |
Row 39, Column 32: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 39, Column 139: "Trailing spaces not allowed."
no-trailing-spaces
|
| 39 |
<Regular label = 'Taketo protects your payment until you confirm the receipt of your order.' style = {styles.point1Detail}/> |
| Warning |
Row 40, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| 40 |
</View> |
| Error |
Row 41, Column 1: "Replace `··········` with `······`"
prettier/prettier
|
| 41 |
</View> |
| 42 |
|
| Error |
Row 43, Column 1: "Replace `··········prettier/prettier
|
| 43 |
<View style = {styles.point2}> |
| Error |
Row 44, Column 1: "Replace `············prettier/prettier
|
| Warning |
Row 44, Column 28: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| 44 |
<View style = {{position:'absolute'}}> |
| Error |
Row 45, Column 1: "Replace `··············prettier/prettier
|
| 45 |
<Lock/> |
| Error |
Row 46, Column 1: "Delete `····`"
prettier/prettier
|
| 46 |
</View> |
| 47 |
|
| Error |
Row 48, Column 1: "Replace `············prettier/prettier
|
| 48 |
<View style = {styles.point2Inner}> |
| Error |
Row 49, Column 1: "Replace `···············` with `··········`"
prettier/prettier
|
| Warning |
Row 49, Column 31: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 49, Column 79: "Trailing spaces not allowed."
no-trailing-spaces
|
| 49 |
<Medium label = 'Secure payments' style = {styles.point2Title}/> |
| Error |
Row 50, Column 1: "Replace `················⏎··············` with `··········⏎········`"
prettier/prettier
|
| Warning |
Row 50, Column 30: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 50, Column 152: "Trailing spaces not allowed."
no-trailing-spaces
|
| 50 |
<Light label = 'Your payment is protected and never released to the traveler until you confirm delivery.' style = {styles.point2Detail}/> |
| Warning |
Row 51, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| 51 |
</View> |
| Error |
Row 52, Column 1: "Delete `····`"
prettier/prettier
|
| 52 |
</View> |
| 53 |
|
| Error |
Row 54, Column 1: "Replace `··········prettier/prettier
|
| 54 |
<View style = {[styles.point2, { marginTop : mvs(10)}]}> |
| Error |
Row 55, Column 1: "Replace `············prettier/prettier
|
| Warning |
Row 55, Column 28: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| 55 |
<View style = {{position:'absolute'}}> |
| Error |
Row 56, Column 1: "Replace `··············prettier/prettier
|
| 56 |
<Check/> |
| Error |
Row 57, Column 1: "Replace `············` with `········`"
prettier/prettier
|
| 57 |
</View> |
| 58 |
|
| Error |
Row 59, Column 1: "Replace `············prettier/prettier
|
| Warning |
Row 59, Column 50: "Unexpected trailing comma."
comma-dangle
|
| 59 |
<View style = {{...styles.point2Inner,}}> |
| Error |
Row 60, Column 1: "Replace `···············` with `··········`"
prettier/prettier
|
| Warning |
Row 60, Column 31: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 60, Column 83: "Trailing spaces not allowed."
no-trailing-spaces
|
| 60 |
<Medium label = 'Guaranteed delivery' style = {styles.point2Title}/> |
| Error |
Row 61, Column 1: "Replace `················` with `··········prettier/prettier
|
| Warning |
Row 61, Column 30: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 61, Column 171: "Trailing spaces not allowed."
no-trailing-spaces
|
| 61 |
<Light label = 'You are protected from start to finish. If there is an issue with your order, you will get 100% money back.' style = {styles.point2Detail}/> |
| Error |
Row 62, Column 8: "Replace `·······` with `···/>⏎········`"
prettier/prettier
|
| Warning |
Row 62, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| 62 |
</View> |
| Error |
Row 63, Column 1: "Replace `··········` with `······`"
prettier/prettier
|
| 63 |
</View> |
| 64 |
|
| Error |
Row 65, Column 1: "Replace `⏎··········prettier/prettier
|
| 65 |
|
| Warning |
Row 66, Column 63: "Unexpected trailing comma."
comma-dangle
|
| 66 |
<View style = {[styles.point2, { marginTop : mvs(22),}]}> |
| Error |
Row 67, Column 1: "Replace `············prettier/prettier
|
| Warning |
Row 67, Column 28: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| 67 |
<View style = {{position:'absolute'}}> |
| Error |
Row 68, Column 1: "Replace `··············prettier/prettier
|
| 68 |
<Care/> |
| Error |
Row 69, Column 1: "Replace `············` with `········`"
prettier/prettier
|
| 69 |
</View> |
| Error |
Row 70, Column 1: "Replace `············prettier/prettier
|
| 70 |
<View style = {styles.point2Inner}> |
| Error |
Row 71, Column 11: "Replace `·····` with ``"
prettier/prettier
|
| Warning |
Row 71, Column 31: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 71, Column 82: "Trailing spaces not allowed."
no-trailing-spaces
|
| 71 |
<Medium label = '24/7 Customer care' style = {styles.point2Title}/> |
| Error |
Row 72, Column 1: "Replace `················⏎··············` with `··········⏎········`"
prettier/prettier
|
| Warning |
Row 72, Column 30: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 72, Column 122: "Trailing spaces not allowed."
no-trailing-spaces
|
| 72 |
<Light label = 'Customer support in your native language, within 24 hours.' style = {styles.point2Detail}/> |
| Warning |
Row 73, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| 73 |
</View> |
| Error |
Row 74, Column 1: "Replace `··········` with `······`"
prettier/prettier
|
| 74 |
</View> |
| Error |
Row 75, Column 1: "Delete `⏎⏎····`"
prettier/prettier
|
| 75 |
|
| 76 |
|
| 77 |
</View> |
| Error |
Row 78, Column 3: "Replace `··)` with `);`"
prettier/prettier
|
| Warning |
Row 78, Column 6: "Missing semicolon."
semi
|
| 78 |
) |
| Error |
Row 79, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 79, Column 2: "Missing semicolon."
semi
|
| 79 |
} |
| 80 |
|
| Error |
Row 81, Column 27: "Insert `;`"
prettier/prettier
|
| Warning |
Row 81, Column 27: "Missing semicolon."
semi
|
| 81 |
export default OrderPolicy |
| 82 |
|
| 83 |
const styles = StyleSheet.create({ |
| Error |
Row 84, Column 1: "Replace `····mainContainer·` with `··mainContainer`"
prettier/prettier
|
| 84 |
mainContainer : { |
| Error |
Row 85, Column 1: "Replace `········width·` with `····width`"
prettier/prettier
|
| 85 |
width : '100%', |
| Error |
Row 86, Column 5: "Replace `····backgroundColor·` with `backgroundColor`"
prettier/prettier
|
| 86 |
backgroundColor : colors.white, |
| Error |
Row 87, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 87 |
//borderWidth : 1, |
| Error |
Row 88, Column 1: "Replace `········paddingHorizontal·` with `····paddingHorizontal`"
prettier/prettier
|
| 88 |
paddingHorizontal : mvs(22), |
| Error |
Row 89, Column 5: "Replace `····paddingVertical·:·mvs(20)` with `paddingVertical:·mvs(20),`"
prettier/prettier
|
| Warning |
Row 89, Column 34: "Missing trailing comma."
comma-dangle
|
| 89 |
paddingVertical : mvs(20) |
| Error |
Row 90, Column 3: "Delete `··`"
prettier/prettier
|
| 90 |
}, |
| Error |
Row 91, Column 1: "Delete `··`"
prettier/prettier
|
| 91 |
partnersContainer: { |
| Error |
Row 92, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 92 |
//height : mvs(76), |
| Error |
Row 93, Column 5: "Replace `····width·` with `width`"
prettier/prettier
|
| 93 |
width : '100%', |
| Error |
Row 94, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 94 |
//borderWidth : 1, |
| Error |
Row 95, Column 1: "Delete `···`"
prettier/prettier
|
| 95 |
// marginTop : mvs(20), |
| Error |
Row 96, Column 1: "Replace `········borderRadius·` with `····borderRadius`"
prettier/prettier
|
| 96 |
borderRadius : mvs(10), |
| Error |
Row 97, Column 1: "Replace `········backgroundColor·` with `····backgroundColor`"
prettier/prettier
|
| 97 |
backgroundColor : colors.lightgrey, |
| Error |
Row 98, Column 1: "Replace `········paddingLeft·` with `····paddingLeft`"
prettier/prettier
|
| 98 |
paddingLeft : mvs(10), |
| Error |
Row 99, Column 1: "Replace `········paddingBottom·:·mvs(14)` with `····paddingBottom:·mvs(14),`"
prettier/prettier
|
| Warning |
Row 99, Column 32: "Missing trailing comma."
comma-dangle
|
| 99 |
paddingBottom : mvs(14) |
| Error |
Row 100, Column 1: "Delete `··`"
prettier/prettier
|
| 100 |
}, |
| Error |
Row 101, Column 1: "Delete `··`"
prettier/prettier
|
| 101 |
partnersContainerTitle: { |
| Error |
Row 102, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| 102 |
fontSize : mvs(12), |
| Error |
Row 103, Column 1: "Replace `········color·` with `····color`"
prettier/prettier
|
| 103 |
color : colors.lightgrey1, |
| Error |
Row 104, Column 5: "Replace `····marginTop·:·mvs(18)` with `marginTop:·mvs(18),`"
prettier/prettier
|
| Warning |
Row 104, Column 28: "Missing trailing comma."
comma-dangle
|
| 104 |
marginTop : mvs(18) |
| Error |
Row 105, Column 1: "Delete `··`"
prettier/prettier
|
| 105 |
}, |
| Error |
Row 106, Column 1: "Delete `··`"
prettier/prettier
|
| 106 |
partnersTagContainer: { |
| Error |
Row 107, Column 1: "Replace `········marginTop·` with `····marginTop`"
prettier/prettier
|
| 107 |
marginTop : mvs(15), |
| Error |
Row 108, Column 1: "Delete `····`"
prettier/prettier
|
| 108 |
//height : mvs(16), |
| Error |
Row 109, Column 5: "Replace `····width·` with `width`"
prettier/prettier
|
| 109 |
width : '60%', |
| Error |
Row 110, Column 1: "Replace `········flexDirection:` with `····flexDirection:·`"
prettier/prettier
|
| 110 |
flexDirection:'row', |
| Error |
Row 111, Column 1: "Replace `········alignItems:` with `····alignItems:·`"
prettier/prettier
|
| 111 |
alignItems:'center', |
| Error |
Row 112, Column 1: "Replace `········justifyContent:` with `····justifyContent:·`"
prettier/prettier
|
| 112 |
justifyContent:'space-between', |
| Error |
Row 113, Column 5: "Delete `····`"
prettier/prettier
|
| 113 |
//borderWidth : 1 |
| Error |
Row 114, Column 3: "Delete `··`"
prettier/prettier
|
| 114 |
}, |
| Error |
Row 115, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 115 |
point1: { |
| Error |
Row 116, Column 1: "Delete `····`"
prettier/prettier
|
| 116 |
//height : mvs(39.4), |
| Error |
Row 117, Column 1: "Replace `········width·` with `····width`"
prettier/prettier
|
| 117 |
width : '100%', |
| Error |
Row 118, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 118 |
//borderWidth:0.5, |
| Error |
Row 119, Column 1: "Replace `········marginTop·` with `····marginTop`"
prettier/prettier
|
| 119 |
marginTop : mvs(10), |
| Error |
Row 120, Column 1: "Replace `········flexDirection·:·'row'` with `····flexDirection:·'row',`"
prettier/prettier
|
| Warning |
Row 120, Column 30: "Missing trailing comma."
comma-dangle
|
| 120 |
flexDirection : 'row' |
| Error |
Row 121, Column 1: "Delete `··`"
prettier/prettier
|
| 121 |
}, |
| Error |
Row 122, Column 3: "Delete `··`"
prettier/prettier
|
| 122 |
point1Inner: { |
| Error |
Row 123, Column 1: "Delete `····`"
prettier/prettier
|
| 123 |
//borderWidth:1, |
| Error |
Row 124, Column 5: "Replace `····height·` with `height`"
prettier/prettier
|
| 124 |
height : '100%', |
| Error |
Row 125, Column 1: "Replace `········marginLeft:` with `····marginLeft:·`"
prettier/prettier
|
| 125 |
marginLeft:mvs(34), |
| Error |
Row 126, Column 3: "Delete `··`"
prettier/prettier
|
| 126 |
}, |
| Error |
Row 127, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 127 |
point1Title: { |
| Error |
Row 128, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| 128 |
fontSize : mvs(12), |
| Error |
Row 129, Column 1: "Replace `········color·:·colors.green` with `····color:·colors.green,`"
prettier/prettier
|
| Warning |
Row 129, Column 29: "Missing trailing comma."
comma-dangle
|
| 129 |
color : colors.green |
| Error |
Row 130, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 130 |
}, |
| Error |
Row 131, Column 1: "Delete `··`"
prettier/prettier
|
| 131 |
point1Detail: { |
| Error |
Row 132, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| 132 |
fontSize : mvs(12), |
| Error |
Row 133, Column 1: "Replace `········color·` with `····color`"
prettier/prettier
|
| 133 |
color : colors.lightgrey1, |
| Error |
Row 134, Column 1: "Replace `········marginTop·` with `····marginTop`"
prettier/prettier
|
| 134 |
marginTop : mvs(7), |
| Error |
Row 135, Column 3: "Delete `··`"
prettier/prettier
|
| 135 |
}, |
| Error |
Row 136, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 136 |
point2: { |
| Error |
Row 137, Column 1: "Delete `····`"
prettier/prettier
|
| 137 |
//height : mvs(43), |
| Error |
Row 138, Column 1: "Replace `········width·` with `····width`"
prettier/prettier
|
| 138 |
width : '100%', |
| Error |
Row 139, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 139 |
//borderWidth:0.5, |
| Error |
Row 140, Column 5: "Replace `····marginTop·` with `marginTop`"
prettier/prettier
|
| 140 |
marginTop : mvs(10), |
| Error |
Row 141, Column 5: "Replace `····flexDirection·:·'row'` with `flexDirection:·'row',`"
prettier/prettier
|
| Warning |
Row 141, Column 30: "Missing trailing comma."
comma-dangle
|
| 141 |
flexDirection : 'row' |
| Error |
Row 142, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 142 |
}, |
| Error |
Row 143, Column 1: "Delete `··`"
prettier/prettier
|
| 143 |
point2Inner: { |
| Error |
Row 144, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 144 |
//borderWidth:1, |
| Error |
Row 145, Column 1: "Replace `········height·` with `····height`"
prettier/prettier
|
| 145 |
height : '100%', |
| Error |
Row 146, Column 1: "Replace `········marginLeft:` with `····marginLeft:·`"
prettier/prettier
|
| 146 |
marginLeft:mvs(34), |
| Error |
Row 147, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 147 |
//width : mvs(261) |
| Error |
Row 148, Column 3: "Delete `··`"
prettier/prettier
|
| 148 |
}, |
| Error |
Row 149, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 149 |
point2Title: { |
| Error |
Row 150, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| 150 |
fontSize : mvs(12), |
| Error |
Row 151, Column 1: "Replace `········color·:·colors.headerTitle` with `····color:·colors.headerTitle,`"
prettier/prettier
|
| Warning |
Row 151, Column 35: "Missing trailing comma."
comma-dangle
|
| 151 |
color : colors.headerTitle |
| Error |
Row 152, Column 1: "Delete `··`"
prettier/prettier
|
| 152 |
}, |
| Error |
Row 153, Column 1: "Delete `··`"
prettier/prettier
|
| 153 |
point2Detail: { |
| Error |
Row 154, Column 5: "Replace `····fontSize·` with `fontSize`"
prettier/prettier
|
| 154 |
fontSize : mvs(12), |
| Error |
Row 155, Column 1: "Replace `········color·` with `····color`"
prettier/prettier
|
| 155 |
color : colors.lightgrey1, |
| Error |
Row 156, Column 1: "Replace `········marginTop·:·mvs(5)` with `····marginTop:·mvs(5),`"
prettier/prettier
|
| Warning |
Row 156, Column 27: "Missing trailing comma."
comma-dangle
|
| 156 |
marginTop : mvs(5) |
| Error |
Row 157, Column 3: "Delete `··`"
prettier/prettier
|
| 157 |
}, |
| Error |
Row 158, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 158, Column 3: "Missing semicolon."
semi
|
| 158 |
}) |
| 159 |
|
|
|
|
/src/components/molecules/destination-card/date-picker.js
|
5 problems (2 errors, 3 warnings)
|
| Severity |
Rule |
| Warning |
Row 2, Column 21: "'Text' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 26: "Replace `⏎··isVisible·=·false,⏎··...props⏎})·=>·{⏎` with `isVisible·=·false,·...props})·=>·{`"
prettier/prettier
|
| Error |
Row 11, Column 27: "Replace `⏎········{...props}⏎········isVisible={isVisible}⏎········⏎·····` with `·{...props}·isVisible={isVisible}`"
prettier/prettier
|
| Warning |
Row 14, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 22, Column 7: "'styles' is assigned a value but never used."
no-unused-vars
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Warning |
Row 2, Column 21: "'Text' is defined but never used."
no-unused-vars
|
| 2 |
import {StyleSheet, Text, View} from 'react-native'; |
| 3 |
import DateTimePickerModal from 'react-native-modal-datetime-picker'; |
| Error |
Row 4, Column 26: "Replace `⏎··isVisible·=·false,⏎··...props⏎})·=>·{⏎` with `isVisible·=·false,·...props})·=>·{`"
prettier/prettier
|
| 4 |
const DateTimePicker = ({ |
| 5 |
isVisible = false, |
| 6 |
...props |
| 7 |
}) => { |
| 8 |
|
| 9 |
return ( |
| 10 |
<View> |
| Error |
Row 11, Column 27: "Replace `⏎········{...props}⏎········isVisible={isVisible}⏎········⏎·····` with `·{...props}·isVisible={isVisible}`"
prettier/prettier
|
| 11 |
<DateTimePickerModal |
| 12 |
{...props} |
| 13 |
isVisible={isVisible} |
| Warning |
Row 14, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| 14 |
|
| 15 |
/> |
| 16 |
</View> |
| 17 |
); |
| 18 |
}; |
| 19 |
|
| 20 |
export default DateTimePicker; |
| 21 |
|
| Warning |
Row 22, Column 7: "'styles' is assigned a value but never used."
no-unused-vars
|
| 22 |
const styles = StyleSheet.create({}); |
| 23 |
|
|
|
|
/src/components/molecules/destination-card/destination-card.js
|
58 problems (38 errors, 20 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 19: "Replace `"react"` with `'react';`"
prettier/prettier
|
| Warning |
Row 1, Column 19: "Strings must use singlequote."
quotes
|
| Warning |
Row 1, Column 26: "Missing semicolon."
semi
|
| Error |
Row 2, Column 20: "Replace `"../../../config/colors"` with `'../../../config/colors';`"
prettier/prettier
|
| Warning |
Row 2, Column 20: "Strings must use singlequote."
quotes
|
| Warning |
Row 2, Column 44: "Missing semicolon."
semi
|
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 4, Column 9: "Replace `·xdHeight·}·from·"../../../config/metrices"` with `xdHeight}·from·'../../../config/metrices';`"
prettier/prettier
|
| Warning |
Row 4, Column 26: "Strings must use singlequote."
quotes
|
| Warning |
Row 4, Column 52: "Missing semicolon."
semi
|
| Error |
Row 5, Column 9: "Replace `·Image,·ImageBackground,·StyleSheet,·View,·}·from·"react-native"` with `Image,·ImageBackground,·StyleSheet,·View}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 5, Column 50: "Unexpected trailing comma."
comma-dangle
|
| Warning |
Row 5, Column 59: "Strings must use singlequote."
quotes
|
| Warning |
Row 5, Column 73: "Missing semicolon."
semi
|
| Error |
Row 6, Column 21: "Replace `"../../../presentation/typography/regular-text"` with `'../../../presentation/typography/regular-text';`"
prettier/prettier
|
| Warning |
Row 6, Column 21: "Strings must use singlequote."
quotes
|
| Warning |
Row 6, Column 68: "Missing semicolon."
semi
|
| Error |
Row 7, Column 21: "Replace `"../../atoms/Button"` with `'../../atoms/Button';`"
prettier/prettier
|
| Warning |
Row 7, Column 21: "Strings must use singlequote."
quotes
|
| Warning |
Row 7, Column 41: "Missing semicolon."
semi
|
| Error |
Row 8, Column 32: "Replace `onClick,...props})·=>·{⏎·` with `·onClick,·...props})·=>·{`"
prettier/prettier
|
| Warning |
Row 9, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 10, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 11, Column 5: "Replace `········prettier/prettier
|
| Error |
Row 14, Column 1: "Replace `················` with `······prettier/prettier
|
| Error |
Row 15, Column 7: "Replace `····` with `/>⏎`"
prettier/prettier
|
| Error |
Row 16, Column 7: "Delete `··········`"
prettier/prettier
|
| Error |
Row 17, Column 9: "Replace `············` with `prettier/prettier
|
| Warning |
Row 17, Column 36: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 18, Column 9: "Replace `··` with `/>⏎`"
prettier/prettier
|
| Error |
Row 19, Column 7: "Replace `··········` with `prettier/prettier
|
| Warning |
Row 19, Column 30: "Inline style: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| Error |
Row 20, Column 9: "Replace `············` with `}}>⏎········prettier/prettier
|
| Error |
Row 21, Column 1: "Replace `············` with `········/>⏎`"
prettier/prettier
|
| Error |
Row 22, Column 1: "Delete `··········`"
prettier/prettier
|
| Error |
Row 23, Column 1: "Replace `················props.navigation.navigate('browseOrders',·{order:item})}·title={'Browse·Orders'}·style={styles.BROWSE···}/>` with `·······props.navigation.navigate('browseOrders',·{order:·item})}⏎········title={'Browse·Orders'}⏎········style={styles.BROWSE}`"
prettier/prettier
|
| Error |
Row 24, Column 1: "Replace `········` with `······/>⏎`"
prettier/prettier
|
| Error |
Row 25, Column 3: "Replace `··)` with `);`"
prettier/prettier
|
| Warning |
Row 25, Column 6: "Missing semicolon."
semi
|
| Error |
Row 26, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 26, Column 2: "Missing semicolon."
semi
|
| Error |
Row 30, Column 3: "Replace `··CONTAINER:` with `CONTAINER:·`"
prettier/prettier
|
| Error |
Row 31, Column 1: "Replace `········marginRight:` with `····marginRight:·`"
prettier/prettier
|
| Error |
Row 32, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 33, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 34, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 35, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 36, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 37, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 38, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 39, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 40, Column 1: "Replace `····REWARD:{·color:·colors.primary,·marginTop:·mvs(xdHeight(15))·` with `··REWARD:·{color:·colors.primary,·marginTop:·mvs(xdHeight(15))`"
prettier/prettier
|
| Error |
Row 41, Column 1: "Replace `····BROWSE·:{marginTop:mvs(xdHeight(15)),height:` with `··BROWSE:·{marginTop:·mvs(xdHeight(15)),·height:·`"
prettier/prettier
|
| Error |
Row 42, Column 1: "Replace `····COUNTER:{·color:·colors.primary,·fontSize:·mvs(12),·marginTop:·mvs(xdHeight(2))` with `··COUNTER:·{⏎····color:·colors.primary,⏎····fontSize:·mvs(12),⏎····marginTop:·mvs(xdHeight(2)),⏎·`"
prettier/prettier
|
| Error |
Row 43, Column 3: "Replace `··IMAGE_CONATINER:{·width:·'100%',·height:·mvs(xdHeight(167)),·backgroundColor:·colors.black,·borderRadius:·mvs(10),·overflow:·'hidden',·marginTop:·mvs(xdHeight(15))·}` with `IMAGE_CONATINER:·{⏎····width:·'100%',⏎····height:·mvs(xdHeight(167)),⏎····backgroundColor:·colors.black,⏎····borderRadius:·mvs(10),⏎····overflow:·'hidden',⏎····marginTop:·mvs(xdHeight(15)),⏎··},`"
prettier/prettier
|
| Warning |
Row 43, Column 170: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 44, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 44, Column 4: "Insert `⏎`"
prettier/prettier
|
| Line |
Source |
| Error |
Row 1, Column 19: "Replace `"react"` with `'react';`"
prettier/prettier
|
| Warning |
Row 1, Column 19: "Strings must use singlequote."
quotes
|
| Warning |
Row 1, Column 26: "Missing semicolon."
semi
|
| 1 |
import React from "react" |
| Error |
Row 2, Column 20: "Replace `"../../../config/colors"` with `'../../../config/colors';`"
prettier/prettier
|
| Warning |
Row 2, Column 20: "Strings must use singlequote."
quotes
|
| Warning |
Row 2, Column 44: "Missing semicolon."
semi
|
| 2 |
import colors from "../../../config/colors" |
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 3 |
import { mvs } from '../../../config/metrices'; |
| Error |
Row 4, Column 9: "Replace `·xdHeight·}·from·"../../../config/metrices"` with `xdHeight}·from·'../../../config/metrices';`"
prettier/prettier
|
| Warning |
Row 4, Column 26: "Strings must use singlequote."
quotes
|
| Warning |
Row 4, Column 52: "Missing semicolon."
semi
|
| 4 |
import { xdHeight } from "../../../config/metrices" |
| Error |
Row 5, Column 9: "Replace `·Image,·ImageBackground,·StyleSheet,·View,·}·from·"react-native"` with `Image,·ImageBackground,·StyleSheet,·View}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 5, Column 50: "Unexpected trailing comma."
comma-dangle
|
| Warning |
Row 5, Column 59: "Strings must use singlequote."
quotes
|
| Warning |
Row 5, Column 73: "Missing semicolon."
semi
|
| 5 |
import { Image, ImageBackground, StyleSheet, View, } from "react-native" |
| Error |
Row 6, Column 21: "Replace `"../../../presentation/typography/regular-text"` with `'../../../presentation/typography/regular-text';`"
prettier/prettier
|
| Warning |
Row 6, Column 21: "Strings must use singlequote."
quotes
|
| Warning |
Row 6, Column 68: "Missing semicolon."
semi
|
| 6 |
import Regular from "../../../presentation/typography/regular-text" |
| Error |
Row 7, Column 21: "Replace `"../../atoms/Button"` with `'../../atoms/Button';`"
prettier/prettier
|
| Warning |
Row 7, Column 21: "Strings must use singlequote."
quotes
|
| Warning |
Row 7, Column 41: "Missing semicolon."
semi
|
| 7 |
import Buttons from "../../atoms/Button" |
| Error |
Row 8, Column 32: "Replace `onClick,...props})·=>·{⏎·` with `·onClick,·...props})·=>·{`"
prettier/prettier
|
| 8 |
const DestinationCard = ({item,onClick,...props}) => { |
| Warning |
Row 9, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| 9 |
|
| Error |
Row 10, Column 3: "Delete `··`"
prettier/prettier
|
| 10 |
return ( |
| Error |
Row 11, Column 5: "Replace `········prettier/prettier
|
| 11 |
<View |
| 12 |
style={styles.CONTAINER} |
| 13 |
> |
| Error |
Row 14, Column 1: "Replace `················` with `······prettier/prettier
|
| 14 |
<Regular numberOfLines={1} label={item.destination} style={{ color: colors.headerTitle }} /> |
| Error |
Row 15, Column 7: "Replace `····` with `/>⏎`"
prettier/prettier
|
| 15 |
<Regular label={`${item.total_orders} Orders`} style={styles.COUNTER} /> |
| Error |
Row 16, Column 7: "Delete `··········`"
prettier/prettier
|
| 16 |
<ImageBackground style={styles.IMAGE_CONATINER}> |
| Error |
Row 17, Column 9: "Replace `············` with `prettier/prettier
|
| Warning |
Row 17, Column 36: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| 17 |
<Image style={{ height: '100%', width: '100%' }} source={{uri:item.land_mark}}/> |
| Error |
Row 18, Column 9: "Replace `··` with `/>⏎`"
prettier/prettier
|
| 18 |
</ImageBackground> |
| Error |
Row 19, Column 7: "Replace `··········` with `prettier/prettier
|
| Warning |
Row 19, Column 30: "Inline style: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| 19 |
<View style={{flexDirection:'row',alignItems:'center',justifyContent:'space-between'}}> |
| Error |
Row 20, Column 9: "Replace `············` with `}}>⏎········prettier/prettier
|
| 20 |
<Regular label={'Rewards'} style={{ ...styles.REWARD, fontSize : mvs(12)}} /> |
| Error |
Row 21, Column 1: "Replace `············` with `········/>⏎`"
prettier/prettier
|
| 21 |
<Regular label={`${item.total_reward}`} style={styles.REWARD} /> |
| Error |
Row 22, Column 1: "Delete `··········`"
prettier/prettier
|
| 22 |
</View> |
| Error |
Row 23, Column 1: "Replace `················props.navigation.navigate('browseOrders',·{order:item})}·title={'Browse·Orders'}·style={styles.BROWSE···}/>` with `·······props.navigation.navigate('browseOrders',·{order:·item})}⏎········title={'Browse·Orders'}⏎········style={styles.BROWSE}`"
prettier/prettier
|
| 23 |
<Buttons.ButtonPrimary onClick={()=>props.navigation.navigate('browseOrders', {order:item})} title={'Browse Orders'} style={styles.BROWSE }/> |
| Error |
Row 24, Column 1: "Replace `········` with `······/>⏎`"
prettier/prettier
|
| 24 |
</View> |
| Error |
Row 25, Column 3: "Replace `··)` with `);`"
prettier/prettier
|
| Warning |
Row 25, Column 6: "Missing semicolon."
semi
|
| 25 |
) |
| Error |
Row 26, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 26, Column 2: "Missing semicolon."
semi
|
| 26 |
} |
| 27 |
|
| 28 |
export default DestinationCard; |
| 29 |
const styles = StyleSheet.create({ |
| Error |
Row 30, Column 3: "Replace `··CONTAINER:` with `CONTAINER:·`"
prettier/prettier
|
| 30 |
CONTAINER:{ |
| Error |
Row 31, Column 1: "Replace `········marginRight:` with `····marginRight:·`"
prettier/prettier
|
| 31 |
marginRight:mvs(15), |
| Error |
Row 32, Column 1: "Delete `····`"
prettier/prettier
|
| 32 |
width: mvs(187), |
| Error |
Row 33, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 33 |
paddingHorizontal: mvs(10), |
| Error |
Row 34, Column 1: "Delete `····`"
prettier/prettier
|
| 34 |
paddingVertical: mvs(15), |
| Error |
Row 35, Column 5: "Delete `····`"
prettier/prettier
|
| 35 |
// borderWidth: StyleSheet.hairlineWidth, |
| Error |
Row 36, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 36 |
backgroundColor: colors.secondary, |
| Error |
Row 37, Column 5: "Delete `····`"
prettier/prettier
|
| 37 |
borderRadius: mvs(20), |
| Error |
Row 38, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 38 |
borderColor: colors.border, |
| Error |
Row 39, Column 3: "Delete `··`"
prettier/prettier
|
| 39 |
}, |
| Error |
Row 40, Column 1: "Replace `····REWARD:{·color:·colors.primary,·marginTop:·mvs(xdHeight(15))·` with `··REWARD:·{color:·colors.primary,·marginTop:·mvs(xdHeight(15))`"
prettier/prettier
|
| 40 |
REWARD:{ color: colors.primary, marginTop: mvs(xdHeight(15)) }, |
| Error |
Row 41, Column 1: "Replace `····BROWSE·:{marginTop:mvs(xdHeight(15)),height:` with `··BROWSE:·{marginTop:·mvs(xdHeight(15)),·height:·`"
prettier/prettier
|
| 41 |
BROWSE :{marginTop:mvs(xdHeight(15)),height:mvs(xdHeight(38))}, |
| Error |
Row 42, Column 1: "Replace `····COUNTER:{·color:·colors.primary,·fontSize:·mvs(12),·marginTop:·mvs(xdHeight(2))` with `··COUNTER:·{⏎····color:·colors.primary,⏎····fontSize:·mvs(12),⏎····marginTop:·mvs(xdHeight(2)),⏎·`"
prettier/prettier
|
| 42 |
COUNTER:{ color: colors.primary, fontSize: mvs(12), marginTop: mvs(xdHeight(2)) }, |
| Error |
Row 43, Column 3: "Replace `··IMAGE_CONATINER:{·width:·'100%',·height:·mvs(xdHeight(167)),·backgroundColor:·colors.black,·borderRadius:·mvs(10),·overflow:·'hidden',·marginTop:·mvs(xdHeight(15))·}` with `IMAGE_CONATINER:·{⏎····width:·'100%',⏎····height:·mvs(xdHeight(167)),⏎····backgroundColor:·colors.black,⏎····borderRadius:·mvs(10),⏎····overflow:·'hidden',⏎····marginTop:·mvs(xdHeight(15)),⏎··},`"
prettier/prettier
|
| Warning |
Row 43, Column 170: "Missing trailing comma."
comma-dangle
|
| 43 |
IMAGE_CONATINER:{ width: '100%', height: mvs(xdHeight(167)), backgroundColor: colors.black, borderRadius: mvs(10), overflow: 'hidden', marginTop: mvs(xdHeight(15)) } |
| Warning |
Row 44, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 44, Column 4: "Insert `⏎`"
prettier/prettier
|
| 44 |
}); |
|
|
|
/src/components/molecules/destination-card/highest-paid-destination-card.js
|
75 problems (46 errors, 29 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 19: "Replace `"react"` with `'react';`"
prettier/prettier
|
| Warning |
Row 1, Column 19: "Strings must use singlequote."
quotes
|
| Warning |
Row 1, Column 26: "Missing semicolon."
semi
|
| Error |
Row 2, Column 20: "Replace `"../../../config/colors"` with `'../../../config/colors';`"
prettier/prettier
|
| Warning |
Row 2, Column 20: "Strings must use singlequote."
quotes
|
| Warning |
Row 2, Column 44: "Missing semicolon."
semi
|
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 4, Column 9: "Replace `·xdHeight·}·from·"../../../config/metrices"` with `xdHeight}·from·'../../../config/metrices';`"
prettier/prettier
|
| Warning |
Row 4, Column 26: "Strings must use singlequote."
quotes
|
| Warning |
Row 4, Column 52: "Missing semicolon."
semi
|
| Error |
Row 5, Column 9: "Replace `·Image,·ImageBackground,·StyleSheet,·View,·}·from·"react-native"` with `Image,·ImageBackground,·StyleSheet,·View}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 5, Column 10: "'Image' is defined but never used."
no-unused-vars
|
| Warning |
Row 5, Column 17: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Warning |
Row 5, Column 50: "Unexpected trailing comma."
comma-dangle
|
| Warning |
Row 5, Column 59: "Strings must use singlequote."
quotes
|
| Warning |
Row 5, Column 73: "Missing semicolon."
semi
|
| Error |
Row 6, Column 21: "Replace `"../../../presentation/typography/regular-text"` with `'../../../presentation/typography/regular-text';`"
prettier/prettier
|
| Warning |
Row 6, Column 21: "Strings must use singlequote."
quotes
|
| Warning |
Row 6, Column 68: "Missing semicolon."
semi
|
| Error |
Row 7, Column 21: "Replace `"../../atoms/Button"` with `'../../atoms/Button';`"
prettier/prettier
|
| Warning |
Row 7, Column 21: "Strings must use singlequote."
quotes
|
| Warning |
Row 7, Column 41: "Missing semicolon."
semi
|
| Error |
Row 8, Column 30: "Replace `"../../atoms/Placeholder"` with `'../../atoms/Placeholder'`"
prettier/prettier
|
| Warning |
Row 8, Column 30: "Strings must use singlequote."
quotes
|
| Error |
Row 9, Column 48: "Insert `·`"
prettier/prettier
|
| Warning |
Row 10, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 10, Column 2: "Delete `⏎···`"
prettier/prettier
|
| Error |
Row 12, Column 5: "Replace `········`"
prettier/prettier
|
| Error |
Row 14, Column 7: "Replace `······>` with `prettier/prettier
|
| Error |
Row 15, Column 9: "Replace `········` with `style={{⏎··········flexDirection:·'row',⏎··········alignItems:·'center',⏎··········justifyContent:·'space-between',`"
prettier/prettier
|
| Warning |
Row 15, Column 30: "Inline style: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| Error |
Row 16, Column 9: "Replace `········` with `}}>⏎········prettier/prettier
|
| Error |
Row 17, Column 9: "Replace `········` with `/>⏎········prettier/prettier
|
| Error |
Row 18, Column 9: "Replace `··` with `/>⏎`"
prettier/prettier
|
| Error |
Row 19, Column 1: "Replace `·················prettier/prettier
|
| Warning |
Row 19, Column 35: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 20, Column 9: "Replace `·········bg_img·=·` with `bg_img=`"
prettier/prettier
|
| Error |
Row 21, Column 1: "Replace `·················containerStyle={{...styles.IMAGE_CONATINER,}}/>` with `········containerStyle={{...styles.IMAGE_CONATINER}}`"
prettier/prettier
|
| Warning |
Row 21, Column 60: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 22, Column 7: "Replace `···········⏎······prettier/prettier
|
| Warning |
Row 22, Column 31: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Error |
Row 23, Column 9: "Replace `········` with `prettier/prettier
|
| Warning |
Row 23, Column 30: "Inline style: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between',
width: '49%'
}"
react-native/no-inline-styles
|
| Error |
Row 24, Column 11: "Replace `··········` with `}}>⏎··········prettier/prettier
|
| Error |
Row 25, Column 11: "Insert `/>⏎`"
prettier/prettier
|
| Error |
Row 26, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 27, Column 1: "Replace `················prettier/prettier
|
| Warning |
Row 27, Column 39: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 28, Column 1: "Replace `················onClick={()·=>·props.navigation.navigate('browseOrders',·{order:item})}·⏎················title={'Browse·Orders'}·style={styles.BROWSE···}/>` with `··········onClick={()·=>⏎············props.navigation.navigate('browseOrders',·{order:·item})⏎··········}⏎··········title={'Browse·Orders'}⏎··········style={styles.BROWSE}`"
prettier/prettier
|
| Warning |
Row 28, Column 88: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 30, Column 9: "Replace `··` with `/>⏎`"
prettier/prettier
|
| Error |
Row 31, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 32, Column 1: "Replace `····)` with `··);`"
prettier/prettier
|
| Warning |
Row 32, Column 6: "Missing semicolon."
semi
|
| Error |
Row 33, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 33, Column 2: "Missing semicolon."
semi
|
| Error |
Row 37, Column 3: "Replace `··CONTAINER:` with `CONTAINER:·`"
prettier/prettier
|
| Error |
Row 38, Column 1: "Replace `········marginRight:` with `····marginRight:·`"
prettier/prettier
|
| Error |
Row 39, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 40, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 41, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 42, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 43, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 44, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 45, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 46, Column 1: "Replace `········marginBottom:` with `····marginBottom:·`"
prettier/prettier
|
| Error |
Row 47, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 48, Column 3: "Replace `··REWARD:{·color:·colors.primary,·marginTop:·mvs(xdHeight(15))·` with `REWARD:·{color:·colors.primary,·marginTop:·mvs(xdHeight(15))`"
prettier/prettier
|
| Error |
Row 49, Column 1: "Replace `····BROWSE·:{marginTop:mvs(xdHeight(15)),width:'49%',height:` with `··BROWSE:·{marginTop:·mvs(xdHeight(15)),·width:·'49%',·height:·`"
prettier/prettier
|
| Error |
Row 50, Column 1: "Replace `····COUNTER:{·color:·colors.primary,·fontSize:·mvs(15),·` with `··COUNTER:·{color:·colors.primary,·fontSize:·mvs(15)`"
prettier/prettier
|
| Warning |
Row 50, Column 55: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 51, Column 3: "Replace `··IMAGE_CONATINER:{width:'99.5%',height:mvs(167),marginTop:mvs(10),borderRadius:mvs(10)}` with `IMAGE_CONATINER:·{⏎····width:·'99.5%',⏎····height:·mvs(167),⏎····marginTop:·mvs(10),⏎····borderRadius:·mvs(10),⏎··},`"
prettier/prettier
|
| Warning |
Row 51, Column 91: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 52, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 52, Column 4: "Insert `⏎`"
prettier/prettier
|
| Line |
Source |
| Error |
Row 1, Column 19: "Replace `"react"` with `'react';`"
prettier/prettier
|
| Warning |
Row 1, Column 19: "Strings must use singlequote."
quotes
|
| Warning |
Row 1, Column 26: "Missing semicolon."
semi
|
| 1 |
import React from "react" |
| Error |
Row 2, Column 20: "Replace `"../../../config/colors"` with `'../../../config/colors';`"
prettier/prettier
|
| Warning |
Row 2, Column 20: "Strings must use singlequote."
quotes
|
| Warning |
Row 2, Column 44: "Missing semicolon."
semi
|
| 2 |
import colors from "../../../config/colors" |
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 3 |
import { mvs } from '../../../config/metrices'; |
| Error |
Row 4, Column 9: "Replace `·xdHeight·}·from·"../../../config/metrices"` with `xdHeight}·from·'../../../config/metrices';`"
prettier/prettier
|
| Warning |
Row 4, Column 26: "Strings must use singlequote."
quotes
|
| Warning |
Row 4, Column 52: "Missing semicolon."
semi
|
| 4 |
import { xdHeight } from "../../../config/metrices" |
| Error |
Row 5, Column 9: "Replace `·Image,·ImageBackground,·StyleSheet,·View,·}·from·"react-native"` with `Image,·ImageBackground,·StyleSheet,·View}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 5, Column 10: "'Image' is defined but never used."
no-unused-vars
|
| Warning |
Row 5, Column 17: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Warning |
Row 5, Column 50: "Unexpected trailing comma."
comma-dangle
|
| Warning |
Row 5, Column 59: "Strings must use singlequote."
quotes
|
| Warning |
Row 5, Column 73: "Missing semicolon."
semi
|
| 5 |
import { Image, ImageBackground, StyleSheet, View, } from "react-native" |
| Error |
Row 6, Column 21: "Replace `"../../../presentation/typography/regular-text"` with `'../../../presentation/typography/regular-text';`"
prettier/prettier
|
| Warning |
Row 6, Column 21: "Strings must use singlequote."
quotes
|
| Warning |
Row 6, Column 68: "Missing semicolon."
semi
|
| 6 |
import Regular from "../../../presentation/typography/regular-text" |
| Error |
Row 7, Column 21: "Replace `"../../atoms/Button"` with `'../../atoms/Button';`"
prettier/prettier
|
| Warning |
Row 7, Column 21: "Strings must use singlequote."
quotes
|
| Warning |
Row 7, Column 41: "Missing semicolon."
semi
|
| 7 |
import Buttons from "../../atoms/Button" |
| Error |
Row 8, Column 30: "Replace `"../../atoms/Placeholder"` with `'../../atoms/Placeholder'`"
prettier/prettier
|
| Warning |
Row 8, Column 30: "Strings must use singlequote."
quotes
|
| 8 |
import ImagePlaceholder from "../../atoms/Placeholder"; |
| Error |
Row 9, Column 48: "Insert `·`"
prettier/prettier
|
| 9 |
const HighestDestinationCard = ({onClick, item,...props}) => { |
| Warning |
Row 10, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 10, Column 2: "Delete `⏎···`"
prettier/prettier
|
| 10 |
|
| 11 |
return ( |
| Error |
Row 12, Column 5: "Replace `········`"
prettier/prettier
|
| 12 |
<View |
| 13 |
style={styles.CONTAINER} |
| Error |
Row 14, Column 7: "Replace `······>` with `prettier/prettier
|
| 14 |
> |
| Error |
Row 15, Column 9: "Replace `········` with `style={{⏎··········flexDirection:·'row',⏎··········alignItems:·'center',⏎··········justifyContent:·'space-between',`"
prettier/prettier
|
| Warning |
Row 15, Column 30: "Inline style: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| 15 |
<View style={{flexDirection:'row',alignItems:'center',justifyContent:'space-between'}}> |
| Error |
Row 16, Column 9: "Replace `········` with `}}>⏎········prettier/prettier
|
| 16 |
<Regular numberOfLines={1} label={`${item?.destination}`} style={{ color: colors.typeHeader }} /> |
| Error |
Row 17, Column 9: "Replace `········` with `/>⏎········prettier/prettier
|
| 17 |
<Regular label={`${item?.total_orders} Orders`} style={styles.COUNTER} /> |
| Error |
Row 18, Column 9: "Replace `··` with `/>⏎`"
prettier/prettier
|
| 18 |
</View> |
| Error |
Row 19, Column 1: "Replace `·················prettier/prettier
|
| Warning |
Row 19, Column 35: "Trailing spaces not allowed."
no-trailing-spaces
|
| 19 |
<ImagePlaceholder |
| Error |
Row 20, Column 9: "Replace `·········bg_img·=·` with `bg_img=`"
prettier/prettier
|
| 20 |
bg_img = {item?.land_mark} |
| Error |
Row 21, Column 1: "Replace `·················containerStyle={{...styles.IMAGE_CONATINER,}}/>` with `········containerStyle={{...styles.IMAGE_CONATINER}}`"
prettier/prettier
|
| Warning |
Row 21, Column 60: "Unexpected trailing comma."
comma-dangle
|
| 21 |
containerStyle={{...styles.IMAGE_CONATINER,}}/> |
| Error |
Row 22, Column 7: "Replace `···········⏎······prettier/prettier
|
| Warning |
Row 22, Column 31: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| 22 |
<View style={{flexDirection:'row',justifyContent:'space-between'}}> |
| Error |
Row 23, Column 9: "Replace `········` with `prettier/prettier
|
| Warning |
Row 23, Column 30: "Inline style: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between',
width: '49%'
}"
react-native/no-inline-styles
|
| 23 |
<View style={{flexDirection:'row',alignItems:'center',justifyContent:'space-between',width:'49%'}}> |
| Error |
Row 24, Column 11: "Replace `··········` with `}}>⏎··········prettier/prettier
|
| 24 |
<Regular label={'Rewards'} style={{ ...styles.REWARD, fontSize : mvs(12)}} /> |
| Error |
Row 25, Column 11: "Insert `/>⏎`"
prettier/prettier
|
| 25 |
<Regular label={`${item?.total_reward}`} style={styles.REWARD} /> |
| Error |
Row 26, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 26 |
</View> |
| Error |
Row 27, Column 1: "Replace `················prettier/prettier
|
| Warning |
Row 27, Column 39: "Trailing spaces not allowed."
no-trailing-spaces
|
| 27 |
<Buttons.ButtonPrimary |
| Error |
Row 28, Column 1: "Replace `················onClick={()·=>·props.navigation.navigate('browseOrders',·{order:item})}·⏎················title={'Browse·Orders'}·style={styles.BROWSE···}/>` with `··········onClick={()·=>⏎············props.navigation.navigate('browseOrders',·{order:·item})⏎··········}⏎··········title={'Browse·Orders'}⏎··········style={styles.BROWSE}`"
prettier/prettier
|
| Warning |
Row 28, Column 88: "Trailing spaces not allowed."
no-trailing-spaces
|
| 28 |
onClick={() => props.navigation.navigate('browseOrders', {order:item})} |
| 29 |
title={'Browse Orders'} style={styles.BROWSE }/> |
| Error |
Row 30, Column 9: "Replace `··` with `/>⏎`"
prettier/prettier
|
| 30 |
</View> |
| Error |
Row 31, Column 1: "Delete `········`"
prettier/prettier
|
| 31 |
</View> |
| Error |
Row 32, Column 1: "Replace `····)` with `··);`"
prettier/prettier
|
| Warning |
Row 32, Column 6: "Missing semicolon."
semi
|
| 32 |
) |
| Error |
Row 33, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 33, Column 2: "Missing semicolon."
semi
|
| 33 |
} |
| 34 |
|
| 35 |
export default HighestDestinationCard; |
| 36 |
const styles = StyleSheet.create({ |
| Error |
Row 37, Column 3: "Replace `··CONTAINER:` with `CONTAINER:·`"
prettier/prettier
|
| 37 |
CONTAINER:{ |
| Error |
Row 38, Column 1: "Replace `········marginRight:` with `····marginRight:·`"
prettier/prettier
|
| 38 |
marginRight:mvs(15), |
| Error |
Row 39, Column 1: "Delete `····`"
prettier/prettier
|
| 39 |
width: '100%', |
| Error |
Row 40, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 40 |
paddingHorizontal: mvs(10), |
| Error |
Row 41, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 41 |
paddingVertical: mvs(15), |
| Error |
Row 42, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 42 |
// borderWidth: StyleSheet.hairlineWidth, |
| Error |
Row 43, Column 5: "Delete `····`"
prettier/prettier
|
| 43 |
backgroundColor: colors.secondary, |
| Error |
Row 44, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 44 |
borderRadius: mvs(20), |
| Error |
Row 45, Column 1: "Delete `····`"
prettier/prettier
|
| 45 |
borderColor: colors.border, |
| Error |
Row 46, Column 1: "Replace `········marginBottom:` with `····marginBottom:·`"
prettier/prettier
|
| 46 |
marginBottom:mvs(20), |
| Error |
Row 47, Column 1: "Delete `··`"
prettier/prettier
|
| 47 |
}, |
| Error |
Row 48, Column 3: "Replace `··REWARD:{·color:·colors.primary,·marginTop:·mvs(xdHeight(15))·` with `REWARD:·{color:·colors.primary,·marginTop:·mvs(xdHeight(15))`"
prettier/prettier
|
| 48 |
REWARD:{ color: colors.primary, marginTop: mvs(xdHeight(15)) }, |
| Error |
Row 49, Column 1: "Replace `····BROWSE·:{marginTop:mvs(xdHeight(15)),width:'49%',height:` with `··BROWSE:·{marginTop:·mvs(xdHeight(15)),·width:·'49%',·height:·`"
prettier/prettier
|
| 49 |
BROWSE :{marginTop:mvs(xdHeight(15)),width:'49%',height:mvs(38)}, |
| Error |
Row 50, Column 1: "Replace `····COUNTER:{·color:·colors.primary,·fontSize:·mvs(15),·` with `··COUNTER:·{color:·colors.primary,·fontSize:·mvs(15)`"
prettier/prettier
|
| Warning |
Row 50, Column 55: "Unexpected trailing comma."
comma-dangle
|
| 50 |
COUNTER:{ color: colors.primary, fontSize: mvs(15), }, |
| Error |
Row 51, Column 3: "Replace `··IMAGE_CONATINER:{width:'99.5%',height:mvs(167),marginTop:mvs(10),borderRadius:mvs(10)}` with `IMAGE_CONATINER:·{⏎····width:·'99.5%',⏎····height:·mvs(167),⏎····marginTop:·mvs(10),⏎····borderRadius:·mvs(10),⏎··},`"
prettier/prettier
|
| Warning |
Row 51, Column 91: "Missing trailing comma."
comma-dangle
|
| 51 |
IMAGE_CONATINER:{width:'99.5%',height:mvs(167),marginTop:mvs(10),borderRadius:mvs(10)} |
| Warning |
Row 52, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 52, Column 4: "Insert `⏎`"
prettier/prettier
|
| 52 |
}); |
|
|
|
/src/components/molecules/dual-text/dual-text.js
|
10 problems (5 errors, 5 warnings)
|
| Severity |
Rule |
| Warning |
Row 2, Column 21: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 27: "'View' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 7, Column 20: "Replace `content,·highlightText,onPress,style,highlightTextStyle,·...props` with `⏎··content,⏎··highlightText,⏎··onPress,⏎··style,⏎··highlightTextStyle,⏎··...props⏎`"
prettier/prettier
|
| Error |
Row 10, Column 45: "Insert `·`"
prettier/prettier
|
| Warning |
Row 11, Column 17: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 11, Column 17: "Replace `·⏎········onPress={onPress}··⏎········style={{...styles.TAKE_TO_LABEL,...highlightTextStyle}}·` with `⏎··········onPress={onPress}⏎··········style={{...styles.TAKE_TO_LABEL,·...highlightTextStyle}}`"
prettier/prettier
|
| Warning |
Row 12, Column 26: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 13, Column 64: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 14, Column 1: "Replace `········label={highlightText}` with `··········label={highlightText}⏎·······`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Warning |
Row 2, Column 21: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 27: "'View' is defined but never used."
no-unused-vars
|
| 2 |
import {StyleSheet, Text, View} from 'react-native'; |
| 3 |
import colors from '../../../config/colors'; |
| Error |
Row 4, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 4 |
import { mvs } from '../../../config/metrices'; |
| 5 |
import Regular from '../../../presentation/typography/regular-text'; |
| 6 |
|
| Error |
Row 7, Column 20: "Replace `content,·highlightText,onPress,style,highlightTextStyle,·...props` with `⏎··content,⏎··highlightText,⏎··onPress,⏎··style,⏎··highlightTextStyle,⏎··...props⏎`"
prettier/prettier
|
| 7 |
const DualText = ({content, highlightText,onPress,style,highlightTextStyle, ...props}) => { |
| 8 |
return ( |
| 9 |
<> |
| Error |
Row 10, Column 45: "Insert `·`"
prettier/prettier
|
| 10 |
<Regular style={{...styles.CARD_LABEL,...style}} label={content}> |
| Warning |
Row 11, Column 17: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 11, Column 17: "Replace `·⏎········onPress={onPress}··⏎········style={{...styles.TAKE_TO_LABEL,...highlightTextStyle}}·` with `⏎··········onPress={onPress}⏎··········style={{...styles.TAKE_TO_LABEL,·...highlightTextStyle}}`"
prettier/prettier
|
| 11 |
<Regular |
| Warning |
Row 12, Column 26: "Trailing spaces not allowed."
no-trailing-spaces
|
| 12 |
onPress={onPress} |
| Warning |
Row 13, Column 64: "Trailing spaces not allowed."
no-trailing-spaces
|
| 13 |
style={{...styles.TAKE_TO_LABEL,...highlightTextStyle}} |
| Error |
Row 14, Column 1: "Replace `········label={highlightText}` with `··········label={highlightText}⏎·······`"
prettier/prettier
|
| 14 |
label={highlightText} /> |
| 15 |
{props.children} |
| 16 |
</Regular> |
| 17 |
</> |
| 18 |
); |
| 19 |
}; |
| 20 |
|
| 21 |
export default DualText; |
| 22 |
|
| 23 |
const styles = StyleSheet.create({ |
| 24 |
CARD_LABEL: { |
| 25 |
color: colors.label, |
| 26 |
fontSize: mvs(12), |
| 27 |
}, |
| 28 |
|
| 29 |
TAKE_TO_LABEL: {color: colors.primary, fontSize: mvs(12)}, |
| 30 |
}); |
| 31 |
|
|
|
|
/src/components/molecules/google-search-bar/index.js
|
111 problems (87 errors, 24 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·TouchableOpacity,·View·` with `StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| Error |
Row 3, Column 9: "Replace `·GooglePlacesAutocomplete·` with `GooglePlacesAutocomplete`"
prettier/prettier
|
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 8, Column 27: "Replace `textInputContainer,containerStyle,cross=false,·inputStyle,leftArrow=true,style,·onPress,·onClick,·placeholder·=·'Enter·an·address',back,·filter·=·false,·countrySlug·=·null,·...props·` with `⏎··textInputContainer,⏎··containerStyle,⏎··cross·=·false,⏎··inputStyle,⏎··leftArrow·=·true,⏎··style,⏎··onPress,⏎··onClick,⏎··placeholder·=·'Enter·an·address',⏎··back,⏎··filter·=·false,⏎··countrySlug·=·null,⏎··...props⏎`"
prettier/prettier
|
| Warning |
Row 8, Column 66: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 8, Column 94: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 9, Column 1: "Replace `⏎····const·Left·=·SVGS['left']` with `··const·Left·=·SVGS['left'];`"
prettier/prettier
|
| Warning |
Row 10, Column 23: "["left"] is better written in dot notation."
dot-notation
|
| Warning |
Row 10, Column 30: "Missing semicolon."
semi
|
| Error |
Row 11, Column 3: "Replace `··const·Search·=·SVGS['search']` with `const·Search·=·SVGS['search'];`"
prettier/prettier
|
| Warning |
Row 11, Column 25: "["search"] is better written in dot notation."
dot-notation
|
| Warning |
Row 11, Column 34: "Missing semicolon."
semi
|
| Error |
Row 12, Column 3: "Replace `··const·Filter·=·SVGS['filter']` with `const·Filter·=·SVGS['filter'];`"
prettier/prettier
|
| Warning |
Row 12, Column 25: "["filter"] is better written in dot notation."
dot-notation
|
| Warning |
Row 12, Column 34: "Missing semicolon."
semi
|
| Error |
Row 14, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 15, Column 1: "Replace `········prettier/prettier
|
| Warning |
Row 15, Column 57: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 16, Column 1: "Replace `···········{back&&·props?.navigation?.goBack()}` with `······{back·&&·(⏎·········props?.navigation?.goBack()}⏎·········`"
prettier/prettier
|
| Warning |
Row 16, Column 17: "Operator '&&' must be spaced."
space-infix-ops
|
| Error |
Row 17, Column 11: "Delete `······`"
prettier/prettier
|
| Error |
Row 18, Column 1: "Replace `············}⏎` with `········`"
prettier/prettier
|
| Error |
Row 20, Column 7: "Insert `)}⏎⏎`"
prettier/prettier
|
| Error |
Row 21, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 22, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 23, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 24, Column 1: "Replace `················keyboardShouldPersistTaps='always'` with `········keyboardShouldPersistTaps="always"`"
prettier/prettier
|
| Warning |
Row 24, Column 43: "Unexpected usage of singlequote."
jsx-quotes
|
| Error |
Row 25, Column 9: "Replace `········query={countrySlug·?·{⏎····················` with `query={⏎··········countrySlug⏎············?·{⏎················`"
prettier/prettier
|
| Error |
Row 27, Column 1: "Replace `····················` with `················`"
prettier/prettier
|
| Error |
Row 28, Column 1: "Replace `····················components:·`country:${countrySlug}`` with `················components:·`country:${countrySlug}`,`"
prettier/prettier
|
| Warning |
Row 28, Column 57: "Missing trailing comma."
comma-dangle
|
| Error |
Row 29, Column 15: "Replace `··}·:` with `}`"
prettier/prettier
|
| Error |
Row 30, Column 13: "Replace `·······` with `:`"
prettier/prettier
|
| Error |
Row 31, Column 17: "Delete `········`"
prettier/prettier
|
| Error |
Row 32, Column 17: "Delete `········`"
prettier/prettier
|
| Error |
Row 33, Column 15: "Delete `······}`"
prettier/prettier
|
| Warning |
Row 34, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 34, Column 1: "Replace `····················` with `········}`"
prettier/prettier
|
| Error |
Row 35, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 36, Column 1: "Replace `····················container:·{·marginHorizontal:·mvs(0),...containerStyle,` with `··········container:·{marginHorizontal:·mvs(0),·...containerStyle`"
prettier/prettier
|
| Warning |
Row 36, Column 76: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 37, Column 1: "Replace `····················textInputContainer:·{·backgroundColor:·null,·height:·mvs(38),·...textInputContainer}` with `··········textInputContainer:·{⏎············backgroundColor:·null,⏎············height:·mvs(38),⏎············...textInputContainer`"
prettier/prettier
|
| Error |
Row 38, Column 11: "Replace `··········textInput:·{·backgroundColor:·null,·height:·'100%',·paddingLeft:·0,...inputStyle,·paddingRight:mvs(30),·color·:·colors.typeHeader·}` with `},⏎··········textInput:·{⏎············backgroundColor:·null,⏎············height:·'100%',⏎············paddingLeft:·0,⏎············...inputStyle,⏎············paddingRight:·mvs(30),⏎············color:·colors.typeHeader`"
prettier/prettier
|
| Error |
Row 39, Column 11: "Replace `··········listView:·{·` with `},⏎··········listView:·{`"
prettier/prettier
|
| Error |
Row 40, Column 1: "Replace `····················row:·{zIndex:` with `··········row:·{zIndex:·`"
prettier/prettier
|
| Error |
Row 41, Column 1: "Replace `····················poweredContainer:·{·backgroundColor:·null·` with `··········poweredContainer:·{backgroundColor:·null`"
prettier/prettier
|
| Warning |
Row 42, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 42, Column 1: "Delete `····················⏎········`"
prettier/prettier
|
| Error |
Row 44, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 45, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 46, Column 1: "Replace `····················placeholderTextColor·` with `··········placeholderTextColor`"
prettier/prettier
|
| Error |
Row 47, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 48, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 49, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 50, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 51, Column 9: "Replace `········GoogleReverseGeocodingQuery={{` with `GoogleReverseGeocodingQuery={`"
prettier/prettier
|
| Error |
Row 52, Column 11: "Insert `{⏎··`"
prettier/prettier
|
| Error |
Row 53, Column 11: "Delete `······}`"
prettier/prettier
|
| Error |
Row 54, Column 9: "Insert `}⏎`"
prettier/prettier
|
| Error |
Row 55, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 56, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 57, Column 11: "Delete `··········`"
prettier/prettier
|
| Error |
Row 58, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 59, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 60, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 61, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 62, Column 1: "Delete `··········`"
prettier/prettier
|
| Error |
Row 63, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 64, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Warning |
Row 65, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 65, Column 1: "Delete `············`"
prettier/prettier
|
| Error |
Row 66, Column 1: "Replace `··········{cross?null:⏎····` with `······{cross·?·null·:·(⏎`"
prettier/prettier
|
| Warning |
Row 66, Column 17: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 68, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 69, Column 11: "Replace `······style={{·...styles.search,·marginTop:·filter·?·mvs(15)·:·mvs(12)·` with `style={{...styles.search,·marginTop:·filter·?·mvs(15)·:·mvs(12)`"
prettier/prettier
|
| Error |
Row 70, Column 1: "Replace `················` with `··········`"
prettier/prettier
|
| Error |
Row 71, Column 9: "Replace `····}⏎` with ``"
prettier/prettier
|
| Error |
Row 73, Column 6: "Replace `···` with `·)}⏎····`"
prettier/prettier
|
| Error |
Row 74, Column 3: "Replace `··)` with `);`"
prettier/prettier
|
| Warning |
Row 74, Column 6: "Missing semicolon."
semi
|
| Error |
Row 75, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 75, Column 2: "Missing semicolon."
semi
|
| Error |
Row 77, Column 31: "Insert `;`"
prettier/prettier
|
| Warning |
Row 77, Column 31: "Missing semicolon."
semi
|
| Error |
Row 80, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 81, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 82, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 83, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 84, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 85, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 86, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 87, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 88, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 89, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 90, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 91, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 92, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 93, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 94, Column 1: "Replace `········marginRight:` with `····marginRight:·`"
prettier/prettier
|
| Error |
Row 95, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 96, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 97, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 98, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 99, Column 1: "Replace `········marginTop:·mvs(15)` with `····marginTop:·mvs(15),`"
prettier/prettier
|
| Warning |
Row 99, Column 27: "Missing trailing comma."
comma-dangle
|
| Error |
Row 100, Column 3: "Replace `··}` with `},`"
prettier/prettier
|
| Warning |
Row 100, Column 6: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 101, Column 3: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 101, Column 3: "Replace `·` with `;`"
prettier/prettier
|
| Warning |
Row 101, Column 3: "Missing semicolon."
semi
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·TouchableOpacity,·View·` with `StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| 2 |
import { StyleSheet, TouchableOpacity, View } from 'react-native'; |
| Error |
Row 3, Column 9: "Replace `·GooglePlacesAutocomplete·` with `GooglePlacesAutocomplete`"
prettier/prettier
|
| 3 |
import { GooglePlacesAutocomplete } from 'react-native-google-places-autocomplete'; |
| 4 |
import colors from '../../../config/colors'; |
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 5 |
import { mvs } from '../../../config/metrices'; |
| 6 |
import * as SVGS from './../../../../resource/assets/order-car-icons'; |
| 7 |
|
| Error |
Row 8, Column 27: "Replace `textInputContainer,containerStyle,cross=false,·inputStyle,leftArrow=true,style,·onPress,·onClick,·placeholder·=·'Enter·an·address',back,·filter·=·false,·countrySlug·=·null,·...props·` with `⏎··textInputContainer,⏎··containerStyle,⏎··cross·=·false,⏎··inputStyle,⏎··leftArrow·=·true,⏎··style,⏎··onPress,⏎··onClick,⏎··placeholder·=·'Enter·an·address',⏎··back,⏎··filter·=·false,⏎··countrySlug·=·null,⏎··...props⏎`"
prettier/prettier
|
| Warning |
Row 8, Column 66: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 8, Column 94: "Operator '=' must be spaced."
space-infix-ops
|
| 8 |
const GoogleSearchBar = ({textInputContainer,containerStyle,cross=false, inputStyle,leftArrow=true,style, onPress, onClick, placeholder = 'Enter an address',back, filter = false, countrySlug = null, ...props }) => { |
| Error |
Row 9, Column 1: "Replace `⏎····const·Left·=·SVGS['left']` with `··const·Left·=·SVGS['left'];`"
prettier/prettier
|
| 9 |
|
| Warning |
Row 10, Column 23: "["left"] is better written in dot notation."
dot-notation
|
| Warning |
Row 10, Column 30: "Missing semicolon."
semi
|
| 10 |
const Left = SVGS['left'] |
| Error |
Row 11, Column 3: "Replace `··const·Search·=·SVGS['search']` with `const·Search·=·SVGS['search'];`"
prettier/prettier
|
| Warning |
Row 11, Column 25: "["search"] is better written in dot notation."
dot-notation
|
| Warning |
Row 11, Column 34: "Missing semicolon."
semi
|
| 11 |
const Search = SVGS['search'] |
| Error |
Row 12, Column 3: "Replace `··const·Filter·=·SVGS['filter']` with `const·Filter·=·SVGS['filter'];`"
prettier/prettier
|
| Warning |
Row 12, Column 25: "["filter"] is better written in dot notation."
dot-notation
|
| Warning |
Row 12, Column 34: "Missing semicolon."
semi
|
| 12 |
const Filter = SVGS['filter'] |
| 13 |
|
| Error |
Row 14, Column 3: "Delete `··`"
prettier/prettier
|
| 14 |
return ( |
| Error |
Row 15, Column 1: "Replace `········prettier/prettier
|
| Warning |
Row 15, Column 57: "Unexpected trailing comma."
comma-dangle
|
| 15 |
<View style={{ ...styles.mainContainer, ...style, }}> |
| Error |
Row 16, Column 1: "Replace `···········{back&&·props?.navigation?.goBack()}` with `······{back·&&·(⏎·········props?.navigation?.goBack()}⏎·········`"
prettier/prettier
|
| Warning |
Row 16, Column 17: "Operator '&&' must be spaced."
space-infix-ops
|
| 16 |
{back&& <TouchableOpacity hitSlop={{top: 20, bottom: 20, left: 50, right: 50}} onPress={()=>props?.navigation?.goBack()} style={styles.left}> |
| Error |
Row 17, Column 11: "Delete `······`"
prettier/prettier
|
| 17 |
<Left /> |
| Error |
Row 18, Column 1: "Replace `············}⏎` with `········`"
prettier/prettier
|
| 18 |
</TouchableOpacity>} |
| 19 |
|
| Error |
Row 20, Column 7: "Insert `)}⏎⏎`"
prettier/prettier
|
| 20 |
<GooglePlacesAutocomplete |
| Error |
Row 21, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 21 |
placeholder={placeholder} |
| Error |
Row 22, Column 9: "Delete `········`"
prettier/prettier
|
| 22 |
fetchDetails={true} |
| Error |
Row 23, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 23 |
onPress={onPress} |
| Error |
Row 24, Column 1: "Replace `················keyboardShouldPersistTaps='always'` with `········keyboardShouldPersistTaps="always"`"
prettier/prettier
|
| Warning |
Row 24, Column 43: "Unexpected usage of singlequote."
jsx-quotes
|
| 24 |
keyboardShouldPersistTaps='always' |
| Error |
Row 25, Column 9: "Replace `········query={countrySlug·?·{⏎····················` with `query={⏎··········countrySlug⏎············?·{⏎················`"
prettier/prettier
|
| 25 |
query={countrySlug ? { |
| 26 |
key: 'AIzaSyCHIlIvmsXf-sllfpXK0Q-1dV7uzgyFvfw', |
| Error |
Row 27, Column 1: "Replace `····················` with `················`"
prettier/prettier
|
| 27 |
language: 'en', |
| Error |
Row 28, Column 1: "Replace `····················components:·`country:${countrySlug}`` with `················components:·`country:${countrySlug}`,`"
prettier/prettier
|
| Warning |
Row 28, Column 57: "Missing trailing comma."
comma-dangle
|
| 28 |
components: `country:${countrySlug}` |
| Error |
Row 29, Column 15: "Replace `··}·:` with `}`"
prettier/prettier
|
| 29 |
} : |
| Error |
Row 30, Column 13: "Replace `·······` with `:`"
prettier/prettier
|
| 30 |
{ |
| Error |
Row 31, Column 17: "Delete `········`"
prettier/prettier
|
| 31 |
key: 'AIzaSyCHIlIvmsXf-sllfpXK0Q-1dV7uzgyFvfw', |
| Error |
Row 32, Column 17: "Delete `········`"
prettier/prettier
|
| 32 |
language: 'en', |
| Error |
Row 33, Column 15: "Delete `······}`"
prettier/prettier
|
| 33 |
}} |
| Warning |
Row 34, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 34, Column 1: "Replace `····················` with `········}`"
prettier/prettier
|
| 34 |
|
| Error |
Row 35, Column 9: "Delete `········`"
prettier/prettier
|
| 35 |
styles={{ |
| Error |
Row 36, Column 1: "Replace `····················container:·{·marginHorizontal:·mvs(0),...containerStyle,` with `··········container:·{marginHorizontal:·mvs(0),·...containerStyle`"
prettier/prettier
|
| Warning |
Row 36, Column 76: "Unexpected trailing comma."
comma-dangle
|
| 36 |
container: { marginHorizontal: mvs(0),...containerStyle,}, |
| Error |
Row 37, Column 1: "Replace `····················textInputContainer:·{·backgroundColor:·null,·height:·mvs(38),·...textInputContainer}` with `··········textInputContainer:·{⏎············backgroundColor:·null,⏎············height:·mvs(38),⏎············...textInputContainer`"
prettier/prettier
|
| 37 |
textInputContainer: { backgroundColor: null, height: mvs(38), ...textInputContainer}, |
| Error |
Row 38, Column 11: "Replace `··········textInput:·{·backgroundColor:·null,·height:·'100%',·paddingLeft:·0,...inputStyle,·paddingRight:mvs(30),·color·:·colors.typeHeader·}` with `},⏎··········textInput:·{⏎············backgroundColor:·null,⏎············height:·'100%',⏎············paddingLeft:·0,⏎············...inputStyle,⏎············paddingRight:·mvs(30),⏎············color:·colors.typeHeader`"
prettier/prettier
|
| 38 |
textInput: { backgroundColor: null, height: '100%', paddingLeft: 0,...inputStyle, paddingRight:mvs(30), color : colors.typeHeader }, |
| Error |
Row 39, Column 11: "Replace `··········listView:·{·` with `},⏎··········listView:·{`"
prettier/prettier
|
| 39 |
listView: { }, |
| Error |
Row 40, Column 1: "Replace `····················row:·{zIndex:` with `··········row:·{zIndex:·`"
prettier/prettier
|
| 40 |
row: {zIndex:1001}, |
| Error |
Row 41, Column 1: "Replace `····················poweredContainer:·{·backgroundColor:·null·` with `··········poweredContainer:·{backgroundColor:·null`"
prettier/prettier
|
| 41 |
poweredContainer: { backgroundColor: null }, |
| Warning |
Row 42, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 42, Column 1: "Delete `····················⏎········`"
prettier/prettier
|
| 42 |
|
| 43 |
}} |
| Error |
Row 44, Column 1: "Delete `········`"
prettier/prettier
|
| 44 |
textInputProps={{ |
| Error |
Row 45, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 45 |
clearButtonMode: false, |
| Error |
Row 46, Column 1: "Replace `····················placeholderTextColor·` with `··········placeholderTextColor`"
prettier/prettier
|
| 46 |
placeholderTextColor : colors.input_placehoder, |
| Error |
Row 47, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 47 |
}} |
| Error |
Row 48, Column 1: "Delete `········`"
prettier/prettier
|
| 48 |
currentLocation={true} // Will add a 'Current location' button at the top of the predefined places list |
| Error |
Row 49, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 49 |
currentLocationLabel="Current location" |
| Error |
Row 50, Column 1: "Delete `········`"
prettier/prettier
|
| 50 |
nearbyPlacesAPI="GooglePlacesSearch" // Which API to use: GoogleReverseGeocoding or GooglePlacesSearch |
| Error |
Row 51, Column 9: "Replace `········GoogleReverseGeocodingQuery={{` with `GoogleReverseGeocodingQuery={`"
prettier/prettier
|
| 51 |
GoogleReverseGeocodingQuery={{ |
| Error |
Row 52, Column 11: "Insert `{⏎··`"
prettier/prettier
|
| 52 |
// available options for GoogleReverseGeocoding API : https://developers.google.com/maps/documentation/geocoding/intro |
| Error |
Row 53, Column 11: "Delete `······}`"
prettier/prettier
|
| 53 |
}} |
| Error |
Row 54, Column 9: "Insert `}⏎`"
prettier/prettier
|
| 54 |
// predefinedPlaces={['work']} |
| Error |
Row 55, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 55 |
GooglePlacesSearchQuery={{ |
| Error |
Row 56, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 56 |
// available options for GooglePlacesSearch API : https://developers.google.com/places/web-service/search |
| Error |
Row 57, Column 11: "Delete `··········`"
prettier/prettier
|
| 57 |
rankby: 'distance', |
| Error |
Row 58, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 58 |
types: 'food', |
| Error |
Row 59, Column 9: "Delete `········`"
prettier/prettier
|
| 59 |
}} |
| Error |
Row 60, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 60 |
filterReverseGeocodingByTypes={[ |
| Error |
Row 61, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 61 |
'locality', |
| Error |
Row 62, Column 1: "Delete `··········`"
prettier/prettier
|
| 62 |
'administrative_area_level_3', |
| Error |
Row 63, Column 1: "Delete `········`"
prettier/prettier
|
| 63 |
]} // filter the reverse geocoding results by types - ['locality', 'administrative_area_level_3'] if you want to display only cities |
| Error |
Row 64, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 64 |
/> |
| Warning |
Row 65, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 65, Column 1: "Delete `············`"
prettier/prettier
|
| 65 |
|
| Error |
Row 66, Column 1: "Replace `··········{cross?null:⏎····` with `······{cross·?·null·:·(⏎`"
prettier/prettier
|
| Warning |
Row 66, Column 17: "Operator '?' must be spaced."
space-infix-ops
|
| 66 |
{cross?null: |
| 67 |
<TouchableOpacity |
| Error |
Row 68, Column 1: "Delete `······`"
prettier/prettier
|
| 68 |
onPress={onClick} |
| Error |
Row 69, Column 11: "Replace `······style={{·...styles.search,·marginTop:·filter·?·mvs(15)·:·mvs(12)·` with `style={{...styles.search,·marginTop:·filter·?·mvs(15)·:·mvs(12)`"
prettier/prettier
|
| 69 |
style={{ ...styles.search, marginTop: filter ? mvs(15) : mvs(12) }}> |
| Error |
Row 70, Column 1: "Replace `················` with `··········`"
prettier/prettier
|
| 70 |
{filter ? <Filter /> : <Search />} |
| Error |
Row 71, Column 9: "Replace `····}⏎` with ``"
prettier/prettier
|
| 71 |
</TouchableOpacity>} |
| 72 |
|
| Error |
Row 73, Column 6: "Replace `···` with `·)}⏎····`"
prettier/prettier
|
| 73 |
</View> |
| Error |
Row 74, Column 3: "Replace `··)` with `);`"
prettier/prettier
|
| Warning |
Row 74, Column 6: "Missing semicolon."
semi
|
| 74 |
) |
| Error |
Row 75, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 75, Column 2: "Missing semicolon."
semi
|
| 75 |
} |
| 76 |
|
| Error |
Row 77, Column 31: "Insert `;`"
prettier/prettier
|
| Warning |
Row 77, Column 31: "Missing semicolon."
semi
|
| 77 |
export default GoogleSearchBar |
| 78 |
|
| 79 |
const styles = StyleSheet.create({ |
| Error |
Row 80, Column 3: "Delete `··`"
prettier/prettier
|
| 80 |
mainContainer: { |
| Error |
Row 81, Column 1: "Delete `····`"
prettier/prettier
|
| 81 |
flex: 1, |
| Error |
Row 82, Column 5: "Delete `····`"
prettier/prettier
|
| 82 |
backgroundColor: colors.secondary, |
| Error |
Row 83, Column 5: "Delete `····`"
prettier/prettier
|
| 83 |
borderRadius: mvs(10), |
| Error |
Row 84, Column 1: "Delete `····`"
prettier/prettier
|
| 84 |
paddingHorizontal: mvs(20), |
| Error |
Row 85, Column 5: "Delete `····`"
prettier/prettier
|
| 85 |
flexDirection: 'row', |
| Error |
Row 86, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 86 |
minHeight: mvs(38), |
| Error |
Row 87, Column 1: "Delete `····`"
prettier/prettier
|
| 87 |
//paddingTop : mvs(13.2) |
| Error |
Row 88, Column 5: "Delete `····`"
prettier/prettier
|
| 88 |
//alignItems : 'center' |
| Error |
Row 89, Column 3: "Delete `··`"
prettier/prettier
|
| 89 |
}, |
| Error |
Row 90, Column 1: "Delete `··`"
prettier/prettier
|
| 90 |
left: { |
| Error |
Row 91, Column 1: "Delete `····`"
prettier/prettier
|
| 91 |
// position: 'absolute', |
| Error |
Row 92, Column 5: "Delete `····`"
prettier/prettier
|
| 92 |
// top:mvs(13.2), |
| Error |
Row 93, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 93 |
marginTop: mvs(13.2), |
| Error |
Row 94, Column 1: "Replace `········marginRight:` with `····marginRight:·`"
prettier/prettier
|
| 94 |
marginRight:mvs(10), |
| Error |
Row 95, Column 1: "Delete `··`"
prettier/prettier
|
| 95 |
}, |
| Error |
Row 96, Column 3: "Delete `··`"
prettier/prettier
|
| 96 |
search: { |
| Error |
Row 97, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 97 |
position: 'absolute', |
| Error |
Row 98, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 98 |
right: mvs(20), |
| Error |
Row 99, Column 1: "Replace `········marginTop:·mvs(15)` with `····marginTop:·mvs(15),`"
prettier/prettier
|
| Warning |
Row 99, Column 27: "Missing trailing comma."
comma-dangle
|
| 99 |
marginTop: mvs(15) |
| Error |
Row 100, Column 3: "Replace `··}` with `},`"
prettier/prettier
|
| Warning |
Row 100, Column 6: "Missing trailing comma."
comma-dangle
|
| 100 |
} |
| Warning |
Row 101, Column 3: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 101, Column 3: "Replace `·` with `;`"
prettier/prettier
|
| Warning |
Row 101, Column 3: "Missing semicolon."
semi
|
| 101 |
}) |
| 102 |
|
|
| Severity |
Rule |
| Warning |
Row 1, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| Warning |
Row 3, Column 9: "'Image' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Warning |
Row 5, Column 9: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 8: "'Inbox' is defined but never used."
no-unused-vars
|
| Warning |
Row 8, Column 18: "'scale' is defined but never used."
no-unused-vars
|
| Warning |
Row 8, Column 25: "'vs' is defined but never used."
no-unused-vars
|
| Warning |
Row 12, Column 8: "'User' is defined but never used."
no-unused-vars
|
| Error |
Row 21, Column 18: "Insert `,`"
prettier/prettier
|
| Warning |
Row 21, Column 18: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 26, Column 22: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Warning |
Row 35, Column 11: "Inline style: {
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
position: 'absolute'
}"
react-native/no-inline-styles
|
| Error |
Row 42, Column 31: "Replace `?mvs(59):` with `·?·mvs(59)·:·`"
prettier/prettier
|
| Warning |
Row 42, Column 31: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 45, Column 28: "Inline style: { alignSelf: 'center', width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 47, Column 19: "Insert `·`"
prettier/prettier
|
| Warning |
Row 53, Column 29: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 56, Column 17: "Replace `⏎··········label={title}⏎··········style={styles.TITLE}⏎·······` with `·label={title}·style={styles.TITLE}`"
prettier/prettier
|
| Error |
Row 64, Column 22: "Replace `=state=>` with `·=·state·=>·`"
prettier/prettier
|
| Warning |
Row 64, Column 22: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 65, Column 3: "Expected space(s) after "return"."
keyword-spacing
|
| Error |
Row 65, Column 9: "Insert `·`"
prettier/prettier
|
| Error |
Row 66, Column 67: "Replace `||""` with `·||·'',`"
prettier/prettier
|
| Warning |
Row 66, Column 67: "Operator '||' must be spaced."
space-infix-ops
|
| Warning |
Row 66, Column 69: "Strings must use singlequote."
quotes
|
| Warning |
Row 66, Column 71: "Missing trailing comma."
comma-dangle
|
| Error |
Row 67, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 67, Column 4: "Missing semicolon."
semi
|
| Error |
Row 68, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 68, Column 2: "Missing semicolon."
semi
|
| Error |
Row 69, Column 40: "Insert `·`"
prettier/prettier
|
| Line |
Source |
| Warning |
Row 1, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| 1 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 2 |
import React from 'react'; |
| Warning |
Row 3, Column 9: "'Image' is defined but never used."
no-unused-vars
|
| 3 |
import {Image, StyleSheet, TouchableOpacity, View} from 'react-native'; |
| Error |
Row 4, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 4 |
import { connect } from 'react-redux'; |
| Warning |
Row 5, Column 9: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 5 |
import {TAKE_TO_IMAGES} from '../../../../resource/assets/image_resouce'; |
| Warning |
Row 6, Column 8: "'Inbox' is defined but never used."
no-unused-vars
|
| 6 |
import Inbox from '../../../../resource/assets/tabbar-icons/inbox.svg'; |
| 7 |
import colors from '../../../config/colors'; |
| Warning |
Row 8, Column 18: "'scale' is defined but never used."
no-unused-vars
|
| Warning |
Row 8, Column 25: "'vs' is defined but never used."
no-unused-vars
|
| 8 |
import {ms, mvs, scale, vs} from '../../../config/metrices'; |
| 9 |
import Regular from '../../../presentation/typography/regular-text'; |
| 10 |
import ImagePlaceholder from '../../atoms/Placeholder'; |
| 11 |
import Back from './../../../../resource/assets/headers-icons/back.svg'; |
| Warning |
Row 12, Column 8: "'User' is defined but never used."
no-unused-vars
|
| 12 |
import User from './../../../../resource/assets/headers-icons/user.svg'; |
| 13 |
const Header = ({ |
| 14 |
navigation, |
| 15 |
route, |
| 16 |
title = 'Home', |
| 17 |
allowBackBtn = false, |
| 18 |
spacebetween = false, |
| 19 |
avatar = false, |
| 20 |
chat = false, |
| Error |
Row 21, Column 18: "Insert `,`"
prettier/prettier
|
| Warning |
Row 21, Column 18: "Missing trailing comma."
comma-dangle
|
| 21 |
profile_picture |
| 22 |
}) => { |
| 23 |
return ( |
| 24 |
<View style={styles.CONTAINER}> |
| 25 |
{allowBackBtn && ( |
| Warning |
Row 26, Column 22: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| 26 |
<View style={{flexDirection: 'row'}}> |
| 27 |
<TouchableOpacity onPress={() => navigation.goBack()}> |
| 28 |
<Back /> |
| 29 |
</TouchableOpacity> |
| 30 |
</View> |
| 31 |
)} |
| 32 |
|
| 33 |
<View |
| 34 |
style={[ |
| Warning |
Row 35, Column 11: "Inline style: {
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
position: 'absolute'
}"
react-native/no-inline-styles
|
| 35 |
{ |
| 36 |
flexDirection: 'row', |
| 37 |
justifyContent: 'center', |
| 38 |
alignItems: 'center', |
| 39 |
// width:'100%', |
| 40 |
position: 'absolute', |
| 41 |
bottom: mvs(40), |
| Error |
Row 42, Column 31: "Replace `?mvs(59):` with `·?·mvs(59)·:·`"
prettier/prettier
|
| Warning |
Row 42, Column 31: "Operator '?' must be spaced."
space-infix-ops
|
| 42 |
left: allowBackBtn?mvs(59):mvs(30), |
| 43 |
//borderWidth:1 |
| 44 |
}, |
| Warning |
Row 45, Column 28: "Inline style: { alignSelf: 'center', width: '100%' }"
react-native/no-inline-styles
|
| 45 |
!allowBackBtn && { |
| 46 |
alignSelf: 'center', |
| Error |
Row 47, Column 19: "Insert `·`"
prettier/prettier
|
| 47 |
width:'100%', |
| 48 |
}, |
| 49 |
]}> |
| 50 |
<View style={styles.AVATAR}> |
| 51 |
<ImagePlaceholder |
| 52 |
bg_img={profile_picture} |
| Warning |
Row 53, Column 29: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| 53 |
containerStyle={{height: '100%', width: '100%'}} |
| 54 |
/> |
| 55 |
</View> |
| Error |
Row 56, Column 17: "Replace `⏎··········label={title}⏎··········style={styles.TITLE}⏎·······` with `·label={title}·style={styles.TITLE}`"
prettier/prettier
|
| 56 |
<Regular |
| 57 |
label={title} |
| 58 |
style={styles.TITLE} |
| 59 |
/> |
| 60 |
</View> |
| 61 |
</View> |
| 62 |
); |
| 63 |
}; |
| Error |
Row 64, Column 22: "Replace `=state=>` with `·=·state·=>·`"
prettier/prettier
|
| Warning |
Row 64, Column 22: "Operator '=' must be spaced."
space-infix-ops
|
| 64 |
const mapStateToProps=state=>{ |
| Warning |
Row 65, Column 3: "Expected space(s) after "return"."
keyword-spacing
|
| Error |
Row 65, Column 9: "Insert `·`"
prettier/prettier
|
| 65 |
return{ |
| Error |
Row 66, Column 67: "Replace `||""` with `·||·'',`"
prettier/prettier
|
| Warning |
Row 66, Column 67: "Operator '||' must be spaced."
space-infix-ops
|
| Warning |
Row 66, Column 69: "Strings must use singlequote."
quotes
|
| Warning |
Row 66, Column 71: "Missing trailing comma."
comma-dangle
|
| 66 |
profile_picture: state.auth.userInfo?.profile?.profile_picture||"" |
| Error |
Row 67, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 67, Column 4: "Missing semicolon."
semi
|
| 67 |
} |
| Error |
Row 68, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 68, Column 2: "Missing semicolon."
semi
|
| 68 |
} |
| Error |
Row 69, Column 40: "Insert `·`"
prettier/prettier
|
| 69 |
export default connect(mapStateToProps,{})(Header); |
| 70 |
|
| 71 |
const styles = StyleSheet.create({ |
| 72 |
CONTAINER: { |
| 73 |
flexDirection: 'row', |
| 74 |
justifyContent: 'space-between', |
| 75 |
alignItems: 'flex-end', |
| 76 |
paddingBottom: mvs(53), |
| 77 |
backgroundColor: colors.white, |
| 78 |
height: mvs(103), |
| 79 |
paddingHorizontal: mvs(22), |
| 80 |
borderBottomLeftRadius: mvs(20), |
| 81 |
borderBottomRightRadius: mvs(20), |
| 82 |
// ...colors.shadow |
| 83 |
}, |
| 84 |
TITLE: { |
| 85 |
fontSize: ms(18), |
| 86 |
color: colors.typeHeader, |
| 87 |
marginLeft: mvs(12), |
| 88 |
}, |
| 89 |
AVATAR: { |
| 90 |
height: mvs(30), |
| 91 |
width: mvs(30), |
| 92 |
// top: mvs(4), |
| 93 |
borderRadius: mvs(5), |
| 94 |
overflow: 'hidden', |
| 95 |
}, |
| 96 |
}); |
| 97 |
|
|
| Severity |
Rule |
| Error |
Row 3, Column 9: "Replace `·Image,·StyleSheet,·TouchableOpacity,·View·` with `Image,·StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| Warning |
Row 3, Column 10: "'Image' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 5, Column 9: "Replace `·Call,·VideoCall·` with `⏎··Call,⏎··VideoCall,⏎`"
prettier/prettier
|
| Error |
Row 6, Column 9: "Replace `·HeaderLogo·` with `HeaderLogo`"
prettier/prettier
|
| Error |
Row 7, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 7, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 9: "Replace `·ms,·mvs,·scale,·vs·` with `ms,·mvs,·scale,·vs`"
prettier/prettier
|
| Warning |
Row 10, Column 10: "'ms' is defined but never used."
no-unused-vars
|
| Warning |
Row 10, Column 26: "'vs' is defined but never used."
no-unused-vars
|
| Error |
Row 15, Column 9: "Replace `·bell·as·Bell,·user·as·User,·back·as·Back·` with `⏎··bell·as·Bell,⏎··user·as·User,⏎··back·as·Back,⏎`"
prettier/prettier
|
| Error |
Row 33, Column 23: "Insert `,`"
prettier/prettier
|
| Warning |
Row 33, Column 23: "Missing trailing comma."
comma-dangle
|
| Error |
Row 36, Column 19: "Replace `·...styles.CONTAINER,·...style·` with `...styles.CONTAINER,·...style`"
prettier/prettier
|
| Warning |
Row 39, Column 24: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 39, Column 25: "Replace `·flexDirection:·'row',·` with `flexDirection:·'row'`"
prettier/prettier
|
| Warning |
Row 39, Column 46: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 40, Column 30: "Replace `·onPress={()·=>·{·⏎··············navigation.goBack()·` with `⏎··············onPress={()·=>·{⏎················navigation.goBack();`"
prettier/prettier
|
| Warning |
Row 40, Column 47: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 41, Column 34: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 41, Column 34: "Missing semicolon."
semi
|
| Error |
Row 46, Column 29: "Replace `·paddingLeft:·scale(21.5)·` with `paddingLeft:·scale(21.5)`"
prettier/prettier
|
| Error |
Row 55, Column 23: "Insert `(⏎··········`"
prettier/prettier
|
| Error |
Row 56, Column 9: "Insert `)`"
prettier/prettier
|
| Error |
Row 58, Column 8: "Replace `(!headerLog·&&·spacebetween)` with `!headerLog·&&·spacebetween`"
prettier/prettier
|
| Error |
Row 67, Column 30: "Insert `·(`"
prettier/prettier
|
| Error |
Row 75, Column 9: "Replace `··:` with `)·:·(`"
prettier/prettier
|
| Warning |
Row 76, Column 24: "Inline style: { flexDirection: 'row', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 76, Column 25: "Replace `·flexDirection:·'row',·alignItems:·'center',·` with `flexDirection:·'row',·alignItems:·'center'`"
prettier/prettier
|
| Warning |
Row 76, Column 68: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 77, Column 21: "Insert `·(`"
prettier/prettier
|
| Error |
Row 78, Column 29: "Replace `·paddingRight:·mvs(30)·` with `paddingRight:·mvs(30)`"
prettier/prettier
|
| Error |
Row 79, Column 23: "Replace `·height={mvs(25)}·width={mvs(25)}·onPress={()·=>·navigation.navigate('menu')}` with `⏎··················height={mvs(25)}⏎··················width={mvs(25)}⏎··················onPress={()·=>·navigation.navigate('menu')}⏎···············`"
prettier/prettier
|
| Error |
Row 81, Column 13: "Insert `)`"
prettier/prettier
|
| Error |
Row 82, Column 25: "Insert `·(`"
prettier/prettier
|
| Error |
Row 83, Column 32: "Replace `·activeOpacity={1}·onPress={()·=>·navigation.navigate('notifications')}·style={{·marginRight:·mvs(!userIcon·&&·bellIcon·?·-15·:·24),·position:·'absolute',·right:·mvs(15)` with `⏎················activeOpacity={1}⏎················onPress={()·=>·navigation.navigate('notifications')}⏎················style={{⏎··················marginRight:·mvs(!userIcon·&&·bellIcon·?·-15·:·24),⏎··················position:·'absolute',⏎··················right:·mvs(15),⏎···············`"
prettier/prettier
|
| Warning |
Row 83, Column 111: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| Error |
Row 85, Column 42: "Replace `` with `(⏎··················⏎················)`"
prettier/prettier
|
| Warning |
Row 85, Column 55: "Inline style: { position: 'absolute', backgroundColor: 'red' }"
react-native/no-inline-styles
|
| Warning |
Row 85, Column 172: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 86, Column 34: "Insert `⏎············)`"
prettier/prettier
|
| Error |
Row 87, Column 25: "Insert `·(`"
prettier/prettier
|
| Error |
Row 88, Column 32: "Replace `·activeOpacity={1}` with `⏎················activeOpacity={1}⏎···············`"
prettier/prettier
|
| Error |
Row 91, Column 13: "Insert `)`"
prettier/prettier
|
| Error |
Row 93, Column 9: "Insert `)`"
prettier/prettier
|
| Error |
Row 95, Column 20: "Replace `prettier/prettier
|
| Warning |
Row 95, Column 33: "Inline style: { flexDirection: 'row', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 96, Column 1: "Replace `········prettier/prettier
|
| Error |
Row 97, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 98, Column 7: "Replace `·:·disputedDelivery·?··:·isReject·&&` with `··⏎······)·:·disputedDelivery·?·(⏎········⏎······)·:·(⏎········isReject·&&·(`"
prettier/prettier
|
| Error |
Row 99, Column 1: "Replace `········prettier/prettier
|
| Error |
Row 100, Column 7: "Insert `··)⏎······)`"
prettier/prettier
|
| Error |
Row 107, Column 71: "Replace `""` with `''`"
prettier/prettier
|
| Warning |
Row 107, Column 71: "Strings must use singlequote."
quotes
|
| Error |
Row 110, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 110, Column 4: "Missing semicolon."
semi
|
| Error |
Row 111, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 111, Column 2: "Missing semicolon."
semi
|
| Error |
Row 138, Column 23: "Insert `,`"
prettier/prettier
|
| Warning |
Row 138, Column 23: "Missing trailing comma."
comma-dangle
|
| Error |
Row 139, Column 4: "Insert `,`"
prettier/prettier
|
| Warning |
Row 139, Column 4: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| 1 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 2 |
import React from 'react'; |
| Error |
Row 3, Column 9: "Replace `·Image,·StyleSheet,·TouchableOpacity,·View·` with `Image,·StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| Warning |
Row 3, Column 10: "'Image' is defined but never used."
no-unused-vars
|
| 3 |
import { Image, StyleSheet, TouchableOpacity, View } from 'react-native'; |
| Error |
Row 4, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 4 |
import { connect } from 'react-redux'; |
| Error |
Row 5, Column 9: "Replace `·Call,·VideoCall·` with `⏎··Call,⏎··VideoCall,⏎`"
prettier/prettier
|
| 5 |
import { Call, VideoCall } from '../../../../resource/assets/chat-options-modal-icons'; |
| Error |
Row 6, Column 9: "Replace `·HeaderLogo·` with `HeaderLogo`"
prettier/prettier
|
| 6 |
import { HeaderLogo } from '../../../../resource/assets/common-icons'; |
| Error |
Row 7, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 7, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 7 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce'; |
| 8 |
import Inbox from '../../../../resource/assets/tabbar-icons/inbox.svg'; |
| 9 |
import colors from '../../../config/colors'; |
| Error |
Row 10, Column 9: "Replace `·ms,·mvs,·scale,·vs·` with `ms,·mvs,·scale,·vs`"
prettier/prettier
|
| Warning |
Row 10, Column 10: "'ms' is defined but never used."
no-unused-vars
|
| Warning |
Row 10, Column 26: "'vs' is defined but never used."
no-unused-vars
|
| 10 |
import { ms, mvs, scale, vs } from '../../../config/metrices'; |
| 11 |
import Regular from '../../../presentation/typography/regular-text'; |
| 12 |
import ImagePlaceholder from '../../atoms/Placeholder'; |
| 13 |
// import Back from './../../../../resource/assets/headers-icons/back.svg'; |
| 14 |
// import User from './../../../../resource/assets/headers-icons/user.svg'; |
| Error |
Row 15, Column 9: "Replace `·bell·as·Bell,·user·as·User,·back·as·Back·` with `⏎··bell·as·Bell,⏎··user·as·User,⏎··back·as·Back,⏎`"
prettier/prettier
|
| 15 |
import { bell as Bell, user as User, back as Back } from './../../../../resource/assets/headers-icons'; |
| 16 |
const Header = ({ |
| 17 |
navigation, |
| 18 |
route, |
| 19 |
title = 'Home', |
| 20 |
allowBackBtn = false, |
| 21 |
spacebetween = false, |
| 22 |
avatar = false, |
| 23 |
chat = false, |
| 24 |
userIcon = true, |
| 25 |
bellIcon = false, |
| 26 |
headerLog = false, |
| 27 |
disputedDelivery = false, |
| 28 |
callIcons = false, |
| 29 |
isReject = false, |
| 30 |
style, |
| 31 |
profile_picture, |
| 32 |
isGuest, |
| Error |
Row 33, Column 23: "Insert `,`"
prettier/prettier
|
| Warning |
Row 33, Column 23: "Missing trailing comma."
comma-dangle
|
| 33 |
unread_notifications |
| 34 |
}) => { |
| 35 |
return ( |
| Error |
Row 36, Column 19: "Replace `·...styles.CONTAINER,·...style·` with `...styles.CONTAINER,·...style`"
prettier/prettier
|
| 36 |
<View style={{ ...styles.CONTAINER, ...style }}> |
| 37 |
<View style={{}}> |
| 38 |
{allowBackBtn && ( |
| Warning |
Row 39, Column 24: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 39, Column 25: "Replace `·flexDirection:·'row',·` with `flexDirection:·'row'`"
prettier/prettier
|
| Warning |
Row 39, Column 46: "Unexpected trailing comma."
comma-dangle
|
| 39 |
<View style={{ flexDirection: 'row', }}> |
| Error |
Row 40, Column 30: "Replace `·onPress={()·=>·{·⏎··············navigation.goBack()·` with `⏎··············onPress={()·=>·{⏎················navigation.goBack();`"
prettier/prettier
|
| Warning |
Row 40, Column 47: "Trailing spaces not allowed."
no-trailing-spaces
|
| 40 |
<TouchableOpacity onPress={() => { |
| Warning |
Row 41, Column 34: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 41, Column 34: "Missing semicolon."
semi
|
| 41 |
navigation.goBack() |
| 42 |
}}> |
| 43 |
<Back height={mvs(20)} width={mvs(20)} /> |
| 44 |
</TouchableOpacity> |
| 45 |
{!spacebetween && ( |
| Error |
Row 46, Column 29: "Replace `·paddingLeft:·scale(21.5)·` with `paddingLeft:·scale(21.5)`"
prettier/prettier
|
| 46 |
<View style={{ paddingLeft: scale(21.5) }}> |
| 47 |
<Regular |
| 48 |
label={TAKE_TO_CONSTANT.convertCapitalizeFirst(title)} |
| 49 |
style={styles.TITLE} |
| 50 |
/> |
| 51 |
</View> |
| 52 |
)} |
| 53 |
</View> |
| 54 |
)} |
| Error |
Row 55, Column 23: "Insert `(⏎··········`"
prettier/prettier
|
| 55 |
{headerLog && <HeaderLogo height={mvs(30)} width={mvs(174)} style={{}} /> |
| Error |
Row 56, Column 9: "Insert `)`"
prettier/prettier
|
| 56 |
} |
| 57 |
</View> |
| Error |
Row 58, Column 8: "Replace `(!headerLog·&&·spacebetween)` with `!headerLog·&&·spacebetween`"
prettier/prettier
|
| 58 |
{(!headerLog && spacebetween) && ( |
| 59 |
<View style={{}}> |
| 60 |
<Regular |
| 61 |
label={TAKE_TO_CONSTANT.convertCapitalizeFirst(title)} |
| 62 |
style={styles.TITLE} |
| 63 |
/> |
| 64 |
</View> |
| 65 |
)} |
| 66 |
<View style={{}}> |
| Error |
Row 67, Column 30: "Insert `·(`"
prettier/prettier
|
| 67 |
{!isGuest && avatar ? |
| 68 |
// <View style={styles.AVATAR}> |
| 69 |
// <Image source={TAKE_TO_IMAGES.chat_dp} style={{ height: '100%', width: '100%', }} /> |
| 70 |
// </View> |
| 71 |
<ImagePlaceholder |
| 72 |
bg_img={profile_picture} |
| 73 |
containerStyle={styles.AVATAR} |
| 74 |
/> |
| Error |
Row 75, Column 9: "Replace `··:` with `)·:·(`"
prettier/prettier
|
| 75 |
: |
| Warning |
Row 76, Column 24: "Inline style: { flexDirection: 'row', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 76, Column 25: "Replace `·flexDirection:·'row',·alignItems:·'center',·` with `flexDirection:·'row',·alignItems:·'center'`"
prettier/prettier
|
| Warning |
Row 76, Column 68: "Unexpected trailing comma."
comma-dangle
|
| 76 |
<View style={{ flexDirection: 'row', alignItems: 'center', }}> |
| Error |
Row 77, Column 21: "Insert `·(`"
prettier/prettier
|
| 77 |
{chat && |
| Error |
Row 78, Column 29: "Replace `·paddingRight:·mvs(30)·` with `paddingRight:·mvs(30)`"
prettier/prettier
|
| 78 |
<View style={{ paddingRight: mvs(30) }}> |
| Error |
Row 79, Column 23: "Replace `·height={mvs(25)}·width={mvs(25)}·onPress={()·=>·navigation.navigate('menu')}` with `⏎··················height={mvs(25)}⏎··················width={mvs(25)}⏎··················onPress={()·=>·navigation.navigate('menu')}⏎···············`"
prettier/prettier
|
| 79 |
<Inbox height={mvs(25)} width={mvs(25)} onPress={() => navigation.navigate('menu')} /> |
| 80 |
</View> |
| Error |
Row 81, Column 13: "Insert `)`"
prettier/prettier
|
| 81 |
} |
| Error |
Row 82, Column 25: "Insert `·(`"
prettier/prettier
|
| 82 |
{bellIcon && |
| Error |
Row 83, Column 32: "Replace `·activeOpacity={1}·onPress={()·=>·navigation.navigate('notifications')}·style={{·marginRight:·mvs(!userIcon·&&·bellIcon·?·-15·:·24),·position:·'absolute',·right:·mvs(15)` with `⏎················activeOpacity={1}⏎················onPress={()·=>·navigation.navigate('notifications')}⏎················style={{⏎··················marginRight:·mvs(!userIcon·&&·bellIcon·?·-15·:·24),⏎··················position:·'absolute',⏎··················right:·mvs(15),⏎···············`"
prettier/prettier
|
| Warning |
Row 83, Column 111: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| 83 |
<TouchableOpacity activeOpacity={1} onPress={() => navigation.navigate('notifications')} style={{ marginRight: mvs(!userIcon && bellIcon ? -15 : 24), position: 'absolute', right: mvs(15) }}> |
| 84 |
<Bell height={mvs(25)} width={mvs(25)} /> |
| Error |
Row 85, Column 42: "Replace `` with `(⏎··················⏎················)`"
prettier/prettier
|
| Warning |
Row 85, Column 55: "Inline style: { position: 'absolute', backgroundColor: 'red' }"
react-native/no-inline-styles
|
| Warning |
Row 85, Column 172: "Unexpected trailing comma."
comma-dangle
|
| 85 |
{unread_notifications && <View style={{ position: 'absolute', right: mvs(2), height: mvs(10), width: mvs(10), borderRadius: mvs(10), backgroundColor: 'red', }} />} |
| Error |
Row 86, Column 34: "Insert `⏎············)`"
prettier/prettier
|
| 86 |
</TouchableOpacity>} |
| Error |
Row 87, Column 25: "Insert `·(`"
prettier/prettier
|
| 87 |
{userIcon && |
| Error |
Row 88, Column 32: "Replace `·activeOpacity={1}` with `⏎················activeOpacity={1}⏎···············`"
prettier/prettier
|
| 88 |
<TouchableOpacity activeOpacity={1} onPress={() => navigation.navigate('menu')}> |
| 89 |
<User height={mvs(25)} width={mvs(25)} /> |
| 90 |
</TouchableOpacity> |
| Error |
Row 91, Column 13: "Insert `)`"
prettier/prettier
|
| 91 |
} |
| 92 |
</View> |
| Error |
Row 93, Column 9: "Insert `)`"
prettier/prettier
|
| 93 |
} |
| 94 |
</View> |
| Error |
Row 95, Column 20: "Replace `prettier/prettier
|
| Warning |
Row 95, Column 33: "Inline style: { flexDirection: 'row', alignItems: 'center' }"
react-native/no-inline-styles
|
| 95 |
{callIcons ? <View style={{ flexDirection: 'row', alignItems: 'center' }}> |
| Error |
Row 96, Column 1: "Replace `········prettier/prettier
|
| 96 |
<VideoCall style={{ marginRight: mvs(24) }} /> |
| Error |
Row 97, Column 1: "Insert `··`"
prettier/prettier
|
| 97 |
<Call /> |
| Error |
Row 98, Column 7: "Replace `·:·disputedDelivery·?··:·isReject·&&` with `··⏎······)·:·disputedDelivery·?·(⏎········⏎······)·:·(⏎········isReject·&&·(`"
prettier/prettier
|
| 98 |
</View> : disputedDelivery ? <Regular label={'Dispute Delivery'} style={{ color: colors.pink, fontSize: mvs(13) }} /> : isReject && |
| Error |
Row 99, Column 1: "Replace `········prettier/prettier
|
| 99 |
<Regular label={'Reject Deal'} style={{ color: colors.pink, fontSize: mvs(13) }} /> |
| Error |
Row 100, Column 7: "Insert `··)⏎······)`"
prettier/prettier
|
| 100 |
} |
| 101 |
</View> |
| 102 |
); |
| 103 |
}; |
| 104 |
|
| 105 |
const mapStateToProps = state => { |
| 106 |
return { |
| Error |
Row 107, Column 71: "Replace `""` with `''`"
prettier/prettier
|
| Warning |
Row 107, Column 71: "Strings must use singlequote."
quotes
|
| 107 |
profile_picture: state.auth.userInfo?.profile?.profile_picture || "", |
| 108 |
unread_notifications: state.auth.userInfo?.unread_notifications, |
| 109 |
isGuest: state.auth.isGuest, |
| Error |
Row 110, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 110, Column 4: "Missing semicolon."
semi
|
| 110 |
} |
| Error |
Row 111, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 111, Column 2: "Missing semicolon."
semi
|
| 111 |
} |
| 112 |
export default connect(mapStateToProps, {})(Header); |
| 113 |
|
| 114 |
const styles = StyleSheet.create({ |
| 115 |
CONTAINER: { |
| 116 |
flexDirection: 'row', |
| 117 |
justifyContent: 'space-between', |
| 118 |
alignItems: 'center', |
| 119 |
// paddingBottom: mvs(10), |
| 120 |
paddingTop: mvs(30), |
| 121 |
backgroundColor: colors.white, |
| 122 |
height: mvs(93), //vs(83), |
| 123 |
// paddingBottom:mvs(2), |
| 124 |
paddingHorizontal: mvs(22), |
| 125 |
// borderBottomLeftRadius: mvs(20), |
| 126 |
// borderBottomRightRadius: mvs(20), |
| 127 |
// ...colors.shadow |
| 128 |
}, |
| 129 |
TITLE: { |
| 130 |
fontSize: mvs(15), |
| 131 |
color: colors.primary, |
| 132 |
}, |
| 133 |
AVATAR: { |
| 134 |
height: mvs(50), |
| 135 |
width: mvs(50), |
| 136 |
bottom: mvs(-15), |
| 137 |
borderRadius: mvs(5), |
| Error |
Row 138, Column 23: "Insert `,`"
prettier/prettier
|
| Warning |
Row 138, Column 23: "Missing trailing comma."
comma-dangle
|
| 138 |
overflow: 'hidden' |
| Error |
Row 139, Column 4: "Insert `,`"
prettier/prettier
|
| Warning |
Row 139, Column 4: "Missing trailing comma."
comma-dangle
|
| 139 |
} |
| 140 |
}); |
| 141 |
|
|
| Severity |
Rule |
| Warning |
Row 3, Column 9: "'Image' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Warning |
Row 5, Column 9: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 7, Column 18: "'scale' is defined but never used."
no-unused-vars
|
| Warning |
Row 7, Column 29: "'xdHeight' is defined but never used."
no-unused-vars
|
| Error |
Row 19, Column 18: "Insert `,`"
prettier/prettier
|
| Warning |
Row 19, Column 18: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 27, Column 16: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| Warning |
Row 36, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 36, Column 1: "Delete `·⏎`"
prettier/prettier
|
| Error |
Row 45, Column 13: "Replace `··prettier/prettier
|
| Error |
Row 75, Column 22: "Replace `=state=>` with `·=·state·=>·`"
prettier/prettier
|
| Warning |
Row 75, Column 22: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 76, Column 3: "Expected space(s) after "return"."
keyword-spacing
|
| Error |
Row 76, Column 9: "Insert `·`"
prettier/prettier
|
| Error |
Row 77, Column 67: "Replace `||""` with `·||·'',`"
prettier/prettier
|
| Warning |
Row 77, Column 67: "Operator '||' must be spaced."
space-infix-ops
|
| Warning |
Row 77, Column 69: "Strings must use singlequote."
quotes
|
| Warning |
Row 77, Column 71: "Missing trailing comma."
comma-dangle
|
| Error |
Row 78, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 78, Column 4: "Missing semicolon."
semi
|
| Error |
Row 79, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 79, Column 2: "Missing semicolon."
semi
|
| Error |
Row 80, Column 40: "Insert `·`"
prettier/prettier
|
| Line |
Source |
| 1 |
import moment from 'moment'; |
| 2 |
import React from 'react'; |
| Warning |
Row 3, Column 9: "'Image' is defined but never used."
no-unused-vars
|
| 3 |
import {Image, StyleSheet, View, TouchableOpacity} from 'react-native'; |
| Error |
Row 4, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 4 |
import { connect } from 'react-redux'; |
| Warning |
Row 5, Column 9: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 5 |
import {TAKE_TO_IMAGES} from '../../../../resource/assets/image_resouce'; |
| 6 |
import colors from '../../../config/colors'; |
| Warning |
Row 7, Column 18: "'scale' is defined but never used."
no-unused-vars
|
| Warning |
Row 7, Column 29: "'xdHeight' is defined but never used."
no-unused-vars
|
| 7 |
import {ms, mvs, scale, vs, xdHeight} from '../../../config/metrices'; |
| 8 |
import Regular from '../../../presentation/typography/regular-text'; |
| 9 |
import ImagePlaceholder from '../../atoms/Placeholder'; |
| 10 |
import Back from './../../../../resource/assets/headers-icons/back.svg'; |
| 11 |
const Header = ({ |
| 12 |
navigation, |
| 13 |
route, |
| 14 |
title = 'Home', |
| 15 |
allowBackBtn = false, |
| 16 |
avatarCreatedAt = false, |
| 17 |
createdAt = false, |
| 18 |
avatar = false, |
| Error |
Row 19, Column 18: "Insert `,`"
prettier/prettier
|
| Warning |
Row 19, Column 18: "Missing trailing comma."
comma-dangle
|
| 19 |
profile_picture |
| 20 |
}) => { |
| 21 |
// console.log( "Math.round((151/812)*100) ",Math.round((Math.round((151/812)*100)*height)/100)) |
| 22 |
// console.log("xdHeight(151) : ",xdHeight(151)) |
| 23 |
// console.log("mvs(xdHeight(151)) : ",mvs(xdHeight(151))) |
| 24 |
return ( |
| 25 |
<View style={styles.CONTAINER}> |
| 26 |
<View |
| Warning |
Row 27, Column 16: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| 27 |
style={{ |
| 28 |
position: 'absolute', |
| 29 |
top: vs(45), |
| 30 |
left: mvs(22), |
| 31 |
}}> |
| 32 |
{allowBackBtn && <Back onPress={() => navigation.pop()} />} |
| 33 |
</View> |
| 34 |
{!allowBackBtn && <Regular label={title} style={styles.TITLE} />} |
| 35 |
<View style={{}}>{/* <User /> */}</View> |
| Warning |
Row 36, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 36, Column 1: "Delete `·⏎`"
prettier/prettier
|
| 36 |
|
| 37 |
|
| 38 |
{avatarCreatedAt && ( |
| 39 |
<View style={styles.userContainer}> |
| 40 |
<TouchableOpacity |
| 41 |
onPress={() => { |
| 42 |
navigation.navigate('userprofile'); |
| 43 |
}} |
| 44 |
style={{paddingRight: mvs(10)}}> |
| Error |
Row 45, Column 13: "Replace `··prettier/prettier
|
| 45 |
<ImagePlaceholder bg_img={profile_picture} containerStyle={styles.dp}/> |
| 46 |
</TouchableOpacity> |
| 47 |
<View style={styles.userInfoContainer}> |
| 48 |
<Regular label="Ralph Wakim" style={styles.username} /> |
| 49 |
<Regular |
| 50 |
label={`Joined on ${moment('2021-11-19T06:57:39.595Z').format( |
| 51 |
'DD MMMM YYYY', |
| 52 |
)}`} |
| 53 |
style={styles.joinDate} |
| 54 |
/> |
| 55 |
</View> |
| 56 |
</View> |
| 57 |
)} |
| 58 |
{createdAt && ( |
| 59 |
<View style={styles.userContainer}> |
| 60 |
<View style={styles.userInfoContainer}> |
| 61 |
<Regular label="Ralph Wakim" style={styles.username} /> |
| 62 |
<Regular |
| 63 |
label={`Joined on ${moment('2021-11-19T06:57:39.595Z').format( |
| 64 |
'DD MMMM YYYY', |
| 65 |
)}`} |
| 66 |
style={styles.joinDate} |
| 67 |
/> |
| 68 |
</View> |
| 69 |
</View> |
| 70 |
)} |
| 71 |
</View> |
| 72 |
); |
| 73 |
}; |
| 74 |
|
| Error |
Row 75, Column 22: "Replace `=state=>` with `·=·state·=>·`"
prettier/prettier
|
| Warning |
Row 75, Column 22: "Operator '=' must be spaced."
space-infix-ops
|
| 75 |
const mapStateToProps=state=>{ |
| Warning |
Row 76, Column 3: "Expected space(s) after "return"."
keyword-spacing
|
| Error |
Row 76, Column 9: "Insert `·`"
prettier/prettier
|
| 76 |
return{ |
| Error |
Row 77, Column 67: "Replace `||""` with `·||·'',`"
prettier/prettier
|
| Warning |
Row 77, Column 67: "Operator '||' must be spaced."
space-infix-ops
|
| Warning |
Row 77, Column 69: "Strings must use singlequote."
quotes
|
| Warning |
Row 77, Column 71: "Missing trailing comma."
comma-dangle
|
| 77 |
profile_picture: state.auth.userInfo?.profile?.profile_picture||"" |
| Error |
Row 78, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 78, Column 4: "Missing semicolon."
semi
|
| 78 |
} |
| Error |
Row 79, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 79, Column 2: "Missing semicolon."
semi
|
| 79 |
} |
| Error |
Row 80, Column 40: "Insert `·`"
prettier/prettier
|
| 80 |
export default connect(mapStateToProps,{})(Header); |
| 81 |
|
| 82 |
const styles = StyleSheet.create({ |
| 83 |
CONTAINER: { |
| 84 |
flexDirection: 'row', |
| 85 |
width: '100%', |
| 86 |
justifyContent: 'center', |
| 87 |
alignItems: 'center', |
| 88 |
backgroundColor: colors.white, |
| 89 |
height: mvs(151), |
| 90 |
marginBottom: 1, |
| 91 |
paddingHorizontal: mvs(22), |
| 92 |
borderBottomLeftRadius: mvs(20), |
| 93 |
borderBottomRightRadius: mvs(20), |
| 94 |
// ...colors.shadow |
| 95 |
}, |
| 96 |
TITLE: { |
| 97 |
fontSize: ms(34), |
| 98 |
color: colors.headerTitle, |
| 99 |
}, |
| 100 |
AVATAR: { |
| 101 |
position: 'absolute', |
| 102 |
alignSelf: 'center', |
| 103 |
justifyContent: 'center', |
| 104 |
alignItems: 'center', |
| 105 |
height: vs(130), |
| 106 |
width: vs(130), |
| 107 |
borderRadius: vs(65), |
| 108 |
backgroundColor: colors.white, |
| 109 |
bottom: vs(-75), |
| 110 |
zIndex: 1001, |
| 111 |
...colors.shadow, |
| 112 |
}, |
| 113 |
AVATAR_PROFILE: { |
| 114 |
position: 'absolute', |
| 115 |
alignSelf: 'center', |
| 116 |
justifyContent: 'center', |
| 117 |
alignItems: 'center', |
| 118 |
height: mvs(124), |
| 119 |
width: mvs(124), |
| 120 |
borderRadius: mvs(65), |
| 121 |
backgroundColor: colors.white, |
| 122 |
bottom: mvs(-65), |
| 123 |
right: mvs(41), |
| 124 |
zIndex: 1001, |
| 125 |
...colors.shadow, |
| 126 |
overflow: 'hidden', |
| 127 |
}, |
| 128 |
userContainer: { |
| 129 |
height: mvs(55), |
| 130 |
width: mvs(255), |
| 131 |
//borderWidth : 1, |
| 132 |
position: 'absolute', |
| 133 |
left: mvs(22), |
| 134 |
bottom: mvs(20), |
| 135 |
flexDirection: 'row', |
| 136 |
alignItems: 'center', |
| 137 |
}, |
| 138 |
dp: { |
| 139 |
height: mvs(55), |
| 140 |
|
| 141 |
width: mvs(55), |
| 142 |
borderRadius: mvs(55 / 2), |
| 143 |
}, |
| 144 |
userInfoContainer: { |
| 145 |
//borderWidth:1, |
| 146 |
height: '100%', |
| 147 |
flex: 1, |
| 148 |
// paddingLeft : mvs(10), |
| 149 |
justifyContent: 'center', |
| 150 |
}, |
| 151 |
username: { |
| 152 |
fontSize: mvs(15), |
| 153 |
color: colors.input_label, |
| 154 |
}, |
| 155 |
joinDate: { |
| 156 |
fontSize: mvs(10), |
| 157 |
color: colors.headerTitle, |
| 158 |
marginTop: mvs(3), |
| 159 |
}, |
| 160 |
}); |
| 161 |
|
|
|
|
/src/components/molecules/index.js
|
2 problems (1 error, 1 warning)
|
| Severity |
Rule |
| Warning |
Row 3, Column 71: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 3, Column 71: "Insert `⏎`"
prettier/prettier
|
| Line |
Source |
| 1 |
// export * from './modals/reset-password-modal'; |
| 2 |
// export * from './modals/map-search-order-radius'; |
| Warning |
Row 3, Column 71: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 3, Column 71: "Insert `⏎`"
prettier/prettier
|
| 3 |
// export * from './order_card/map-search/map-search-make-offer-card'; |
|
|
|
/src/components/molecules/input-with-title/index.js
|
34 problems (16 errors, 18 warnings)
|
| Severity |
Rule |
| Warning |
Row 3, Column 3: "'Image' is defined but never used."
no-unused-vars
|
| Warning |
Row 4, Column 3: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Warning |
Row 9, Column 9: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Error |
Row 16, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Warning |
Row 60, Column 25: "["calendar"] is better written in dot notation."
dot-notation
|
| Warning |
Row 65, Column 14: "Inline style: {
alignItems: "row ? 'center' : 'flex-start'",
justifyContent: "row ? 'space-between' : 'flex-start'",
flexDirection: "row ? 'row' : 'column'"
}"
react-native/no-inline-styles
|
| Error |
Row 69, Column 9: "Duplicate key 'alignItems'."
no-dupe-keys
|
| Error |
Row 74, Column 72: "Delete `·`"
prettier/prettier
|
| Error |
Row 75, Column 22: "Replace `&&` with `·&&·(`"
prettier/prettier
|
| Warning |
Row 75, Column 22: "Operator '&&' must be spaced."
space-infix-ops
|
| Error |
Row 76, Column 1: "Replace `···········prettier/prettier
|
| Error |
Row 77, Column 11: "Insert `)`"
prettier/prettier
|
| Error |
Row 78, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 83, Column 18: "Inline style: { width: "row ? '48%' : '100%'" }"
react-native/no-inline-styles
|
| Error |
Row 93, Column 28: "Replace `value?.length>97&&`${` with `⏎··············value?.length·>·97·&&`"
prettier/prettier
|
| Warning |
Row 93, Column 41: "Operator '>' must be spaced."
space-infix-ops
|
| Warning |
Row 93, Column 44: "Operator '&&' must be spaced."
space-infix-ops
|
| Error |
Row 94, Column 15: "Replace `!readMore·?·'...·Read·more'·:·'·Read·less'` with ``${!readMore·?·'...·Read·more'·:·'·Read·less'}``"
prettier/prettier
|
| Error |
Row 95, Column 13: "Delete `}``"
prettier/prettier
|
| Warning |
Row 107, Column 18: "Inline style: { width: "row ? '48%' : '100%'" }"
react-native/no-inline-styles
|
| Warning |
Row 130, Column 18: "Inline style: {
flexDirection: 'row',
justifyContent: 'space-between',
width: '100%'
}"
react-native/no-inline-styles
|
| Warning |
Row 136, Column 20: "Inline style: { width: '48%' }"
react-native/no-inline-styles
|
| Warning |
Row 153, Column 22: "Inline style: { width: '48%' }"
react-native/no-inline-styles
|
| Warning |
Row 182, Column 18: "Inline style: { justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 190, Column 15: "Replace `` with `(⏎········⏎······)`"
prettier/prettier
|
| Error |
Row 195, Column 22: "Replace `=state=>` with `·=·state·=>·`"
prettier/prettier
|
| Warning |
Row 195, Column 22: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 196, Column 3: "Expected space(s) after "return"."
keyword-spacing
|
| Error |
Row 196, Column 9: "Insert `·`"
prettier/prettier
|
| Error |
Row 198, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 198, Column 4: "Missing semicolon."
semi
|
| Error |
Row 199, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 199, Column 2: "Missing semicolon."
semi
|
| Error |
Row 200, Column 40: "Insert `·`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| 2 |
import { |
| Warning |
Row 3, Column 3: "'Image' is defined but never used."
no-unused-vars
|
| 3 |
Image, |
| Warning |
Row 4, Column 3: "'ImageBackground' is defined but never used."
no-unused-vars
|
| 4 |
ImageBackground, |
| 5 |
StyleSheet, |
| 6 |
TextInput, |
| 7 |
View, |
| 8 |
} from 'react-native'; |
| Warning |
Row 9, Column 9: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 9 |
import {TAKE_TO_IMAGES} from '../../../../resource/assets/image_resouce'; |
| 10 |
import colors from '../../../config/colors'; |
| 11 |
import {mvs} from '../../../config/metrices'; |
| 12 |
import Regular from '../../../presentation/typography/regular-text'; |
| 13 |
import * as SVGS from '../../../../resource/assets/order-car-icons'; |
| 14 |
import ImagePlaceholder from '../../atoms/Placeholder'; |
| 15 |
import DualText from '../dual-text/dual-text'; |
| Error |
Row 16, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 16 |
import { connect } from 'react-redux'; |
| 17 |
|
| 18 |
const InputWithTitle = ({ |
| 19 |
style, |
| 20 |
textStyle, |
| 21 |
textStyle1, |
| 22 |
textStyle2, |
| 23 |
title, |
| 24 |
placeholder, |
| 25 |
value, |
| 26 |
value1, |
| 27 |
value2, |
| 28 |
editable, |
| 29 |
editable1, |
| 30 |
editable2, |
| 31 |
multiline = false, |
| 32 |
row = false, |
| 33 |
flag = false, |
| 34 |
countrypicker = false, |
| 35 |
double = false, |
| 36 |
half = false, |
| 37 |
singleInput = true, |
| 38 |
doubleInput = false, |
| 39 |
placeholder1, |
| 40 |
placeholder2, |
| 41 |
titleStyle, |
| 42 |
placeholderColor, |
| 43 |
flagStyle, |
| 44 |
calendar = false, |
| 45 |
tag = false, |
| 46 |
onIconPress, |
| 47 |
onPress, |
| 48 |
onChangeText, |
| 49 |
onChangeText1, |
| 50 |
onChangeText2, |
| 51 |
flagUri, |
| 52 |
maxLength = 200, |
| 53 |
onChange, |
| 54 |
moreOrLess = false, |
| 55 |
profileData, |
| 56 |
placeholderTextColor, |
| 57 |
isRequired, |
| 58 |
...props |
| 59 |
}) => { |
| Warning |
Row 60, Column 25: "["calendar"] is better written in dot notation."
dot-notation
|
| 60 |
const Calender = SVGS['calendar']; |
| 61 |
|
| 62 |
const [readMore, setReadMore] = React.useState(false); |
| 63 |
return ( |
| 64 |
<View |
| Warning |
Row 65, Column 14: "Inline style: {
alignItems: "row ? 'center' : 'flex-start'",
justifyContent: "row ? 'space-between' : 'flex-start'",
flexDirection: "row ? 'row' : 'column'"
}"
react-native/no-inline-styles
|
| 65 |
style={{ |
| 66 |
...styles.mainContainer, |
| 67 |
alignItems: row ? 'center' : null, |
| 68 |
justifyContent: row ? 'space-between' : 'flex-start', |
| Error |
Row 69, Column 9: "Duplicate key 'alignItems'."
no-dupe-keys
|
| 69 |
alignItems: row ? 'center' : 'flex-start', |
| 70 |
flexDirection: row ? 'row' : 'column', |
| 71 |
...style, |
| 72 |
}}> |
| 73 |
{title && ( |
| Error |
Row 74, Column 72: "Delete `·`"
prettier/prettier
|
| 74 |
<Regular label={title} style={{...styles.title, ...titleStyle}} > |
| Error |
Row 75, Column 22: "Replace `&&` with `·&&·(`"
prettier/prettier
|
| Warning |
Row 75, Column 22: "Operator '&&' must be spaced."
space-infix-ops
|
| 75 |
{isRequired&& |
| Error |
Row 76, Column 1: "Replace `···········prettier/prettier
|
| 76 |
<Regular label={'*'} style={{color:colors.mendatory}} /> |
| Error |
Row 77, Column 11: "Insert `)`"
prettier/prettier
|
| 77 |
} |
| Error |
Row 78, Column 1: "Delete `··`"
prettier/prettier
|
| 78 |
</Regular> |
| 79 |
)} |
| 80 |
|
| 81 |
{moreOrLess && ( |
| 82 |
<View |
| Warning |
Row 83, Column 18: "Inline style: { width: "row ? '48%' : '100%'" }"
react-native/no-inline-styles
|
| 83 |
style={{ |
| 84 |
...styles.input, |
| 85 |
|
| 86 |
paddingBottom: mvs(10), // multiline ? mvs(23) : mvs(10), |
| 87 |
width: row ? '48%' : '100%', |
| 88 |
marginTop: row ? mvs(0) : mvs(10), |
| 89 |
}}> |
| 90 |
<DualText |
| 91 |
content={readMore ? value : value?.substring(0, 97)} |
| 92 |
style={{...textStyle, fontSize: mvs(13)}} |
| Error |
Row 93, Column 28: "Replace `value?.length>97&&`${` with `⏎··············value?.length·>·97·&&`"
prettier/prettier
|
| Warning |
Row 93, Column 41: "Operator '>' must be spaced."
space-infix-ops
|
| Warning |
Row 93, Column 44: "Operator '&&' must be spaced."
space-infix-ops
|
| 93 |
highlightText={value?.length>97&&`${ |
| Error |
Row 94, Column 15: "Replace `!readMore·?·'...·Read·more'·:·'·Read·less'` with ``${!readMore·?·'...·Read·more'·:·'·Read·less'}``"
prettier/prettier
|
| 94 |
!readMore ? '... Read more' : ' Read less' |
| Error |
Row 95, Column 13: "Delete `}``"
prettier/prettier
|
| 95 |
}`} |
| 96 |
onPress={() => setReadMore(state => !state)} |
| 97 |
highlightTextStyle={{ |
| 98 |
...textStyle, |
| 99 |
fontSize: mvs(13), |
| 100 |
color: colors.headerTitle, |
| 101 |
}} |
| 102 |
/> |
| 103 |
</View> |
| 104 |
)} |
| 105 |
{singleInput && ( |
| 106 |
<TextInput |
| Warning |
Row 107, Column 18: "Inline style: { width: "row ? '48%' : '100%'" }"
react-native/no-inline-styles
|
| 107 |
style={{ |
| 108 |
...styles.input, |
| 109 |
|
| 110 |
paddingBottom: mvs(10), // multiline ? mvs(23) : mvs(10), |
| 111 |
width: row ? '48%' : '100%', |
| 112 |
marginTop: row ? mvs(0) : mvs(10), |
| 113 |
|
| 114 |
...textStyle, |
| 115 |
}} |
| 116 |
placeholder={placeholder} |
| 117 |
placeholderTextColor={placeholderTextColor} |
| 118 |
multiline={multiline} |
| 119 |
onChangeText={onChangeText} |
| 120 |
onChange={onChange} |
| 121 |
value={value} |
| 122 |
editable={editable} |
| 123 |
onPress={onPress} |
| 124 |
maxLength={maxLength} |
| 125 |
/> |
| 126 |
)} |
| 127 |
|
| 128 |
{doubleInput && ( |
| 129 |
<View |
| Warning |
Row 130, Column 18: "Inline style: {
flexDirection: 'row',
justifyContent: 'space-between',
width: '100%'
}"
react-native/no-inline-styles
|
| 130 |
style={{ |
| 131 |
flexDirection: 'row', |
| 132 |
justifyContent: 'space-between', |
| 133 |
width: '100%', |
| 134 |
}}> |
| 135 |
<TextInput |
| Warning |
Row 136, Column 20: "Inline style: { width: '48%' }"
react-native/no-inline-styles
|
| 136 |
style={{ |
| 137 |
...styles.input, |
| 138 |
paddingBottom: multiline ? mvs(23) : mvs(10), |
| 139 |
width: '48%', |
| 140 |
marginTop: row ? mvs(0) : mvs(10), |
| 141 |
...textStyle1, |
| 142 |
}} |
| 143 |
placeholder={placeholder1} |
| 144 |
placeholderTextColor={placeholderTextColor} |
| 145 |
multiline={multiline} |
| 146 |
onChangeText={onChangeText1} |
| 147 |
value={value1} |
| 148 |
editable={editable1} |
| 149 |
maxLength={maxLength} |
| 150 |
/> |
| 151 |
{!half && ( |
| 152 |
<TextInput |
| Warning |
Row 153, Column 22: "Inline style: { width: '48%' }"
react-native/no-inline-styles
|
| 153 |
style={{ |
| 154 |
...styles.input, |
| 155 |
|
| 156 |
paddingBottom: multiline ? mvs(23) : mvs(10), |
| 157 |
width: '48%', |
| 158 |
marginTop: row ? mvs(0) : mvs(10), |
| 159 |
...textStyle2, |
| 160 |
}} |
| 161 |
placeholder={placeholder2} |
| 162 |
multiline={multiline} |
| 163 |
onChangeText={onChangeText2} |
| 164 |
placeholderTextColor={placeholderTextColor} |
| 165 |
value={value2} |
| 166 |
editable={editable2} |
| 167 |
maxLength={maxLength} |
| 168 |
/> |
| 169 |
)} |
| 170 |
</View> |
| 171 |
)} |
| 172 |
|
| 173 |
{flag && ( |
| 174 |
<ImagePlaceholder |
| 175 |
bg_img={flagUri} |
| 176 |
containerStyle={{...styles.flag, ...flagStyle}} |
| 177 |
/> |
| 178 |
)} |
| 179 |
|
| 180 |
{calendar && ( |
| 181 |
<View |
| Warning |
Row 182, Column 18: "Inline style: { justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 182 |
style={{ |
| 183 |
...styles.flag, |
| 184 |
justifyContent: 'center', |
| 185 |
alignItems: 'center', |
| 186 |
}}> |
| 187 |
<Calender {...flagStyle} onPress={onIconPress} /> |
| 188 |
</View> |
| 189 |
)} |
| Error |
Row 190, Column 15: "Replace `` with `(⏎········⏎······)`"
prettier/prettier
|
| 190 |
{tag && <Regular label={`${profileData?.currency?.currency_code}`} style={{...styles.tag, ...flagStyle}} />} |
| 191 |
</View> |
| 192 |
); |
| 193 |
}; |
| 194 |
|
| Error |
Row 195, Column 22: "Replace `=state=>` with `·=·state·=>·`"
prettier/prettier
|
| Warning |
Row 195, Column 22: "Operator '=' must be spaced."
space-infix-ops
|
| 195 |
const mapStateToProps=state=>{ |
| Warning |
Row 196, Column 3: "Expected space(s) after "return"."
keyword-spacing
|
| Error |
Row 196, Column 9: "Insert `·`"
prettier/prettier
|
| 196 |
return{ |
| 197 |
profileData: state.auth.userInfo?.profile || {}, |
| Error |
Row 198, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 198, Column 4: "Missing semicolon."
semi
|
| 198 |
} |
| Error |
Row 199, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 199, Column 2: "Missing semicolon."
semi
|
| 199 |
} |
| Error |
Row 200, Column 40: "Insert `·`"
prettier/prettier
|
| 200 |
export default connect(mapStateToProps,{})(InputWithTitle); |
| 201 |
|
| 202 |
const styles = StyleSheet.create({ |
| 203 |
mainContainer: { |
| 204 |
//flex : 1, |
| 205 |
}, |
| 206 |
title: { |
| 207 |
fontSize: mvs(13), |
| 208 |
color: colors.headerTitle, |
| 209 |
}, |
| 210 |
input: { |
| 211 |
width: '100%', |
| 212 |
borderRadius: mvs(10), |
| 213 |
backgroundColor: colors.secondary, |
| 214 |
padding: mvs(10), |
| 215 |
paddingBottom: mvs(23), |
| 216 |
color: colors.primary, |
| 217 |
}, |
| 218 |
flag: { |
| 219 |
height: mvs(23), |
| 220 |
width: mvs(23), |
| 221 |
borderRadius: mvs(23 / 2), |
| 222 |
position: 'absolute', |
| 223 |
right: mvs(10), |
| 224 |
overflow: 'hidden', |
| 225 |
}, |
| 226 |
tag: { |
| 227 |
position: 'absolute', |
| 228 |
right: mvs(10), |
| 229 |
}, |
| 230 |
}); |
| 231 |
|
|
|
|
/src/components/molecules/instraction-card-doted/index.js
|
3 problems (1 error, 2 warnings)
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Warning |
Row 2, Column 21: "'Text' is defined but never used."
no-unused-vars
|
| 2 |
import {StyleSheet, Text, View} from 'react-native'; |
| 3 |
import colors from '../../../config/colors'; |
| 4 |
import {mvs} from '../../../config/metrices'; |
| 5 |
import Regular from '../../../presentation/typography/regular-text'; |
| 6 |
|
| 7 |
const InstractionCard = ({title, detail, border = true, ...props}) => { |
| 8 |
return ( |
| 9 |
<> |
| 10 |
<View style={styles.point} /> |
| Warning |
Row 11, Column 20: "Inline style: { borderLeftWidth: 'border ? 0 : 0' }"
react-native/no-inline-styles
|
| 11 |
<View style={{...styles.mainContainer, borderLeftWidth: border ? 0 : 0}}> |
| 12 |
<Regular label={title} style={styles.title} /> |
| 13 |
<View style={styles.detailContainer}> |
| 14 |
<Regular label={detail} style={styles.detail} /> |
| 15 |
</View> |
| 16 |
{border && <View style={styles.dotedLine} />} |
| 17 |
</View> |
| 18 |
</> |
| 19 |
); |
| 20 |
}; |
| 21 |
|
| 22 |
export default InstractionCard; |
| 23 |
|
| 24 |
const styles = StyleSheet.create({ |
| 25 |
mainContainer: { |
| 26 |
backgroundColor: colors.white, |
| 27 |
paddingLeft: mvs(20 + 5.5), |
| 28 |
// borderColor : colors.doted, |
| 29 |
borderLeftColor: colors.doted, |
| 30 |
borderStyle: 'dashed', |
| 31 |
//borderRadius: 1, |
| 32 |
// minHeight: mvs(78), |
| 33 |
// paddingBottom: mvs(49), |
| 34 |
}, |
| 35 |
title: { |
| 36 |
fontSize: mvs(18), |
| 37 |
color: colors.primary, |
| 38 |
marginTop: -mvs(8), |
| 39 |
}, |
| 40 |
detailContainer: { |
| 41 |
//borderWidth : 1, |
| 42 |
marginTop: mvs(10), |
| Error |
Row 43, Column 18: "Insert `·`"
prettier/prettier
|
| 43 |
marginBottom:mvs(30), |
| 44 |
paddingRight: mvs(20), |
| 45 |
}, |
| 46 |
detail: { |
| 47 |
fontSize: mvs(12), |
| 48 |
color: colors.headerTitle, |
| 49 |
}, |
| 50 |
point: { |
| 51 |
height: mvs(12), |
| 52 |
width: mvs(12), |
| 53 |
zIndex: 1001, |
| 54 |
borderRadius: mvs(6), |
| 55 |
backgroundColor: colors.primary, |
| 56 |
position: 'absolute', |
| 57 |
left: -mvs(5), |
| 58 |
shadowColor: '#000', |
| 59 |
shadowOffset: { |
| 60 |
width: 0, |
| 61 |
height: 1, |
| 62 |
}, |
| 63 |
shadowOpacity: 0.18, |
| 64 |
shadowRadius: 1.0, |
| 65 |
|
| 66 |
elevation: 1, |
| 67 |
}, |
| 68 |
dotedLine: { |
| 69 |
borderWidth: StyleSheet.hairlineWidth, |
| 70 |
position: 'absolute', |
| 71 |
left: 0, |
| 72 |
zIndex: 1001, |
| 73 |
borderStyle: 'dashed', |
| 74 |
borderRadius: 0, |
| 75 |
height: '100%', |
| 76 |
borderColor: colors.doted, |
| 77 |
}, |
| 78 |
}); |
| 79 |
|
|
|
|
/src/components/molecules/modal-wrapper/modal-wrapper.js
|
73 problems (63 errors, 10 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·TouchableOpacity,·View·` with `StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| Error |
Row 4, Column 9: "Delete `·`"
prettier/prettier
|
| Error |
Row 6, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 8, Column 8: "'Regular' is defined but never used."
no-unused-vars
|
| Warning |
Row 9, Column 8: "'Buttons' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 24: "Replace `·visible,·onClose,isBack,title='I·am·a·Modal',·children·` with `⏎··visible,⏎··onClose,⏎··isBack,⏎··title·=·'I·am·a·Modal',⏎··children,⏎`"
prettier/prettier
|
| Warning |
Row 10, Column 54: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 11, Column 3: "Replace `··const·[paymentMethod,·setPaymentMethod]·=·React.useState('visa')` with `const·[paymentMethod,·setPaymentMethod]·=·React.useState('visa');`"
prettier/prettier
|
| Warning |
Row 11, Column 12: "'paymentMethod' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 11, Column 27: "'setPaymentMethod' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 11, Column 69: "Missing semicolon."
semi
|
| Error |
Row 12, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 13, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 14, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 15, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 16, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 17, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 18, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 19, Column 1: "Replace `············style={{·margin:·0,·padding:·0,justifyContent:'flex-end'·` with `······style={{margin:·0,·padding:·0,·justifyContent:·'flex-end'`"
prettier/prettier
|
| Warning |
Row 19, Column 20: "Inline style: { margin: 0, padding: 0, justifyContent: 'flex-end' }"
react-native/no-inline-styles
|
| Error |
Row 20, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 21, Column 9: "Replace `········prettier/prettier
|
| Error |
Row 22, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 23, Column 13: "Delete `········`"
prettier/prettier
|
| Error |
Row 24, Column 1: "Replace `················` with `··········`"
prettier/prettier
|
| Error |
Row 25, Column 11: "Replace `··········{isBack&&` with `{isBack·&&·(⏎············`"
prettier/prettier
|
| Warning |
Row 25, Column 28: "Operator '&&' must be spaced."
space-infix-ops
|
| Error |
Row 26, Column 1: "Replace `························prettier/prettier
|
| Warning |
Row 26, Column 38: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| Error |
Row 27, Column 1: "Replace `····················}` with `············`"
prettier/prettier
|
| Error |
Row 28, Column 11: "Insert `)}⏎`"
prettier/prettier
|
| Error |
Row 29, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 30, Column 1: "Replace `················⏎····················{children}⏎················` with `········{children}`"
prettier/prettier
|
| Error |
Row 33, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 34, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 35, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 39, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 40, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 41, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 42, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 43, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 44, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 45, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 46, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 47, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 48, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 49, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 50, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 51, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 52, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 53, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 54, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 55, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 56, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 57, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 58, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 59, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 60, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 61, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 62, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 63, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 64, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 65, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 66, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 67, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 68, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 69, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 70, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 71, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 72, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 73, Column 3: "Delete `··`"
prettier/prettier
|
| Warning |
Row 74, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 74, Column 4: "Insert `⏎`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·TouchableOpacity,·View·` with `StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| 2 |
import { StyleSheet, TouchableOpacity, View } from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| Error |
Row 4, Column 9: "Delete `·`"
prettier/prettier
|
| 4 |
import { back_white as Back} from '../../../../resource/assets/common-icons'; |
| 5 |
import colors from '../../../config/colors'; |
| Error |
Row 6, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 6 |
import { mvs } from '../../../config/metrices'; |
| 7 |
import Medium from '../../../presentation/typography/medium-text'; |
| Warning |
Row 8, Column 8: "'Regular' is defined but never used."
no-unused-vars
|
| 8 |
import Regular from '../../../presentation/typography/regular-text'; |
| Warning |
Row 9, Column 8: "'Buttons' is defined but never used."
no-unused-vars
|
| 9 |
import Buttons from '../../atoms/Button'; |
| Error |
Row 10, Column 24: "Replace `·visible,·onClose,isBack,title='I·am·a·Modal',·children·` with `⏎··visible,⏎··onClose,⏎··isBack,⏎··title·=·'I·am·a·Modal',⏎··children,⏎`"
prettier/prettier
|
| Warning |
Row 10, Column 54: "Operator '=' must be spaced."
space-infix-ops
|
| 10 |
const ModalWrapper = ({ visible, onClose,isBack,title='I am a Modal', children }) => { |
| Error |
Row 11, Column 3: "Replace `··const·[paymentMethod,·setPaymentMethod]·=·React.useState('visa')` with `const·[paymentMethod,·setPaymentMethod]·=·React.useState('visa');`"
prettier/prettier
|
| Warning |
Row 11, Column 12: "'paymentMethod' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 11, Column 27: "'setPaymentMethod' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 11, Column 69: "Missing semicolon."
semi
|
| 11 |
const [paymentMethod, setPaymentMethod] = React.useState('visa') |
| Error |
Row 12, Column 1: "Delete `··`"
prettier/prettier
|
| 12 |
return ( |
| Error |
Row 13, Column 1: "Delete `····`"
prettier/prettier
|
| 13 |
<ReactNativeModal |
| Error |
Row 14, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 14 |
propagateSwipe |
| Error |
Row 15, Column 1: "Delete `······`"
prettier/prettier
|
| 15 |
isVisible={visible} |
| Error |
Row 16, Column 7: "Delete `······`"
prettier/prettier
|
| 16 |
avoidKeyboard |
| Error |
Row 17, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 17 |
onBackdropPress={() => onClose(f => !f)} |
| Error |
Row 18, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 18 |
onBackButtonPress={() => onClose(f => !f)} |
| Error |
Row 19, Column 1: "Replace `············style={{·margin:·0,·padding:·0,justifyContent:'flex-end'·` with `······style={{margin:·0,·padding:·0,·justifyContent:·'flex-end'`"
prettier/prettier
|
| Warning |
Row 19, Column 20: "Inline style: { margin: 0, padding: 0, justifyContent: 'flex-end' }"
react-native/no-inline-styles
|
| 19 |
style={{ margin: 0, padding: 0,justifyContent:'flex-end' }}> |
| Error |
Row 20, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 20 |
<View style={styles.CONTAINER}> |
| Error |
Row 21, Column 9: "Replace `········prettier/prettier
|
| 21 |
<View style={{ |
| Error |
Row 22, Column 1: "Delete `········`"
prettier/prettier
|
| 22 |
marginTop: mvs(13), |
| Error |
Row 23, Column 13: "Delete `········`"
prettier/prettier
|
| 23 |
marginBottom: mvs(16), |
| Error |
Row 24, Column 1: "Replace `················` with `··········`"
prettier/prettier
|
| 24 |
}}> |
| Error |
Row 25, Column 11: "Replace `··········{isBack&&` with `{isBack·&&·(⏎············`"
prettier/prettier
|
| Warning |
Row 25, Column 28: "Operator '&&' must be spaced."
space-infix-ops
|
| 25 |
{isBack&&<TouchableOpacity onPress={onClose}> |
| Error |
Row 26, Column 1: "Replace `························prettier/prettier
|
| Warning |
Row 26, Column 38: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| 26 |
<Back style={{position:'absolute',left:mvs(15)}}/> |
| Error |
Row 27, Column 1: "Replace `····················}` with `············`"
prettier/prettier
|
| 27 |
</TouchableOpacity>} |
| Error |
Row 28, Column 11: "Insert `)}⏎`"
prettier/prettier
|
| 28 |
<Medium label={title} style={styles.HEADING_TXT} /> |
| Error |
Row 29, Column 9: "Delete `········`"
prettier/prettier
|
| 29 |
</View> |
| Error |
Row 30, Column 1: "Replace `················⏎····················{children}⏎················` with `········{children}`"
prettier/prettier
|
| 30 |
<View style={styles.SUB_CONTAINER}> |
| 31 |
{children} |
| 32 |
</View> |
| Error |
Row 33, Column 7: "Delete `······`"
prettier/prettier
|
| 33 |
</View> |
| Error |
Row 34, Column 1: "Delete `····`"
prettier/prettier
|
| 34 |
</ReactNativeModal> |
| Error |
Row 35, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 35 |
); |
| 36 |
}; |
| 37 |
export default ModalWrapper; |
| 38 |
const styles = StyleSheet.create({ |
| Error |
Row 39, Column 3: "Delete `··`"
prettier/prettier
|
| 39 |
CONTAINER: { |
| Error |
Row 40, Column 1: "Delete `····`"
prettier/prettier
|
| 40 |
// position: 'absolute', |
| Error |
Row 41, Column 1: "Delete `····`"
prettier/prettier
|
| 41 |
// bottom: 0, |
| Error |
Row 42, Column 5: "Delete `····`"
prettier/prettier
|
| 42 |
width: '100%', |
| Error |
Row 43, Column 1: "Delete `····`"
prettier/prettier
|
| 43 |
borderTopLeftRadius: mvs(20), |
| Error |
Row 44, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 44 |
borderTopRightRadius: mvs(20), |
| Error |
Row 45, Column 1: "Delete `····`"
prettier/prettier
|
| 45 |
backgroundColor: colors.primary, |
| Error |
Row 46, Column 3: "Delete `··`"
prettier/prettier
|
| 46 |
}, |
| Error |
Row 47, Column 1: "Delete `··`"
prettier/prettier
|
| 47 |
HEADING_TXT: { |
| Error |
Row 48, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 48 |
fontSize: mvs(15), |
| Error |
Row 49, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 49 |
color: colors.white, |
| Error |
Row 50, Column 1: "Delete `····`"
prettier/prettier
|
| 50 |
alignSelf: 'center', |
| Error |
Row 51, Column 3: "Delete `··`"
prettier/prettier
|
| 51 |
}, |
| Error |
Row 52, Column 1: "Delete `··`"
prettier/prettier
|
| 52 |
SUB_CONTAINER: { |
| Error |
Row 53, Column 1: "Delete `····`"
prettier/prettier
|
| 53 |
backgroundColor: colors.white, |
| Error |
Row 54, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 54 |
paddingTop: mvs(20), |
| Error |
Row 55, Column 1: "Delete `····`"
prettier/prettier
|
| 55 |
paddingBottom: mvs(38), |
| Error |
Row 56, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 56 |
paddingHorizontal: mvs(22), |
| Error |
Row 57, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 57 |
borderTopLeftRadius: mvs(20), |
| Error |
Row 58, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 58 |
borderTopRightRadius: mvs(20), |
| Error |
Row 59, Column 3: "Delete `··`"
prettier/prettier
|
| 59 |
}, |
| Error |
Row 60, Column 1: "Delete `··`"
prettier/prettier
|
| 60 |
PARTNER_TXT: { |
| Error |
Row 61, Column 5: "Delete `····`"
prettier/prettier
|
| 61 |
fontSize: mvs(15), |
| Error |
Row 62, Column 1: "Delete `····`"
prettier/prettier
|
| 62 |
color: colors.headerTitle, |
| Error |
Row 63, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 63 |
alignSelf: 'center', |
| Error |
Row 64, Column 1: "Delete `····`"
prettier/prettier
|
| 64 |
marginBottom: mvs(15), |
| Error |
Row 65, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 65 |
}, |
| Error |
Row 66, Column 1: "Delete `··`"
prettier/prettier
|
| 66 |
BUTTON_CONTAINER: { |
| Error |
Row 67, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 67 |
flexDirection: 'row', |
| Error |
Row 68, Column 1: "Delete `····`"
prettier/prettier
|
| 68 |
justifyContent: 'space-between', |
| Error |
Row 69, Column 5: "Delete `····`"
prettier/prettier
|
| 69 |
marginTop: mvs(30), |
| Error |
Row 70, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 70 |
}, |
| Error |
Row 71, Column 1: "Delete `··`"
prettier/prettier
|
| 71 |
BUTTON: { |
| Error |
Row 72, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 72 |
width: mvs(161), |
| Error |
Row 73, Column 3: "Delete `··`"
prettier/prettier
|
| 73 |
}, |
| Warning |
Row 74, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 74, Column 4: "Insert `⏎`"
prettier/prettier
|
| 74 |
}); |
|
|
|
/src/components/molecules/modals/add-balance-modal.js
|
77 problems (71 errors, 6 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·View·` with `StyleSheet,·View`"
prettier/prettier
|
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 9, Column 27: "Replace `·visible,·onClose,proceedLoading·,` with `visible,·onClose,·proceedLoading,·`"
prettier/prettier
|
| Error |
Row 10, Column 3: "Replace `··const·[paymentMethod,·setPaymentMethod]·=·React.useState('visa')⏎` with `const·[paymentMethod,·setPaymentMethod]·=·React.useState('visa');`"
prettier/prettier
|
| Warning |
Row 10, Column 69: "Missing semicolon."
semi
|
| Error |
Row 13, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 14, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 15, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 16, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 17, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 18, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 19, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 20, Column 7: "Replace `······style={{·margin:·0,·padding:·0·` with `style={{margin:·0,·padding:·0`"
prettier/prettier
|
| Warning |
Row 20, Column 20: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 21, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 22, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 23, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 24, Column 1: "Delete `··········`"
prettier/prettier
|
| Error |
Row 25, Column 1: "Replace `····················prettier/prettier
|
| Warning |
Row 25, Column 34: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Error |
Row 26, Column 1: "Replace `·························{·setPaymentMethod('visa');·}}·/>` with `·············{⏎················setPaymentMethod('visa');⏎··············}}`"
prettier/prettier
|
| Error |
Row 27, Column 13: "Replace `·············{·setPaymentMethod('master');·}}·/>` with `/>⏎·············{⏎················setPaymentMethod('master');⏎··············}}`"
prettier/prettier
|
| Error |
Row 28, Column 13: "Replace `·············{·setPaymentMethod('american');·}}·/>` with `/>⏎·············{⏎················setPaymentMethod('american');⏎··············}}`"
prettier/prettier
|
| Error |
Row 29, Column 13: "Replace `·············{·setPaymentMethod('net');·}}·/>` with `/>⏎·············{⏎················setPaymentMethod('net');⏎··············}}`"
prettier/prettier
|
| Error |
Row 30, Column 13: "Replace `········prettier/prettier
|
| Error |
Row 31, Column 11: "Insert `⏎`"
prettier/prettier
|
| Error |
Row 32, Column 1: "Replace `························prettier/prettier
|
| Error |
Row 33, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 34, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Warning |
Row 35, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 35, Column 15: "Replace `··············⏎····························onClick={addBalance}·style={styles.BUTTON}·title={'Proceed'}·/>` with `onClick={addBalance}⏎··············style={styles.BUTTON}⏎··············title={'Proceed'}`"
prettier/prettier
|
| Error |
Row 37, Column 13: "Replace `·············onClose()}·style={{·...styles.BUTTON,·}}·title={'Cancel'}·/>` with `/>⏎·············onClose()}⏎··············style={{...styles.BUTTON}}⏎··············title={'Cancel'}`"
prettier/prettier
|
| Warning |
Row 37, Column 108: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 38, Column 13: "Insert `/>⏎··`"
prettier/prettier
|
| Error |
Row 39, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 40, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 41, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 42, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 46, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 47, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 48, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 49, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 50, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 51, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 52, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 53, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 54, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 55, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 56, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 57, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 58, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 59, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 60, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 61, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 62, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 63, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 64, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 65, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 66, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 67, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 68, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 69, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 70, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 71, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 72, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 73, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 74, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 75, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 76, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 77, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 78, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 79, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 80, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 81, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 82, Column 3: "Delete `··`"
prettier/prettier
|
| Warning |
Row 83, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 83, Column 4: "Insert `⏎`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·View·` with `StyleSheet,·View`"
prettier/prettier
|
| 2 |
import { StyleSheet, View } from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| 4 |
import colors from '../../../config/colors'; |
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 5 |
import { mvs } from '../../../config/metrices'; |
| 6 |
import Medium from '../../../presentation/typography/medium-text'; |
| 7 |
import Regular from '../../../presentation/typography/regular-text'; |
| 8 |
import Buttons from '../../atoms/Button'; |
| Error |
Row 9, Column 27: "Replace `·visible,·onClose,proceedLoading·,` with `visible,·onClose,·proceedLoading,·`"
prettier/prettier
|
| 9 |
const AddBalanceModal = ({ visible, onClose,proceedLoading ,addBalance}) => { |
| Error |
Row 10, Column 3: "Replace `··const·[paymentMethod,·setPaymentMethod]·=·React.useState('visa')⏎` with `const·[paymentMethod,·setPaymentMethod]·=·React.useState('visa');`"
prettier/prettier
|
| Warning |
Row 10, Column 69: "Missing semicolon."
semi
|
| 10 |
const [paymentMethod, setPaymentMethod] = React.useState('visa') |
| 11 |
|
| 12 |
|
| Error |
Row 13, Column 1: "Delete `··`"
prettier/prettier
|
| 13 |
return ( |
| Error |
Row 14, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 14 |
<ReactNativeModal |
| Error |
Row 15, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 15 |
propagateSwipe |
| Error |
Row 16, Column 1: "Delete `······`"
prettier/prettier
|
| 16 |
isVisible={visible} |
| Error |
Row 17, Column 7: "Delete `······`"
prettier/prettier
|
| 17 |
avoidKeyboard |
| Error |
Row 18, Column 1: "Delete `······`"
prettier/prettier
|
| 18 |
onBackdropPress={() => onClose(f => !f)} |
| Error |
Row 19, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 19 |
onBackButtonPress={() => onClose(f => !f)} |
| Error |
Row 20, Column 7: "Replace `······style={{·margin:·0,·padding:·0·` with `style={{margin:·0,·padding:·0`"
prettier/prettier
|
| Warning |
Row 20, Column 20: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| 20 |
style={{ margin: 0, padding: 0 }}> |
| Error |
Row 21, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 21 |
<View style={styles.CONTAINER}> |
| Error |
Row 22, Column 1: "Delete `········`"
prettier/prettier
|
| 22 |
<Medium label={'Add Balance'} style={styles.HEADING_TXT} /> |
| Error |
Row 23, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 23 |
<View style={styles.SUB_CONTAINER}> |
| Error |
Row 24, Column 1: "Delete `··········`"
prettier/prettier
|
| 24 |
<Regular label={'Our partners'} style={styles.PARTNER_TXT} /> |
| Error |
Row 25, Column 1: "Replace `····················prettier/prettier
|
| Warning |
Row 25, Column 34: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| 25 |
<View style={{ flexDirection: 'row', justifyContent: 'space-between' }}> |
| Error |
Row 26, Column 1: "Replace `·························{·setPaymentMethod('visa');·}}·/>` with `·············{⏎················setPaymentMethod('visa');⏎··············}}`"
prettier/prettier
|
| 26 |
<Buttons.ButtonBlanceCard style={{ borderColor: paymentMethod === 'visa' ? colors.primary : colors.border }} iconName={'visa'} onClick={() => { setPaymentMethod('visa'); }} /> |
| Error |
Row 27, Column 13: "Replace `·············{·setPaymentMethod('master');·}}·/>` with `/>⏎·············{⏎················setPaymentMethod('master');⏎··············}}`"
prettier/prettier
|
| 27 |
<Buttons.ButtonBlanceCard style={{ borderColor: paymentMethod === 'master' ? colors.primary : colors.border }} iconName={'master'} onClick={() => { setPaymentMethod('master'); }} /> |
| Error |
Row 28, Column 13: "Replace `·············{·setPaymentMethod('american');·}}·/>` with `/>⏎·············{⏎················setPaymentMethod('american');⏎··············}}`"
prettier/prettier
|
| 28 |
<Buttons.ButtonBlanceCard style={{ borderColor: paymentMethod === 'american' ? colors.primary : colors.border }} iconName={'american'} onClick={() => { setPaymentMethod('american'); }} /> |
| Error |
Row 29, Column 13: "Replace `·············{·setPaymentMethod('net');·}}·/>` with `/>⏎·············{⏎················setPaymentMethod('net');⏎··············}}`"
prettier/prettier
|
| 29 |
<Buttons.ButtonBlanceCard style={{ borderColor: paymentMethod === 'net' ? colors.primary : colors.border }} iconName={'net'} onClick={() => { setPaymentMethod('net'); }} /> |
| Error |
Row 30, Column 13: "Replace `········prettier/prettier
|
| 30 |
</View> |
| Error |
Row 31, Column 11: "Insert `⏎`"
prettier/prettier
|
| 31 |
<View style={styles.BUTTON_CONTAINER}> |
| Error |
Row 32, Column 1: "Replace `························prettier/prettier
|
| 32 |
<Buttons.ButtonPrimary loaderColor={colors.white} |
| Error |
Row 33, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 33 |
loading={proceedLoading} |
| Error |
Row 34, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 34 |
disabled={proceedLoading} |
| Warning |
Row 35, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 35, Column 15: "Replace `··············⏎····························onClick={addBalance}·style={styles.BUTTON}·title={'Proceed'}·/>` with `onClick={addBalance}⏎··············style={styles.BUTTON}⏎··············title={'Proceed'}`"
prettier/prettier
|
| 35 |
|
| 36 |
onClick={addBalance} style={styles.BUTTON} title={'Proceed'} /> |
| Error |
Row 37, Column 13: "Replace `·············onClose()}·style={{·...styles.BUTTON,·}}·title={'Cancel'}·/>` with `/>⏎·············onClose()}⏎··············style={{...styles.BUTTON}}⏎··············title={'Cancel'}`"
prettier/prettier
|
| Warning |
Row 37, Column 108: "Unexpected trailing comma."
comma-dangle
|
| 37 |
<Buttons.ButtonSecondaryOutline onClick={() => onClose()} style={{ ...styles.BUTTON, }} title={'Cancel'} /> |
| Error |
Row 38, Column 13: "Insert `/>⏎··`"
prettier/prettier
|
| 38 |
</View> |
| Error |
Row 39, Column 9: "Delete `········`"
prettier/prettier
|
| 39 |
</View> |
| Error |
Row 40, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 40 |
</View> |
| Error |
Row 41, Column 1: "Delete `····`"
prettier/prettier
|
| 41 |
</ReactNativeModal> |
| Error |
Row 42, Column 1: "Delete `··`"
prettier/prettier
|
| 42 |
); |
| 43 |
}; |
| 44 |
export default AddBalanceModal; |
| 45 |
const styles = StyleSheet.create({ |
| Error |
Row 46, Column 3: "Delete `··`"
prettier/prettier
|
| 46 |
CONTAINER: { |
| Error |
Row 47, Column 1: "Delete `····`"
prettier/prettier
|
| 47 |
position: 'absolute', |
| Error |
Row 48, Column 5: "Delete `····`"
prettier/prettier
|
| 48 |
bottom: 0, |
| Error |
Row 49, Column 1: "Delete `····`"
prettier/prettier
|
| 49 |
width: '100%', |
| Error |
Row 50, Column 5: "Delete `····`"
prettier/prettier
|
| 50 |
borderTopLeftRadius: mvs(20), |
| Error |
Row 51, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 51 |
borderTopRightRadius: mvs(20), |
| Error |
Row 52, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 52 |
backgroundColor: colors.primary, |
| Error |
Row 53, Column 3: "Delete `··`"
prettier/prettier
|
| 53 |
}, |
| Error |
Row 54, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 54 |
HEADING_TXT: { |
| Error |
Row 55, Column 1: "Delete `····`"
prettier/prettier
|
| 55 |
fontSize: mvs(15), |
| Error |
Row 56, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 56 |
color: colors.white, |
| Error |
Row 57, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 57 |
alignSelf: 'center', |
| Error |
Row 58, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 58 |
marginTop: mvs(13), |
| Error |
Row 59, Column 1: "Delete `····`"
prettier/prettier
|
| 59 |
marginBottom: mvs(16), |
| Error |
Row 60, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 60 |
}, |
| Error |
Row 61, Column 1: "Delete `··`"
prettier/prettier
|
| 61 |
SUB_CONTAINER: { |
| Error |
Row 62, Column 1: "Delete `····`"
prettier/prettier
|
| 62 |
backgroundColor: colors.white, |
| Error |
Row 63, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 63 |
paddingTop: mvs(20), |
| Error |
Row 64, Column 1: "Delete `····`"
prettier/prettier
|
| 64 |
paddingBottom: mvs(38), |
| Error |
Row 65, Column 5: "Delete `····`"
prettier/prettier
|
| 65 |
paddingHorizontal: mvs(22), |
| Error |
Row 66, Column 1: "Delete `····`"
prettier/prettier
|
| 66 |
borderTopLeftRadius: mvs(20), |
| Error |
Row 67, Column 5: "Delete `····`"
prettier/prettier
|
| 67 |
borderTopRightRadius: mvs(20), |
| Error |
Row 68, Column 3: "Delete `··`"
prettier/prettier
|
| 68 |
}, |
| Error |
Row 69, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 69 |
PARTNER_TXT: { |
| Error |
Row 70, Column 1: "Delete `····`"
prettier/prettier
|
| 70 |
fontSize: mvs(15), |
| Error |
Row 71, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 71 |
color: colors.headerTitle, |
| Error |
Row 72, Column 5: "Delete `····`"
prettier/prettier
|
| 72 |
alignSelf: 'center', |
| Error |
Row 73, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 73 |
marginBottom: mvs(15), |
| Error |
Row 74, Column 1: "Delete `··`"
prettier/prettier
|
| 74 |
}, |
| Error |
Row 75, Column 3: "Delete `··`"
prettier/prettier
|
| 75 |
BUTTON_CONTAINER: { |
| Error |
Row 76, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 76 |
flexDirection: 'row', |
| Error |
Row 77, Column 1: "Delete `····`"
prettier/prettier
|
| 77 |
justifyContent: 'space-between', |
| Error |
Row 78, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 78 |
marginTop: mvs(30), |
| Error |
Row 79, Column 3: "Delete `··`"
prettier/prettier
|
| 79 |
}, |
| Error |
Row 80, Column 1: "Delete `··`"
prettier/prettier
|
| 80 |
BUTTON: { |
| Error |
Row 81, Column 5: "Delete `····`"
prettier/prettier
|
| 81 |
width: '49%', |
| Error |
Row 82, Column 3: "Delete `··`"
prettier/prettier
|
| 82 |
}, |
| Warning |
Row 83, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 83, Column 4: "Insert `⏎`"
prettier/prettier
|
| 83 |
}); |
|
|
|
/src/components/molecules/modals/address-type-modal.js
|
67 problems (57 errors, 10 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet·` with `View,·StyleSheet`"
prettier/prettier
|
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 8, Column 28: "Replace `·visible,·onClose,onChangeValue·` with `visible,·onClose,·onChangeValue`"
prettier/prettier
|
| Error |
Row 9, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 10, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 11, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 12, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 13, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 14, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 15, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 16, Column 1: "Replace `············style={{·margin:·0,·padding:·0·` with `······style={{margin:·0,·padding:·0`"
prettier/prettier
|
| Warning |
Row 16, Column 20: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 17, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 18, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 19, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 20, Column 11: "Replace `··········{onChangeValue('House');onClose(false)}}·label={'House'}·style={styles.TYPE_TXT}/>` with `·{⏎··············onChangeValue('House');⏎··············onClose(false);⏎············}}⏎············label={'House'}⏎············style={styles.TYPE_TXT}`"
prettier/prettier
|
| Warning |
Row 20, Column 66: "Missing whitespace after semicolon."
semi-spacing
|
| Warning |
Row 20, Column 81: "Missing semicolon."
semi
|
| Error |
Row 21, Column 11: "Replace `··········{onChangeValue('Apartment');onClose(false)}}·label={'Apartment'}·style={styles.TYPE_TXT}/>` with `/>⏎···········{⏎··············onChangeValue('Apartment');⏎··············onClose(false);⏎············}}⏎············label={'Apartment'}⏎············style={styles.TYPE_TXT}`"
prettier/prettier
|
| Warning |
Row 21, Column 70: "Missing whitespace after semicolon."
semi-spacing
|
| Warning |
Row 21, Column 85: "Missing semicolon."
semi
|
| Error |
Row 22, Column 11: "Replace `··········{onChangeValue('Office');onClose(false)}}·label={'Office'}·style={{...styles.TYPE_TXT,borderBottomWidth:0,}}/>` with `/>⏎···········{⏎··············onChangeValue('Office');⏎··············onClose(false);⏎············}}⏎············label={'Office'}⏎············style={{...styles.TYPE_TXT,·borderBottomWidth:·0}}`"
prettier/prettier
|
| Warning |
Row 22, Column 67: "Missing whitespace after semicolon."
semi-spacing
|
| Warning |
Row 22, Column 82: "Missing semicolon."
semi
|
| Warning |
Row 22, Column 109: "Inline style: { borderBottomWidth: 0 }"
react-native/no-inline-styles
|
| Warning |
Row 22, Column 148: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 23, Column 9: "Insert `··/>⏎`"
prettier/prettier
|
| Error |
Row 24, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 25, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 26, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 30, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 31, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 32, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 33, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 34, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 35, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 36, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 37, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 38, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 39, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 40, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 41, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 42, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 43, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 44, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 45, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 46, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 47, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 48, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 49, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 50, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 51, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 52, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 53, Column 3: "Replace `··TYPE_TXT:` with `TYPE_TXT:·`"
prettier/prettier
|
| Error |
Row 54, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 55, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 56, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 57, Column 1: "Replace `········marginBottom:` with `····marginBottom:·`"
prettier/prettier
|
| Error |
Row 58, Column 1: "Replace `········borderBottomWidth:` with `····borderBottomWidth:·`"
prettier/prettier
|
| Error |
Row 59, Column 1: "Replace `········borderColor:` with `····borderColor:·`"
prettier/prettier
|
| Error |
Row 60, Column 1: "Replace `········paddingBottom:` with `····paddingBottom:·`"
prettier/prettier
|
| Error |
Row 61, Column 1: "Replace `········paddingTop:` with `····paddingTop:·`"
prettier/prettier
|
| Error |
Row 62, Column 1: "Replace `········width:` with `····width:·`"
prettier/prettier
|
| Error |
Row 63, Column 1: "Replace `········textAlign:` with `····textAlign:·`"
prettier/prettier
|
| Error |
Row 64, Column 3: "Delete `··`"
prettier/prettier
|
| Warning |
Row 65, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 65, Column 4: "Insert `⏎`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet·` with `View,·StyleSheet`"
prettier/prettier
|
| 2 |
import { View, StyleSheet } from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| 4 |
import colors from '../../../config/colors'; |
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 5 |
import { mvs } from '../../../config/metrices'; |
| 6 |
import Medium from '../../../presentation/typography/medium-text'; |
| 7 |
import Regular from '../../../presentation/typography/regular-text'; |
| Error |
Row 8, Column 28: "Replace `·visible,·onClose,onChangeValue·` with `visible,·onClose,·onChangeValue`"
prettier/prettier
|
| 8 |
const AddressTypeModal = ({ visible, onClose,onChangeValue }) => { |
| Error |
Row 9, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 9 |
return ( |
| Error |
Row 10, Column 1: "Delete `····`"
prettier/prettier
|
| 10 |
<ReactNativeModal |
| Error |
Row 11, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 11 |
propagateSwipe |
| Error |
Row 12, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 12 |
isVisible={visible} |
| Error |
Row 13, Column 1: "Delete `······`"
prettier/prettier
|
| 13 |
avoidKeyboard |
| Error |
Row 14, Column 7: "Delete `······`"
prettier/prettier
|
| 14 |
onBackdropPress={() => onClose(f => !f)} |
| Error |
Row 15, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 15 |
onBackButtonPress={() => onClose(f => !f)} |
| Error |
Row 16, Column 1: "Replace `············style={{·margin:·0,·padding:·0·` with `······style={{margin:·0,·padding:·0`"
prettier/prettier
|
| Warning |
Row 16, Column 20: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| 16 |
style={{ margin: 0, padding: 0 }}> |
| Error |
Row 17, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 17 |
<View style={styles.CONTAINER}> |
| Error |
Row 18, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 18 |
<Medium label={'Address Type'} style={styles.HEADING_TXT} /> |
| Error |
Row 19, Column 9: "Delete `········`"
prettier/prettier
|
| 19 |
<View style={styles.SUB_CONTAINER}> |
| Error |
Row 20, Column 11: "Replace `··········{onChangeValue('House');onClose(false)}}·label={'House'}·style={styles.TYPE_TXT}/>` with `·{⏎··············onChangeValue('House');⏎··············onClose(false);⏎············}}⏎············label={'House'}⏎············style={styles.TYPE_TXT}`"
prettier/prettier
|
| Warning |
Row 20, Column 66: "Missing whitespace after semicolon."
semi-spacing
|
| Warning |
Row 20, Column 81: "Missing semicolon."
semi
|
| 20 |
<Regular onPress={()=>{onChangeValue('House');onClose(false)}} label={'House'} style={styles.TYPE_TXT}/> |
| Error |
Row 21, Column 11: "Replace `··········{onChangeValue('Apartment');onClose(false)}}·label={'Apartment'}·style={styles.TYPE_TXT}/>` with `/>⏎···········{⏎··············onChangeValue('Apartment');⏎··············onClose(false);⏎············}}⏎············label={'Apartment'}⏎············style={styles.TYPE_TXT}`"
prettier/prettier
|
| Warning |
Row 21, Column 70: "Missing whitespace after semicolon."
semi-spacing
|
| Warning |
Row 21, Column 85: "Missing semicolon."
semi
|
| 21 |
<Regular onPress={()=>{onChangeValue('Apartment');onClose(false)}} label={'Apartment'} style={styles.TYPE_TXT}/> |
| Error |
Row 22, Column 11: "Replace `··········{onChangeValue('Office');onClose(false)}}·label={'Office'}·style={{...styles.TYPE_TXT,borderBottomWidth:0,}}/>` with `/>⏎···········{⏎··············onChangeValue('Office');⏎··············onClose(false);⏎············}}⏎············label={'Office'}⏎············style={{...styles.TYPE_TXT,·borderBottomWidth:·0}}`"
prettier/prettier
|
| Warning |
Row 22, Column 67: "Missing whitespace after semicolon."
semi-spacing
|
| Warning |
Row 22, Column 82: "Missing semicolon."
semi
|
| Warning |
Row 22, Column 109: "Inline style: { borderBottomWidth: 0 }"
react-native/no-inline-styles
|
| Warning |
Row 22, Column 148: "Unexpected trailing comma."
comma-dangle
|
| 22 |
<Regular onPress={()=>{onChangeValue('Office');onClose(false)}} label={'Office'} style={{...styles.TYPE_TXT,borderBottomWidth:0,}}/> |
| Error |
Row 23, Column 9: "Insert `··/>⏎`"
prettier/prettier
|
| 23 |
</View> |
| Error |
Row 24, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 24 |
</View> |
| Error |
Row 25, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 25 |
</ReactNativeModal> |
| Error |
Row 26, Column 1: "Delete `··`"
prettier/prettier
|
| 26 |
); |
| 27 |
}; |
| 28 |
export default AddressTypeModal; |
| 29 |
const styles = StyleSheet.create({ |
| Error |
Row 30, Column 3: "Delete `··`"
prettier/prettier
|
| 30 |
CONTAINER: { |
| Error |
Row 31, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 31 |
position: 'absolute', |
| Error |
Row 32, Column 5: "Delete `····`"
prettier/prettier
|
| 32 |
bottom: 0, |
| Error |
Row 33, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 33 |
width: '100%', |
| Error |
Row 34, Column 1: "Delete `····`"
prettier/prettier
|
| 34 |
borderTopLeftRadius: mvs(20), |
| Error |
Row 35, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 35 |
borderTopRightRadius: mvs(20), |
| Error |
Row 36, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 36 |
backgroundColor: colors.primary, |
| Error |
Row 37, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 37 |
}, |
| Error |
Row 38, Column 1: "Delete `··`"
prettier/prettier
|
| 38 |
HEADING_TXT: { |
| Error |
Row 39, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 39 |
fontSize: mvs(15), |
| Error |
Row 40, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 40 |
color: colors.white, |
| Error |
Row 41, Column 1: "Delete `····`"
prettier/prettier
|
| 41 |
alignSelf: 'center', |
| Error |
Row 42, Column 5: "Delete `····`"
prettier/prettier
|
| 42 |
marginTop: mvs(13), |
| Error |
Row 43, Column 1: "Delete `····`"
prettier/prettier
|
| 43 |
marginBottom: mvs(16), |
| Error |
Row 44, Column 3: "Delete `··`"
prettier/prettier
|
| 44 |
}, |
| Error |
Row 45, Column 1: "Delete `··`"
prettier/prettier
|
| 45 |
SUB_CONTAINER: { |
| Error |
Row 46, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 46 |
backgroundColor: colors.white, |
| Error |
Row 47, Column 5: "Delete `····`"
prettier/prettier
|
| 47 |
paddingTop: mvs(28), |
| Error |
Row 48, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 48 |
paddingBottom: mvs(20), |
| Error |
Row 49, Column 1: "Delete `····`"
prettier/prettier
|
| 49 |
paddingHorizontal: mvs(22), |
| Error |
Row 50, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 50 |
borderTopLeftRadius: mvs(20), |
| Error |
Row 51, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 51 |
borderTopRightRadius: mvs(20), |
| Error |
Row 52, Column 1: "Delete `··`"
prettier/prettier
|
| 52 |
}, |
| Error |
Row 53, Column 3: "Replace `··TYPE_TXT:` with `TYPE_TXT:·`"
prettier/prettier
|
| 53 |
TYPE_TXT:{ |
| Error |
Row 54, Column 1: "Delete `····`"
prettier/prettier
|
| 54 |
fontSize: mvs(15), |
| Error |
Row 55, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 55 |
color: colors.headerTitle, |
| Error |
Row 56, Column 5: "Delete `····`"
prettier/prettier
|
| 56 |
alignSelf: 'center', |
| Error |
Row 57, Column 1: "Replace `········marginBottom:` with `····marginBottom:·`"
prettier/prettier
|
| 57 |
marginBottom:mvs(15), |
| Error |
Row 58, Column 1: "Replace `········borderBottomWidth:` with `····borderBottomWidth:·`"
prettier/prettier
|
| 58 |
borderBottomWidth:StyleSheet.hairlineWidth, |
| Error |
Row 59, Column 1: "Replace `········borderColor:` with `····borderColor:·`"
prettier/prettier
|
| 59 |
borderColor:colors.border, |
| Error |
Row 60, Column 1: "Replace `········paddingBottom:` with `····paddingBottom:·`"
prettier/prettier
|
| 60 |
paddingBottom:mvs(20), |
| Error |
Row 61, Column 1: "Replace `········paddingTop:` with `····paddingTop:·`"
prettier/prettier
|
| 61 |
paddingTop:mvs(5), |
| Error |
Row 62, Column 1: "Replace `········width:` with `····width:·`"
prettier/prettier
|
| 62 |
width:'100%', |
| Error |
Row 63, Column 1: "Replace `········textAlign:` with `····textAlign:·`"
prettier/prettier
|
| 63 |
textAlign:'center', |
| Error |
Row 64, Column 3: "Delete `··`"
prettier/prettier
|
| 64 |
}, |
| Warning |
Row 65, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 65, Column 4: "Insert `⏎`"
prettier/prettier
|
| 65 |
}); |
|
|
|
/src/components/molecules/modals/change-password-modal.js
|
139 problems (111 errors, 28 warnings)
|
| Severity |
Rule |
| Error |
Row 5, Column 9: "Replace `·View,·Text,·StyleSheet·` with `View,·Text,·StyleSheet`"
prettier/prettier
|
| Warning |
Row 5, Column 16: "'Text' is defined but never used."
no-unused-vars
|
| Error |
Row 9, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 10, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Error |
Row 12, Column 9: "Replace `·INPUT,·TAKE_TO_INPUT_FIELD·` with `INPUT,·TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 12, Column 10: "'INPUT' is defined but never used."
no-unused-vars
|
| Error |
Row 15, Column 31: "Replace `·visible,·onClose,forgotPayload,` with `visible,·onClose,·forgotPayload,·`"
prettier/prettier
|
| Error |
Row 16, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 17, Column 1: "Replace `····const·[isSaved,setIsSaved]=` with `··const·[isSaved,·setIsSaved]·=·`"
prettier/prettier
|
| Warning |
Row 17, Column 31: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 18, Column 3: "Replace `··const·[loading,setLoading]=` with `const·[loading,·setLoading]·=·`"
prettier/prettier
|
| Warning |
Row 18, Column 31: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 19, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 20, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 21, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 22, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 23, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 24, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 25, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 26, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 28, Column 1: "Replace `⏎⏎` with `··`"
prettier/prettier
|
| Error |
Row 31, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 32, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 32, Column 4: "Delete `⏎···`"
prettier/prettier
|
| Error |
Row 34, Column 14: "Replace `={·password:payload.password,·confirm_password:payload.confirm_password` with `·=·{⏎········password:·payload.password,⏎········confirm_password:·payload.confirm_password,⏎·····`"
prettier/prettier
|
| Warning |
Row 34, Column 14: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 38, Column 71: "Insert `·`"
prettier/prettier
|
| Error |
Row 39, Column 28: "Insert `·`"
prettier/prettier
|
| Error |
Row 40, Column 40: "Replace `⏎··········'success',⏎··········'Alert',⏎··········res?.data?.data,⏎········` with `'success',·'Alert',·res?.data?.data`"
prettier/prettier
|
| Error |
Row 47, Column 40: "Replace `⏎··········'error',⏎··········'Error',⏎··········response.message,⏎········` with `'error',·'Error',·response.message`"
prettier/prettier
|
| Error |
Row 52, Column 8: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 63, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 63, Column 4: "Missing semicolon."
semi
|
| Error |
Row 65, Column 18: "Replace `=()=>` with `·=·()·=>·`"
prettier/prettier
|
| Warning |
Row 65, Column 18: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 70, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 70, Column 4: "Missing semicolon."
semi
|
| Error |
Row 71, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 72, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 73, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 74, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 75, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 76, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 77, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 78, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 79, Column 7: "Replace `······swipeDirection='down'` with `swipeDirection="down"`"
prettier/prettier
|
| Warning |
Row 79, Column 28: "Unexpected usage of singlequote."
jsx-quotes
|
| Error |
Row 80, Column 1: "Replace `············style={{·margin:·0,·` with `······style={{margin:·0`"
prettier/prettier
|
| Warning |
Row 80, Column 20: "Inline style: { margin: 0 }"
react-native/no-inline-styles
|
| Warning |
Row 80, Column 31: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 81, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 82, Column 9: "Replace `········⏎···············{isSaved?` with `⏎········{isSaved·?·(⏎··········prettier/prettier
|
| Warning |
Row 82, Column 84: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 82, Column 147: "Unexpected trailing comma."
comma-dangle
|
| Warning |
Row 83, Column 24: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 83, Column 42: "Inline style: { alignSelf: 'center', textAlign: 'center', width: '70%' }"
react-native/no-inline-styles
|
| Error |
Row 84, Column 1: "Replace `···············:·<>` with `··········/>⏎········)·:·(`"
prettier/prettier
|
| Error |
Row 85, Column 9: "Insert `··<>⏎`"
prettier/prettier
|
| Error |
Row 86, Column 1: "Replace `························style={{·marginTop:·mvs(25)·` with `··············style={{marginTop:·mvs(25)`"
prettier/prettier
|
| Error |
Row 87, Column 1: "Delete `··········`"
prettier/prettier
|
| Error |
Row 88, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| Error |
Row 89, Column 1: "Delete `··········`"
prettier/prettier
|
| Error |
Row 90, Column 15: "Delete `··········`"
prettier/prettier
|
| Error |
Row 91, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| Error |
Row 92, Column 1: "Replace `························onPressIcon={()·=>·setEye({·...eye,·bool1:·!eye.bool1·` with `··············onPressIcon={()·=>·setEye({...eye,·bool1:·!eye.bool1`"
prettier/prettier
|
| Error |
Row 93, Column 15: "Delete `··········`"
prettier/prettier
|
| Error |
Row 94, Column 1: "Replace `····························setPayload({·...payload,·password:·value·})` with `················setPayload({...payload,·password:·value});`"
prettier/prettier
|
| Warning |
Row 94, Column 72: "Missing semicolon."
semi
|
| Error |
Row 95, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| Error |
Row 96, Column 1: "Delete `··········`"
prettier/prettier
|
| Error |
Row 97, Column 1: "Replace `····················` with `············`"
prettier/prettier
|
| Error |
Row 98, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 99, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| Error |
Row 100, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| Error |
Row 101, Column 15: "Delete `··········`"
prettier/prettier
|
| Error |
Row 102, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| Error |
Row 103, Column 1: "Delete `··········`"
prettier/prettier
|
| Error |
Row 104, Column 15: "Replace `··········onPressIcon={()·=>·setEye({·...eye,·bool2:·!eye.bool2·` with `onPressIcon={()·=>·setEye({...eye,·bool2:·!eye.bool2`"
prettier/prettier
|
| Error |
Row 105, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| Error |
Row 106, Column 1: "Replace `····························setPayload({·...payload,·confirm_password:·value·})` with `················setPayload({...payload,·confirm_password:·value});`"
prettier/prettier
|
| Warning |
Row 106, Column 80: "Missing semicolon."
semi
|
| Error |
Row 107, Column 1: "Delete `··········`"
prettier/prettier
|
| Error |
Row 108, Column 15: "Delete `··········`"
prettier/prettier
|
| Error |
Row 109, Column 1: "Replace `····················` with `············`"
prettier/prettier
|
| Error |
Row 110, Column 1: "Replace `················>}` with `··········>`"
prettier/prettier
|
| Error |
Row 111, Column 9: "Replace `········prettier/prettier
|
| Warning |
Row 111, Column 39: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 112, Column 1: "Replace `················` with `··········`"
prettier/prettier
|
| Error |
Row 113, Column 1: "Replace `················` with `··········`"
prettier/prettier
|
| Error |
Row 114, Column 1: "Replace `···················if(isSaved)` with `············if·(isSaved)·`"
prettier/prettier
|
| Warning |
Row 114, Column 20: "Expected space(s) after "if"."
keyword-spacing
|
| Error |
Row 115, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 116, Column 13: "Replace `·······}else` with `}·else·`"
prettier/prettier
|
| Warning |
Row 116, Column 21: "Expected space(s) before "else"."
keyword-spacing
|
| Warning |
Row 116, Column 21: "Expected space(s) after "else"."
keyword-spacing
|
| Error |
Row 117, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 118, Column 13: "Replace `·······}⏎·················}}·title={isSaved?'Back·to·Login·page':·'Save·Password'}·style={{·marginTop:·mvs(30)·}}·/>` with `}⏎··········}}⏎··········title={isSaved·?·'Back·to·Login·page'·:·'Save·Password'}⏎··········style={{marginTop:·mvs(30)}}`"
prettier/prettier
|
| Warning |
Row 119, Column 35: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 120, Column 7: "Insert `··/>⏎`"
prettier/prettier
|
| Error |
Row 121, Column 7: "Replace `······⏎····` with `⏎`"
prettier/prettier
|
| Error |
Row 123, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 129, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 130, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 131, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 132, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 133, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 134, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 135, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Warning |
Row 136, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 136, Column 3: "Delete `······⏎····`"
prettier/prettier
|
| Error |
Row 138, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 139, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 140, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 141, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 142, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 143, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 144, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 145, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 146, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 147, Column 1: "Delete `····`"
prettier/prettier
|
| Warning |
Row 148, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 148, Column 1: "Delete `·····`"
prettier/prettier
|
| Error |
Row 149, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 150, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 151, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 152, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 153, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 154, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 155, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 156, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 157, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 158, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 159, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 160, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 161, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 162, Column 3: "Replace `··}⏎⏎` with `},`"
prettier/prettier
|
| Warning |
Row 162, Column 6: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 165, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 165, Column 4: "Insert `⏎`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_2_API from '@khan_ahmad786/common/api/API'; |
| 2 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 3 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 4 |
import React from 'react'; |
| Error |
Row 5, Column 9: "Replace `·View,·Text,·StyleSheet·` with `View,·Text,·StyleSheet`"
prettier/prettier
|
| Warning |
Row 5, Column 16: "'Text' is defined but never used."
no-unused-vars
|
| 5 |
import { View, Text, StyleSheet } from 'react-native'; |
| 6 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 7 |
import ReactNativeModal from 'react-native-modal'; |
| 8 |
import colors from '../../../config/colors'; |
| Error |
Row 9, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 9 |
import { mvs } from '../../../config/metrices'; |
| Warning |
Row 10, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| 10 |
import Medium from '../../../presentation/typography/medium-text'; |
| 11 |
import Regular from '../../../presentation/typography/regular-text'; |
| Error |
Row 12, Column 9: "Replace `·INPUT,·TAKE_TO_INPUT_FIELD·` with `INPUT,·TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 12, Column 10: "'INPUT' is defined but never used."
no-unused-vars
|
| 12 |
import { INPUT, TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| 13 |
import Buttons from '../../atoms/Button'; |
| 14 |
|
| Error |
Row 15, Column 31: "Replace `·visible,·onClose,forgotPayload,` with `visible,·onClose,·forgotPayload,·`"
prettier/prettier
|
| 15 |
const ChangePasswordModal = ({ visible, onClose,forgotPayload,onOkResult}) => { |
| Error |
Row 16, Column 1: "Delete `··`"
prettier/prettier
|
| 16 |
const alertRef = React.useRef(); |
| Error |
Row 17, Column 1: "Replace `····const·[isSaved,setIsSaved]=` with `··const·[isSaved,·setIsSaved]·=·`"
prettier/prettier
|
| Warning |
Row 17, Column 31: "Operator '=' must be spaced."
space-infix-ops
|
| 17 |
const [isSaved,setIsSaved]=React.useState(); |
| Error |
Row 18, Column 3: "Replace `··const·[loading,setLoading]=` with `const·[loading,·setLoading]·=·`"
prettier/prettier
|
| Warning |
Row 18, Column 31: "Operator '=' must be spaced."
space-infix-ops
|
| 18 |
const [loading,setLoading]=React.useState(false); |
| Error |
Row 19, Column 1: "Delete `··`"
prettier/prettier
|
| 19 |
const [payload, setPayload] = React.useState({ |
| Error |
Row 20, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 20 |
password: '', |
| Error |
Row 21, Column 1: "Delete `····`"
prettier/prettier
|
| 21 |
confirm_password: '', |
| Error |
Row 22, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 22 |
}); |
| Error |
Row 23, Column 1: "Delete `··`"
prettier/prettier
|
| 23 |
const [eye, setEye] = React.useState({ |
| Error |
Row 24, Column 5: "Delete `····`"
prettier/prettier
|
| 24 |
bool1: false, |
| Error |
Row 25, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 25 |
bool2: false, |
| Error |
Row 26, Column 3: "Delete `··`"
prettier/prettier
|
| 26 |
}); |
| 27 |
|
| Error |
Row 28, Column 1: "Replace `⏎⏎` with `··`"
prettier/prettier
|
| 28 |
|
| 29 |
|
| 30 |
//onChange password |
| Error |
Row 31, Column 1: "Insert `··`"
prettier/prettier
|
| 31 |
const onSavePassword = async () => { |
| Warning |
Row 32, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 32, Column 4: "Delete `⏎···`"
prettier/prettier
|
| 32 |
|
| 33 |
try { |
| Error |
Row 34, Column 14: "Replace `={·password:payload.password,·confirm_password:payload.confirm_password` with `·=·{⏎········password:·payload.password,⏎········confirm_password:·payload.confirm_password,⏎·····`"
prettier/prettier
|
| Warning |
Row 34, Column 14: "Operator '=' must be spaced."
space-infix-ops
|
| 34 |
let obj={ password:payload.password, confirm_password:payload.confirm_password }; |
| 35 |
const response = TAKE_TO_CONSTANT.resetPasswordValidation(obj); |
| 36 |
if (response.status) { |
| 37 |
setLoading(true); |
| Error |
Row 38, Column 71: "Insert `·`"
prettier/prettier
|
| 38 |
const res = await TAKE_2_API?.resetPassword({...forgotPayload,...obj}); |
| Error |
Row 39, Column 28: "Insert `·`"
prettier/prettier
|
| 39 |
console.log('res:',res?.data?.data); |
| Error |
Row 40, Column 40: "Replace `⏎··········'success',⏎··········'Alert',⏎··········res?.data?.data,⏎········` with `'success',·'Alert',·res?.data?.data`"
prettier/prettier
|
| 40 |
alertRef.current.alertWithType( |
| 41 |
'success', |
| 42 |
'Alert', |
| 43 |
res?.data?.data, |
| 44 |
); |
| 45 |
setIsSaved(true); |
| 46 |
} else { |
| Error |
Row 47, Column 40: "Replace `⏎··········'error',⏎··········'Error',⏎··········response.message,⏎········` with `'error',·'Error',·response.message`"
prettier/prettier
|
| 47 |
alertRef.current.alertWithType( |
| 48 |
'error', |
| 49 |
'Error', |
| 50 |
response.message, |
| 51 |
); |
| Error |
Row 52, Column 8: "Delete `⏎`"
prettier/prettier
|
| 52 |
} |
| 53 |
|
| 54 |
} catch (error) { |
| 55 |
alertRef.current.alertWithType( |
| 56 |
'error', |
| 57 |
'Error', |
| 58 |
UI_API._returnError(error), |
| 59 |
); |
| 60 |
} finally { |
| 61 |
setLoading(false); |
| 62 |
} |
| Error |
Row 63, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 63, Column 4: "Missing semicolon."
semi
|
| 63 |
} |
| 64 |
|
| Error |
Row 65, Column 18: "Replace `=()=>` with `·=·()·=>·`"
prettier/prettier
|
| Warning |
Row 65, Column 18: "Operator '=' must be spaced."
space-infix-ops
|
| 65 |
const onClosing=()=>{ |
| 66 |
if (!loading) { |
| 67 |
onClose(); |
| 68 |
setIsSaved(false); |
| 69 |
} |
| Error |
Row 70, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 70, Column 4: "Missing semicolon."
semi
|
| 70 |
} |
| Error |
Row 71, Column 1: "Delete `··`"
prettier/prettier
|
| 71 |
return ( |
| Error |
Row 72, Column 1: "Delete `····`"
prettier/prettier
|
| 72 |
<ReactNativeModal |
| Error |
Row 73, Column 7: "Delete `······`"
prettier/prettier
|
| 73 |
propagateSwipe |
| Error |
Row 74, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 74 |
isVisible={visible} |
| Error |
Row 75, Column 7: "Delete `······`"
prettier/prettier
|
| 75 |
avoidKeyboard |
| Error |
Row 76, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 76 |
onBackButtonPress={() => onClosing()} |
| Error |
Row 77, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 77 |
onBackdropPress={() => onClosing()} |
| Error |
Row 78, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 78 |
onSwipeComplete={() => onClosing()} |
| Error |
Row 79, Column 7: "Replace `······swipeDirection='down'` with `swipeDirection="down"`"
prettier/prettier
|
| Warning |
Row 79, Column 28: "Unexpected usage of singlequote."
jsx-quotes
|
| 79 |
swipeDirection='down' |
| Error |
Row 80, Column 1: "Replace `············style={{·margin:·0,·` with `······style={{margin:·0`"
prettier/prettier
|
| Warning |
Row 80, Column 20: "Inline style: { margin: 0 }"
react-native/no-inline-styles
|
| Warning |
Row 80, Column 31: "Unexpected trailing comma."
comma-dangle
|
| 80 |
style={{ margin: 0, }}> |
| Error |
Row 81, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 81 |
<View style={styles.SUB_CONTAINER}> |
| Error |
Row 82, Column 9: "Replace `········⏎···············{isSaved?` with `⏎········{isSaved·?·(⏎··········prettier/prettier
|
| Warning |
Row 82, Column 84: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 82, Column 147: "Unexpected trailing comma."
comma-dangle
|
| 82 |
<Regular label={isSaved ? 'Successful' : 'Change Password'} style={{ color: colors.primary, fontSize: mvs(18), alignSelf: 'center',}} /> |
| Warning |
Row 83, Column 24: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 83, Column 42: "Inline style: { alignSelf: 'center', textAlign: 'center', width: '70%' }"
react-native/no-inline-styles
|
| 83 |
{isSaved?<Regular style={{ marginTop: mvs(4),alignSelf:'center',textAlign:'center',width:'70%',fontSize:mvs(12) }} label={'Kindly follow the instructions sent to your registered email.'}/> |
| Error |
Row 84, Column 1: "Replace `···············:·<>` with `··········/>⏎········)·:·(`"
prettier/prettier
|
| 84 |
: <> |
| Error |
Row 85, Column 9: "Insert `··<>⏎`"
prettier/prettier
|
| 85 |
<TAKE_TO_INPUT_FIELD.CustomInput |
| Error |
Row 86, Column 1: "Replace `························style={{·marginTop:·mvs(25)·` with `··············style={{marginTop:·mvs(25)`"
prettier/prettier
|
| 86 |
style={{ marginTop: mvs(25) }} |
| Error |
Row 87, Column 1: "Delete `··········`"
prettier/prettier
|
| 87 |
isVerify={payload.password.length >= 8} |
| Error |
Row 88, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| 88 |
value={payload.password} |
| Error |
Row 89, Column 1: "Delete `··········`"
prettier/prettier
|
| 89 |
label={'New Password'} |
| Error |
Row 90, Column 15: "Delete `··········`"
prettier/prettier
|
| 90 |
secureTextEntry={eye.bool1} |
| Error |
Row 91, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| 91 |
secure |
| Error |
Row 92, Column 1: "Replace `························onPressIcon={()·=>·setEye({·...eye,·bool1:·!eye.bool1·` with `··············onPressIcon={()·=>·setEye({...eye,·bool1:·!eye.bool1`"
prettier/prettier
|
| 92 |
onPressIcon={() => setEye({ ...eye, bool1: !eye.bool1 })} |
| Error |
Row 93, Column 15: "Delete `··········`"
prettier/prettier
|
| 93 |
onChangeText={value => { |
| Error |
Row 94, Column 1: "Replace `····························setPayload({·...payload,·password:·value·})` with `················setPayload({...payload,·password:·value});`"
prettier/prettier
|
| Warning |
Row 94, Column 72: "Missing semicolon."
semi
|
| 94 |
setPayload({ ...payload, password: value }) |
| Error |
Row 95, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| 95 |
}} |
| Error |
Row 96, Column 1: "Delete `··········`"
prettier/prettier
|
| 96 |
placeholder={'Enter password'} |
| Error |
Row 97, Column 1: "Replace `····················` with `············`"
prettier/prettier
|
| 97 |
/> |
| Error |
Row 98, Column 1: "Delete `········`"
prettier/prettier
|
| 98 |
<TAKE_TO_INPUT_FIELD.CustomInput |
| Error |
Row 99, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| 99 |
isVerify={payload.confirm_password.length >= 8} |
| Error |
Row 100, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| 100 |
value={payload.confirm_password} |
| Error |
Row 101, Column 15: "Delete `··········`"
prettier/prettier
|
| 101 |
label={'Confirm Password'} |
| Error |
Row 102, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| 102 |
secureTextEntry={eye.bool2} |
| Error |
Row 103, Column 1: "Delete `··········`"
prettier/prettier
|
| 103 |
secure |
| Error |
Row 104, Column 15: "Replace `··········onPressIcon={()·=>·setEye({·...eye,·bool2:·!eye.bool2·` with `onPressIcon={()·=>·setEye({...eye,·bool2:·!eye.bool2`"
prettier/prettier
|
| 104 |
onPressIcon={() => setEye({ ...eye, bool2: !eye.bool2 })} |
| Error |
Row 105, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| 105 |
onChangeText={value => { |
| Error |
Row 106, Column 1: "Replace `····························setPayload({·...payload,·confirm_password:·value·})` with `················setPayload({...payload,·confirm_password:·value});`"
prettier/prettier
|
| Warning |
Row 106, Column 80: "Missing semicolon."
semi
|
| 106 |
setPayload({ ...payload, confirm_password: value }) |
| Error |
Row 107, Column 1: "Delete `··········`"
prettier/prettier
|
| 107 |
}} |
| Error |
Row 108, Column 15: "Delete `··········`"
prettier/prettier
|
| 108 |
placeholder={'Confirm Password'} |
| Error |
Row 109, Column 1: "Replace `····················` with `············`"
prettier/prettier
|
| 109 |
/> |
| Error |
Row 110, Column 1: "Replace `················>}` with `··········>`"
prettier/prettier
|
| 110 |
</>} |
| Error |
Row 111, Column 9: "Replace `········prettier/prettier
|
| Warning |
Row 111, Column 39: "Trailing spaces not allowed."
no-trailing-spaces
|
| 111 |
<Buttons.ButtonPrimary |
| Error |
Row 112, Column 1: "Replace `················` with `··········`"
prettier/prettier
|
| 112 |
loading={loading} |
| Error |
Row 113, Column 1: "Replace `················` with `··········`"
prettier/prettier
|
| 113 |
onClick={() => { |
| Error |
Row 114, Column 1: "Replace `···················if(isSaved)` with `············if·(isSaved)·`"
prettier/prettier
|
| Warning |
Row 114, Column 20: "Expected space(s) after "if"."
keyword-spacing
|
| 114 |
if(isSaved){ |
| Error |
Row 115, Column 1: "Delete `········`"
prettier/prettier
|
| 115 |
onClosing(); |
| Error |
Row 116, Column 13: "Replace `·······}else` with `}·else·`"
prettier/prettier
|
| Warning |
Row 116, Column 21: "Expected space(s) before "else"."
keyword-spacing
|
| Warning |
Row 116, Column 21: "Expected space(s) after "else"."
keyword-spacing
|
| 116 |
}else{ |
| Error |
Row 117, Column 1: "Delete `······`"
prettier/prettier
|
| 117 |
onSavePassword(); |
| Error |
Row 118, Column 13: "Replace `·······}⏎·················}}·title={isSaved?'Back·to·Login·page':·'Save·Password'}·style={{·marginTop:·mvs(30)·}}·/>` with `}⏎··········}}⏎··········title={isSaved·?·'Back·to·Login·page'·:·'Save·Password'}⏎··········style={{marginTop:·mvs(30)}}`"
prettier/prettier
|
| 118 |
} |
| Warning |
Row 119, Column 35: "Operator '?' must be spaced."
space-infix-ops
|
| 119 |
}} title={isSaved?'Back to Login page': 'Save Password'} style={{ marginTop: mvs(30) }} /> |
| Error |
Row 120, Column 7: "Insert `··/>⏎`"
prettier/prettier
|
| 120 |
</View> |
| Error |
Row 121, Column 7: "Replace `······⏎····` with `⏎`"
prettier/prettier
|
| 121 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 122 |
</ReactNativeModal> |
| Error |
Row 123, Column 1: "Delete `··`"
prettier/prettier
|
| 123 |
); |
| 124 |
}; |
| 125 |
|
| 126 |
export default ChangePasswordModal; |
| 127 |
|
| 128 |
const styles = StyleSheet.create({ |
| Error |
Row 129, Column 3: "Delete `··`"
prettier/prettier
|
| 129 |
CONTAINER: { |
| Error |
Row 130, Column 1: "Delete `····`"
prettier/prettier
|
| 130 |
position: 'absolute', |
| Error |
Row 131, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 131 |
width: '100%', |
| Error |
Row 132, Column 5: "Delete `····`"
prettier/prettier
|
| 132 |
bottom: 0, |
| Error |
Row 133, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 133 |
borderTopLeftRadius: mvs(20), |
| Error |
Row 134, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 134 |
borderTopRightRadius: mvs(20), |
| Error |
Row 135, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 135 |
backgroundColor: colors.primary, |
| Warning |
Row 136, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 136, Column 3: "Delete `······⏎····`"
prettier/prettier
|
| 136 |
|
| 137 |
}, |
| Error |
Row 138, Column 1: "Delete `··`"
prettier/prettier
|
| 138 |
FORGOT_TXT: { |
| Error |
Row 139, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 139 |
fontSize: mvs(15), |
| Error |
Row 140, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 140 |
color: colors.white, |
| Error |
Row 141, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 141 |
alignSelf: 'center', |
| Error |
Row 142, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 142 |
marginTop: mvs(13), |
| Error |
Row 143, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 143 |
marginBottom: mvs(16), |
| Error |
Row 144, Column 3: "Delete `··`"
prettier/prettier
|
| 144 |
}, |
| Error |
Row 145, Column 1: "Delete `··`"
prettier/prettier
|
| 145 |
SUB_CONTAINER: { |
| Error |
Row 146, Column 5: "Delete `····`"
prettier/prettier
|
| 146 |
// flex: 1, |
| Error |
Row 147, Column 1: "Delete `····`"
prettier/prettier
|
| 147 |
backgroundColor: colors.white, |
| Warning |
Row 148, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 148, Column 1: "Delete `·····`"
prettier/prettier
|
| 148 |
|
| Error |
Row 149, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 149 |
paddingVertical: mvs(17), |
| Error |
Row 150, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 150 |
borderRadius: mvs(20), |
| Error |
Row 151, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 151 |
// borderTopRightRadius: mvs(20), |
| Error |
Row 152, Column 5: "Delete `····`"
prettier/prettier
|
| 152 |
paddingHorizontal: mvs(22), |
| Error |
Row 153, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 153 |
marginHorizontal: mvs(22), |
| Error |
Row 154, Column 3: "Delete `··`"
prettier/prettier
|
| 154 |
}, |
| Error |
Row 155, Column 1: "Delete `··`"
prettier/prettier
|
| 155 |
RESET: { |
| Error |
Row 156, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 156 |
width: '49%', |
| Error |
Row 157, Column 3: "Delete `··`"
prettier/prettier
|
| 157 |
}, |
| Error |
Row 158, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 158 |
BUTTON_CONTAINER: { |
| Error |
Row 159, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 159 |
marginTop: mvs(13), |
| Error |
Row 160, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 160 |
flexDirection: 'row', |
| Error |
Row 161, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 161 |
justifyContent: 'space-between', |
| Error |
Row 162, Column 3: "Replace `··}⏎⏎` with `},`"
prettier/prettier
|
| Warning |
Row 162, Column 6: "Missing trailing comma."
comma-dangle
|
| 162 |
} |
| 163 |
|
| 164 |
|
| Warning |
Row 165, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 165, Column 4: "Insert `⏎`"
prettier/prettier
|
| 165 |
}); |
|
|
|
/src/components/molecules/modals/common-modal/index.js
|
7 problems (0 errors, 7 warnings)
|
| Severity |
Rule |
| Warning |
Row 7, Column 3: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 12, Column 9: "'connect' is defined but never used."
no-unused-vars
|
| Warning |
Row 83, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Warning |
Row 90, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 95, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 97, Column 24: "Strings must use singlequote."
quotes
|
| Warning |
Row 98, Column 24: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Line |
Source |
| 1 |
import TAKE_2_API from '@khan_ahmad786/common/api/API'; |
| 2 |
import React from 'react'; |
| 3 |
import { |
| 4 |
ActivityIndicator, |
| 5 |
FlatList, |
| 6 |
StyleSheet, |
| Warning |
Row 7, Column 3: "'Text' is defined but never used."
no-unused-vars
|
| 7 |
Text, |
| 8 |
TouchableOpacity, |
| 9 |
View, |
| 10 |
} from 'react-native'; |
| 11 |
import ReactNativeModal from 'react-native-modal'; |
| Warning |
Row 12, Column 9: "'connect' is defined but never used."
no-unused-vars
|
| 12 |
import {connect} from 'react-redux'; |
| 13 |
import colors from '../../../../config/colors'; |
| 14 |
import {mvs} from '../../../../config/metrices'; |
| 15 |
import Medium from '../../../../presentation/typography/medium-text'; |
| 16 |
import Regular from '../../../../presentation/typography/regular-text'; |
| 17 |
|
| 18 |
const CurrencyList = ( |
| 19 |
disbaled = false, |
| 20 |
visible, |
| 21 |
onClose, |
| 22 |
onSubmit, |
| 23 |
activeCurrency, |
| 24 |
) => { |
| 25 |
// console.log(activeCurrency) |
| 26 |
const [currenciesList, setCurrencyList] = React.useState([]); |
| 27 |
const [loading, setLoading] = React.useState(true); |
| 28 |
React.useEffect(() => { |
| 29 |
(async () => { |
| 30 |
try { |
| 31 |
setLoading(true); |
| 32 |
const request = await TAKE_2_API.fetchCurrenciesList(); |
| 33 |
setCurrencyList(request?.data); |
| 34 |
setLoading(false); |
| 35 |
} catch (error) { |
| 36 |
setLoading(false); |
| 37 |
} |
| 38 |
})(); |
| 39 |
}, []); |
| 40 |
|
| 41 |
const renderItem = ({item, index}) => { |
| 42 |
let bgColor = |
| 43 |
activeCurrency?.currency_id * 1 === item?.id |
| 44 |
? colors.primary |
| 45 |
: colors.white; |
| 46 |
let lableColor = |
| 47 |
activeCurrency?.currency_id * 1 === item?.id |
| 48 |
? colors.white |
| 49 |
: colors.headerTitle; |
| 50 |
|
| 51 |
return ( |
| 52 |
<TouchableOpacity |
| 53 |
disabled={disbaled} |
| 54 |
activeOpacity={0.9} |
| 55 |
onPress={() => onSubmit(item)} |
| 56 |
style={{ |
| 57 |
...styles.ITEM, |
| 58 |
backgroundColor: bgColor, |
| 59 |
}}> |
| 60 |
<Regular |
| 61 |
label={item?.currency_name} |
| 62 |
style={{ |
| 63 |
color: lableColor, |
| 64 |
}} |
| 65 |
/> |
| 66 |
<Regular |
| 67 |
label={item?.currencyCode} |
| 68 |
style={{ |
| 69 |
color: lableColor, |
| 70 |
}} |
| 71 |
/> |
| 72 |
</TouchableOpacity> |
| 73 |
); |
| 74 |
}; |
| 75 |
return ( |
| 76 |
<ReactNativeModal |
| 77 |
onBackdropPress={() => onClose(false)} |
| 78 |
isVisible={visible} |
| 79 |
// animationIn={'slideInUp'} |
| 80 |
// animationInTiming={1000} |
| 81 |
// animationOut={'slideOutDown'} |
| 82 |
// animationOutTiming={1000} |
| Warning |
Row 83, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| 83 |
style={{margin: 0, padding: 0}} |
| 84 |
onBackButtonPress={() => onClose(false)}> |
| 85 |
<View style={styles.CONTAINER}> |
| 86 |
<Medium label={'Choose your currency'} style={styles.HEADING_TXT} /> |
| 87 |
<View style={styles.SUB_CONTAINER}> |
| 88 |
{loading ? ( |
| 89 |
<View |
| Warning |
Row 90, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 90 |
style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}> |
| 91 |
<ActivityIndicator color={colors.primary} size="small" /> |
| 92 |
</View> |
| 93 |
) : !loading && currenciesList?.length <= 0 ? ( |
| 94 |
<View |
| Warning |
Row 95, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 95 |
style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}> |
| 96 |
<Regular |
| Warning |
Row 97, Column 24: "Strings must use singlequote."
quotes
|
| 97 |
label={`Oops! It seems something went wrong.`} |
| Warning |
Row 98, Column 24: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 98 |
style={{textAlign: 'center', color: colors.primary}} |
| 99 |
/> |
| 100 |
</View> |
| 101 |
) : ( |
| 102 |
<FlatList |
| 103 |
data={currenciesList} |
| 104 |
keyExtractor={(item, index) => index.toString()} |
| 105 |
renderItem={renderItem} |
| 106 |
/> |
| 107 |
)} |
| 108 |
</View> |
| 109 |
</View> |
| 110 |
</ReactNativeModal> |
| 111 |
); |
| 112 |
}; |
| 113 |
|
| 114 |
const TAKE_TO_COMMON_MODAL = { |
| 115 |
CurrencyList, |
| 116 |
}; |
| 117 |
|
| 118 |
export default TAKE_TO_COMMON_MODAL; |
| 119 |
|
| 120 |
const styles = StyleSheet.create({ |
| 121 |
CONTAINER: { |
| 122 |
position: 'absolute', |
| 123 |
bottom: 0, |
| 124 |
width: '100%', |
| 125 |
borderTopLeftRadius: mvs(20), |
| 126 |
borderTopRightRadius: mvs(20), |
| 127 |
backgroundColor: colors.primary, |
| 128 |
}, |
| 129 |
HEADING_TXT: { |
| 130 |
fontSize: mvs(15), |
| 131 |
color: colors.white, |
| 132 |
alignSelf: 'center', |
| 133 |
marginTop: mvs(13), |
| 134 |
marginBottom: mvs(16), |
| 135 |
}, |
| 136 |
SUB_CONTAINER: { |
| 137 |
backgroundColor: colors.white, |
| 138 |
// flexDirection: 'row', |
| 139 |
paddingTop: mvs(20), |
| 140 |
minHeight: mvs(200), |
| 141 |
paddingBottom: mvs(38), |
| 142 |
paddingHorizontal: mvs(22), |
| 143 |
borderTopLeftRadius: mvs(20), |
| 144 |
borderTopRightRadius: mvs(20), |
| 145 |
}, |
| 146 |
ITEM: { |
| 147 |
flexDirection: 'row', |
| 148 |
alignItems: 'center', |
| 149 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 150 |
borderColor: colors.gray, |
| 151 |
justifyContent: 'space-between', |
| 152 |
paddingVertical: mvs(10), |
| 153 |
paddingHorizontal: mvs(20), |
| 154 |
borderRadius: mvs(10), |
| 155 |
}, |
| 156 |
}); |
| 157 |
|
|
|
|
/src/components/molecules/modals/congrats-modal.js
|
148 problems (103 errors, 45 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·TouchableOpacity·` with `View,·StyleSheet,·TouchableOpacity`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'TouchableOpacity' is defined but never used."
no-unused-vars
|
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 6, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Error |
Row 9, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 9, Column 10: "'TAKE_TO_INPUT_FIELD' is defined but never used."
no-unused-vars
|
| Warning |
Row 10, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| Warning |
Row 11, Column 8: "'Back' is defined but never used."
no-unused-vars
|
| Warning |
Row 12, Column 8: "'Calendar' is defined but never used."
no-unused-vars
|
| Warning |
Row 14, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| Warning |
Row 16, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| Error |
Row 17, Column 9: "Replace `·HeaderLogo·}·from·'../../../../resource/assets/common-icons'` with `HeaderLogo}·from·'../../../../resource/assets/common-icons';`"
prettier/prettier
|
| Warning |
Row 17, Column 70: "Missing semicolon."
semi
|
| Error |
Row 19, Column 25: "Replace `·visible,·onClose,·onApply,onChangeDMY,·onPress,·productName·=·"",·image,·...props})·=>·{··` with `⏎··visible,⏎··onClose,⏎··onApply,⏎··onChangeDMY,⏎··onPress,⏎··productName·=·'',⏎··image,⏎··...props⏎})·=>·{`"
prettier/prettier
|
| Warning |
Row 19, Column 88: "Strings must use singlequote."
quotes
|
| Warning |
Row 19, Column 114: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 20, Column 10: "'dayMonthYear' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 20, Column 24: "'setDayMonthYear' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 23, Column 36: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 23, Column 36: "Delete `··`"
prettier/prettier
|
| Error |
Row 24, Column 5: "Insert `;`"
prettier/prettier
|
| Warning |
Row 24, Column 5: "Missing semicolon."
semi
|
| Warning |
Row 25, Column 10: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 25, Column 19: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 42, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 42, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| Error |
Row 43, Column 1: "Replace `········` with `······`"
prettier/prettier
|
| Error |
Row 44, Column 9: "Replace `······prettier/prettier
|
| Warning |
Row 44, Column 36: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 45, Column 1: "Replace `··············prettier/prettier
|
| Error |
Row 46, Column 1: "Replace `··············` with `········prettier/prettier
|
| Error |
Row 47, Column 8: "Replace `········⏎··············⏎········⏎········prettier/prettier
|
| Warning |
Row 47, Column 73: "Inline style: { marginTop: 0 }"
react-native/no-inline-styles
|
| Warning |
Row 47, Column 109: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 49, Column 1: "Replace `················` with `··········`"
prettier/prettier
|
| Error |
Row 50, Column 11: "Replace `······prettier/prettier
|
| Error |
Row 54, Column 1: "Replace `···············` with `········`"
prettier/prettier
|
| Warning |
Row 54, Column 22: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 55, Column 1: "Replace `··············prettier/prettier
|
| Error |
Row 56, Column 1: "Replace `··············prettier/prettier
|
| Warning |
Row 56, Column 23: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 57, Column 36: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 59, Column 1: "Replace `··············` with `········`"
prettier/prettier
|
| Warning |
Row 60, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 60, Column 1: "Delete `··············`"
prettier/prettier
|
| Error |
Row 61, Column 1: "Delete `⏎······`"
prettier/prettier
|
| Warning |
Row 63, Column 64: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 84, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 84, Column 1: "Delete `··············`"
prettier/prettier
|
| Error |
Row 85, Column 9: "Replace `······prettier/prettier
|
| Error |
Row 86, Column 1: "Replace `·················` with `··········`"
prettier/prettier
|
| Error |
Row 87, Column 13: "Replace `·····style·=·` with `style=`"
prettier/prettier
|
| Warning |
Row 87, Column 27: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 88, Column 1: "Replace `····················color·` with `··············color`"
prettier/prettier
|
| Error |
Row 89, Column 1: "Replace `····················fontSize·` with `··············fontSize`"
prettier/prettier
|
| Error |
Row 90, Column 1: "Replace `····················textAlign·:·'center'` with `··············textAlign:·'center',`"
prettier/prettier
|
| Warning |
Row 90, Column 41: "Missing trailing comma."
comma-dangle
|
| Error |
Row 91, Column 1: "Delete `·····`"
prettier/prettier
|
| Error |
Row 92, Column 1: "Replace `·················content·=·{"By·publishing·my·order,·I·agree·to·Taketo’s"` with `············content={'By·publishing·my·order,·I·agree·to·Taketo’s'`"
prettier/prettier
|
| Warning |
Row 92, Column 29: "Strings must use singlequote."
quotes
|
| Error |
Row 93, Column 1: "Replace `·················highlightText·=·{"·Terms·of·Use"` with `············highlightText={'·Terms·of·Use'`"
prettier/prettier
|
| Warning |
Row 93, Column 35: "Strings must use singlequote."
quotes
|
| Error |
Row 94, Column 13: "Replace `·····onPress·=·{()·=>` with `onPress={()·=>⏎·············`"
prettier/prettier
|
| Error |
Row 95, Column 17: "Delete `··`"
prettier/prettier
|
| Error |
Row 96, Column 12: "Replace `······})}⏎·················highlightTextStyle·=·` with `···})⏎············}⏎············highlightTextStyle=`"
prettier/prettier
|
| Warning |
Row 97, Column 40: "Inline style: { textDecorationLine: 'underline' }"
react-native/no-inline-styles
|
| Error |
Row 98, Column 15: "Replace `·······textDecorationLine·` with `textDecorationLine`"
prettier/prettier
|
| Error |
Row 99, Column 1: "Replace `·····················fontSize·:·mvs(12)` with `··············fontSize:·mvs(12),`"
prettier/prettier
|
| Warning |
Row 99, Column 40: "Missing trailing comma."
comma-dangle
|
| Error |
Row 100, Column 1: "Replace `····················}}⏎·················` with `············}}`"
prettier/prettier
|
| Error |
Row 102, Column 1: "Replace `··················prettier/prettier
|
| Warning |
Row 102, Column 27: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 103, Column 1: "Replace `··················style·=·` with `··············style=`"
prettier/prettier
|
| Error |
Row 104, Column 1: "Replace `····················color·` with `················color`"
prettier/prettier
|
| Error |
Row 105, Column 17: "Replace `····fontSize·:·mvs(12)` with `fontSize:·mvs(12),`"
prettier/prettier
|
| Warning |
Row 105, Column 39: "Missing trailing comma."
comma-dangle
|
| Error |
Row 106, Column 15: "Delete `···`"
prettier/prettier
|
| Error |
Row 107, Column 1: "Replace `··················label·=·".·I·understand·that·if·the·product·price·is·incorrect,·my·order·may·be·canceled."/>···⏎···················` with `··············label=".·I·understand·that·if·the·product·price·is·incorrect,·my·order·may·be·canceled."⏎············/>⏎··········`"
prettier/prettier
|
| Warning |
Row 107, Column 111: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 108, Column 28: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 109, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 111, Column 1: "Replace `··············` with `········`"
prettier/prettier
|
| Error |
Row 112, Column 11: "Replace `····onClick·=·` with `onClick=`"
prettier/prettier
|
| Error |
Row 113, Column 1: "Replace `··············style·=·` with `··········style=`"
prettier/prettier
|
| Error |
Row 114, Column 1: "Replace `··············title·=·"Create·a·new·Order"` with `··········title="Create·a·new·Order"⏎········`"
prettier/prettier
|
| Error |
Row 115, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 124, Column 4: "Insert `·`"
prettier/prettier
|
| Error |
Row 129, Column 22: "Delete `·`"
prettier/prettier
|
| Error |
Row 130, Column 15: "Replace `·:·mvs(20)` with `:·mvs(20),`"
prettier/prettier
|
| Warning |
Row 130, Column 25: "Missing trailing comma."
comma-dangle
|
| Error |
Row 220, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| Error |
Row 221, Column 16: "Delete `·`"
prettier/prettier
|
| Error |
Row 222, Column 9: "Delete `·`"
prettier/prettier
|
| Error |
Row 223, Column 20: "Replace `·:·colors.white` with `:·colors.white,`"
prettier/prettier
|
| Warning |
Row 223, Column 35: "Missing trailing comma."
comma-dangle
|
| Error |
Row 224, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 225, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 226, Column 9: "Delete `·`"
prettier/prettier
|
| Error |
Row 227, Column 22: "Replace `·:·mvs(22)` with `:·mvs(22),`"
prettier/prettier
|
| Warning |
Row 227, Column 32: "Missing trailing comma."
comma-dangle
|
| Error |
Row 228, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 229, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 230, Column 14: "Delete `·`"
prettier/prettier
|
| Error |
Row 231, Column 14: "Delete `·`"
prettier/prettier
|
| Error |
Row 232, Column 11: "Delete `·`"
prettier/prettier
|
| Error |
Row 233, Column 10: "Delete `·`"
prettier/prettier
|
| Error |
Row 234, Column 16: "Delete `·`"
prettier/prettier
|
| Error |
Row 235, Column 17: "Delete `·`"
prettier/prettier
|
| Error |
Row 236, Column 16: "Delete `·`"
prettier/prettier
|
| Error |
Row 237, Column 19: "Delete `·`"
prettier/prettier
|
| Error |
Row 238, Column 15: "Replace `·:·'center'` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 238, Column 26: "Missing trailing comma."
comma-dangle
|
| Error |
Row 239, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 240, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 241, Column 11: "Delete `·`"
prettier/prettier
|
| Error |
Row 242, Column 10: "Delete `·`"
prettier/prettier
|
| Error |
Row 243, Column 17: "Replace `·:·mvs(10)` with `:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 243, Column 27: "Missing trailing comma."
comma-dangle
|
| Error |
Row 244, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 245, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 246, Column 13: "Delete `·`"
prettier/prettier
|
| Error |
Row 247, Column 10: "Delete `·`"
prettier/prettier
|
| Error |
Row 248, Column 14: "Delete `·`"
prettier/prettier
|
| Error |
Row 250, Column 14: "Replace `·:·'center'` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 250, Column 25: "Missing trailing comma."
comma-dangle
|
| Error |
Row 251, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 252, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 253, Column 13: "Delete `·`"
prettier/prettier
|
| Error |
Row 254, Column 10: "Delete `·`"
prettier/prettier
|
| Error |
Row 255, Column 14: "Delete `·`"
prettier/prettier
|
| Error |
Row 256, Column 14: "Delete `·`"
prettier/prettier
|
| Error |
Row 257, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 258, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 259, Column 13: "Delete `·`"
prettier/prettier
|
| Error |
Row 260, Column 10: "Delete `·`"
prettier/prettier
|
| Error |
Row 261, Column 14: "Delete `·`"
prettier/prettier
|
| Error |
Row 262, Column 14: "Delete `·`"
prettier/prettier
|
| Error |
Row 263, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 264, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 266, Column 14: "Replace `·:·mvs(20)` with `:·mvs(20),`"
prettier/prettier
|
| Warning |
Row 266, Column 24: "Missing trailing comma."
comma-dangle
|
| Error |
Row 267, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 268, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 269, Column 14: "Delete `·`"
prettier/prettier
|
| Error |
Row 270, Column 17: "Delete `·`"
prettier/prettier
|
| Error |
Row 271, Column 20: "Replace `·:·colors.primary` with `:·colors.primary,`"
prettier/prettier
|
| Warning |
Row 271, Column 37: "Missing trailing comma."
comma-dangle
|
| Error |
Row 272, Column 1: "Insert `··`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·TouchableOpacity·` with `View,·StyleSheet,·TouchableOpacity`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'TouchableOpacity' is defined but never used."
no-unused-vars
|
| 2 |
import { View, StyleSheet, TouchableOpacity } from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| 4 |
import colors from '../../../config/colors'; |
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 5 |
import { mvs } from '../../../config/metrices'; |
| Warning |
Row 6, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| 6 |
import Medium from '../../../presentation/typography/medium-text'; |
| 7 |
import Regular from '../../../presentation/typography/regular-text'; |
| 8 |
import Buttons from '../../atoms/Button'; |
| Error |
Row 9, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 9, Column 10: "'TAKE_TO_INPUT_FIELD' is defined but never used."
no-unused-vars
|
| 9 |
import { TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| Warning |
Row 10, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| 10 |
import CustomRadio from '../../atoms/RadioButton'; |
| Warning |
Row 11, Column 8: "'Back' is defined but never used."
no-unused-vars
|
| 11 |
import Back from '../../../../resource/assets/common-icons/back-white.svg'; |
| Warning |
Row 12, Column 8: "'Calendar' is defined but never used."
no-unused-vars
|
| 12 |
import Calendar from '../calendar/calendar'; |
| 13 |
import ImagePlaceholder from '../../atoms/Placeholder'; |
| Warning |
Row 14, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| 14 |
import SettingCard from '../setting_card/setting-card'; |
| 15 |
import DualText from '../dual-text/dual-text'; |
| Warning |
Row 16, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| 16 |
import CustomSwitch from '../../atoms/Switch'; |
| Error |
Row 17, Column 9: "Replace `·HeaderLogo·}·from·'../../../../resource/assets/common-icons'` with `HeaderLogo}·from·'../../../../resource/assets/common-icons';`"
prettier/prettier
|
| Warning |
Row 17, Column 70: "Missing semicolon."
semi
|
| 17 |
import { HeaderLogo } from '../../../../resource/assets/common-icons' |
| 18 |
|
| Error |
Row 19, Column 25: "Replace `·visible,·onClose,·onApply,onChangeDMY,·onPress,·productName·=·"",·image,·...props})·=>·{··` with `⏎··visible,⏎··onClose,⏎··onApply,⏎··onChangeDMY,⏎··onPress,⏎··productName·=·'',⏎··image,⏎··...props⏎})·=>·{`"
prettier/prettier
|
| Warning |
Row 19, Column 88: "Strings must use singlequote."
quotes
|
| Warning |
Row 19, Column 114: "Trailing spaces not allowed."
no-trailing-spaces
|
| 19 |
const CongratsModal = ({ visible, onClose, onApply,onChangeDMY, onPress, productName = "", image, ...props}) => { |
| Warning |
Row 20, Column 10: "'dayMonthYear' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 20, Column 24: "'setDayMonthYear' is assigned a value but never used."
no-unused-vars
|
| 20 |
const [dayMonthYear, setDayMonthYear] = React.useState({ |
| 21 |
day: new Date().getDate(), |
| 22 |
month: new Date().getMonth(), |
| Warning |
Row 23, Column 36: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 23, Column 36: "Delete `··`"
prettier/prettier
|
| 23 |
year: new Date().getFullYear(), |
| Error |
Row 24, Column 5: "Insert `;`"
prettier/prettier
|
| Warning |
Row 24, Column 5: "Missing semicolon."
semi
|
| 24 |
}) |
| Warning |
Row 25, Column 10: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 25, Column 19: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| 25 |
const [payload, setPayload] = React.useState({ |
| 26 |
isThirtyDays: true, |
| 27 |
isNinetyDays: false, |
| 28 |
isThreeWeeks: false, |
| 29 |
isTwoWeeks: false, |
| 30 |
isUrgent: false, |
| 31 |
isNoDelivery: true, |
| 32 |
maxPrice: '100', |
| 33 |
minPrice: '1000', |
| 34 |
}); |
| 35 |
return ( |
| 36 |
<ReactNativeModal |
| 37 |
propagateSwipe |
| 38 |
isVisible={visible} |
| 39 |
avoidKeyboard |
| 40 |
onBackdropPress={() => onClose()} |
| 41 |
onBackButtonPress={() => onClose()} |
| Warning |
Row 42, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 42, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| 42 |
style={{ margin: 0, padding: 0 }}> |
| Error |
Row 43, Column 1: "Replace `········` with `······`"
prettier/prettier
|
| 43 |
<View style={styles.CONTAINER}> |
| Error |
Row 44, Column 9: "Replace `······prettier/prettier
|
| Warning |
Row 44, Column 36: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| 44 |
<HeaderLogo style = {{alignSelf : 'center'}}/> |
| Error |
Row 45, Column 1: "Replace `··············prettier/prettier
|
| 45 |
<Regular label = "Congratulations" style = {styles.title}/> |
| Error |
Row 46, Column 1: "Replace `··············` with `········prettier/prettier
|
| 46 |
<Regular label = "Your order was successfully submitted," style = {styles.detail}/> |
| Error |
Row 47, Column 8: "Replace `········⏎··············⏎········⏎········prettier/prettier
|
| Warning |
Row 47, Column 73: "Inline style: { marginTop: 0 }"
react-native/no-inline-styles
|
| Warning |
Row 47, Column 109: "Trailing spaces not allowed."
no-trailing-spaces
|
| 47 |
<Regular label = "& your offers were requested." style = {{...styles.detail, marginTop : 0}}/> |
| 48 |
<View style = {styles.imageContainer}> |
| Error |
Row 49, Column 1: "Replace `················` with `··········`"
prettier/prettier
|
| 49 |
{/* <Image source = {TAKE_TO_IMAGES.chat_dp} style = {styles.image}/> */} |
| Error |
Row 50, Column 11: "Replace `······prettier/prettier
|
| 50 |
<ImagePlaceholder |
| 51 |
bg_img = {image} |
| 52 |
containerStyle = {styles.image} |
| 53 |
/> |
| Error |
Row 54, Column 1: "Replace `···············` with `········`"
prettier/prettier
|
| Warning |
Row 54, Column 22: "Trailing spaces not allowed."
no-trailing-spaces
|
| 54 |
</View> |
| Error |
Row 55, Column 1: "Replace `··············prettier/prettier
|
| 55 |
<View style = {{marginTop : mvs(10), paddingHorizontal : mvs(20)}}> |
| Error |
Row 56, Column 1: "Replace `··············prettier/prettier
|
| Warning |
Row 56, Column 23: "Trailing spaces not allowed."
no-trailing-spaces
|
| 56 |
<Regular |
| Warning |
Row 57, Column 36: "Trailing spaces not allowed."
no-trailing-spaces
|
| 57 |
label = {productName} |
| 58 |
style = {styles.productName}/> |
| Error |
Row 59, Column 1: "Replace `··············` with `········`"
prettier/prettier
|
| 59 |
</View> |
| Warning |
Row 60, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 60, Column 1: "Delete `··············`"
prettier/prettier
|
| 60 |
|
| Error |
Row 61, Column 1: "Delete `⏎······`"
prettier/prettier
|
| 61 |
|
| 62 |
{/* <SettingCard |
| Warning |
Row 63, Column 64: "Trailing spaces not allowed."
no-trailing-spaces
|
| 63 |
heading = {'Make sure your notifications are on'} |
| 64 |
headingStyle = {{alignSelf : 'center'}} |
| 65 |
style={{marginTop : mvs(20)}}> |
| 66 |
<DualText |
| 67 |
style = {{alignSelf : 'center', fontSize : mvs(11), color : colors.lightgrey2}} |
| 68 |
content={'You will be notified when you start receiving Offers'} |
| 69 |
/> |
| 70 |
<CustomSwitch |
| 71 |
value={payload.isOrderEmail} |
| 72 |
label={'Email'} |
| 73 |
onChange={v => setPayload({...payload, isOrderEmail: v})} |
| 74 |
textStyle={{color : colors.primary}} |
| 75 |
/> |
| 76 |
<CustomSwitch |
| 77 |
style={{marginTop: mvs(28)}} |
| 78 |
value={payload.isSms} |
| 79 |
label={'SMS'} |
| 80 |
onChange={v => setPayload({...payload, isSms: v})} |
| 81 |
textStyle={{color : colors.primary}} |
| 82 |
/> |
| 83 |
</SettingCard> */} |
| Warning |
Row 84, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 84, Column 1: "Delete `··············`"
prettier/prettier
|
| 84 |
|
| Error |
Row 85, Column 9: "Replace `······prettier/prettier
|
| 85 |
<View style = {styles.noteContainer}> |
| Error |
Row 86, Column 1: "Replace `·················` with `··········`"
prettier/prettier
|
| 86 |
<DualText |
| Error |
Row 87, Column 13: "Replace `·····style·=·` with `style=`"
prettier/prettier
|
| Warning |
Row 87, Column 27: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 87 |
style = {{ |
| Error |
Row 88, Column 1: "Replace `····················color·` with `··············color`"
prettier/prettier
|
| 88 |
color : colors.headerTitle, |
| Error |
Row 89, Column 1: "Replace `····················fontSize·` with `··············fontSize`"
prettier/prettier
|
| 89 |
fontSize : mvs(12), |
| Error |
Row 90, Column 1: "Replace `····················textAlign·:·'center'` with `··············textAlign:·'center',`"
prettier/prettier
|
| Warning |
Row 90, Column 41: "Missing trailing comma."
comma-dangle
|
| 90 |
textAlign : 'center' |
| Error |
Row 91, Column 1: "Delete `·····`"
prettier/prettier
|
| 91 |
}} |
| Error |
Row 92, Column 1: "Replace `·················content·=·{"By·publishing·my·order,·I·agree·to·Taketo’s"` with `············content={'By·publishing·my·order,·I·agree·to·Taketo’s'`"
prettier/prettier
|
| Warning |
Row 92, Column 29: "Strings must use singlequote."
quotes
|
| 92 |
content = {"By publishing my order, I agree to Taketo’s"} |
| Error |
Row 93, Column 1: "Replace `·················highlightText·=·{"·Terms·of·Use"` with `············highlightText={'·Terms·of·Use'`"
prettier/prettier
|
| Warning |
Row 93, Column 35: "Strings must use singlequote."
quotes
|
| 93 |
highlightText = {" Terms of Use"} |
| Error |
Row 94, Column 13: "Replace `·····onPress·=·{()·=>` with `onPress={()·=>⏎·············`"
prettier/prettier
|
| 94 |
onPress = {() => props.navigation.navigate('termsofuse', { |
| Error |
Row 95, Column 17: "Delete `··`"
prettier/prettier
|
| 95 |
URL: 'terms-of-use', |
| Error |
Row 96, Column 12: "Replace `······})}⏎·················highlightTextStyle·=·` with `···})⏎············}⏎············highlightTextStyle=`"
prettier/prettier
|
| 96 |
})} |
| Warning |
Row 97, Column 40: "Inline style: { textDecorationLine: 'underline' }"
react-native/no-inline-styles
|
| 97 |
highlightTextStyle = {{ |
| Error |
Row 98, Column 15: "Replace `·······textDecorationLine·` with `textDecorationLine`"
prettier/prettier
|
| 98 |
textDecorationLine : 'underline', |
| Error |
Row 99, Column 1: "Replace `·····················fontSize·:·mvs(12)` with `··············fontSize:·mvs(12),`"
prettier/prettier
|
| Warning |
Row 99, Column 40: "Missing trailing comma."
comma-dangle
|
| 99 |
fontSize : mvs(12) |
| Error |
Row 100, Column 1: "Replace `····················}}⏎·················` with `············}}`"
prettier/prettier
|
| 100 |
}} |
| 101 |
> |
| Error |
Row 102, Column 1: "Replace `··················prettier/prettier
|
| Warning |
Row 102, Column 27: "Trailing spaces not allowed."
no-trailing-spaces
|
| 102 |
<Regular |
| Error |
Row 103, Column 1: "Replace `··················style·=·` with `··············style=`"
prettier/prettier
|
| 103 |
style = {{ |
| Error |
Row 104, Column 1: "Replace `····················color·` with `················color`"
prettier/prettier
|
| 104 |
color : colors.headerTitle, |
| Error |
Row 105, Column 17: "Replace `····fontSize·:·mvs(12)` with `fontSize:·mvs(12),`"
prettier/prettier
|
| Warning |
Row 105, Column 39: "Missing trailing comma."
comma-dangle
|
| 105 |
fontSize : mvs(12) |
| Error |
Row 106, Column 15: "Delete `···`"
prettier/prettier
|
| 106 |
}} |
| Error |
Row 107, Column 1: "Replace `··················label·=·".·I·understand·that·if·the·product·price·is·incorrect,·my·order·may·be·canceled."/>···⏎···················` with `··············label=".·I·understand·that·if·the·product·price·is·incorrect,·my·order·may·be·canceled."⏎············/>⏎··········`"
prettier/prettier
|
| Warning |
Row 107, Column 111: "Trailing spaces not allowed."
no-trailing-spaces
|
| 107 |
label = ". I understand that if the product price is incorrect, my order may be canceled."/> |
| Warning |
Row 108, Column 28: "Trailing spaces not allowed."
no-trailing-spaces
|
| 108 |
</DualText> |
| Error |
Row 109, Column 1: "Delete `······`"
prettier/prettier
|
| 109 |
</View> |
| 110 |
|
| Error |
Row 111, Column 1: "Replace `··············` with `········`"
prettier/prettier
|
| 111 |
<Buttons.ButtonPrimary |
| Error |
Row 112, Column 11: "Replace `····onClick·=·` with `onClick=`"
prettier/prettier
|
| 112 |
onClick = {onPress} |
| Error |
Row 113, Column 1: "Replace `··············style·=·` with `··········style=`"
prettier/prettier
|
| 113 |
style = {styles.button} |
| Error |
Row 114, Column 1: "Replace `··············title·=·"Create·a·new·Order"` with `··········title="Create·a·new·Order"⏎········`"
prettier/prettier
|
| 114 |
title = "Create a new Order"/> |
| Error |
Row 115, Column 1: "Delete `··`"
prettier/prettier
|
| 115 |
</View> |
| 116 |
</ReactNativeModal> |
| 117 |
); |
| 118 |
}; |
| 119 |
export default CongratsModal; |
| 120 |
const styles = StyleSheet.create({ |
| 121 |
CONTAINER: { |
| 122 |
position: 'absolute', |
| 123 |
bottom: 0, |
| Error |
Row 124, Column 4: "Insert `·`"
prettier/prettier
|
| 124 |
// height : mvs(656), |
| 125 |
width: '100%', |
| 126 |
borderTopLeftRadius: mvs(20), |
| 127 |
borderTopRightRadius: mvs(20), |
| 128 |
backgroundColor: colors.white, |
| Error |
Row 129, Column 22: "Delete `·`"
prettier/prettier
|
| 129 |
paddingHorizontal : mvs(22), |
| Error |
Row 130, Column 15: "Replace `·:·mvs(20)` with `:·mvs(20),`"
prettier/prettier
|
| Warning |
Row 130, Column 25: "Missing trailing comma."
comma-dangle
|
| 130 |
paddingTop : mvs(20) |
| 131 |
}, |
| 132 |
HEADING_TXT: { |
| 133 |
fontSize: mvs(15), |
| 134 |
color: colors.white, |
| 135 |
alignSelf: 'center', |
| 136 |
marginTop: mvs(13), |
| 137 |
marginBottom: mvs(16), |
| 138 |
}, |
| 139 |
SUB_CONTAINER: { |
| 140 |
backgroundColor: colors.white, |
| 141 |
paddingVertical: mvs(15), |
| 142 |
paddingHorizontal: mvs(22), |
| 143 |
borderTopLeftRadius: mvs(20), |
| 144 |
borderTopRightRadius: mvs(20), |
| 145 |
}, |
| 146 |
DESTINATION_CONTAINER: { |
| 147 |
alignItems: 'center', |
| 148 |
flexDirection: 'row', |
| 149 |
justifyContent: 'space-between', |
| 150 |
}, |
| 151 |
FLAG_BUTTON: { |
| 152 |
width: mvs(161), |
| 153 |
height: mvs(38), |
| 154 |
flexDirection: 'row-reverse', |
| 155 |
backgroundColor: colors.secondary, |
| 156 |
}, |
| 157 |
SEARCH_MAP: { |
| 158 |
marginTop: mvs(15), |
| 159 |
alignSelf: 'flex-end', |
| 160 |
width: mvs(161), |
| 161 |
height: mvs(38), |
| 162 |
flexDirection: 'row', |
| 163 |
backgroundColor: colors.primary, |
| 164 |
paddingHorizontal: mvs(23), |
| 165 |
}, |
| 166 |
MAP_ICON: { |
| 167 |
height: mvs(18), |
| 168 |
width: mvs(14), |
| 169 |
}, |
| 170 |
NO_DELIVERY_CONTAINER: { |
| 171 |
// borderTopWidth: StyleSheet.hairlineWidth, |
| 172 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 173 |
flexDirection: 'row', |
| 174 |
alignItems: 'center', |
| 175 |
paddingBottom: mvs(14), |
| 176 |
borderColor: colors.filter_divider, |
| 177 |
}, |
| 178 |
NoDelivery: { |
| 179 |
fontSize: mvs(15), |
| 180 |
color: colors.headerTitle, |
| 181 |
}, |
| 182 |
PRICES_CONTAINER: { |
| 183 |
marginTop: mvs(13), |
| 184 |
flexDirection: 'row', |
| 185 |
justifyContent: 'space-between', |
| 186 |
}, |
| 187 |
PRICE_HEADING: { |
| 188 |
fontSize: mvs(15), |
| 189 |
color: colors.primary, |
| 190 |
marginBottom: mvs(10), |
| 191 |
}, |
| 192 |
MAX_MIN_PRICE: { |
| 193 |
width: mvs(161), |
| 194 |
}, |
| 195 |
DIV: { |
| 196 |
marginTop: mvs(15), |
| 197 |
marginBottom: mvs(13), |
| 198 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 199 |
borderColor: colors.filter_divider, |
| 200 |
}, |
| 201 |
DEL_TIME: { |
| 202 |
color: colors.primary, |
| 203 |
fontSize: mvs(15), |
| 204 |
marginBottom: mvs(8), |
| 205 |
}, |
| 206 |
RADIO_CONTAINER: { |
| 207 |
marginBottom: mvs(30), |
| 208 |
}, |
| 209 |
RADIO_LABEL: { |
| 210 |
color: colors.headerTitle, |
| 211 |
fontSize: mvs(15), |
| 212 |
}, |
| 213 |
BUTTON_CONTAINER: { |
| 214 |
flexDirection: 'row', |
| 215 |
justifyContent: 'space-between', |
| 216 |
}, |
| 217 |
BUTTON: { |
| 218 |
width: mvs(161), |
| 219 |
}, |
| Error |
Row 220, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| 220 |
BACK: { position: 'absolute', left: mvs(23), top: mvs(17) }, |
| Error |
Row 221, Column 16: "Delete `·`"
prettier/prettier
|
| 221 |
mainContainer : { |
| Error |
Row 222, Column 9: "Delete `·`"
prettier/prettier
|
| 222 |
flex : 1, |
| Error |
Row 223, Column 20: "Replace `·:·colors.white` with `:·colors.white,`"
prettier/prettier
|
| Warning |
Row 223, Column 35: "Missing trailing comma."
comma-dangle
|
| 223 |
backgroundColor : colors.white |
| Error |
Row 224, Column 1: "Insert `··`"
prettier/prettier
|
| 224 |
}, |
| Error |
Row 225, Column 1: "Insert `··`"
prettier/prettier
|
| 225 |
container: { |
| Error |
Row 226, Column 9: "Delete `·`"
prettier/prettier
|
| 226 |
flex : 1, |
| Error |
Row 227, Column 22: "Replace `·:·mvs(22)` with `:·mvs(22),`"
prettier/prettier
|
| Warning |
Row 227, Column 32: "Missing trailing comma."
comma-dangle
|
| 227 |
paddingHorizontal : mvs(22) |
| Error |
Row 228, Column 1: "Insert `··`"
prettier/prettier
|
| 228 |
}, |
| Error |
Row 229, Column 1: "Insert `··`"
prettier/prettier
|
| 229 |
imageContainer: { |
| Error |
Row 230, Column 14: "Delete `·`"
prettier/prettier
|
| 230 |
alignSelf : 'center', |
| Error |
Row 231, Column 14: "Delete `·`"
prettier/prettier
|
| 231 |
marginTop : mvs(19), |
| Error |
Row 232, Column 11: "Delete `·`"
prettier/prettier
|
| 232 |
height : mvs(125), |
| Error |
Row 233, Column 10: "Delete `·`"
prettier/prettier
|
| 233 |
width : mvs(104), |
| Error |
Row 234, Column 16: "Delete `·`"
prettier/prettier
|
| 234 |
borderWidth : 0.3, |
| Error |
Row 235, Column 17: "Delete `·`"
prettier/prettier
|
| 235 |
borderRadius : mvs(10), |
| Error |
Row 236, Column 16: "Delete `·`"
prettier/prettier
|
| 236 |
borderColor : colors.price_border, |
| Error |
Row 237, Column 19: "Delete `·`"
prettier/prettier
|
| 237 |
justifyContent : 'center', |
| Error |
Row 238, Column 15: "Replace `·:·'center'` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 238, Column 26: "Missing trailing comma."
comma-dangle
|
| 238 |
alignItems : 'center' |
| Error |
Row 239, Column 1: "Insert `··`"
prettier/prettier
|
| 239 |
}, |
| Error |
Row 240, Column 1: "Insert `··`"
prettier/prettier
|
| 240 |
image: { |
| Error |
Row 241, Column 11: "Delete `·`"
prettier/prettier
|
| 241 |
height : mvs(98), |
| Error |
Row 242, Column 10: "Delete `·`"
prettier/prettier
|
| 242 |
width : mvs(75), |
| Error |
Row 243, Column 17: "Replace `·:·mvs(10)` with `:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 243, Column 27: "Missing trailing comma."
comma-dangle
|
| 243 |
borderRadius : mvs(10) |
| Error |
Row 244, Column 1: "Insert `··`"
prettier/prettier
|
| 244 |
}, |
| Error |
Row 245, Column 1: "Insert `··`"
prettier/prettier
|
| 245 |
productName: { |
| Error |
Row 246, Column 13: "Delete `·`"
prettier/prettier
|
| 246 |
fontSize : mvs(18), |
| Error |
Row 247, Column 10: "Delete `·`"
prettier/prettier
|
| 247 |
color : colors.headerTitle, |
| Error |
Row 248, Column 14: "Delete `·`"
prettier/prettier
|
| 248 |
alignSelf : 'center', |
| 249 |
//marginTop : mvs(10), |
| Error |
Row 250, Column 14: "Replace `·:·'center'` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 250, Column 25: "Missing trailing comma."
comma-dangle
|
| 250 |
textAlign : 'center' |
| Error |
Row 251, Column 1: "Insert `··`"
prettier/prettier
|
| 251 |
}, |
| Error |
Row 252, Column 1: "Insert `··`"
prettier/prettier
|
| 252 |
title: { |
| Error |
Row 253, Column 13: "Delete `·`"
prettier/prettier
|
| 253 |
fontSize : mvs(20), |
| Error |
Row 254, Column 10: "Delete `·`"
prettier/prettier
|
| 254 |
color : colors.primary, |
| Error |
Row 255, Column 14: "Delete `·`"
prettier/prettier
|
| 255 |
alignSelf : 'center', |
| Error |
Row 256, Column 14: "Delete `·`"
prettier/prettier
|
| 256 |
marginTop : mvs(24), |
| Error |
Row 257, Column 1: "Insert `··`"
prettier/prettier
|
| 257 |
}, |
| Error |
Row 258, Column 1: "Insert `··`"
prettier/prettier
|
| 258 |
detail: { |
| Error |
Row 259, Column 13: "Delete `·`"
prettier/prettier
|
| 259 |
fontSize : mvs(13), |
| Error |
Row 260, Column 10: "Delete `·`"
prettier/prettier
|
| 260 |
color : colors.lightgrey2, |
| Error |
Row 261, Column 14: "Delete `·`"
prettier/prettier
|
| 261 |
alignSelf : 'center', |
| Error |
Row 262, Column 14: "Delete `·`"
prettier/prettier
|
| 262 |
marginTop : mvs(12), |
| Error |
Row 263, Column 1: "Insert `··`"
prettier/prettier
|
| 263 |
}, |
| Error |
Row 264, Column 1: "Insert `··`"
prettier/prettier
|
| 264 |
noteContainer: { |
| 265 |
//borderWidth : 1, |
| Error |
Row 266, Column 14: "Replace `·:·mvs(20)` with `:·mvs(20),`"
prettier/prettier
|
| Warning |
Row 266, Column 24: "Missing trailing comma."
comma-dangle
|
| 266 |
marginTop : mvs(20) |
| Error |
Row 267, Column 1: "Insert `··`"
prettier/prettier
|
| 267 |
}, |
| Error |
Row 268, Column 1: "Insert `··`"
prettier/prettier
|
| 268 |
button: { |
| Error |
Row 269, Column 14: "Delete `·`"
prettier/prettier
|
| 269 |
marginTop : mvs(30), |
| Error |
Row 270, Column 17: "Delete `·`"
prettier/prettier
|
| 270 |
marginBottom : mvs(40), |
| Error |
Row 271, Column 20: "Replace `·:·colors.primary` with `:·colors.primary,`"
prettier/prettier
|
| Warning |
Row 271, Column 37: "Missing trailing comma."
comma-dangle
|
| 271 |
backgroundColor : colors.primary |
| Error |
Row 272, Column 1: "Insert `··`"
prettier/prettier
|
| 272 |
}, |
| 273 |
}); |
| 274 |
|
|
|
|
/src/components/molecules/modals/congratulations-modal.js
|
44 problems (26 errors, 18 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| Error |
Row 7, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 12, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| Warning |
Row 14, Column 8: "'DualText' is defined but never used."
no-unused-vars
|
| Warning |
Row 16, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 17, Column 32: "Replace `·visible,·onClose·` with `visible,·onClose`"
prettier/prettier
|
| Warning |
Row 18, Column 10: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 18, Column 19: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 19, Column 76: "Insert `,`"
prettier/prettier
|
| Warning |
Row 19, Column 76: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 29, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 29, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| Error |
Row 33, Column 11: "Replace `··prettier/prettier
|
| Warning |
Row 33, Column 73: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 33, Column 141: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 34, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 35, Column 13: "Replace `··prettier/prettier
|
| Error |
Row 36, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 37, Column 1: "Replace `················unitStyle={{·color:·colors.green,·fontSize:·mvs(21)·` with `··············unitStyle={{color:·colors.green,·fontSize:·mvs(21)`"
prettier/prettier
|
| Error |
Row 38, Column 1: "Replace `················` with `··············`"
prettier/prettier
|
| Error |
Row 39, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 39, Column 24: "Strings must use singlequote."
quotes
|
| Error |
Row 40, Column 15: "Replace `··priceUnit={`${(500000*` with `priceUnit={`${(500000·*·`"
prettier/prettier
|
| Warning |
Row 40, Column 38: "Operator '*' must be spaced."
space-infix-ops
|
| Error |
Row 41, Column 1: "Replace `················style={{·color:·colors.green,·fontSize:·mvs(21)·` with `··············style={{color:·colors.green,·fontSize:·mvs(21)`"
prettier/prettier
|
| Error |
Row 42, Column 1: "Replace `················containerStyle={{·justifyContent:·'center',height:mvs(48)·` with `··············containerStyle={{justifyContent:·'center',·height:·mvs(48)`"
prettier/prettier
|
| Warning |
Row 42, Column 33: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 43, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 44, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 45, Column 23: "Replace `·style={{paddingTop:mvs(13),paddingBottom:mvs(7)}}·headingStyle={{·alignSelf:·'center',·fontSize:·mvs(14)·}}` with `⏎············style={{paddingTop:·mvs(13),·paddingBottom:·mvs(7)}}⏎············headingStyle={{alignSelf:·'center',·fontSize:·mvs(14)}}⏎···········`"
prettier/prettier
|
| Warning |
Row 45, Column 88: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 46, Column 26: "Replace `·style={{marginTop:0}}·textStyle={{color:colors.primary}}·label={'Email'}` with `⏎··············style={{marginTop:·0}}⏎··············textStyle={{color:·colors.primary}}⏎··············label={'Email'}⏎···········`"
prettier/prettier
|
| Warning |
Row 46, Column 34: "Inline style: { marginTop: 0 }"
react-native/no-inline-styles
|
| Error |
Row 47, Column 26: "Replace `·style={{marginTop:mvs(10)}}·textStyle={{color:colors.primary}}·label={'SMS'}` with `⏎··············style={{marginTop:·mvs(10)}}⏎··············textStyle={{color:·colors.primary}}⏎··············label={'SMS'}⏎···········`"
prettier/prettier
|
| Error |
Row 70, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(37),marginBottom:mvs(39)` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(37),⏎····marginBottom:·mvs(39),⏎·`"
prettier/prettier
|
| Error |
Row 71, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| Error |
Row 84, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| Error |
Row 162, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| 2 |
import { View, StyleSheet, ImageBackground } from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 4 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce'; |
| 5 |
import colors from '../../../config/colors'; |
| Warning |
Row 6, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| 6 |
import fonts from '../../../config/fonts'; |
| Error |
Row 7, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 7 |
import { mvs } from '../../../config/metrices'; |
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| 8 |
import Medium from '../../../presentation/typography/medium-text'; |
| 9 |
import Regular from '../../../presentation/typography/regular-text'; |
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 10 |
import { TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| 11 |
import Buttons from '../../atoms/Button'; |
| Warning |
Row 12, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| 12 |
import CustomRadio from '../../atoms/RadioButton'; |
| 13 |
import CustomSwitch from '../../atoms/Switch'; |
| Warning |
Row 14, Column 8: "'DualText' is defined but never used."
no-unused-vars
|
| 14 |
import DualText from '../dual-text/dual-text'; |
| 15 |
import SettingCard from '../setting_card/setting-card'; |
| Warning |
Row 16, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| 16 |
const list = [true, false, false, true]; |
| Error |
Row 17, Column 32: "Replace `·visible,·onClose·` with `visible,·onClose`"
prettier/prettier
|
| 17 |
const CongratulationsModal = ({ visible, onClose }) => { |
| Warning |
Row 18, Column 10: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 18, Column 19: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| 18 |
const [payload, setPayload] = React.useState({ |
| Error |
Row 19, Column 76: "Insert `,`"
prettier/prettier
|
| Warning |
Row 19, Column 76: "Missing trailing comma."
comma-dangle
|
| 19 |
reason: 'Deliverer not responding to my messages after several trials.' |
| 20 |
}); |
| 21 |
|
| 22 |
return ( |
| 23 |
<ReactNativeModal |
| 24 |
propagateSwipe |
| 25 |
isVisible={visible} |
| 26 |
// avoidKeyboard |
| 27 |
onBackdropPress={() => onClose(f => !f)} |
| 28 |
onBackButtonPress={() => onClose(f => !f)} |
| Warning |
Row 29, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 29, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| 29 |
style={{ margin: 0, padding: 0 }}> |
| 30 |
<View style={styles.CONTAINER}> |
| 31 |
<View style={styles.SUB_CONTAINER}> |
| 32 |
<Regular label={'Congratulations'} style={styles.HEADING_TXT} /> |
| Error |
Row 33, Column 11: "Replace `··prettier/prettier
|
| Warning |
Row 33, Column 73: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 33, Column 141: "Unexpected trailing comma."
comma-dangle
|
| 33 |
<Regular label={'Order was successfully delivered.'} style={{ fontSize: mvs(14.5), color: colors.typeHeader, alignSelf: 'center', }} /> |
| Error |
Row 34, Column 1: "Delete `··`"
prettier/prettier
|
| 34 |
<View style={styles.REFUND_CONATINER}> |
| Error |
Row 35, Column 13: "Replace `··prettier/prettier
|
| 35 |
<Regular style={{ fontSize: mvs(14), color: colors.typeHeader }} label={'Earned Reward'} /> |
| Error |
Row 36, Column 1: "Delete `··`"
prettier/prettier
|
| 36 |
<TAKE_TO_INPUT_FIELD.PriceInput |
| Error |
Row 37, Column 1: "Replace `················unitStyle={{·color:·colors.green,·fontSize:·mvs(21)·` with `··············unitStyle={{color:·colors.green,·fontSize:·mvs(21)`"
prettier/prettier
|
| 37 |
unitStyle={{ color: colors.green, fontSize: mvs(21) }} |
| Error |
Row 38, Column 1: "Replace `················` with `··············`"
prettier/prettier
|
| 38 |
editable={false} |
| Error |
Row 39, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 39, Column 24: "Strings must use singlequote."
quotes
|
| 39 |
value={`US$`} |
| Error |
Row 40, Column 15: "Replace `··priceUnit={`${(500000*` with `priceUnit={`${(500000·*·`"
prettier/prettier
|
| Warning |
Row 40, Column 38: "Operator '*' must be spaced."
space-infix-ops
|
| 40 |
priceUnit={`${(500000*1).toLocaleString()}`} |
| Error |
Row 41, Column 1: "Replace `················style={{·color:·colors.green,·fontSize:·mvs(21)·` with `··············style={{color:·colors.green,·fontSize:·mvs(21)`"
prettier/prettier
|
| 41 |
style={{ color: colors.green, fontSize: mvs(21) }} |
| Error |
Row 42, Column 1: "Replace `················containerStyle={{·justifyContent:·'center',height:mvs(48)·` with `··············containerStyle={{justifyContent:·'center',·height:·mvs(48)`"
prettier/prettier
|
| Warning |
Row 42, Column 33: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| 42 |
containerStyle={{ justifyContent: 'center',height:mvs(48) }} |
| Error |
Row 43, Column 1: "Delete `··`"
prettier/prettier
|
| 43 |
/> |
| Error |
Row 44, Column 1: "Delete `··`"
prettier/prettier
|
| 44 |
</View> |
| Error |
Row 45, Column 23: "Replace `·style={{paddingTop:mvs(13),paddingBottom:mvs(7)}}·headingStyle={{·alignSelf:·'center',·fontSize:·mvs(14)·}}` with `⏎············style={{paddingTop:·mvs(13),·paddingBottom:·mvs(7)}}⏎············headingStyle={{alignSelf:·'center',·fontSize:·mvs(14)}}⏎···········`"
prettier/prettier
|
| Warning |
Row 45, Column 88: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| 45 |
<SettingCard style={{paddingTop:mvs(13),paddingBottom:mvs(7)}} headingStyle={{ alignSelf: 'center', fontSize: mvs(14) }} heading={'Make sure your notifications are on'}> |
| Error |
Row 46, Column 26: "Replace `·style={{marginTop:0}}·textStyle={{color:colors.primary}}·label={'Email'}` with `⏎··············style={{marginTop:·0}}⏎··············textStyle={{color:·colors.primary}}⏎··············label={'Email'}⏎···········`"
prettier/prettier
|
| Warning |
Row 46, Column 34: "Inline style: { marginTop: 0 }"
react-native/no-inline-styles
|
| 46 |
<CustomSwitch style={{marginTop:0}} textStyle={{color:colors.primary}} label={'Email'} /> |
| Error |
Row 47, Column 26: "Replace `·style={{marginTop:mvs(10)}}·textStyle={{color:colors.primary}}·label={'SMS'}` with `⏎··············style={{marginTop:·mvs(10)}}⏎··············textStyle={{color:·colors.primary}}⏎··············label={'SMS'}⏎···········`"
prettier/prettier
|
| 47 |
<CustomSwitch style={{marginTop:mvs(10)}} textStyle={{color:colors.primary}} label={'SMS'} /> |
| 48 |
</SettingCard> |
| 49 |
<View style={styles.BUTTON_CONTAINER}> |
| 50 |
<Buttons.ButtonPrimary |
| 51 |
onClick={() => {}} |
| 52 |
style={styles.BUTTON} |
| 53 |
title={'Back to Notifications'} |
| 54 |
/> |
| 55 |
</View> |
| 56 |
</View> |
| 57 |
</View> |
| 58 |
</ReactNativeModal> |
| 59 |
); |
| 60 |
}; |
| 61 |
export default CongratulationsModal; |
| 62 |
const styles = StyleSheet.create({ |
| 63 |
CONTAINER: { |
| 64 |
// position: 'absolute', |
| 65 |
// bottom: 0, |
| 66 |
width: '100%', |
| 67 |
borderRadius: mvs(20), |
| 68 |
paddingHorizontal: mvs(22), |
| 69 |
}, |
| Error |
Row 70, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(37),marginBottom:mvs(39)` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(37),⏎····marginBottom:·mvs(39),⏎·`"
prettier/prettier
|
| 70 |
REFUND_CONATINER: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', marginTop: mvs(37),marginBottom:mvs(39) }, |
| Error |
Row 71, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| 71 |
TEXT: { textAlign: 'center', marginTop: mvs(30), fontSize: mvs(14), color: colors.primary }, |
| 72 |
HEADING_TXT: { |
| 73 |
fontSize: mvs(19.5), |
| 74 |
color: colors.primary, |
| 75 |
alignSelf: 'center', |
| 76 |
marginBottom: mvs(9.5), |
| 77 |
}, |
| 78 |
SUB_CONTAINER: { |
| 79 |
backgroundColor: colors.white, |
| 80 |
// paddingTop: mvs(20), |
| 81 |
paddingVertical: mvs(20), |
| 82 |
borderRadius: mvs(20), |
| 83 |
paddingHorizontal: mvs(10), |
| Error |
Row 84, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| 84 |
backgroundColor: colors.white, |
| 85 |
}, |
| 86 |
DESTINATION_CONTAINER: { |
| 87 |
alignItems: 'center', |
| 88 |
flexDirection: 'row', |
| 89 |
justifyContent: 'space-between', |
| 90 |
}, |
| 91 |
FLAG_BUTTON: { |
| 92 |
width: mvs(161), |
| 93 |
height: mvs(38), |
| 94 |
flexDirection: 'row-reverse', |
| 95 |
backgroundColor: colors.secondary, |
| 96 |
}, |
| 97 |
SEARCH_MAP: { |
| 98 |
marginTop: mvs(15), |
| 99 |
alignSelf: 'flex-end', |
| 100 |
width: mvs(161), |
| 101 |
height: mvs(38), |
| 102 |
flexDirection: 'row', |
| 103 |
backgroundColor: colors.primary, |
| 104 |
paddingHorizontal: mvs(23), |
| 105 |
}, |
| 106 |
MAP_ICON: { |
| 107 |
height: mvs(18), |
| 108 |
width: mvs(14), |
| 109 |
}, |
| 110 |
NO_DELIVERY_CONTAINER: { |
| 111 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 112 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 113 |
flexDirection: 'row', |
| 114 |
alignItems: 'center', |
| 115 |
paddingVertical: mvs(14), |
| 116 |
marginTop: mvs(15), |
| 117 |
borderColor: colors.filter_divider, |
| 118 |
}, |
| 119 |
NoDelivery: { |
| 120 |
fontSize: mvs(15), |
| 121 |
color: colors.headerTitle, |
| 122 |
}, |
| 123 |
PRICES_CONTAINER: { |
| 124 |
marginTop: mvs(13), |
| 125 |
flexDirection: 'row', |
| 126 |
justifyContent: 'space-between', |
| 127 |
}, |
| 128 |
PRICE_HEADING: { |
| 129 |
fontSize: mvs(15), |
| 130 |
color: colors.primary, |
| 131 |
marginBottom: mvs(10), |
| 132 |
}, |
| 133 |
MAX_MIN_PRICE: { |
| 134 |
width: mvs(161), |
| 135 |
}, |
| 136 |
DIV: { |
| 137 |
marginTop: mvs(14), |
| 138 |
marginBottom: mvs(13), |
| 139 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 140 |
borderColor: colors.filter_divider, |
| 141 |
}, |
| 142 |
DEL_TIME: { |
| 143 |
color: colors.primary, |
| 144 |
fontSize: mvs(15), |
| 145 |
marginBottom: mvs(8), |
| 146 |
}, |
| 147 |
RADIO_CONTAINER: { |
| 148 |
marginBottom: mvs(30), |
| 149 |
}, |
| 150 |
RADIO_LABEL: { |
| 151 |
color: colors.headerTitle, |
| 152 |
fontSize: mvs(15), |
| 153 |
}, |
| 154 |
BUTTON_CONTAINER: { |
| 155 |
flexDirection: 'row', |
| 156 |
justifyContent: 'space-between', |
| 157 |
marginTop: mvs(29), |
| 158 |
}, |
| 159 |
BUTTON: { |
| 160 |
width: '100%', |
| 161 |
}, |
| Error |
Row 162, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| 162 |
BACK: { position: 'absolute', left: mvs(23), top: mvs(17) }, |
| 163 |
}); |
| 164 |
|
|
|
|
/src/components/molecules/modals/country/CountryPicker.js
|
22 problems (7 errors, 15 warnings)
|
| Severity |
Rule |
| Warning |
Row 4, Column 8: "'Modal' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 3: "'View' is defined but never used."
no-unused-vars
|
| Warning |
Row 8, Column 3: "'FlatList' is defined but never used."
no-unused-vars
|
| Warning |
Row 9, Column 3: "'Image' is defined but never used."
no-unused-vars
|
| Warning |
Row 10, Column 3: "'TouchableOpacity' is defined but never used."
no-unused-vars
|
| Warning |
Row 14, Column 8: "'Regular' is defined but never used."
no-unused-vars
|
| Warning |
Row 16, Column 8: "'UI_API' is defined but never used."
no-unused-vars
|
| Error |
Row 17, Column 61: "Insert `;`"
prettier/prettier
|
| Warning |
Row 17, Column 61: "Missing semicolon."
semi
|
| Error |
Row 28, Column 1: "Replace `⏎··const·[list,setList]=React.useState(countriesList)` with `··const·[list,·setList]·=·React.useState(countriesList);`"
prettier/prettier
|
| Warning |
Row 29, Column 10: "'list' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 29, Column 15: "'setList' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 29, Column 23: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 29, Column 53: "Missing semicolon."
semi
|
| Error |
Row 64, Column 17: "Replace `(item)·=>·` with `item·=>`"
prettier/prettier
|
| Warning |
Row 64, Column 26: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 66, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 67, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 67, Column 41: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 68, Column 9: "Replace `item?.cca2` with `··item?.cca2,⏎········`"
prettier/prettier
|
| Error |
Row 70, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 99, Column 7: "'styles' is assigned a value but never used."
no-unused-vars
|
| Line |
Source |
| 1 |
import React from 'react'; |
| 2 |
|
| 3 |
import {connect} from 'react-redux'; |
| Warning |
Row 4, Column 8: "'Modal' is defined but never used."
no-unused-vars
|
| 4 |
import Modal from 'react-native-modal'; |
| 5 |
import { |
| Warning |
Row 6, Column 3: "'View' is defined but never used."
no-unused-vars
|
| 6 |
View, |
| 7 |
StyleSheet, |
| Warning |
Row 8, Column 3: "'FlatList' is defined but never used."
no-unused-vars
|
| 8 |
FlatList, |
| Warning |
Row 9, Column 3: "'Image' is defined but never used."
no-unused-vars
|
| 9 |
Image, |
| Warning |
Row 10, Column 3: "'TouchableOpacity' is defined but never used."
no-unused-vars
|
| 10 |
TouchableOpacity, |
| 11 |
} from 'react-native'; |
| 12 |
import {mvs} from '../../../../config/metrices'; |
| 13 |
import colors from '../../../../config/colors'; |
| Warning |
Row 14, Column 8: "'Regular' is defined but never used."
no-unused-vars
|
| 14 |
import Regular from '../../../../presentation/typography/regular-text'; |
| 15 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| Warning |
Row 16, Column 8: "'UI_API' is defined but never used."
no-unused-vars
|
| 16 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| Error |
Row 17, Column 61: "Insert `;`"
prettier/prettier
|
| Warning |
Row 17, Column 61: "Missing semicolon."
semi
|
| 17 |
import CountryPickr from 'react-native-country-picker-modal' |
| 18 |
|
| 19 |
const CountryPicker = ({ |
| 20 |
visible, |
| 21 |
onClose, |
| 22 |
onSelect, |
| 23 |
activeCountry, |
| 24 |
countriesList, |
| 25 |
activeCountryList, |
| 26 |
...props |
| 27 |
}) => { |
| Error |
Row 28, Column 1: "Replace `⏎··const·[list,setList]=React.useState(countriesList)` with `··const·[list,·setList]·=·React.useState(countriesList);`"
prettier/prettier
|
| 28 |
|
| Warning |
Row 29, Column 10: "'list' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 29, Column 15: "'setList' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 29, Column 23: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 29, Column 53: "Missing semicolon."
semi
|
| 29 |
const [list,setList]=React.useState(countriesList) |
| 30 |
// console.log(countriesList); |
| 31 |
|
| 32 |
// const renderItem = ({item, index}) => { |
| 33 |
// return ( |
| 34 |
// <TouchableOpacity |
| 35 |
// activeOpacity={0.8} |
| 36 |
// onPress={() => { |
| 37 |
// setList(UI_API._returnNewCountryList(countriesList, index)); |
| 38 |
// onSelect(item?.name, item?.flag,item?.short_name); |
| 39 |
// }} |
| 40 |
// style={{ |
| 41 |
// ...styles.ITEM, |
| 42 |
// backgroundColor: item?.isActive ? colors.primary : colors.white, |
| 43 |
// }}> |
| 44 |
// <Image |
| 45 |
// style={styles.FLAG} |
| 46 |
// source={{uri: item?.flag}} |
| 47 |
// resizeMode="center" |
| 48 |
// /> |
| 49 |
// <Regular |
| 50 |
// label={item?.name} |
| 51 |
// style={{ |
| 52 |
// marginHorizontal: mvs(10), |
| 53 |
// color: item?.isActive ? colors.white : colors.headerTitle, |
| 54 |
// }} |
| 55 |
// /> |
| 56 |
// </TouchableOpacity> |
| 57 |
// ); |
| 58 |
// }; |
| 59 |
|
| 60 |
return ( |
| 61 |
<CountryPickr |
| 62 |
visible={visible} |
| 63 |
withFilter |
| Error |
Row 64, Column 17: "Replace `(item)·=>·` with `item·=>`"
prettier/prettier
|
| Warning |
Row 64, Column 26: "Trailing spaces not allowed."
no-trailing-spaces
|
| 64 |
onSelect={(item) => |
| 65 |
onSelect( |
| Error |
Row 66, Column 9: "Insert `··`"
prettier/prettier
|
| 66 |
item?.name, |
| Error |
Row 67, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 67, Column 41: "Expected '===' and instead saw '=='."
eqeqeq
|
| 67 |
countriesList?.find(x => x.name == item?.name)?.flag, |
| Error |
Row 68, Column 9: "Replace `item?.cca2` with `··item?.cca2,⏎········`"
prettier/prettier
|
| 68 |
item?.cca2) |
| 69 |
} |
| Error |
Row 70, Column 1: "Delete `··`"
prettier/prettier
|
| 70 |
/> |
| 71 |
// <Modal |
| 72 |
// isVisible={visible} |
| 73 |
// onBackButtonPress={onClose} |
| 74 |
// onBackdropPress={onClose} |
| 75 |
// style={{margin: 0, padding: 0, justifyContent: 'flex-end'}}> |
| 76 |
// <View style={styles.CONTAINER}> |
| 77 |
// <FlatList |
| 78 |
// data={list} |
| 79 |
// keyExtractor={(item, index) => index.toString()} |
| 80 |
// contentContainerStyle={{padding: mvs(20)}} |
| 81 |
// renderItem={renderItem} |
| 82 |
// /> |
| 83 |
// </View> |
| 84 |
// </Modal> |
| 85 |
); |
| 86 |
}; |
| 87 |
|
| 88 |
const mapStateToProps = state => { |
| 89 |
return { |
| 90 |
countriesList: state.common.countriesList, |
| 91 |
}; |
| 92 |
}; |
| 93 |
|
| 94 |
const mapDispatchToProps = dispatch => ({ |
| 95 |
activeCountryList: list => dispatch(TAKE_TO_ACTIONS.activeCountryList(list)), |
| 96 |
}); |
| 97 |
export default connect(mapStateToProps, mapDispatchToProps)(CountryPicker); |
| 98 |
|
| Warning |
Row 99, Column 7: "'styles' is assigned a value but never used."
no-unused-vars
|
| 99 |
const styles = StyleSheet.create({ |
| 100 |
CONTAINER: { |
| 101 |
// flex:1 |
| 102 |
height: mvs(400), |
| 103 |
width: '100%', |
| 104 |
backgroundColor: colors.white, |
| 105 |
borderTopRightRadius: mvs(10), |
| 106 |
borderTopLeftRadius: mvs(10), |
| 107 |
alignSelf: 'center', |
| 108 |
}, |
| 109 |
ITEM: { |
| 110 |
flexDirection: 'row', |
| 111 |
alignItems: 'center', |
| 112 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 113 |
borderColor: colors.gray, |
| 114 |
paddingVertical: mvs(10), |
| 115 |
paddingHorizontal: mvs(20), |
| 116 |
borderRadius: mvs(10), |
| 117 |
}, |
| 118 |
FLAG: { |
| 119 |
height: mvs(30), |
| 120 |
width: mvs(30), |
| 121 |
borderRadius: mvs(15), |
| 122 |
}, |
| 123 |
}); |
| 124 |
|
|
|
|
/src/components/molecules/modals/date-picker-modal.js
|
29 problems (12 errors, 17 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·TouchableOpacity·` with `View,·StyleSheet,·TouchableOpacity`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'TouchableOpacity' is defined but never used."
no-unused-vars
|
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 6, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Warning |
Row 7, Column 8: "'Regular' is defined but never used."
no-unused-vars
|
| Error |
Row 9, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 9, Column 10: "'TAKE_TO_INPUT_FIELD' is defined but never used."
no-unused-vars
|
| Warning |
Row 10, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| Warning |
Row 11, Column 8: "'Back' is defined but never used."
no-unused-vars
|
| Error |
Row 13, Column 27: "Replace `·visible,·onClose,·onApply,·navigation·` with `visible,·onClose,·onApply,·navigation`"
prettier/prettier
|
| Error |
Row 18, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 19, Column 10: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 19, Column 19: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 36, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 36, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| Warning |
Row 42, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 42, Column 20: "Replace `·⏎··········unselectedYearColor={colors.white}·⏎··········unselectedMonthColor={colors.white}··⏎··········dayMonthYear={dayMonthYear}·` with `⏎············unselectedYearColor={colors.white}⏎············unselectedMonthColor={colors.white}⏎············dayMonthYear={dayMonthYear}`"
prettier/prettier
|
| Warning |
Row 43, Column 45: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 44, Column 46: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 45, Column 38: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 46, Column 11: "Replace `setDayMonthYear={(dmy)=>{setDayMonthYear(dmy)}}·` with `··setDayMonthYear={dmy·=>·{⏎··············setDayMonthYear(dmy);⏎············}}`"
prettier/prettier
|
| Warning |
Row 46, Column 56: "Missing semicolon."
semi
|
| Warning |
Row 46, Column 58: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 50, Column 26: "Replace `=>` with `·=>·`"
prettier/prettier
|
| Warning |
Row 51, Column 22: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 51, Column 40: "Replace `width:` with `·width:·`"
prettier/prettier
|
| Warning |
Row 56, Column 22: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 56, Column 23: "Replace `·...styles.BUTTON,width:'49%'·` with `...styles.BUTTON,·width:·'49%'`"
prettier/prettier
|
| Error |
Row 163, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·TouchableOpacity·` with `View,·StyleSheet,·TouchableOpacity`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'TouchableOpacity' is defined but never used."
no-unused-vars
|
| 2 |
import { View, StyleSheet, TouchableOpacity } from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| 4 |
import colors from '../../../config/colors'; |
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 5 |
import { mvs } from '../../../config/metrices'; |
| Warning |
Row 6, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| 6 |
import Medium from '../../../presentation/typography/medium-text'; |
| Warning |
Row 7, Column 8: "'Regular' is defined but never used."
no-unused-vars
|
| 7 |
import Regular from '../../../presentation/typography/regular-text'; |
| 8 |
import Buttons from '../../atoms/Button'; |
| Error |
Row 9, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 9, Column 10: "'TAKE_TO_INPUT_FIELD' is defined but never used."
no-unused-vars
|
| 9 |
import { TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| Warning |
Row 10, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| 10 |
import CustomRadio from '../../atoms/RadioButton'; |
| Warning |
Row 11, Column 8: "'Back' is defined but never used."
no-unused-vars
|
| 11 |
import Back from '../../../../resource/assets/common-icons/back-white.svg'; |
| 12 |
import Calendar from '../calendar/calendar'; |
| Error |
Row 13, Column 27: "Replace `·visible,·onClose,·onApply,·navigation·` with `visible,·onClose,·onApply,·navigation`"
prettier/prettier
|
| 13 |
const DatePickerModal = ({ visible, onClose, onApply, navigation }) => { |
| 14 |
const [dayMonthYear, setDayMonthYear] = React.useState({ |
| 15 |
day: new Date().getDate(), |
| 16 |
month: new Date().getMonth(), |
| 17 |
year: new Date().getFullYear(), |
| Error |
Row 18, Column 1: "Insert `··`"
prettier/prettier
|
| 18 |
}); |
| Warning |
Row 19, Column 10: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 19, Column 19: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| 19 |
const [payload, setPayload] = React.useState({ |
| 20 |
isThirtyDays: true, |
| 21 |
isNinetyDays: false, |
| 22 |
isThreeWeeks: false, |
| 23 |
isTwoWeeks: false, |
| 24 |
isUrgent: false, |
| 25 |
isNoDelivery: true, |
| 26 |
maxPrice: '100', |
| 27 |
minPrice: '1000', |
| 28 |
}); |
| 29 |
return ( |
| 30 |
<ReactNativeModal |
| 31 |
propagateSwipe |
| 32 |
isVisible={visible} |
| 33 |
avoidKeyboard |
| 34 |
onBackdropPress={() => onClose()} |
| 35 |
onBackButtonPress={() => onClose()} |
| Warning |
Row 36, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 36, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| 36 |
style={{ margin: 0, padding: 0 }}> |
| 37 |
<View style={styles.CONTAINER}> |
| 38 |
{/* <View style={{ alignItems: 'center', paddingHorizontal: mvs(22) }}> |
| 39 |
<Medium label={'Departure Date'} style={styles.HEADING_TXT} /> |
| 40 |
</View> */} |
| 41 |
<View style={styles.SUB_CONTAINER}> |
| Warning |
Row 42, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 42, Column 20: "Replace `·⏎··········unselectedYearColor={colors.white}·⏎··········unselectedMonthColor={colors.white}··⏎··········dayMonthYear={dayMonthYear}·` with `⏎············unselectedYearColor={colors.white}⏎············unselectedMonthColor={colors.white}⏎············dayMonthYear={dayMonthYear}`"
prettier/prettier
|
| 42 |
<Calendar |
| Warning |
Row 43, Column 45: "Trailing spaces not allowed."
no-trailing-spaces
|
| 43 |
unselectedYearColor={colors.white} |
| Warning |
Row 44, Column 46: "Trailing spaces not allowed."
no-trailing-spaces
|
| 44 |
unselectedMonthColor={colors.white} |
| Warning |
Row 45, Column 38: "Trailing spaces not allowed."
no-trailing-spaces
|
| 45 |
dayMonthYear={dayMonthYear} |
| Error |
Row 46, Column 11: "Replace `setDayMonthYear={(dmy)=>{setDayMonthYear(dmy)}}·` with `··setDayMonthYear={dmy·=>·{⏎··············setDayMonthYear(dmy);⏎············}}`"
prettier/prettier
|
| Warning |
Row 46, Column 56: "Missing semicolon."
semi
|
| Warning |
Row 46, Column 58: "Trailing spaces not allowed."
no-trailing-spaces
|
| 46 |
setDayMonthYear={(dmy)=>{setDayMonthYear(dmy)}} |
| 47 |
/> |
| 48 |
<View style={styles.BUTTON_CONTAINER}> |
| 49 |
<Buttons.ButtonPrimary |
| Error |
Row 50, Column 26: "Replace `=>` with `·=>·`"
prettier/prettier
|
| 50 |
onClick={()=>onApply(dayMonthYear)} |
| Warning |
Row 51, Column 22: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 51, Column 40: "Replace `width:` with `·width:·`"
prettier/prettier
|
| 51 |
style={{...styles.BUTTON,width:'49%'}} |
| 52 |
title={'Apply'} |
| 53 |
/> |
| 54 |
<Buttons.ButtonSecondaryOutline |
| 55 |
onClick={() => onClose()} |
| Warning |
Row 56, Column 22: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 56, Column 23: "Replace `·...styles.BUTTON,width:'49%'·` with `...styles.BUTTON,·width:·'49%'`"
prettier/prettier
|
| 56 |
style={{ ...styles.BUTTON,width:'49%' }} |
| 57 |
title={'Cancel'} |
| 58 |
/> |
| 59 |
</View> |
| 60 |
</View> |
| 61 |
</View> |
| 62 |
</ReactNativeModal> |
| 63 |
); |
| 64 |
}; |
| 65 |
export default DatePickerModal; |
| 66 |
const styles = StyleSheet.create({ |
| 67 |
CONTAINER: { |
| 68 |
position: 'absolute', |
| 69 |
bottom: 0, |
| 70 |
width: '100%', |
| 71 |
borderTopLeftRadius: mvs(20), |
| 72 |
borderTopRightRadius: mvs(20), |
| 73 |
backgroundColor: colors.primary, |
| 74 |
}, |
| 75 |
HEADING_TXT: { |
| 76 |
fontSize: mvs(15), |
| 77 |
color: colors.white, |
| 78 |
alignSelf: 'center', |
| 79 |
marginTop: mvs(13), |
| 80 |
marginBottom: mvs(16), |
| 81 |
}, |
| 82 |
SUB_CONTAINER: { |
| 83 |
backgroundColor: colors.white, |
| 84 |
paddingVertical: mvs(15), |
| 85 |
paddingHorizontal: mvs(22), |
| 86 |
borderTopLeftRadius: mvs(20), |
| 87 |
borderTopRightRadius: mvs(20), |
| 88 |
}, |
| 89 |
DESTINATION_CONTAINER: { |
| 90 |
alignItems: 'center', |
| 91 |
flexDirection: 'row', |
| 92 |
justifyContent: 'space-between', |
| 93 |
}, |
| 94 |
FLAG_BUTTON: { |
| 95 |
width: mvs(161), |
| 96 |
height: mvs(38), |
| 97 |
flexDirection: 'row-reverse', |
| 98 |
backgroundColor: colors.secondary, |
| 99 |
}, |
| 100 |
SEARCH_MAP: { |
| 101 |
marginTop: mvs(15), |
| 102 |
alignSelf: 'flex-end', |
| 103 |
width: mvs(161), |
| 104 |
height: mvs(38), |
| 105 |
flexDirection: 'row', |
| 106 |
backgroundColor: colors.primary, |
| 107 |
paddingHorizontal: mvs(23), |
| 108 |
}, |
| 109 |
MAP_ICON: { |
| 110 |
height: mvs(18), |
| 111 |
width: mvs(14), |
| 112 |
}, |
| 113 |
NO_DELIVERY_CONTAINER: { |
| 114 |
// borderTopWidth: StyleSheet.hairlineWidth, |
| 115 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 116 |
flexDirection: 'row', |
| 117 |
alignItems: 'center', |
| 118 |
paddingBottom: mvs(14), |
| 119 |
borderColor: colors.filter_divider, |
| 120 |
}, |
| 121 |
NoDelivery: { |
| 122 |
fontSize: mvs(15), |
| 123 |
color: colors.headerTitle, |
| 124 |
}, |
| 125 |
PRICES_CONTAINER: { |
| 126 |
marginTop: mvs(13), |
| 127 |
flexDirection: 'row', |
| 128 |
justifyContent: 'space-between', |
| 129 |
}, |
| 130 |
PRICE_HEADING: { |
| 131 |
fontSize: mvs(15), |
| 132 |
color: colors.primary, |
| 133 |
marginBottom: mvs(10), |
| 134 |
}, |
| 135 |
MAX_MIN_PRICE: { |
| 136 |
width: mvs(161), |
| 137 |
}, |
| 138 |
DIV: { |
| 139 |
marginTop: mvs(15), |
| 140 |
marginBottom: mvs(13), |
| 141 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 142 |
borderColor: colors.filter_divider, |
| 143 |
}, |
| 144 |
DEL_TIME: { |
| 145 |
color: colors.primary, |
| 146 |
fontSize: mvs(15), |
| 147 |
marginBottom: mvs(8), |
| 148 |
}, |
| 149 |
RADIO_CONTAINER: { |
| 150 |
marginBottom: mvs(30), |
| 151 |
}, |
| 152 |
RADIO_LABEL: { |
| 153 |
color: colors.headerTitle, |
| 154 |
fontSize: mvs(15), |
| 155 |
}, |
| 156 |
BUTTON_CONTAINER: { |
| 157 |
flexDirection: 'row', |
| 158 |
justifyContent: 'space-between', |
| 159 |
}, |
| 160 |
BUTTON: { |
| 161 |
width: mvs(161), |
| 162 |
}, |
| Error |
Row 163, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| 163 |
BACK: { position: 'absolute', left: mvs(23), top: mvs(17) }, |
| 164 |
}); |
| 165 |
|
|
|
|
/src/components/molecules/modals/delivery-address-request.js
|
211 problems (156 errors, 55 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 9: "Replace `·placeholder·}·from·'@babel/types'` with `placeholder}·from·'@babel/types';`"
prettier/prettier
|
| Warning |
Row 1, Column 10: "'placeholder' is defined but never used."
no-unused-vars
|
| Warning |
Row 1, Column 43: "Missing semicolon."
semi
|
| Error |
Row 2, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 2, Column 26: "Missing semicolon."
semi
|
| Error |
Row 3, Column 9: "Replace `·StyleSheet,·Text,·View·}·from·'react-native'` with `StyleSheet,·Text,·View}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 3, Column 22: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 3, Column 54: "Missing semicolon."
semi
|
| Error |
Row 4, Column 50: "Insert `;`"
prettier/prettier
|
| Warning |
Row 4, Column 50: "Missing semicolon."
semi
|
| Error |
Row 5, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 5, Column 44: "Missing semicolon."
semi
|
| Error |
Row 6, Column 9: "Replace `·mvs·}·from·'../../../config/metrices'` with `mvs}·from·'../../../config/metrices';`"
prettier/prettier
|
| Warning |
Row 6, Column 47: "Missing semicolon."
semi
|
| Warning |
Row 7, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Error |
Row 7, Column 66: "Insert `;`"
prettier/prettier
|
| Warning |
Row 7, Column 66: "Missing semicolon."
semi
|
| Error |
Row 8, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 8, Column 68: "Missing semicolon."
semi
|
| Warning |
Row 9, Column 8: "'OrderDestination' is defined but never used."
no-unused-vars
|
| Error |
Row 9, Column 60: "Insert `;`"
prettier/prettier
|
| Warning |
Row 9, Column 60: "Missing semicolon."
semi
|
| Warning |
Row 10, Column 8: "'OrderDestinationAddress' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 74: "Insert `;`"
prettier/prettier
|
| Warning |
Row 10, Column 74: "Missing semicolon."
semi
|
| Warning |
Row 11, Column 8: "'ImagePlaceholder' is defined but never used."
no-unused-vars
|
| Error |
Row 11, Column 55: "Insert `;`"
prettier/prettier
|
| Warning |
Row 11, Column 55: "Missing semicolon."
semi
|
| Error |
Row 12, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 12, Column 68: "Missing semicolon."
semi
|
| Error |
Row 13, Column 9: "Replace `·TAKE_TO_IMAGES·}·from·'../../../../resource/assets/image_resouce'` with `TAKE_TO_IMAGES}·from·'../../../../resource/assets/image_resouce';`"
prettier/prettier
|
| Warning |
Row 13, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 13, Column 75: "Missing semicolon."
semi
|
| Error |
Row 14, Column 41: "Insert `;`"
prettier/prettier
|
| Warning |
Row 14, Column 41: "Missing semicolon."
semi
|
| Warning |
Row 15, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| Error |
Row 15, Column 55: "Insert `;`"
prettier/prettier
|
| Warning |
Row 15, Column 55: "Missing semicolon."
semi
|
| Warning |
Row 16, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| Error |
Row 16, Column 46: "Insert `;`"
prettier/prettier
|
| Warning |
Row 16, Column 46: "Missing semicolon."
semi
|
| Error |
Row 18, Column 34: "Replace `·visible,·onClose,·title,·image,·name,·settingCard·=·false,·backButton·=·false,·step·=·1,·backButtonTitle·=·"Back",·onNext,...props·` with `⏎··visible,⏎··onClose,⏎··title,⏎··image,⏎··name,⏎··settingCard·=·false,⏎··backButton·=·false,⏎··step·=·1,⏎··backButtonTitle·=·'Back',⏎··onNext,⏎··...props⏎`"
prettier/prettier
|
| Warning |
Row 18, Column 142: "Strings must use singlequote."
quotes
|
| Error |
Row 19, Column 1: "Replace `····const·Aeroplane·=·SVGS['aeroplane']` with `··const·Aeroplane·=·SVGS['aeroplane'];`"
prettier/prettier
|
| Warning |
Row 19, Column 11: "'Aeroplane' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 19, Column 28: "["aeroplane"] is better written in dot notation."
dot-notation
|
| Warning |
Row 19, Column 40: "Missing semicolon."
semi
|
| Error |
Row 20, Column 1: "Replace `····const·Location·=·SVGS['location']` with `··const·Location·=·SVGS['location'];`"
prettier/prettier
|
| Warning |
Row 20, Column 11: "'Location' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 20, Column 27: "["location"] is better written in dot notation."
dot-notation
|
| Warning |
Row 20, Column 38: "Missing semicolon."
semi
|
| Error |
Row 22, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 22, Column 12: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 22, Column 21: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 23, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 24, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 25, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 26, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 27, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 28, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 29, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 30, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 31, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 32, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 33, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 34, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 35, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 36, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 37, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 38, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 39, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 40, Column 7: "Replace `······style={{·margin:·0,·paddingHorizontal:·mvs(11)·` with `style={{margin:·0,·paddingHorizontal:·mvs(11)`"
prettier/prettier
|
| Warning |
Row 40, Column 20: "Inline style: { margin: 0 }"
react-native/no-inline-styles
|
| Error |
Row 41, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 42, Column 1: "Replace `················prettier/prettier
|
| Warning |
Row 42, Column 33: "Strings must use singlequote."
quotes
|
| Error |
Row 43, Column 1: "Replace `················⏎` with `········prettier/prettier
|
| Warning |
Row 43, Column 33: "Strings must use singlequote."
quotes
|
| Error |
Row 45, Column 9: "Insert `/>⏎⏎`"
prettier/prettier
|
| Error |
Row 67, Column 1: "Insert `········{`"
prettier/prettier
|
| Error |
Row 68, Column 11: "Delete `······{`"
prettier/prettier
|
| Error |
Row 69, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 70, Column 13: "Replace `········title={"Back"` with `title={'Back'`"
prettier/prettier
|
| Warning |
Row 70, Column 28: "Strings must use singlequote."
quotes
|
| Error |
Row 71, Column 1: "Replace `····················style={{·marginTop:·mvs(30)·` with `············style={{marginTop:·mvs(30)`"
prettier/prettier
|
| Error |
Row 72, Column 1: "Replace `················/>}` with `··········/>`"
prettier/prettier
|
| Error |
Row 73, Column 7: "Insert `··}⏎`"
prettier/prettier
|
| Error |
Row 74, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 75, Column 3: "Replace `··)` with `);`"
prettier/prettier
|
| Warning |
Row 75, Column 6: "Missing semicolon."
semi
|
| Error |
Row 76, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 76, Column 2: "Missing semicolon."
semi
|
| Error |
Row 78, Column 38: "Insert `;`"
prettier/prettier
|
| Warning |
Row 78, Column 38: "Missing semicolon."
semi
|
| Error |
Row 81, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 82, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 83, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 84, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 85, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 86, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 87, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 88, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 89, Column 1: "Replace `········paddingHorizontal:·mvs(10)` with `····paddingHorizontal:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 89, Column 35: "Missing trailing comma."
comma-dangle
|
| Error |
Row 90, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 91, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 92, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 93, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 94, Column 1: "Replace `········alignSelf:·'center'` with `····alignSelf:·'center',`"
prettier/prettier
|
| Warning |
Row 94, Column 28: "Missing trailing comma."
comma-dangle
|
| Error |
Row 95, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 96, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 97, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 98, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 99, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 100, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 101, Column 1: "Replace `········textAlign:·'center'` with `····textAlign:·'center',`"
prettier/prettier
|
| Warning |
Row 101, Column 28: "Missing trailing comma."
comma-dangle
|
| Error |
Row 102, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 103, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 104, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 105, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 106, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 107, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 108, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 109, Column 1: "Replace `········justifyContent:·'space-between'` with `····justifyContent:·'space-between',`"
prettier/prettier
|
| Warning |
Row 109, Column 40: "Missing trailing comma."
comma-dangle
|
| Error |
Row 110, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 111, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 112, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 113, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 114, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 115, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 116, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 117, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 118, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 119, Column 1: "Replace `········marginTop:·mvs(28)` with `····marginTop:·mvs(28),`"
prettier/prettier
|
| Warning |
Row 119, Column 27: "Missing trailing comma."
comma-dangle
|
| Error |
Row 120, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 121, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 122, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 123, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 124, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 125, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 126, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 127, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 128, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 129, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 130, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 131, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 132, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 133, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 134, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 135, Column 5: "Replace `····alignItems:·'center'` with `alignItems:·'center',`"
prettier/prettier
|
| Warning |
Row 135, Column 29: "Missing trailing comma."
comma-dangle
|
| Error |
Row 136, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 137, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 138, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 139, Column 1: "Replace `········color:·colors.typeHeader` with `····color:·colors.typeHeader,`"
prettier/prettier
|
| Warning |
Row 139, Column 33: "Missing trailing comma."
comma-dangle
|
| Error |
Row 140, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 141, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 142, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 143, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 144, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 145, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 146, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 147, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 148, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 149, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 150, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 151, Column 1: "Replace `········color:·colors.primary` with `····color:·colors.primary,`"
prettier/prettier
|
| Warning |
Row 151, Column 30: "Missing trailing comma."
comma-dangle
|
| Error |
Row 152, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 153, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 154, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 155, Column 1: "Replace `········color:·colors.primary` with `····color:·colors.primary,`"
prettier/prettier
|
| Warning |
Row 155, Column 30: "Missing trailing comma."
comma-dangle
|
| Error |
Row 156, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 157, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 158, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 159, Column 5: "Replace `····width:·"100%"` with `width:·'100%'`"
prettier/prettier
|
| Warning |
Row 159, Column 16: "Strings must use singlequote."
quotes
|
| Error |
Row 160, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 161, Column 1: "Replace `········minHeight:·mvs(54)` with `····minHeight:·mvs(54),`"
prettier/prettier
|
| Warning |
Row 161, Column 27: "Missing trailing comma."
comma-dangle
|
| Error |
Row 162, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 163, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 164, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 165, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 166, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 167, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 168, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 169, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 170, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 171, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 172, Column 5: "Replace `····width:·"49%"` with `width:·'49%'`"
prettier/prettier
|
| Warning |
Row 172, Column 16: "Strings must use singlequote."
quotes
|
| Error |
Row 173, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 174, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 175, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 176, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 177, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 178, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 179, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 180, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 181, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 182, Column 3: "Replace `··}` with `},`"
prettier/prettier
|
| Warning |
Row 182, Column 6: "Missing trailing comma."
comma-dangle
|
| Error |
Row 183, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 183, Column 3: "Missing semicolon."
semi
|
| Line |
Source |
| Error |
Row 1, Column 9: "Replace `·placeholder·}·from·'@babel/types'` with `placeholder}·from·'@babel/types';`"
prettier/prettier
|
| Warning |
Row 1, Column 10: "'placeholder' is defined but never used."
no-unused-vars
|
| Warning |
Row 1, Column 43: "Missing semicolon."
semi
|
| 1 |
import { placeholder } from '@babel/types' |
| Error |
Row 2, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 2, Column 26: "Missing semicolon."
semi
|
| 2 |
import React from 'react' |
| Error |
Row 3, Column 9: "Replace `·StyleSheet,·Text,·View·}·from·'react-native'` with `StyleSheet,·Text,·View}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 3, Column 22: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 3, Column 54: "Missing semicolon."
semi
|
| 3 |
import { StyleSheet, Text, View } from 'react-native' |
| Error |
Row 4, Column 50: "Insert `;`"
prettier/prettier
|
| Warning |
Row 4, Column 50: "Missing semicolon."
semi
|
| 4 |
import ReactNativeModal from 'react-native-modal' |
| Error |
Row 5, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 5, Column 44: "Missing semicolon."
semi
|
| 5 |
import colors from '../../../config/colors' |
| Error |
Row 6, Column 9: "Replace `·mvs·}·from·'../../../config/metrices'` with `mvs}·from·'../../../config/metrices';`"
prettier/prettier
|
| Warning |
Row 6, Column 47: "Missing semicolon."
semi
|
| 6 |
import { mvs } from '../../../config/metrices' |
| Warning |
Row 7, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Error |
Row 7, Column 66: "Insert `;`"
prettier/prettier
|
| Warning |
Row 7, Column 66: "Missing semicolon."
semi
|
| 7 |
import Medium from '../../../presentation/typography/medium-text' |
| Error |
Row 8, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 8, Column 68: "Missing semicolon."
semi
|
| 8 |
import Regular from '../../../presentation/typography/regular-text' |
| Warning |
Row 9, Column 8: "'OrderDestination' is defined but never used."
no-unused-vars
|
| Error |
Row 9, Column 60: "Insert `;`"
prettier/prettier
|
| Warning |
Row 9, Column 60: "Missing semicolon."
semi
|
| 9 |
import OrderDestination from '../../atoms/OrderDestination' |
| Warning |
Row 10, Column 8: "'OrderDestinationAddress' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 74: "Insert `;`"
prettier/prettier
|
| Warning |
Row 10, Column 74: "Missing semicolon."
semi
|
| 10 |
import OrderDestinationAddress from '../../atoms/OrderDestinationAddress' |
| Warning |
Row 11, Column 8: "'ImagePlaceholder' is defined but never used."
no-unused-vars
|
| Error |
Row 11, Column 55: "Insert `;`"
prettier/prettier
|
| Warning |
Row 11, Column 55: "Missing semicolon."
semi
|
| 11 |
import ImagePlaceholder from '../../atoms/Placeholder' |
| Error |
Row 12, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 12, Column 68: "Missing semicolon."
semi
|
| 12 |
import * as SVGS from '../../../../resource/assets/order-car-icons' |
| Error |
Row 13, Column 9: "Replace `·TAKE_TO_IMAGES·}·from·'../../../../resource/assets/image_resouce'` with `TAKE_TO_IMAGES}·from·'../../../../resource/assets/image_resouce';`"
prettier/prettier
|
| Warning |
Row 13, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 13, Column 75: "Missing semicolon."
semi
|
| 13 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce' |
| Error |
Row 14, Column 41: "Insert `;`"
prettier/prettier
|
| Warning |
Row 14, Column 41: "Missing semicolon."
semi
|
| 14 |
import Buttons from '../../atoms/Button' |
| Warning |
Row 15, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| Error |
Row 15, Column 55: "Insert `;`"
prettier/prettier
|
| Warning |
Row 15, Column 55: "Missing semicolon."
semi
|
| 15 |
import SettingCard from '../setting_card/setting-card' |
| Warning |
Row 16, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| Error |
Row 16, Column 46: "Insert `;`"
prettier/prettier
|
| Warning |
Row 16, Column 46: "Missing semicolon."
semi
|
| 16 |
import CustomSwitch from '../../atoms/Switch' |
| 17 |
|
| Error |
Row 18, Column 34: "Replace `·visible,·onClose,·title,·image,·name,·settingCard·=·false,·backButton·=·false,·step·=·1,·backButtonTitle·=·"Back",·onNext,...props·` with `⏎··visible,⏎··onClose,⏎··title,⏎··image,⏎··name,⏎··settingCard·=·false,⏎··backButton·=·false,⏎··step·=·1,⏎··backButtonTitle·=·'Back',⏎··onNext,⏎··...props⏎`"
prettier/prettier
|
| Warning |
Row 18, Column 142: "Strings must use singlequote."
quotes
|
| 18 |
const DeliveryAddressRequest = ({ visible, onClose, title, image, name, settingCard = false, backButton = false, step = 1, backButtonTitle = "Back", onNext,...props }) => { |
| Error |
Row 19, Column 1: "Replace `····const·Aeroplane·=·SVGS['aeroplane']` with `··const·Aeroplane·=·SVGS['aeroplane'];`"
prettier/prettier
|
| Warning |
Row 19, Column 11: "'Aeroplane' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 19, Column 28: "["aeroplane"] is better written in dot notation."
dot-notation
|
| Warning |
Row 19, Column 40: "Missing semicolon."
semi
|
| 19 |
const Aeroplane = SVGS['aeroplane'] |
| Error |
Row 20, Column 1: "Replace `····const·Location·=·SVGS['location']` with `··const·Location·=·SVGS['location'];`"
prettier/prettier
|
| Warning |
Row 20, Column 11: "'Location' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 20, Column 27: "["location"] is better written in dot notation."
dot-notation
|
| Warning |
Row 20, Column 38: "Missing semicolon."
semi
|
| 20 |
const Location = SVGS['location'] |
| 21 |
|
| Error |
Row 22, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 22, Column 12: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 22, Column 21: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| 22 |
const [payload, setPayload] = React.useState({ |
| Error |
Row 23, Column 5: "Delete `····`"
prettier/prettier
|
| 23 |
isPromotionEmail: true, |
| Error |
Row 24, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 24 |
isLocationServices: true, |
| Error |
Row 25, Column 5: "Delete `····`"
prettier/prettier
|
| 25 |
isOrderEmail: true, |
| Error |
Row 26, Column 1: "Delete `····`"
prettier/prettier
|
| 26 |
isSms: true, |
| Error |
Row 27, Column 5: "Delete `····`"
prettier/prettier
|
| 27 |
home: true, |
| Error |
Row 28, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 28 |
work: false, |
| Error |
Row 29, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 29 |
current: false, |
| Error |
Row 30, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 30 |
different: false, |
| Error |
Row 31, Column 1: "Delete `····`"
prettier/prettier
|
| 31 |
//step: step |
| Error |
Row 32, Column 3: "Delete `··`"
prettier/prettier
|
| 32 |
}); |
| Error |
Row 33, Column 1: "Delete `··`"
prettier/prettier
|
| 33 |
return ( |
| Error |
Row 34, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 34 |
<ReactNativeModal |
| Error |
Row 35, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 35 |
propagateSwipe |
| Error |
Row 36, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 36 |
isVisible={visible} |
| Error |
Row 37, Column 7: "Delete `······`"
prettier/prettier
|
| 37 |
avoidKeyboard |
| Error |
Row 38, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 38 |
onBackdropPress={() => onClose(f => !f)} |
| Error |
Row 39, Column 1: "Delete `······`"
prettier/prettier
|
| 39 |
onBackButtonPress={() => onClose(f => !f)} |
| Error |
Row 40, Column 7: "Replace `······style={{·margin:·0,·paddingHorizontal:·mvs(11)·` with `style={{margin:·0,·paddingHorizontal:·mvs(11)`"
prettier/prettier
|
| Warning |
Row 40, Column 20: "Inline style: { margin: 0 }"
react-native/no-inline-styles
|
| 40 |
style={{ margin: 0, paddingHorizontal: mvs(11) }}> |
| Error |
Row 41, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 41 |
<View style={styles.mainContainer}> |
| Error |
Row 42, Column 1: "Replace `················prettier/prettier
|
| Warning |
Row 42, Column 33: "Strings must use singlequote."
quotes
|
| 42 |
<Regular label={"Delivery Address Requested"} style={styles.header} /> |
| Error |
Row 43, Column 1: "Replace `················⏎` with `········prettier/prettier
|
| Warning |
Row 43, Column 33: "Strings must use singlequote."
quotes
|
| 43 |
<Regular label={`Delivery Address was requested.\nYou are almost done.`} style={styles.heading}/> |
| 44 |
|
| Error |
Row 45, Column 9: "Insert `/>⏎⏎`"
prettier/prettier
|
| 45 |
{/* <SettingCard |
| 46 |
heading="Make sure your notifications are on" |
| 47 |
headingStyle={{ alignSelf: 'center' }} |
| 48 |
style={{ marginTop: mvs(43), paddingTop: mvs(13), paddingBottom: mvs(7) }} |
| 49 |
> |
| 50 |
<CustomSwitch |
| 51 |
value={payload.isOrderEmail} |
| 52 |
label={'Email'} |
| 53 |
textStyle={{ color: colors.primary }} |
| 54 |
onChange={v => setPayload({ ...payload, isOrderEmail: v })} |
| 55 |
style={{ marginTop: mvs(13) }} |
| 56 |
/> |
| 57 |
<CustomSwitch |
| 58 |
style={{ marginTop: mvs(28) }} |
| 59 |
value={payload.isSms} |
| 60 |
label={'SMS'} |
| 61 |
textStyle={{ color: colors.primary }} |
| 62 |
onChange={v => setPayload({ ...payload, isSms: v })} |
| 63 |
style={{ marginTop: mvs(10) }} |
| 64 |
/> |
| 65 |
</SettingCard> */} |
| 66 |
|
| Error |
Row 67, Column 1: "Insert `········{`"
prettier/prettier
|
| 67 |
|
| Error |
Row 68, Column 11: "Delete `······{`"
prettier/prettier
|
| 68 |
{<Buttons.ButtonPrimary |
| Error |
Row 69, Column 1: "Delete `········`"
prettier/prettier
|
| 69 |
onClick={onClose} |
| Error |
Row 70, Column 13: "Replace `········title={"Back"` with `title={'Back'`"
prettier/prettier
|
| Warning |
Row 70, Column 28: "Strings must use singlequote."
quotes
|
| 70 |
title={"Back"} |
| Error |
Row 71, Column 1: "Replace `····················style={{·marginTop:·mvs(30)·` with `············style={{marginTop:·mvs(30)`"
prettier/prettier
|
| 71 |
style={{ marginTop: mvs(30) }} |
| Error |
Row 72, Column 1: "Replace `················/>}` with `··········/>`"
prettier/prettier
|
| 72 |
/>} |
| Error |
Row 73, Column 7: "Insert `··}⏎`"
prettier/prettier
|
| 73 |
</View> |
| Error |
Row 74, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 74 |
</ReactNativeModal> |
| Error |
Row 75, Column 3: "Replace `··)` with `);`"
prettier/prettier
|
| Warning |
Row 75, Column 6: "Missing semicolon."
semi
|
| 75 |
) |
| Error |
Row 76, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 76, Column 2: "Missing semicolon."
semi
|
| 76 |
} |
| 77 |
|
| Error |
Row 78, Column 38: "Insert `;`"
prettier/prettier
|
| Warning |
Row 78, Column 38: "Missing semicolon."
semi
|
| 78 |
export default DeliveryAddressRequest |
| 79 |
|
| 80 |
const styles = StyleSheet.create({ |
| Error |
Row 81, Column 3: "Delete `··`"
prettier/prettier
|
| 81 |
mainContainer: { |
| Error |
Row 82, Column 1: "Delete `····`"
prettier/prettier
|
| 82 |
//height : mvs(400), |
| Error |
Row 83, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 83 |
width: '100%', |
| Error |
Row 84, Column 1: "Delete `····`"
prettier/prettier
|
| 84 |
backgroundColor: colors.white, |
| Error |
Row 85, Column 5: "Delete `····`"
prettier/prettier
|
| 85 |
borderRadius: mvs(20), |
| Error |
Row 86, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 86 |
alignSelf: 'center', |
| Error |
Row 87, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 87 |
paddingTop: mvs(24), |
| Error |
Row 88, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 88 |
paddingBottom: mvs(20), |
| Error |
Row 89, Column 1: "Replace `········paddingHorizontal:·mvs(10)` with `····paddingHorizontal:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 89, Column 35: "Missing trailing comma."
comma-dangle
|
| 89 |
paddingHorizontal: mvs(10) |
| Error |
Row 90, Column 3: "Delete `··`"
prettier/prettier
|
| 90 |
}, |
| Error |
Row 91, Column 1: "Delete `··`"
prettier/prettier
|
| 91 |
header: { |
| Error |
Row 92, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 92 |
fontSize: mvs(20), |
| Error |
Row 93, Column 1: "Delete `····`"
prettier/prettier
|
| 93 |
color: colors.primary, |
| Error |
Row 94, Column 1: "Replace `········alignSelf:·'center'` with `····alignSelf:·'center',`"
prettier/prettier
|
| Warning |
Row 94, Column 28: "Missing trailing comma."
comma-dangle
|
| 94 |
alignSelf: 'center' |
| Error |
Row 95, Column 1: "Delete `··`"
prettier/prettier
|
| 95 |
}, |
| Error |
Row 96, Column 1: "Delete `··`"
prettier/prettier
|
| 96 |
heading: { |
| Error |
Row 97, Column 5: "Delete `····`"
prettier/prettier
|
| 97 |
fontSize: mvs(15), |
| Error |
Row 98, Column 1: "Delete `····`"
prettier/prettier
|
| 98 |
color: colors.typeHeader, |
| Error |
Row 99, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 99 |
alignSelf: 'center', |
| Error |
Row 100, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 100 |
marginTop: mvs(10), |
| Error |
Row 101, Column 1: "Replace `········textAlign:·'center'` with `····textAlign:·'center',`"
prettier/prettier
|
| Warning |
Row 101, Column 28: "Missing trailing comma."
comma-dangle
|
| 101 |
textAlign: 'center' |
| Error |
Row 102, Column 1: "Delete `··`"
prettier/prettier
|
| 102 |
}, |
| Error |
Row 103, Column 1: "Delete `··`"
prettier/prettier
|
| 103 |
productMainContainer: { |
| Error |
Row 104, Column 5: "Delete `····`"
prettier/prettier
|
| 104 |
width: '100%', |
| Error |
Row 105, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 105 |
flexDirection: 'row', |
| Error |
Row 106, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 106 |
//borderWidth : 1, |
| Error |
Row 107, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 107 |
//height : mvs(210), |
| Error |
Row 108, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 108 |
marginTop: mvs(23), |
| Error |
Row 109, Column 1: "Replace `········justifyContent:·'space-between'` with `····justifyContent:·'space-between',`"
prettier/prettier
|
| Warning |
Row 109, Column 40: "Missing trailing comma."
comma-dangle
|
| 109 |
justifyContent: 'space-between' |
| Error |
Row 110, Column 1: "Delete `··`"
prettier/prettier
|
| 110 |
}, |
| Error |
Row 111, Column 1: "Delete `··`"
prettier/prettier
|
| 111 |
productInfoContainer: { |
| Error |
Row 112, Column 1: "Delete `····`"
prettier/prettier
|
| 112 |
width: '49%', |
| Error |
Row 113, Column 5: "Delete `····`"
prettier/prettier
|
| 113 |
//borderWidth : 1, |
| Error |
Row 114, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 114 |
//paddingLeft : mvs(9) |
| Error |
Row 115, Column 1: "Delete `··`"
prettier/prettier
|
| 115 |
}, |
| Error |
Row 116, Column 3: "Delete `··`"
prettier/prettier
|
| 116 |
name: { |
| Error |
Row 117, Column 1: "Delete `····`"
prettier/prettier
|
| 117 |
fontSize: mvs(12), |
| Error |
Row 118, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 118 |
color: colors.typeHeader, |
| Error |
Row 119, Column 1: "Replace `········marginTop:·mvs(28)` with `····marginTop:·mvs(28),`"
prettier/prettier
|
| Warning |
Row 119, Column 27: "Missing trailing comma."
comma-dangle
|
| 119 |
marginTop: mvs(28) |
| Error |
Row 120, Column 1: "Delete `··`"
prettier/prettier
|
| 120 |
}, |
| Error |
Row 121, Column 1: "Delete `··`"
prettier/prettier
|
| 121 |
site: { |
| Error |
Row 122, Column 5: "Delete `····`"
prettier/prettier
|
| 122 |
fontSize: mvs(12), |
| Error |
Row 123, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 123 |
color: colors.primary, |
| Error |
Row 124, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 124 |
marginTop: mvs(9), |
| Error |
Row 125, Column 3: "Delete `··`"
prettier/prettier
|
| 125 |
}, |
| Error |
Row 126, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 126 |
priceContainer: { |
| Error |
Row 127, Column 1: "Delete `····`"
prettier/prettier
|
| 127 |
height: mvs(25), |
| Error |
Row 128, Column 5: "Delete `····`"
prettier/prettier
|
| 128 |
width: '100%', |
| Error |
Row 129, Column 1: "Delete `····`"
prettier/prettier
|
| 129 |
borderTopWidth: mvs(0.5), |
| Error |
Row 130, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 130 |
borderBottomWidth: mvs(0.5), |
| Error |
Row 131, Column 1: "Delete `····`"
prettier/prettier
|
| 131 |
borderColor: colors.horizontalLine, |
| Error |
Row 132, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 132 |
marginTop: mvs(10), |
| Error |
Row 133, Column 1: "Delete `····`"
prettier/prettier
|
| 133 |
flexDirection: 'row', |
| Error |
Row 134, Column 1: "Delete `····`"
prettier/prettier
|
| 134 |
justifyContent: 'space-between', |
| Error |
Row 135, Column 5: "Replace `····alignItems:·'center'` with `alignItems:·'center',`"
prettier/prettier
|
| Warning |
Row 135, Column 29: "Missing trailing comma."
comma-dangle
|
| 135 |
alignItems: 'center' |
| Error |
Row 136, Column 3: "Delete `··`"
prettier/prettier
|
| 136 |
}, |
| Error |
Row 137, Column 1: "Delete `··`"
prettier/prettier
|
| 137 |
price: { |
| Error |
Row 138, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 138 |
fontSize: mvs(12), |
| Error |
Row 139, Column 1: "Replace `········color:·colors.typeHeader` with `····color:·colors.typeHeader,`"
prettier/prettier
|
| Warning |
Row 139, Column 33: "Missing trailing comma."
comma-dangle
|
| 139 |
color: colors.typeHeader |
| Error |
Row 140, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 140 |
}, |
| Error |
Row 141, Column 1: "Delete `··`"
prettier/prettier
|
| 141 |
rewardContainer: { |
| Error |
Row 142, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 142 |
//height : mvs(25), |
| Error |
Row 143, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 143 |
width: '100%', |
| Error |
Row 144, Column 1: "Delete `····`"
prettier/prettier
|
| 144 |
marginTop: mvs(13), |
| Error |
Row 145, Column 5: "Delete `····`"
prettier/prettier
|
| 145 |
flexDirection: 'row', |
| Error |
Row 146, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 146 |
justifyContent: 'space-between', |
| Error |
Row 147, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 147 |
alignItems: 'flex-end', |
| Error |
Row 148, Column 3: "Delete `··`"
prettier/prettier
|
| 148 |
}, |
| Error |
Row 149, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 149 |
rewardTitle: { |
| Error |
Row 150, Column 1: "Delete `····`"
prettier/prettier
|
| 150 |
fontSize: mvs(12), |
| Error |
Row 151, Column 1: "Replace `········color:·colors.primary` with `····color:·colors.primary,`"
prettier/prettier
|
| Warning |
Row 151, Column 30: "Missing trailing comma."
comma-dangle
|
| 151 |
color: colors.primary |
| Error |
Row 152, Column 1: "Delete `··`"
prettier/prettier
|
| 152 |
}, |
| Error |
Row 153, Column 1: "Delete `··`"
prettier/prettier
|
| 153 |
reward: { |
| Error |
Row 154, Column 5: "Delete `····`"
prettier/prettier
|
| 154 |
fontSize: mvs(18), |
| Error |
Row 155, Column 1: "Replace `········color:·colors.primary` with `····color:·colors.primary,`"
prettier/prettier
|
| Warning |
Row 155, Column 30: "Missing trailing comma."
comma-dangle
|
| 155 |
color: colors.primary |
| Error |
Row 156, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 156 |
}, |
| Error |
Row 157, Column 1: "Delete `··`"
prettier/prettier
|
| 157 |
routeMainContainer: { |
| Error |
Row 158, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 158 |
//borderWidth : 1, |
| Error |
Row 159, Column 5: "Replace `····width:·"100%"` with `width:·'100%'`"
prettier/prettier
|
| Warning |
Row 159, Column 16: "Strings must use singlequote."
quotes
|
| 159 |
width: "100%", |
| Error |
Row 160, Column 1: "Delete `····`"
prettier/prettier
|
| 160 |
marginTop: mvs(15), |
| Error |
Row 161, Column 1: "Replace `········minHeight:·mvs(54)` with `····minHeight:·mvs(54),`"
prettier/prettier
|
| Warning |
Row 161, Column 27: "Missing trailing comma."
comma-dangle
|
| 161 |
minHeight: mvs(54) |
| Error |
Row 162, Column 1: "Delete `··`"
prettier/prettier
|
| 162 |
}, |
| Error |
Row 163, Column 1: "Delete `··`"
prettier/prettier
|
| 163 |
buttonsContainer: { |
| Error |
Row 164, Column 5: "Delete `····`"
prettier/prettier
|
| 164 |
width: '100%', |
| Error |
Row 165, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 165 |
marginTop: mvs(25), |
| Error |
Row 166, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 166 |
//borderWidth : 1, |
| Error |
Row 167, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 167 |
flexDirection: 'row', |
| Error |
Row 168, Column 1: "Delete `····`"
prettier/prettier
|
| 168 |
justifyContent: 'space-between', |
| Error |
Row 169, Column 3: "Delete `··`"
prettier/prettier
|
| 169 |
}, |
| Error |
Row 170, Column 1: "Delete `··`"
prettier/prettier
|
| 170 |
button: { |
| Error |
Row 171, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 171 |
height: mvs(52), |
| Error |
Row 172, Column 5: "Replace `····width:·"49%"` with `width:·'49%'`"
prettier/prettier
|
| Warning |
Row 172, Column 16: "Strings must use singlequote."
quotes
|
| 172 |
width: "49%", |
| Error |
Row 173, Column 1: "Delete `····`"
prettier/prettier
|
| 173 |
//borderWidth : 1 |
| Error |
Row 174, Column 3: "Delete `··`"
prettier/prettier
|
| 174 |
}, |
| Error |
Row 175, Column 1: "Delete `··`"
prettier/prettier
|
| 175 |
deliveryOption: { |
| Error |
Row 176, Column 5: "Delete `····`"
prettier/prettier
|
| 176 |
borderWidth: mvs(0.5), |
| Error |
Row 177, Column 1: "Delete `····`"
prettier/prettier
|
| 177 |
paddingHorizontal: mvs(10), |
| Error |
Row 178, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 178 |
paddingVertical: mvs(11), |
| Error |
Row 179, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 179 |
borderRadius: mvs(10), |
| Error |
Row 180, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 180 |
borderColor: colors.lightgrey2, |
| Error |
Row 181, Column 5: "Delete `····`"
prettier/prettier
|
| 181 |
marginTop: mvs(33), |
| Error |
Row 182, Column 3: "Replace `··}` with `},`"
prettier/prettier
|
| Warning |
Row 182, Column 6: "Missing trailing comma."
comma-dangle
|
| 182 |
} |
| Error |
Row 183, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 183, Column 3: "Missing semicolon."
semi
|
| 183 |
}) |
| 184 |
|
|
|
|
/src/components/molecules/modals/delivery-address-requested.js
|
70 problems (38 errors, 32 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·useNavigation·` with `useNavigation`"
prettier/prettier
|
| Error |
Row 7, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 9, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 12, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| Warning |
Row 13, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| Error |
Row 27, Column 13: "Replace `=` with `·=·`"
prettier/prettier
|
| Warning |
Row 27, Column 13: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 52, Column 13: "'location' is already declared in the upper scope."
no-shadow
|
| Error |
Row 57, Column 32: "Replace `·...e,·selected:·false·` with `...e,·selected:·false`"
prettier/prettier
|
| Error |
Row 82, Column 18: "Replace `·...copy[0],·selected:·false·` with `...copy[0],·selected:·false`"
prettier/prettier
|
| Error |
Row 85, Column 6: "React Hook React.useEffect has a missing dependency: 'addressesList'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 89, Column 30: "Replace `·...e,·selected:·false·` with `...e,·selected:·false`"
prettier/prettier
|
| Error |
Row 96, Column 53: "Insert `,`"
prettier/prettier
|
| Warning |
Row 96, Column 53: "Missing trailing comma."
comma-dangle
|
| Error |
Row 97, Column 9: "Insert `;`"
prettier/prettier
|
| Warning |
Row 97, Column 9: "Missing semicolon."
semi
|
| Error |
Row 108, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 110, Column 9: "Replace `deliveryAddress·!==·undefined·&&·Object.keys(deliveryAddress).length·>·0` with `⏎······deliveryAddress·!==·undefined·&&⏎······Object.keys(deliveryAddress).length·>·0⏎····`"
prettier/prettier
|
| Error |
Row 111, Column 43: "Insert `;`"
prettier/prettier
|
| Warning |
Row 111, Column 43: "Missing semicolon."
semi
|
| Error |
Row 113, Column 24: "Insert `;`"
prettier/prettier
|
| Warning |
Row 113, Column 24: "Missing semicolon."
semi
|
| Error |
Row 117, Column 23: "Replace `=()=>` with `·=·()·=>·`"
prettier/prettier
|
| Warning |
Row 117, Column 23: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 118, Column 5: "Expected space(s) after "if"."
keyword-spacing
|
| Error |
Row 118, Column 7: "Replace `(location&&Object.keys(location).length>0)` with `·(location·&&·Object.keys(location).length·>·0)·`"
prettier/prettier
|
| Warning |
Row 118, Column 16: "Operator '&&' must be spaced."
space-infix-ops
|
| Warning |
Row 118, Column 46: "Operator '>' must be spaced."
space-infix-ops
|
| Error |
Row 120, Column 6: "Replace `else` with `·else·`"
prettier/prettier
|
| Warning |
Row 120, Column 6: "Expected space(s) before "else"."
keyword-spacing
|
| Warning |
Row 120, Column 6: "Expected space(s) after "else"."
keyword-spacing
|
| Error |
Row 127, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 127, Column 4: "Missing semicolon."
semi
|
| Warning |
Row 135, Column 14: "Inline style: { margin: 0 }"
react-native/no-inline-styles
|
| Error |
Row 136, Column 1: "Replace `········prettier/prettier
|
| Warning |
Row 141, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 143, Column 22: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 144, Column 15: "Delete `··`"
prettier/prettier
|
| Error |
Row 145, Column 1: "Replace `················:·`Delivery·${order_step?'Confirmation':` with `··············:·`Delivery·${order_step·?·'Confirmation'·:·`"
prettier/prettier
|
| Warning |
Row 145, Column 41: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 149, Column 15: "Expected '!==' and instead saw '!='."
eqeqeq
|
| Warning |
Row 152, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 153, Column 19: "Strings must use singlequote."
quotes
|
| Error |
Row 154, Column 17: "Insert `:·`"
prettier/prettier
|
| Error |
Row 155, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 156, Column 17: "Replace `:`Delivery·${order_step?'confirmation·request·was·sent·to·buyer.·You·will·be·notified·when·it’s·confirmed.':'Address·was·requested.\n·You·are·almost·done.'` with `··`Delivery·${⏎····················order_step⏎······················?·'confirmation·request·was·sent·to·buyer.·You·will·be·notified·when·it’s·confirmed.'⏎······················:·'Address·was·requested.\n·You·are·almost·done.'⏎··················`"
prettier/prettier
|
| Warning |
Row 156, Column 17: "Operator ':' must be spaced."
space-infix-ops
|
| Warning |
Row 156, Column 40: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 189, Column 15: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 191, Column 27: "Replace `·marginTop:·mvs(23)·` with `marginTop:·mvs(23)`"
prettier/prettier
|
| Error |
Row 201, Column 71: "Insert `⏎····················`"
prettier/prettier
|
| Error |
Row 202, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 204, Column 27: "Replace `·...styles.deliveryOption,·marginTop:·mvs(10)·` with `...styles.deliveryOption,·marginTop:·mvs(10)`"
prettier/prettier
|
| Error |
Row 206, Column 33: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 226, Column 23: "Replace `·...styles.deliveryOption,·marginTop:·mvs(10)·` with `...styles.deliveryOption,·marginTop:·mvs(10)`"
prettier/prettier
|
| Error |
Row 239, Column 25: "Replace `deliveryAddress?.fulladdress·||·"Choose·location·on·map"` with `⏎················deliveryAddress?.fulladdress·||·'Choose·location·on·map'⏎··············`"
prettier/prettier
|
| Warning |
Row 239, Column 57: "Strings must use singlequote."
quotes
|
| Error |
Row 240, Column 23: "Replace `·...styles.deliveryOption,·marginTop:·mvs(10),` with `...styles.deliveryOption,·marginTop:·mvs(10)`"
prettier/prettier
|
| Warning |
Row 240, Column 68: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 260, Column 1: "Delete `⏎`"
prettier/prettier
|
| Warning |
Row 262, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 262, Column 37: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 265, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 267, Column 24: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 268, Column 17: "Delete `··`"
prettier/prettier
|
| Error |
Row 269, Column 1: "Replace `··················` with `················`"
prettier/prettier
|
| Error |
Row 274, Column 21: "Replace `·marginTop:·mvs(30)·` with `marginTop:·mvs(30)`"
prettier/prettier
|
| Error |
Row 281, Column 21: "Replace `·marginTop:·mvs(10)·` with `marginTop:·mvs(10)`"
prettier/prettier
|
| Error |
Row 316, Column 15: "Replace `'center'` with `·'center',`"
prettier/prettier
|
| Warning |
Row 316, Column 23: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| 1 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| Error |
Row 2, Column 9: "Replace `·useNavigation·` with `useNavigation`"
prettier/prettier
|
| 2 |
import { useNavigation } from '@react-navigation/native'; |
| 3 |
import React from 'react'; |
| 4 |
import {Linking, StyleSheet, View} from 'react-native'; |
| 5 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 6 |
import ReactNativeModal from 'react-native-modal'; |
| Error |
Row 7, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 7 |
import { connect } from 'react-redux'; |
| 8 |
import colors from '../../../config/colors'; |
| Error |
Row 9, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 9 |
import { mvs } from '../../../config/metrices'; |
| 10 |
import Regular from '../../../presentation/typography/regular-text'; |
| 11 |
import Buttons from '../../atoms/Button'; |
| Warning |
Row 12, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| 12 |
import CustomSwitch from '../../atoms/Switch'; |
| Warning |
Row 13, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| 13 |
import SettingCard from '../setting_card/setting-card'; |
| 14 |
|
| 15 |
const DeliveryAddressRequested = ({ |
| 16 |
visible, |
| 17 |
onClose, |
| 18 |
title, |
| 19 |
image, |
| 20 |
name, |
| 21 |
settingCard = false, |
| 22 |
backButton = false, |
| 23 |
step = 1, |
| 24 |
backButtonTitle = 'Back', |
| 25 |
onNext, |
| 26 |
deliveryAddress, |
| Error |
Row 27, Column 13: "Replace `=` with `·=·`"
prettier/prettier
|
| Warning |
Row 27, Column 13: "Operator '=' must be spaced."
space-infix-ops
|
| 27 |
order_step=false, |
| 28 |
...props |
| 29 |
}) => { |
| 30 |
const navigation = useNavigation(); |
| 31 |
const [payload, setPayload] = React.useState({ |
| 32 |
isPromotionEmail: true, |
| 33 |
isLocationServices: true, |
| 34 |
isOrderEmail: true, |
| 35 |
isSms: true, |
| 36 |
home: false, |
| 37 |
work: false, |
| 38 |
current: false, |
| 39 |
different: false, |
| 40 |
//step: step |
| 41 |
}); |
| 42 |
const [addressesList, setAddressesList] = React.useState( |
| 43 |
props?.addressesList || [], |
| 44 |
); |
| 45 |
const alertRef = React.useRef(); |
| 46 |
const [locationLoader, setLocationLoader] = React.useState(false); |
| 47 |
const [location, setLocation] = React.useState({}); |
| 48 |
const fetchCurrenLocation = async () => { |
| 49 |
try { |
| 50 |
setLocationLoader(true); |
| 51 |
await UI_API._requestLocationPermission(alertRef, Linking); |
| Warning |
Row 52, Column 13: "'location' is already declared in the upper scope."
no-shadow
|
| 52 |
const location = await UI_API._get_current_location(); |
| 53 |
// console.log('location :: ', location); |
| 54 |
if (location) { |
| 55 |
setLocation(location); |
| 56 |
let copy = [...addressesList]; |
| Error |
Row 57, Column 32: "Replace `·...e,·selected:·false·` with `...e,·selected:·false`"
prettier/prettier
|
| 57 |
copy = copy.map(e => ({ ...e, selected: false })); |
| 58 |
|
| 59 |
setAddressesList(copy); |
| 60 |
setPayload({ |
| 61 |
home: false, |
| 62 |
work: false, |
| 63 |
current: true, |
| 64 |
different: false, |
| 65 |
step: 1, |
| 66 |
}); |
| 67 |
} |
| 68 |
setLocationLoader(false); |
| 69 |
} catch (error) { |
| 70 |
setLocationLoader(false); |
| 71 |
alertRef.current.alertWithType( |
| 72 |
'error', |
| 73 |
'Error', |
| 74 |
UI_API._returnError(error), |
| 75 |
); |
| 76 |
} |
| 77 |
}; |
| 78 |
|
| 79 |
React.useEffect(() => { |
| 80 |
if (addressesList?.length > 1) { |
| 81 |
const copy = [...addressesList]; |
| Error |
Row 82, Column 18: "Replace `·...copy[0],·selected:·false·` with `...copy[0],·selected:·false`"
prettier/prettier
|
| 82 |
copy[0] = { ...copy[0], selected: false }; |
| 83 |
setAddressesList(copy); |
| 84 |
} |
| Error |
Row 85, Column 6: "React Hook React.useEffect has a missing dependency: 'addressesList'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 85 |
}, []); |
| 86 |
const onChangeSlection = (item, index) => { |
| 87 |
try { |
| 88 |
let copy = [...addressesList]; |
| Error |
Row 89, Column 30: "Replace `·...e,·selected:·false·` with `...e,·selected:·false`"
prettier/prettier
|
| 89 |
copy = copy.map(e => ({ ...e, selected: false })); |
| 90 |
if (item && index !== undefined) { |
| 91 |
item.selected = true; |
| 92 |
copy[index] = item; |
| 93 |
} |
| 94 |
setLocation({ |
| 95 |
latitude: item?.lat_long?.split(',')[0] * 1, |
| Error |
Row 96, Column 53: "Insert `,`"
prettier/prettier
|
| Warning |
Row 96, Column 53: "Missing trailing comma."
comma-dangle
|
| 96 |
longitude: item?.lat_long?.split(',')[1] * 1 |
| Error |
Row 97, Column 9: "Insert `;`"
prettier/prettier
|
| Warning |
Row 97, Column 9: "Missing semicolon."
semi
|
| 97 |
}) |
| 98 |
setAddressesList(copy); |
| 99 |
} catch (error) { |
| 100 |
alertRef.current.alertWithType( |
| 101 |
'error', |
| 102 |
'Error', |
| 103 |
UI_API._returnError(error), |
| 104 |
); |
| 105 |
} |
| 106 |
}; |
| 107 |
|
| Error |
Row 108, Column 1: "Delete `⏎`"
prettier/prettier
|
| 108 |
|
| 109 |
React.useEffect(() => { |
| Error |
Row 110, Column 9: "Replace `deliveryAddress·!==·undefined·&&·Object.keys(deliveryAddress).length·>·0` with `⏎······deliveryAddress·!==·undefined·&&⏎······Object.keys(deliveryAddress).length·>·0⏎····`"
prettier/prettier
|
| 110 |
if (deliveryAddress !== undefined && Object.keys(deliveryAddress).length > 0) { |
| Error |
Row 111, Column 43: "Insert `;`"
prettier/prettier
|
| Warning |
Row 111, Column 43: "Missing semicolon."
semi
|
| 111 |
setLocation(deliveryAddress?.region) |
| 112 |
} |
| Error |
Row 113, Column 24: "Insert `;`"
prettier/prettier
|
| Warning |
Row 113, Column 24: "Missing semicolon."
semi
|
| 113 |
}, [deliveryAddress]) |
| 114 |
|
| 115 |
// console.log(location) |
| 116 |
|
| Error |
Row 117, Column 23: "Replace `=()=>` with `·=·()·=>·`"
prettier/prettier
|
| Warning |
Row 117, Column 23: "Operator '=' must be spaced."
space-infix-ops
|
| 117 |
const onSendLocation=()=>{ |
| Warning |
Row 118, Column 5: "Expected space(s) after "if"."
keyword-spacing
|
| Error |
Row 118, Column 7: "Replace `(location&&Object.keys(location).length>0)` with `·(location·&&·Object.keys(location).length·>·0)·`"
prettier/prettier
|
| Warning |
Row 118, Column 16: "Operator '&&' must be spaced."
space-infix-ops
|
| Warning |
Row 118, Column 46: "Operator '>' must be spaced."
space-infix-ops
|
| 118 |
if(location&&Object.keys(location).length>0){ |
| 119 |
onNext(location); |
| Error |
Row 120, Column 6: "Replace `else` with `·else·`"
prettier/prettier
|
| Warning |
Row 120, Column 6: "Expected space(s) before "else"."
keyword-spacing
|
| Warning |
Row 120, Column 6: "Expected space(s) after "else"."
keyword-spacing
|
| 120 |
}else{ |
| 121 |
alertRef.current.alertWithType( |
| 122 |
'error', |
| 123 |
'Error', |
| 124 |
'Oops! It seems you have forgot to select delivery location.', |
| 125 |
); |
| 126 |
} |
| Error |
Row 127, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 127, Column 4: "Missing semicolon."
semi
|
| 127 |
} |
| 128 |
return ( |
| 129 |
<ReactNativeModal |
| 130 |
propagateSwipe |
| 131 |
isVisible={visible} |
| 132 |
avoidKeyboard |
| 133 |
onBackdropPress={() => onClose(false)} |
| 134 |
onBackButtonPress={() => onClose(false)} |
| Warning |
Row 135, Column 14: "Inline style: { margin: 0 }"
react-native/no-inline-styles
|
| 135 |
style={{margin: 0, paddingHorizontal: mvs(11)}}> |
| Error |
Row 136, Column 1: "Replace `········prettier/prettier
|
| 136 |
<DropdownAlert ref={alertRef}/> |
| 137 |
<View style={styles.mainContainer}> |
| 138 |
{/* {console.log('props.deliveryAddress', props?.deliveryAddress)} */} |
| 139 |
<Regular |
| 140 |
label={ |
| Warning |
Row 141, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| 141 |
step == 1 |
| 142 |
? 'Delivery Addresses' |
| Warning |
Row 143, Column 22: "Expected '===' and instead saw '=='."
eqeqeq
|
| 143 |
: step == 2 |
| Error |
Row 144, Column 15: "Delete `··`"
prettier/prettier
|
| 144 |
? 'Successful' |
| Error |
Row 145, Column 1: "Replace `················:·`Delivery·${order_step?'Confirmation':` with `··············:·`Delivery·${order_step·?·'Confirmation'·:·`"
prettier/prettier
|
| Warning |
Row 145, Column 41: "Operator '?' must be spaced."
space-infix-ops
|
| 145 |
: `Delivery ${order_step?'Confirmation':'Address Requested'}` |
| 146 |
} |
| 147 |
style={styles.header} |
| 148 |
/> |
| Warning |
Row 149, Column 15: "Expected '!==' and instead saw '!='."
eqeqeq
|
| 149 |
{step != 1 && ( |
| 150 |
<Regular |
| 151 |
label={ |
| Warning |
Row 152, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| 152 |
step == 0 |
| Warning |
Row 153, Column 19: "Strings must use singlequote."
quotes
|
| 153 |
? `Delivery Address was requested by the \n deliverer. Please choose an address.` |
| Error |
Row 154, Column 17: "Insert `:·`"
prettier/prettier
|
| 154 |
// : step == 3? |
| Error |
Row 155, Column 1: "Insert `··`"
prettier/prettier
|
| 155 |
// `Delivery Address was requested.\n You are almost done.` |
| Error |
Row 156, Column 17: "Replace `:`Delivery·${order_step?'confirmation·request·was·sent·to·buyer.·You·will·be·notified·when·it’s·confirmed.':'Address·was·requested.\n·You·are·almost·done.'` with `··`Delivery·${⏎····················order_step⏎······················?·'confirmation·request·was·sent·to·buyer.·You·will·be·notified·when·it’s·confirmed.'⏎······················:·'Address·was·requested.\n·You·are·almost·done.'⏎··················`"
prettier/prettier
|
| Warning |
Row 156, Column 17: "Operator ':' must be spaced."
space-infix-ops
|
| Warning |
Row 156, Column 40: "Operator '?' must be spaced."
space-infix-ops
|
| 156 |
:`Delivery ${order_step?'confirmation request was sent to buyer. You will be notified when it’s confirmed.':'Address was requested.\n You are almost done.'}` |
| 157 |
} |
| 158 |
style={styles.heading} |
| 159 |
/> |
| 160 |
)} |
| 161 |
|
| 162 |
{/* {step == 0 && ( |
| 163 |
<SettingCard |
| 164 |
heading="Make sure your notifications are on" |
| 165 |
headingStyle={{ alignSelf: 'center' }} |
| 166 |
style={{ |
| 167 |
marginTop: mvs(43), |
| 168 |
paddingTop: mvs(13), |
| 169 |
paddingBottom: mvs(7), |
| 170 |
}}> |
| 171 |
<CustomSwitch |
| 172 |
value={payload.isOrderEmail} |
| 173 |
label={'Email'} |
| 174 |
textStyle={{ color: colors.primary }} |
| 175 |
onChange={v => setPayload({ ...payload, isOrderEmail: v })} |
| 176 |
style={{ marginTop: mvs(13) }} |
| 177 |
/> |
| 178 |
<CustomSwitch |
| 179 |
style={{ marginTop: mvs(28) }} |
| 180 |
value={payload.isSms} |
| 181 |
label={'SMS'} |
| 182 |
textStyle={{ color: colors.primary }} |
| 183 |
onChange={v => setPayload({ ...payload, isSms: v })} |
| 184 |
style={{ marginTop: mvs(10) }} |
| 185 |
/> |
| 186 |
</SettingCard> |
| 187 |
)} */} |
| 188 |
|
| Warning |
Row 189, Column 15: "Expected '===' and instead saw '=='."
eqeqeq
|
| 189 |
{step == 1 && ( |
| 190 |
<> |
| Error |
Row 191, Column 27: "Replace `·marginTop:·mvs(23)·` with `marginTop:·mvs(23)`"
prettier/prettier
|
| 191 |
<View style={{ marginTop: mvs(23) }}> |
| 192 |
{addressesList?.slice(0, 2)?.map((ele, index) => ( |
| 193 |
<Buttons.ButtonDeliveryLocation |
| 194 |
title={ele?.type} //name |
| 195 |
iconName="locationActive" |
| 196 |
titleStyle={{ |
| 197 |
color: payload.home ? colors.primary : colors.typeHeader, |
| 198 |
}} |
| 199 |
isTick={ele.selected} |
| 200 |
// subTitle="5 St. 4 lane, Salmiya" |
| Error |
Row 201, Column 71: "Insert `⏎····················`"
prettier/prettier
|
| 201 |
subTitle={`${ele?.street}${ele?.street && ' St.,'}${ele?.city |
| Error |
Row 202, Column 1: "Delete `··`"
prettier/prettier
|
| 202 |
}${ele?.country && ','} ${ele?.country}`} |
| 203 |
blue={true} |
| Error |
Row 204, Column 27: "Replace `·...styles.deliveryOption,·marginTop:·mvs(10)·` with `...styles.deliveryOption,·marginTop:·mvs(10)`"
prettier/prettier
|
| 204 |
style={{ ...styles.deliveryOption, marginTop: mvs(10) }} |
| 205 |
onClick={() => { |
| Error |
Row 206, Column 33: "Delete `⏎`"
prettier/prettier
|
| 206 |
setPayload({ |
| 207 |
|
| 208 |
current: false, |
| 209 |
different: false, |
| 210 |
step: 1, |
| 211 |
}); |
| 212 |
onChangeSlection(ele, index); |
| 213 |
}} |
| 214 |
/> |
| 215 |
))} |
| 216 |
</View> |
| 217 |
<Buttons.ButtonDeliveryLocation |
| 218 |
title="Deliver to current location" |
| 219 |
iconName="anyBlue" |
| 220 |
isTick={payload.current} |
| 221 |
titleStyle={{ |
| 222 |
color: payload.current ? colors.primary : colors.typeHeader, |
| 223 |
}} |
| 224 |
blue={true} |
| 225 |
subTitle="Allow Taketo to access your location" |
| Error |
Row 226, Column 23: "Replace `·...styles.deliveryOption,·marginTop:·mvs(10)·` with `...styles.deliveryOption,·marginTop:·mvs(10)`"
prettier/prettier
|
| 226 |
style={{ ...styles.deliveryOption, marginTop: mvs(10) }} |
| 227 |
onClick={fetchCurrenLocation} |
| 228 |
/> |
| 229 |
{/* {console.log('deliveryAddress ::',deliveryAddress)} */} |
| 230 |
|
| 231 |
<Buttons.ButtonDeliveryLocation |
| 232 |
title="Deliver to a different location" |
| 233 |
iconName="anyBlue" |
| 234 |
isTick={payload.different} |
| 235 |
titleStyle={{ |
| 236 |
color: payload.different ? colors.primary : colors.typeHeader, |
| 237 |
}} |
| 238 |
blue={true} |
| Error |
Row 239, Column 25: "Replace `deliveryAddress?.fulladdress·||·"Choose·location·on·map"` with `⏎················deliveryAddress?.fulladdress·||·'Choose·location·on·map'⏎··············`"
prettier/prettier
|
| Warning |
Row 239, Column 57: "Strings must use singlequote."
quotes
|
| 239 |
subTitle={deliveryAddress?.fulladdress || "Choose location on map"} |
| Error |
Row 240, Column 23: "Replace `·...styles.deliveryOption,·marginTop:·mvs(10),` with `...styles.deliveryOption,·marginTop:·mvs(10)`"
prettier/prettier
|
| Warning |
Row 240, Column 68: "Unexpected trailing comma."
comma-dangle
|
| 240 |
style={{ ...styles.deliveryOption, marginTop: mvs(10),}} |
| 241 |
onClick={() => { |
| 242 |
setPayload({ |
| 243 |
home: false, |
| 244 |
work: false, |
| 245 |
current: false, |
| 246 |
different: true, |
| 247 |
step: 1, |
| 248 |
}); |
| 249 |
|
| 250 |
onChangeSlection(); |
| 251 |
|
| 252 |
onClose(); |
| 253 |
navigation.navigate('deliveryaddress'); |
| 254 |
}} |
| 255 |
/> |
| 256 |
</> |
| 257 |
)} |
| 258 |
{ |
| 259 |
<Buttons.ButtonPrimary |
| Error |
Row 260, Column 1: "Delete `⏎`"
prettier/prettier
|
| 260 |
|
| 261 |
onClick={() => { |
| Warning |
Row 262, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 262, Column 37: "Expected '===' and instead saw '=='."
eqeqeq
|
| 262 |
step == 0 ? {} : step == 1 ? onSendLocation() : onNext(); |
| 263 |
}} |
| 264 |
title={ |
| Warning |
Row 265, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| 265 |
step == 0 |
| 266 |
? 'Choose Delivery Address' |
| Warning |
Row 267, Column 24: "Expected '===' and instead saw '=='."
eqeqeq
|
| 267 |
: step == 1 |
| Error |
Row 268, Column 17: "Delete `··`"
prettier/prettier
|
| 268 |
? 'Send Delivery Address' |
| Error |
Row 269, Column 1: "Replace `··················` with `················`"
prettier/prettier
|
| 269 |
: 'Back' |
| 270 |
} |
| 271 |
loading={locationLoader} |
| 272 |
disabled={locationLoader} |
| 273 |
loaderColor={colors.white} |
| Error |
Row 274, Column 21: "Replace `·marginTop:·mvs(30)·` with `marginTop:·mvs(30)`"
prettier/prettier
|
| 274 |
style={{ marginTop: mvs(30) }} |
| 275 |
/> |
| 276 |
} |
| 277 |
|
| 278 |
{backButton && ( |
| 279 |
<Buttons.ButtonSecondaryOutline |
| 280 |
title={backButtonTitle} |
| Error |
Row 281, Column 21: "Replace `·marginTop:·mvs(10)·` with `marginTop:·mvs(10)`"
prettier/prettier
|
| 281 |
style={{ marginTop: mvs(10) }} |
| 282 |
onClick={onClose} |
| 283 |
/> |
| 284 |
)} |
| 285 |
</View> |
| 286 |
</ReactNativeModal> |
| 287 |
); |
| 288 |
}; |
| 289 |
|
| 290 |
// export default DeliveryAddressRequested |
| 291 |
const mapStateToProps = state => { |
| 292 |
return { |
| 293 |
addressesList: state.auth.userInfo?.addresses || [], |
| 294 |
deliveryAddress: state.common.deliveryAddress || {}, |
| 295 |
}; |
| 296 |
}; |
| 297 |
|
| 298 |
export default connect(mapStateToProps, {})(DeliveryAddressRequested); |
| 299 |
|
| 300 |
const styles = StyleSheet.create({ |
| 301 |
mainContainer: { |
| 302 |
//height : mvs(400), |
| 303 |
width: '90%', |
| 304 |
// paddingHorizontal: mvs(11), |
| 305 |
backgroundColor: colors.white, |
| 306 |
borderRadius: mvs(20), |
| 307 |
alignSelf: 'center', |
| 308 |
paddingTop: mvs(24), |
| 309 |
paddingBottom: mvs(20), |
| 310 |
paddingHorizontal: mvs(10), |
| 311 |
}, |
| 312 |
header: { |
| 313 |
fontSize: mvs(20), |
| 314 |
color: colors.primary, |
| 315 |
alignSelf: 'center', |
| Error |
Row 316, Column 15: "Replace `'center'` with `·'center',`"
prettier/prettier
|
| Warning |
Row 316, Column 23: "Missing trailing comma."
comma-dangle
|
| 316 |
textAlign:'center' |
| 317 |
}, |
| 318 |
heading: { |
| 319 |
fontSize: mvs(15), |
| 320 |
color: colors.typeHeader, |
| 321 |
alignSelf: 'center', |
| 322 |
marginTop: mvs(10), |
| 323 |
textAlign: 'center', |
| 324 |
}, |
| 325 |
productMainContainer: { |
| 326 |
width: '100%', |
| 327 |
flexDirection: 'row', |
| 328 |
//borderWidth : 1, |
| 329 |
//height : mvs(210), |
| 330 |
marginTop: mvs(23), |
| 331 |
justifyContent: 'space-between', |
| 332 |
}, |
| 333 |
productInfoContainer: { |
| 334 |
width: '49%', |
| 335 |
//borderWidth : 1, |
| 336 |
//paddingLeft : mvs(9) |
| 337 |
}, |
| 338 |
name: { |
| 339 |
fontSize: mvs(12), |
| 340 |
color: colors.typeHeader, |
| 341 |
marginTop: mvs(28), |
| 342 |
}, |
| 343 |
site: { |
| 344 |
fontSize: mvs(12), |
| 345 |
color: colors.primary, |
| 346 |
marginTop: mvs(9), |
| 347 |
}, |
| 348 |
priceContainer: { |
| 349 |
height: mvs(25), |
| 350 |
width: '100%', |
| 351 |
borderTopWidth: mvs(0.5), |
| 352 |
borderBottomWidth: mvs(0.5), |
| 353 |
borderColor: colors.horizontalLine, |
| 354 |
marginTop: mvs(10), |
| 355 |
flexDirection: 'row', |
| 356 |
justifyContent: 'space-between', |
| 357 |
alignItems: 'center', |
| 358 |
}, |
| 359 |
price: { |
| 360 |
fontSize: mvs(12), |
| 361 |
color: colors.typeHeader, |
| 362 |
}, |
| 363 |
rewardContainer: { |
| 364 |
//height : mvs(25), |
| 365 |
width: '100%', |
| 366 |
marginTop: mvs(13), |
| 367 |
flexDirection: 'row', |
| 368 |
justifyContent: 'space-between', |
| 369 |
alignItems: 'flex-end', |
| 370 |
}, |
| 371 |
rewardTitle: { |
| 372 |
fontSize: mvs(12), |
| 373 |
color: colors.primary, |
| 374 |
}, |
| 375 |
reward: { |
| 376 |
fontSize: mvs(18), |
| 377 |
color: colors.primary, |
| 378 |
}, |
| 379 |
routeMainContainer: { |
| 380 |
//borderWidth : 1, |
| 381 |
width: '100%', |
| 382 |
marginTop: mvs(15), |
| 383 |
minHeight: mvs(54), |
| 384 |
}, |
| 385 |
buttonsContainer: { |
| 386 |
width: '100%', |
| 387 |
marginTop: mvs(25), |
| 388 |
//borderWidth : 1, |
| 389 |
flexDirection: 'row', |
| 390 |
justifyContent: 'space-between', |
| 391 |
}, |
| 392 |
button: { |
| 393 |
height: mvs(52), |
| 394 |
width: '49%', |
| 395 |
//borderWidth : 1 |
| 396 |
}, |
| 397 |
deliveryOption: { |
| 398 |
borderWidth: mvs(0.5), |
| 399 |
paddingHorizontal: mvs(10), |
| 400 |
paddingVertical: mvs(11), |
| 401 |
borderRadius: mvs(10), |
| 402 |
borderColor: colors.lightgrey2, |
| 403 |
marginTop: mvs(33), |
| 404 |
}, |
| 405 |
}); |
| 406 |
|
|
|
|
/src/components/molecules/modals/delivery-filter-modal.js
|
47 problems (35 errors, 12 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·TouchableOpacity·` with `View,·StyleSheet,·TouchableOpacity`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'TouchableOpacity' is defined but never used."
no-unused-vars
|
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 9, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 11, Column 8: "'Back' is defined but never used."
no-unused-vars
|
| Error |
Row 12, Column 31: "Replace `·visible,·onClose,·onApply,·navigation·` with `visible,·onClose,·onApply,·navigation`"
prettier/prettier
|
| Warning |
Row 30, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 30, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| Warning |
Row 32, Column 22: "Inline style: { alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 32, Column 23: "Replace `·alignItems:·'center',·paddingHorizontal:·mvs(22)·` with `alignItems:·'center',·paddingHorizontal:·mvs(22)`"
prettier/prettier
|
| Error |
Row 38, Column 23: "Replace `·marginTop:·mvs(8)·` with `marginTop:·mvs(8)`"
prettier/prettier
|
| Error |
Row 41, Column 25: "Replace `·=·{{color·:·"#54585D"` with `={{color:·'#54585D'`"
prettier/prettier
|
| Warning |
Row 41, Column 29: "Inline style: { color: '#54585D' }"
react-native/no-inline-styles
|
| Warning |
Row 41, Column 38: "Strings must use singlequote."
quotes
|
| Error |
Row 42, Column 46: "Replace `·...payload,·isNoDelivery:·value·` with `...payload,·isNoDelivery:·value`"
prettier/prettier
|
| Error |
Row 52, Column 16: "Replace `style={{·color:·colors.typeHeader·` with `·style={{color:·colors.typeHeader`"
prettier/prettier
|
| Error |
Row 54, Column 48: "Replace `·...payload,·maxPrice:·t·` with `...payload,·maxPrice:·t`"
prettier/prettier
|
| Error |
Row 59, Column 25: "Replace `·...styles.PRICE_HEADING,·color:·colors.primary·` with `...styles.PRICE_HEADING,·color:·colors.primary`"
prettier/prettier
|
| Error |
Row 63, Column 25: "Replace `·color:·colors.typeHeader·` with `color:·colors.typeHeader`"
prettier/prettier
|
| Error |
Row 65, Column 48: "Replace `·...payload,·minPrice:·t·` with `...payload,·minPrice:·t`"
prettier/prettier
|
| Warning |
Row 72, Column 26: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 72, Column 27: "Replace `·flexDirection:·'row'·` with `flexDirection:·'row'`"
prettier/prettier
|
| Error |
Row 74, Column 30: "Replace `color:payload.isThirtyDays?colors.primary:colors.typeHeader` with `⏎··················color:·payload.isThirtyDays⏎····················?·colors.primary⏎····················:·colors.typeHeader,⏎················`"
prettier/prettier
|
| Warning |
Row 74, Column 56: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 75, Column 46: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 90, Column 30: "Replace `color:payload.isThreeWeeks?colors.primary:colors.typeHeader` with `⏎··················color:·payload.isThreeWeeks⏎····················?·colors.primary⏎····················:·colors.typeHeader,⏎················`"
prettier/prettier
|
| Warning |
Row 90, Column 56: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 91, Column 25: "Replace `·marginLeft:·mvs(45)·` with `marginLeft:·mvs(45)`"
prettier/prettier
|
| Warning |
Row 106, Column 26: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 106, Column 27: "Replace `·flexDirection:·'row',·marginTop:·mvs(8)·` with `flexDirection:·'row',·marginTop:·mvs(8)`"
prettier/prettier
|
| Error |
Row 108, Column 30: "Replace `color:payload.isTwoWeeks?colors.primary:colors.typeHeader` with `⏎··················color:·payload.isTwoWeeks⏎····················?·colors.primary⏎····················:·colors.typeHeader,⏎················`"
prettier/prettier
|
| Warning |
Row 108, Column 54: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 123, Column 30: "Replace `color:payload.isNinetyDays?colors.primary:colors.typeHeader` with `⏎··················color:·payload.isNinetyDays⏎····················?·colors.primary⏎····················:·colors.typeHeader,⏎················`"
prettier/prettier
|
| Warning |
Row 123, Column 56: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 124, Column 25: "Replace `·marginLeft:·mvs(45)·` with `marginLeft:·mvs(45)`"
prettier/prettier
|
| Error |
Row 141, Column 28: "Replace `·color:·colors.pink·` with `color:·colors.pink`"
prettier/prettier
|
| Error |
Row 142, Column 23: "Replace `·marginTop:·mvs(8)·` with `marginTop:·mvs(8)`"
prettier/prettier
|
| Error |
Row 145, Column 33: "Insert `⏎···············`"
prettier/prettier
|
| Error |
Row 146, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 147, Column 17: "Insert `··`"
prettier/prettier
|
| Error |
Row 148, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| Error |
Row 149, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 150, Column 17: "Insert `··`"
prettier/prettier
|
| Error |
Row 151, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| Error |
Row 152, Column 15: "Replace `})` with `··})⏎··············`"
prettier/prettier
|
| Error |
Row 163, Column 23: "Replace `·...styles.BUTTON·` with `...styles.BUTTON`"
prettier/prettier
|
| Error |
Row 270, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·TouchableOpacity·` with `View,·StyleSheet,·TouchableOpacity`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'TouchableOpacity' is defined but never used."
no-unused-vars
|
| 2 |
import { View, StyleSheet, TouchableOpacity } from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| 4 |
import colors from '../../../config/colors'; |
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 5 |
import { mvs } from '../../../config/metrices'; |
| 6 |
import Medium from '../../../presentation/typography/medium-text'; |
| 7 |
import Regular from '../../../presentation/typography/regular-text'; |
| 8 |
import Buttons from '../../atoms/Button'; |
| Error |
Row 9, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 9 |
import { TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| 10 |
import CustomRadio from '../../atoms/RadioButton'; |
| Warning |
Row 11, Column 8: "'Back' is defined but never used."
no-unused-vars
|
| 11 |
import Back from '../../../../resource/assets/common-icons/back-white.svg'; |
| Error |
Row 12, Column 31: "Replace `·visible,·onClose,·onApply,·navigation·` with `visible,·onClose,·onApply,·navigation`"
prettier/prettier
|
| 12 |
const DeliveryFilterModal = ({ visible, onClose, onApply, navigation }) => { |
| 13 |
const [payload, setPayload] = React.useState({ |
| 14 |
isThirtyDays: true, |
| 15 |
isNinetyDays: false, |
| 16 |
isThreeWeeks: false, |
| 17 |
isTwoWeeks: false, |
| 18 |
isUrgent: false, |
| 19 |
isNoDelivery: true, |
| 20 |
maxPrice: '100', |
| 21 |
minPrice: '1000', |
| 22 |
}); |
| 23 |
return ( |
| 24 |
<ReactNativeModal |
| 25 |
propagateSwipe |
| 26 |
isVisible={visible} |
| 27 |
avoidKeyboard |
| 28 |
onBackdropPress={() => onClose()} |
| 29 |
onBackButtonPress={() => onClose()} |
| Warning |
Row 30, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 30, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| 30 |
style={{ margin: 0, padding: 0 }}> |
| 31 |
<View style={styles.CONTAINER}> |
| Warning |
Row 32, Column 22: "Inline style: { alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 32, Column 23: "Replace `·alignItems:·'center',·paddingHorizontal:·mvs(22)·` with `alignItems:·'center',·paddingHorizontal:·mvs(22)`"
prettier/prettier
|
| 32 |
<View style={{ alignItems: 'center', paddingHorizontal: mvs(22) }}> |
| 33 |
<Medium label={'Filters'} style={styles.HEADING_TXT} /> |
| 34 |
</View> |
| 35 |
<View style={styles.SUB_CONTAINER}> |
| 36 |
<View style={styles.NO_DELIVERY_CONTAINER}> |
| 37 |
<CustomRadio |
| Error |
Row 38, Column 23: "Replace `·marginTop:·mvs(8)·` with `marginTop:·mvs(8)`"
prettier/prettier
|
| 38 |
style={{ marginTop: mvs(8) }} |
| 39 |
status={payload.isNoDelivery} |
| 40 |
label={'No delivery offers'} |
| Error |
Row 41, Column 25: "Replace `·=·{{color·:·"#54585D"` with `={{color:·'#54585D'`"
prettier/prettier
|
| Warning |
Row 41, Column 29: "Inline style: { color: '#54585D' }"
react-native/no-inline-styles
|
| Warning |
Row 41, Column 38: "Strings must use singlequote."
quotes
|
| 41 |
labelStyle = {{color : "#54585D"}} |
| Error |
Row 42, Column 46: "Replace `·...payload,·isNoDelivery:·value·` with `...payload,·isNoDelivery:·value`"
prettier/prettier
|
| 42 |
onChange={value => setPayload({ ...payload, isNoDelivery: value })} |
| 43 |
/> |
| 44 |
</View> |
| 45 |
<View style={styles.PRICES_CONTAINER}> |
| 46 |
<View style={styles.MAX_MIN_PRICE}> |
| 47 |
<Regular |
| 48 |
style={styles.PRICE_HEADING} |
| 49 |
label={'Max Product Price'} |
| 50 |
/> |
| 51 |
<TAKE_TO_INPUT_FIELD.PriceInput |
| Error |
Row 52, Column 16: "Replace `style={{·color:·colors.typeHeader·` with `·style={{color:·colors.typeHeader`"
prettier/prettier
|
| 52 |
style={{ color: colors.typeHeader }} |
| 53 |
value={payload.maxPrice} |
| Error |
Row 54, Column 48: "Replace `·...payload,·maxPrice:·t·` with `...payload,·maxPrice:·t`"
prettier/prettier
|
| 54 |
onChangeText={t => setPayload({ ...payload, maxPrice: t })} |
| 55 |
/> |
| 56 |
</View> |
| 57 |
<View style={styles.MAX_MIN_PRICE}> |
| 58 |
<Regular |
| Error |
Row 59, Column 25: "Replace `·...styles.PRICE_HEADING,·color:·colors.primary·` with `...styles.PRICE_HEADING,·color:·colors.primary`"
prettier/prettier
|
| 59 |
style={{ ...styles.PRICE_HEADING, color: colors.primary }} |
| 60 |
label={'Min Reward'} |
| 61 |
/> |
| 62 |
<TAKE_TO_INPUT_FIELD.PriceInput |
| Error |
Row 63, Column 25: "Replace `·color:·colors.typeHeader·` with `color:·colors.typeHeader`"
prettier/prettier
|
| 63 |
style={{ color: colors.typeHeader }} |
| 64 |
value={payload.minPrice} |
| Error |
Row 65, Column 48: "Replace `·...payload,·minPrice:·t·` with `...payload,·minPrice:·t`"
prettier/prettier
|
| 65 |
onChangeText={t => setPayload({ ...payload, minPrice: t })} |
| 66 |
/> |
| 67 |
</View> |
| 68 |
</View> |
| 69 |
<View style={styles.DIV} /> |
| 70 |
<Regular label={'Delivery time'} style={styles.DEL_TIME} /> |
| 71 |
<View style={styles.RADIO_CONTAINER}> |
| Warning |
Row 72, Column 26: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 72, Column 27: "Replace `·flexDirection:·'row'·` with `flexDirection:·'row'`"
prettier/prettier
|
| 72 |
<View style={{ flexDirection: 'row' }}> |
| 73 |
<CustomRadio |
| Error |
Row 74, Column 30: "Replace `color:payload.isThirtyDays?colors.primary:colors.typeHeader` with `⏎··················color:·payload.isThirtyDays⏎····················?·colors.primary⏎····················:·colors.typeHeader,⏎················`"
prettier/prettier
|
| Warning |
Row 74, Column 56: "Operator '?' must be spaced."
space-infix-ops
|
| 74 |
labelStyle={{color:payload.isThirtyDays?colors.primary:colors.typeHeader}} |
| Error |
Row 75, Column 46: "Delete `⏎`"
prettier/prettier
|
| 75 |
status={payload.isThirtyDays} |
| 76 |
|
| 77 |
label={'Up to 30 days'} |
| 78 |
onChange={value => |
| 79 |
setPayload({ |
| 80 |
...payload, |
| 81 |
isThreeWeeks: !value, |
| 82 |
isNinetyDays: !value, |
| 83 |
isThirtyDays: value, |
| 84 |
isTwoWeeks: !value, |
| 85 |
isUrgent: !value, |
| 86 |
}) |
| 87 |
} |
| 88 |
/> |
| 89 |
<CustomRadio |
| Error |
Row 90, Column 30: "Replace `color:payload.isThreeWeeks?colors.primary:colors.typeHeader` with `⏎··················color:·payload.isThreeWeeks⏎····················?·colors.primary⏎····················:·colors.typeHeader,⏎················`"
prettier/prettier
|
| Warning |
Row 90, Column 56: "Operator '?' must be spaced."
space-infix-ops
|
| 90 |
labelStyle={{color:payload.isThreeWeeks?colors.primary:colors.typeHeader}} |
| Error |
Row 91, Column 25: "Replace `·marginLeft:·mvs(45)·` with `marginLeft:·mvs(45)`"
prettier/prettier
|
| 91 |
style={{ marginLeft: mvs(45) }} |
| 92 |
status={payload.isThreeWeeks} |
| 93 |
label={'Up to 3 weeks'} |
| 94 |
onChange={value => |
| 95 |
setPayload({ |
| 96 |
...payload, |
| 97 |
isThreeWeeks: value, |
| 98 |
isNinetyDays: !value, |
| 99 |
isThirtyDays: !value, |
| 100 |
isTwoWeeks: !value, |
| 101 |
isUrgent: !value, |
| 102 |
}) |
| 103 |
} |
| 104 |
/> |
| 105 |
</View> |
| Warning |
Row 106, Column 26: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 106, Column 27: "Replace `·flexDirection:·'row',·marginTop:·mvs(8)·` with `flexDirection:·'row',·marginTop:·mvs(8)`"
prettier/prettier
|
| 106 |
<View style={{ flexDirection: 'row', marginTop: mvs(8) }}> |
| 107 |
<CustomRadio |
| Error |
Row 108, Column 30: "Replace `color:payload.isTwoWeeks?colors.primary:colors.typeHeader` with `⏎··················color:·payload.isTwoWeeks⏎····················?·colors.primary⏎····················:·colors.typeHeader,⏎················`"
prettier/prettier
|
| Warning |
Row 108, Column 54: "Operator '?' must be spaced."
space-infix-ops
|
| 108 |
labelStyle={{color:payload.isTwoWeeks?colors.primary:colors.typeHeader}} |
| 109 |
status={payload.isTwoWeeks} |
| 110 |
label={'Up to 2 weeks'} |
| 111 |
onChange={value => |
| 112 |
setPayload({ |
| 113 |
...payload, |
| 114 |
isTwoWeeks: value, |
| 115 |
isThreeWeeks: !value, |
| 116 |
isThirtyDays: !value, |
| 117 |
isNinetyDays: !value, |
| 118 |
isUrgent: !value, |
| 119 |
}) |
| 120 |
} |
| 121 |
/> |
| 122 |
<CustomRadio |
| Error |
Row 123, Column 30: "Replace `color:payload.isNinetyDays?colors.primary:colors.typeHeader` with `⏎··················color:·payload.isNinetyDays⏎····················?·colors.primary⏎····················:·colors.typeHeader,⏎················`"
prettier/prettier
|
| Warning |
Row 123, Column 56: "Operator '?' must be spaced."
space-infix-ops
|
| 123 |
labelStyle={{color:payload.isNinetyDays?colors.primary:colors.typeHeader}} |
| Error |
Row 124, Column 25: "Replace `·marginLeft:·mvs(45)·` with `marginLeft:·mvs(45)`"
prettier/prettier
|
| 124 |
style={{ marginLeft: mvs(45) }} |
| 125 |
status={payload.isNinetyDays} |
| 126 |
label={'Up to 90 days'} |
| 127 |
onChange={value => |
| 128 |
setPayload({ |
| 129 |
...payload, |
| 130 |
isTwoWeeks: !value, |
| 131 |
isThreeWeeks: !value, |
| 132 |
isThirtyDays: !value, |
| 133 |
isNinetyDays: value, |
| 134 |
isUrgent: !value, |
| 135 |
}) |
| 136 |
} |
| 137 |
/> |
| 138 |
</View> |
| 139 |
<CustomRadio |
| 140 |
subLabel={' (Higher rewards)'} |
| Error |
Row 141, Column 28: "Replace `·color:·colors.pink·` with `color:·colors.pink`"
prettier/prettier
|
| 141 |
labelStyle={{ color: colors.pink }} |
| Error |
Row 142, Column 23: "Replace `·marginTop:·mvs(8)·` with `marginTop:·mvs(8)`"
prettier/prettier
|
| 142 |
style={{ marginTop: mvs(8) }} |
| 143 |
status={payload.isUrgent} |
| 144 |
label={'Urgent Deliveries'} |
| Error |
Row 145, Column 33: "Insert `⏎···············`"
prettier/prettier
|
| 145 |
onChange={value => setPayload({ |
| Error |
Row 146, Column 1: "Insert `··`"
prettier/prettier
|
| 146 |
...payload, |
| Error |
Row 147, Column 17: "Insert `··`"
prettier/prettier
|
| 147 |
isTwoWeeks: !value, |
| Error |
Row 148, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| 148 |
isThreeWeeks: !value, |
| Error |
Row 149, Column 1: "Insert `··`"
prettier/prettier
|
| 149 |
isThirtyDays: !value, |
| Error |
Row 150, Column 17: "Insert `··`"
prettier/prettier
|
| 150 |
isNinetyDays: !value, |
| Error |
Row 151, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| 151 |
isUrgent: value, |
| Error |
Row 152, Column 15: "Replace `})` with `··})⏎··············`"
prettier/prettier
|
| 152 |
})} |
| 153 |
/> |
| 154 |
</View> |
| 155 |
<View style={styles.BUTTON_CONTAINER}> |
| 156 |
<Buttons.ButtonPrimary |
| 157 |
onClick={onApply} |
| 158 |
style={styles.BUTTON} |
| 159 |
title={'Apply'} |
| 160 |
/> |
| 161 |
<Buttons.ButtonSecondayLight |
| 162 |
onClick={() => onClose()} |
| Error |
Row 163, Column 23: "Replace `·...styles.BUTTON·` with `...styles.BUTTON`"
prettier/prettier
|
| 163 |
style={{ ...styles.BUTTON }} |
| 164 |
title={'Cancel'} |
| 165 |
/> |
| 166 |
</View> |
| 167 |
</View> |
| 168 |
</View> |
| 169 |
</ReactNativeModal> |
| 170 |
); |
| 171 |
}; |
| 172 |
export default DeliveryFilterModal; |
| 173 |
const styles = StyleSheet.create({ |
| 174 |
CONTAINER: { |
| 175 |
position: 'absolute', |
| 176 |
bottom: 0, |
| 177 |
width: '100%', |
| 178 |
borderTopLeftRadius: mvs(20), |
| 179 |
borderTopRightRadius: mvs(20), |
| 180 |
backgroundColor: colors.primary, |
| 181 |
}, |
| 182 |
HEADING_TXT: { |
| 183 |
fontSize: mvs(15), |
| 184 |
color: colors.white, |
| 185 |
alignSelf: 'center', |
| 186 |
marginTop: mvs(13), |
| 187 |
marginBottom: mvs(16), |
| 188 |
}, |
| 189 |
SUB_CONTAINER: { |
| 190 |
backgroundColor: colors.white, |
| 191 |
paddingVertical: mvs(18), |
| 192 |
paddingHorizontal: mvs(22), |
| 193 |
borderTopLeftRadius: mvs(20), |
| 194 |
borderTopRightRadius: mvs(20), |
| 195 |
}, |
| 196 |
DESTINATION_CONTAINER: { |
| 197 |
alignItems: 'center', |
| 198 |
flexDirection: 'row', |
| 199 |
justifyContent: 'space-between', |
| 200 |
}, |
| 201 |
FLAG_BUTTON: { |
| 202 |
width: mvs(161), |
| 203 |
height: mvs(38), |
| 204 |
flexDirection: 'row-reverse', |
| 205 |
backgroundColor: colors.secondary, |
| 206 |
}, |
| 207 |
SEARCH_MAP: { |
| 208 |
marginTop: mvs(15), |
| 209 |
alignSelf: 'flex-end', |
| 210 |
width: mvs(161), |
| 211 |
height: mvs(38), |
| 212 |
flexDirection: 'row', |
| 213 |
backgroundColor: colors.primary, |
| 214 |
paddingHorizontal: mvs(23), |
| 215 |
}, |
| 216 |
MAP_ICON: { |
| 217 |
height: mvs(18), |
| 218 |
width: mvs(14), |
| 219 |
}, |
| 220 |
NO_DELIVERY_CONTAINER: { |
| 221 |
// borderTopWidth: StyleSheet.hairlineWidth, |
| 222 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 223 |
flexDirection: 'row', |
| 224 |
alignItems: 'center', |
| 225 |
paddingBottom: mvs(14), |
| 226 |
borderColor: colors.filter_divider, |
| 227 |
}, |
| 228 |
NoDelivery: { |
| 229 |
fontSize: mvs(15), |
| 230 |
color: colors.headerTitle, |
| 231 |
}, |
| 232 |
PRICES_CONTAINER: { |
| 233 |
marginTop: mvs(13), |
| 234 |
flexDirection: 'row', |
| 235 |
justifyContent: 'space-between', |
| 236 |
}, |
| 237 |
PRICE_HEADING: { |
| 238 |
fontSize: mvs(15), |
| 239 |
color: colors.primary, |
| 240 |
marginBottom: mvs(10), |
| 241 |
}, |
| 242 |
MAX_MIN_PRICE: { |
| 243 |
width: mvs(161), |
| 244 |
}, |
| 245 |
DIV: { |
| 246 |
marginTop: mvs(15), |
| 247 |
marginBottom: mvs(13), |
| 248 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 249 |
borderColor: colors.filter_divider, |
| 250 |
}, |
| 251 |
DEL_TIME: { |
| 252 |
color: colors.primary, |
| 253 |
fontSize: mvs(15), |
| 254 |
marginBottom: mvs(8), |
| 255 |
}, |
| 256 |
RADIO_CONTAINER: { |
| 257 |
marginBottom: mvs(30), |
| 258 |
}, |
| 259 |
RADIO_LABEL: { |
| 260 |
color: colors.headerTitle, |
| 261 |
fontSize: mvs(15), |
| 262 |
}, |
| 263 |
BUTTON_CONTAINER: { |
| 264 |
flexDirection: 'row', |
| 265 |
justifyContent: 'space-between', |
| 266 |
}, |
| 267 |
BUTTON: { |
| 268 |
width: mvs(161), |
| 269 |
}, |
| Error |
Row 270, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| 270 |
BACK: { position: 'absolute', left: mvs(23), top: mvs(17) }, |
| 271 |
}); |
| 272 |
|
|
|
|
/src/components/molecules/modals/delivery-location-modal.js
|
11 problems (6 errors, 5 warnings)
|
| Severity |
Rule |
| Error |
Row 15, Column 7: "Replace `=` with `·=·`"
prettier/prettier
|
| Warning |
Row 15, Column 7: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 16, Column 8: "Delete `⏎····`"
prettier/prettier
|
| Warning |
Row 17, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 23, Column 5: "Insert `··`"
prettier/prettier
|
| Error |
Row 24, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 25, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Warning |
Row 27, Column 22: "Inline style: { alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 38, Column 19: "Replace `··onChangeSelection(ele,` with `onChangeSelection(ele,·`"
prettier/prettier
|
| Error |
Row 40, Column 40: "Replace `?ele?.iconName:` with `·?·ele?.iconName·:·`"
prettier/prettier
|
| Warning |
Row 40, Column 40: "Operator '?' must be spaced."
space-infix-ops
|
| Line |
Source |
| 1 |
import React from 'react'; |
| 2 |
import {View, StyleSheet} from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| 4 |
import colors from '../../../config/colors'; |
| 5 |
import {mvs} from '../../../config/metrices'; |
| 6 |
import Medium from '../../../presentation/typography/medium-text'; |
| 7 |
import Buttons from '../../atoms/Button'; |
| 8 |
|
| 9 |
const DeliveryLocationModal = ({ |
| 10 |
visible, |
| 11 |
onClose, |
| 12 |
onCancel, |
| 13 |
selectedLocation = 'Home Salmiya', |
| 14 |
onChangeSelection, |
| Error |
Row 15, Column 7: "Replace `=` with `·=·`"
prettier/prettier
|
| Warning |
Row 15, Column 7: "Operator '=' must be spaced."
space-infix-ops
|
| 15 |
list=[], |
| Error |
Row 16, Column 8: "Delete `⏎····`"
prettier/prettier
|
| 16 |
}) => { |
| Warning |
Row 17, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| 17 |
|
| 18 |
return ( |
| 19 |
<ReactNativeModal |
| 20 |
propagateSwipe |
| 21 |
avoidKeyboard |
| 22 |
isVisible={visible} |
| Error |
Row 23, Column 5: "Insert `··`"
prettier/prettier
|
| 23 |
// onBackdropPress={() => onClose(f => !f)} |
| Error |
Row 24, Column 1: "Insert `··`"
prettier/prettier
|
| 24 |
// onBackButtonPress={() => onClose(f => !f)} |
| Warning |
Row 25, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| 25 |
style={{margin: 0, padding: 0}}> |
| 26 |
<View style={styles.CONTAINER}> |
| Warning |
Row 27, Column 22: "Inline style: { alignItems: 'center' }"
react-native/no-inline-styles
|
| 27 |
<View style={{alignItems: 'center', paddingHorizontal: mvs(22)}}> |
| 28 |
<Medium |
| 29 |
label={'Choose delivery location'} |
| 30 |
style={styles.HEADING_TXT} |
| 31 |
/> |
| 32 |
</View> |
| 33 |
<View style={styles.SUB_CONTAINER}> |
| 34 |
{list.map((ele, key) => ( |
| 35 |
<View key={key}> |
| 36 |
<Buttons.ButtonDeliveryLocation |
| 37 |
onClick={() => { |
| Error |
Row 38, Column 19: "Replace `··onChangeSelection(ele,` with `onChangeSelection(ele,·`"
prettier/prettier
|
| 38 |
onChangeSelection(ele,key); |
| 39 |
}} |
| Error |
Row 40, Column 40: "Replace `?ele?.iconName:` with `·?·ele?.iconName·:·`"
prettier/prettier
|
| Warning |
Row 40, Column 40: "Operator '?' must be spaced."
space-infix-ops
|
| 40 |
iconName={ele?.iconName?ele?.iconName:'any'} |
| 41 |
title={ele.title} |
| 42 |
subTitle={ele.subTitle} |
| 43 |
isTick={ele.isSelected} |
| 44 |
/> |
| 45 |
{key !== list?.length - 1 && <View style={styles.DIV} />} |
| 46 |
</View> |
| 47 |
))} |
| 48 |
<View style={styles.BUTTON_CONTAINER}> |
| 49 |
<Buttons.ButtonPrimary |
| 50 |
onClick={onClose} |
| 51 |
style={styles.BUTTON} |
| 52 |
title={'Apply'} |
| 53 |
/> |
| 54 |
<Buttons.ButtonSecondayLight |
| 55 |
onClick={onCancel} |
| 56 |
style={{...styles.BUTTON}} |
| 57 |
title={'Cancel'} |
| 58 |
/> |
| 59 |
</View> |
| 60 |
</View> |
| 61 |
</View> |
| 62 |
</ReactNativeModal> |
| 63 |
); |
| 64 |
}; |
| 65 |
export default DeliveryLocationModal; |
| 66 |
const styles = StyleSheet.create({ |
| 67 |
CONTAINER: { |
| 68 |
position: 'absolute', |
| 69 |
bottom: 0, |
| 70 |
width: '100%', |
| 71 |
borderTopLeftRadius: mvs(20), |
| 72 |
borderTopRightRadius: mvs(20), |
| 73 |
backgroundColor: colors.primary, |
| 74 |
}, |
| 75 |
HEADING_TXT: { |
| 76 |
fontSize: mvs(15), |
| 77 |
color: colors.white, |
| 78 |
alignSelf: 'center', |
| 79 |
marginTop: mvs(13), |
| 80 |
marginBottom: mvs(16), |
| 81 |
}, |
| 82 |
SUB_CONTAINER: { |
| 83 |
backgroundColor: colors.white, |
| 84 |
paddingTop: mvs(20), |
| 85 |
paddingBottom: mvs(38), |
| 86 |
paddingHorizontal: mvs(22), |
| 87 |
borderTopLeftRadius: mvs(20), |
| 88 |
borderTopRightRadius: mvs(20), |
| 89 |
}, |
| 90 |
DESTINATION_CONTAINER: { |
| 91 |
alignItems: 'center', |
| 92 |
flexDirection: 'row', |
| 93 |
justifyContent: 'space-between', |
| 94 |
}, |
| 95 |
FLAG_BUTTON: { |
| 96 |
width: mvs(161), |
| 97 |
height: mvs(38), |
| 98 |
flexDirection: 'row-reverse', |
| 99 |
backgroundColor: colors.secondary, |
| 100 |
}, |
| 101 |
SEARCH_MAP: { |
| 102 |
marginTop: mvs(15), |
| 103 |
alignSelf: 'flex-end', |
| 104 |
width: mvs(161), |
| 105 |
height: mvs(38), |
| 106 |
flexDirection: 'row', |
| 107 |
backgroundColor: colors.primary, |
| 108 |
paddingHorizontal: mvs(23), |
| 109 |
}, |
| 110 |
MAP_ICON: { |
| 111 |
height: mvs(18), |
| 112 |
width: mvs(14), |
| 113 |
}, |
| 114 |
NO_DELIVERY_CONTAINER: { |
| 115 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 116 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 117 |
flexDirection: 'row', |
| 118 |
alignItems: 'center', |
| 119 |
paddingVertical: mvs(14), |
| 120 |
marginTop: mvs(15), |
| 121 |
borderColor: colors.filter_divider, |
| 122 |
}, |
| 123 |
NoDelivery: { |
| 124 |
fontSize: mvs(15), |
| 125 |
color: colors.headerTitle, |
| 126 |
}, |
| 127 |
PRICES_CONTAINER: { |
| 128 |
marginTop: mvs(13), |
| 129 |
flexDirection: 'row', |
| 130 |
justifyContent: 'space-between', |
| 131 |
}, |
| 132 |
PRICE_HEADING: { |
| 133 |
fontSize: mvs(15), |
| 134 |
color: colors.primary, |
| 135 |
marginBottom: mvs(10), |
| 136 |
}, |
| 137 |
MAX_MIN_PRICE: { |
| 138 |
width: mvs(161), |
| 139 |
}, |
| 140 |
DIV: { |
| 141 |
marginTop: mvs(14), |
| 142 |
marginBottom: mvs(13), |
| 143 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 144 |
borderColor: colors.filter_divider, |
| 145 |
}, |
| 146 |
DEL_TIME: { |
| 147 |
color: colors.primary, |
| 148 |
fontSize: mvs(15), |
| 149 |
marginBottom: mvs(8), |
| 150 |
}, |
| 151 |
RADIO_CONTAINER: { |
| 152 |
marginBottom: mvs(30), |
| 153 |
}, |
| 154 |
RADIO_LABEL: { |
| 155 |
color: colors.headerTitle, |
| 156 |
fontSize: mvs(15), |
| 157 |
}, |
| 158 |
BUTTON_CONTAINER: { |
| 159 |
flexDirection: 'row', |
| 160 |
justifyContent: 'space-between', |
| 161 |
marginTop: mvs(29), |
| 162 |
}, |
| 163 |
BUTTON: { |
| 164 |
width: mvs(161), |
| 165 |
}, |
| 166 |
BACK: {position: 'absolute', left: mvs(23), top: mvs(17)}, |
| 167 |
}); |
| 168 |
|
|
|
|
/src/components/molecules/modals/dilivery-confirmed-modal.js
|
35 problems (15 errors, 20 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| Error |
Row 7, Column 9: "Replace `·mvs,·ms·` with `mvs,·ms`"
prettier/prettier
|
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 10, Column 10: "'TAKE_TO_INPUT_FIELD' is defined but never used."
no-unused-vars
|
| Warning |
Row 12, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| Warning |
Row 13, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| Warning |
Row 15, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| Warning |
Row 16, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 17, Column 33: "Replace `·visible,·onClose,·onPrimary,·user_name·` with `visible,·onClose,·onPrimary,·user_name`"
prettier/prettier
|
| Warning |
Row 18, Column 10: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 18, Column 19: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 19, Column 76: "Insert `,`"
prettier/prettier
|
| Warning |
Row 19, Column 76: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 29, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 29, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| Error |
Row 33, Column 20: "Replace `·highlightTextStyle={{·fontSize:·mvs(14.5),·}}·highlightText={'Thank·you·for·Trusting·Taketo.'}·style={{·width:·'100%',·padding:·0,·fontSize:·mvs(14.5),·color:·colors.typeHeader,·textAlign:·'center',·marginBottom:·mvs(30),` with `⏎············highlightTextStyle={{fontSize:·mvs(14.5)}}⏎············highlightText={'Thank·you·for·Trusting·Taketo.'}⏎············style={{⏎··············width:·'100%',⏎··············padding:·0,⏎··············fontSize:·mvs(14.5),⏎··············color:·colors.typeHeader,⏎··············textAlign:·'center',⏎··············marginBottom:·mvs(30),⏎···········`"
prettier/prettier
|
| Warning |
Row 33, Column 62: "Unexpected trailing comma."
comma-dangle
|
| Warning |
Row 33, Column 123: "Inline style: { width: '100%', padding: 0, textAlign: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 33, Column 241: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 34, Column 21: "Replace `·label={'\n\nBy·confirming,·you·acknowledge·successfully·receiving·your·order·&·the·reward·will·be·released·to'}·style={{·fontSize:·mvs(14.5),·color:·colors.typeHeader,·alignSelf:·'center',·}}` with `⏎··············label={⏎················'\n\nBy·confirming,·you·acknowledge·successfully·receiving·your·order·&·the·reward·will·be·released·to'⏎··············}⏎··············style={{⏎················fontSize:·mvs(14.5),⏎················color:·colors.typeHeader,⏎················alignSelf:·'center',⏎··············}}⏎···········`"
prettier/prettier
|
| Warning |
Row 34, Column 141: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 34, Column 209: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 35, Column 21: "Replace `·label={`·${user_name}.`}·style={{·fontSize:·mvs(14.5),·color:·colors.primary·}}` with `⏎··············label={`·${user_name}.`}⏎··············style={{fontSize:·mvs(14.5),·color:·colors.primary}}⏎···········`"
prettier/prettier
|
| Error |
Row 49, Column 23: "Replace `·...styles.BUTTON,·marginTop:·mvs(10),·` with `...styles.BUTTON,·marginTop:·mvs(10)`"
prettier/prettier
|
| Warning |
Row 49, Column 60: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 65, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(20),` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(20),⏎·`"
prettier/prettier
|
| Warning |
Row 65, Column 118: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 66, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| Error |
Row 79, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| Error |
Row 157, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| 2 |
import { View, StyleSheet, ImageBackground } from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 4 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce'; |
| 5 |
import colors from '../../../config/colors'; |
| Warning |
Row 6, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| 6 |
import fonts from '../../../config/fonts'; |
| Error |
Row 7, Column 9: "Replace `·mvs,·ms·` with `mvs,·ms`"
prettier/prettier
|
| 7 |
import { mvs, ms } from '../../../config/metrices'; |
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| 8 |
import Medium from '../../../presentation/typography/medium-text'; |
| 9 |
import Regular from '../../../presentation/typography/regular-text'; |
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 10, Column 10: "'TAKE_TO_INPUT_FIELD' is defined but never used."
no-unused-vars
|
| 10 |
import { TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| 11 |
import Buttons from '../../atoms/Button'; |
| Warning |
Row 12, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| 12 |
import CustomRadio from '../../atoms/RadioButton'; |
| Warning |
Row 13, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| 13 |
import CustomSwitch from '../../atoms/Switch'; |
| 14 |
import DualText from '../dual-text/dual-text'; |
| Warning |
Row 15, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| 15 |
import SettingCard from '../setting_card/setting-card'; |
| Warning |
Row 16, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| 16 |
const list = [true, false, false, true]; |
| Error |
Row 17, Column 33: "Replace `·visible,·onClose,·onPrimary,·user_name·` with `visible,·onClose,·onPrimary,·user_name`"
prettier/prettier
|
| 17 |
const DeliveryConfirmdModal = ({ visible, onClose, onPrimary, user_name }) => { |
| Warning |
Row 18, Column 10: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 18, Column 19: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| 18 |
const [payload, setPayload] = React.useState({ |
| Error |
Row 19, Column 76: "Insert `,`"
prettier/prettier
|
| Warning |
Row 19, Column 76: "Missing trailing comma."
comma-dangle
|
| 19 |
reason: 'Deliverer not responding to my messages after several trials.' |
| 20 |
}); |
| 21 |
|
| 22 |
return ( |
| 23 |
<ReactNativeModal |
| 24 |
propagateSwipe |
| 25 |
isVisible={visible} |
| 26 |
// avoidKeyboard |
| 27 |
onBackdropPress={() => onClose(f => !f)} |
| 28 |
onBackButtonPress={() => onClose(f => !f)} |
| Warning |
Row 29, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 29, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| 29 |
style={{ margin: 0, padding: 0 }}> |
| 30 |
<View style={styles.CONTAINER}> |
| 31 |
<View style={styles.SUB_CONTAINER}> |
| 32 |
<Regular label={'Confirm Delivery'} style={styles.HEADING_TXT} /> |
| Error |
Row 33, Column 20: "Replace `·highlightTextStyle={{·fontSize:·mvs(14.5),·}}·highlightText={'Thank·you·for·Trusting·Taketo.'}·style={{·width:·'100%',·padding:·0,·fontSize:·mvs(14.5),·color:·colors.typeHeader,·textAlign:·'center',·marginBottom:·mvs(30),` with `⏎············highlightTextStyle={{fontSize:·mvs(14.5)}}⏎············highlightText={'Thank·you·for·Trusting·Taketo.'}⏎············style={{⏎··············width:·'100%',⏎··············padding:·0,⏎··············fontSize:·mvs(14.5),⏎··············color:·colors.typeHeader,⏎··············textAlign:·'center',⏎··············marginBottom:·mvs(30),⏎···········`"
prettier/prettier
|
| Warning |
Row 33, Column 62: "Unexpected trailing comma."
comma-dangle
|
| Warning |
Row 33, Column 123: "Inline style: { width: '100%', padding: 0, textAlign: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 33, Column 241: "Unexpected trailing comma."
comma-dangle
|
| 33 |
<DualText highlightTextStyle={{ fontSize: mvs(14.5), }} highlightText={'Thank you for Trusting Taketo.'} style={{ width: '100%', padding: 0, fontSize: mvs(14.5), color: colors.typeHeader, textAlign: 'center', marginBottom: mvs(30), }}> |
| Error |
Row 34, Column 21: "Replace `·label={'\n\nBy·confirming,·you·acknowledge·successfully·receiving·your·order·&·the·reward·will·be·released·to'}·style={{·fontSize:·mvs(14.5),·color:·colors.typeHeader,·alignSelf:·'center',·}}` with `⏎··············label={⏎················'\n\nBy·confirming,·you·acknowledge·successfully·receiving·your·order·&·the·reward·will·be·released·to'⏎··············}⏎··············style={{⏎················fontSize:·mvs(14.5),⏎················color:·colors.typeHeader,⏎················alignSelf:·'center',⏎··············}}⏎···········`"
prettier/prettier
|
| Warning |
Row 34, Column 141: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 34, Column 209: "Unexpected trailing comma."
comma-dangle
|
| 34 |
<Regular label={'\n\nBy confirming, you acknowledge successfully receiving your order & the reward will be released to'} style={{ fontSize: mvs(14.5), color: colors.typeHeader, alignSelf: 'center', }} /> |
| Error |
Row 35, Column 21: "Replace `·label={`·${user_name}.`}·style={{·fontSize:·mvs(14.5),·color:·colors.primary·}}` with `⏎··············label={`·${user_name}.`}⏎··············style={{fontSize:·mvs(14.5),·color:·colors.primary}}⏎···········`"
prettier/prettier
|
| 35 |
<Regular label={` ${user_name}.`} style={{ fontSize: mvs(14.5), color: colors.primary }} /> |
| 36 |
</DualText> |
| 37 |
{/* <SettingCard style={{ paddingTop: mvs(13), paddingBottom: mvs(7) }} headingStyle={{ alignSelf: 'center', fontSize: mvs(14) }} heading={'Make sure your notifications are on'}> |
| 38 |
<CustomSwitch style={{ marginTop: 0 }} textStyle={{ color: colors.primary }} label={'Email'} /> |
| 39 |
<CustomSwitch style={{ marginTop: mvs(10) }} textStyle={{ color: colors.primary }} label={'SMS'} /> |
| 40 |
</SettingCard> */} |
| 41 |
<View style={styles.BUTTON_CONTAINER}> |
| 42 |
<Buttons.ButtonPrimary |
| 43 |
onClick={onPrimary} |
| 44 |
style={styles.BUTTON} |
| 45 |
title={`Confirm & Rate ${user_name}`} |
| 46 |
/> |
| 47 |
<Buttons.ButtonSecondaryOutline |
| 48 |
onClick={onClose} |
| Error |
Row 49, Column 23: "Replace `·...styles.BUTTON,·marginTop:·mvs(10),·` with `...styles.BUTTON,·marginTop:·mvs(10)`"
prettier/prettier
|
| Warning |
Row 49, Column 60: "Unexpected trailing comma."
comma-dangle
|
| 49 |
style={{ ...styles.BUTTON, marginTop: mvs(10), }} |
| 50 |
title={'Back'} |
| 51 |
/> |
| 52 |
</View> |
| 53 |
</View> |
| 54 |
</View> |
| 55 |
</ReactNativeModal> |
| 56 |
); |
| 57 |
}; |
| 58 |
export default DeliveryConfirmdModal; |
| 59 |
const styles = StyleSheet.create({ |
| 60 |
CONTAINER: { |
| 61 |
width: ms(332), |
| 62 |
alignSelf: 'center', |
| 63 |
borderRadius: mvs(20), |
| 64 |
}, |
| Error |
Row 65, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(20),` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(20),⏎·`"
prettier/prettier
|
| Warning |
Row 65, Column 118: "Unexpected trailing comma."
comma-dangle
|
| 65 |
REFUND_CONATINER: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', marginTop: mvs(20), }, |
| Error |
Row 66, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| 66 |
TEXT: { textAlign: 'center', marginTop: mvs(30), fontSize: mvs(14), color: colors.primary }, |
| 67 |
HEADING_TXT: { |
| 68 |
fontSize: mvs(19.5), |
| 69 |
color: colors.green, |
| 70 |
alignSelf: 'center', |
| 71 |
marginBottom: mvs(8.5), |
| 72 |
}, |
| 73 |
SUB_CONTAINER: { |
| 74 |
backgroundColor: colors.white, |
| 75 |
// paddingTop: mvs(20), |
| 76 |
paddingVertical: mvs(20), |
| 77 |
borderRadius: mvs(20), |
| 78 |
paddingHorizontal: mvs(10), |
| Error |
Row 79, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| 79 |
backgroundColor: colors.white, |
| 80 |
}, |
| 81 |
DESTINATION_CONTAINER: { |
| 82 |
alignItems: 'center', |
| 83 |
flexDirection: 'row', |
| 84 |
justifyContent: 'space-between', |
| 85 |
}, |
| 86 |
FLAG_BUTTON: { |
| 87 |
width: mvs(161), |
| 88 |
height: mvs(38), |
| 89 |
flexDirection: 'row-reverse', |
| 90 |
backgroundColor: colors.secondary, |
| 91 |
}, |
| 92 |
SEARCH_MAP: { |
| 93 |
marginTop: mvs(15), |
| 94 |
alignSelf: 'flex-end', |
| 95 |
width: mvs(161), |
| 96 |
height: mvs(38), |
| 97 |
flexDirection: 'row', |
| 98 |
backgroundColor: colors.primary, |
| 99 |
paddingHorizontal: mvs(23), |
| 100 |
}, |
| 101 |
MAP_ICON: { |
| 102 |
height: mvs(18), |
| 103 |
width: mvs(14), |
| 104 |
}, |
| 105 |
NO_DELIVERY_CONTAINER: { |
| 106 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 107 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 108 |
flexDirection: 'row', |
| 109 |
alignItems: 'center', |
| 110 |
paddingVertical: mvs(14), |
| 111 |
marginTop: mvs(15), |
| 112 |
borderColor: colors.filter_divider, |
| 113 |
}, |
| 114 |
NoDelivery: { |
| 115 |
fontSize: mvs(15), |
| 116 |
color: colors.headerTitle, |
| 117 |
}, |
| 118 |
PRICES_CONTAINER: { |
| 119 |
marginTop: mvs(13), |
| 120 |
flexDirection: 'row', |
| 121 |
justifyContent: 'space-between', |
| 122 |
}, |
| 123 |
PRICE_HEADING: { |
| 124 |
fontSize: mvs(15), |
| 125 |
color: colors.primary, |
| 126 |
marginBottom: mvs(10), |
| 127 |
}, |
| 128 |
MAX_MIN_PRICE: { |
| 129 |
width: mvs(161), |
| 130 |
}, |
| 131 |
DIV: { |
| 132 |
marginTop: mvs(14), |
| 133 |
marginBottom: mvs(13), |
| 134 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 135 |
borderColor: colors.filter_divider, |
| 136 |
}, |
| 137 |
DEL_TIME: { |
| 138 |
color: colors.primary, |
| 139 |
fontSize: mvs(15), |
| 140 |
marginBottom: mvs(8), |
| 141 |
}, |
| 142 |
RADIO_CONTAINER: { |
| 143 |
marginBottom: mvs(30), |
| 144 |
}, |
| 145 |
RADIO_LABEL: { |
| 146 |
color: colors.headerTitle, |
| 147 |
fontSize: mvs(15), |
| 148 |
}, |
| 149 |
BUTTON_CONTAINER: { |
| 150 |
// flexDirection: 'row', |
| 151 |
// justifyContent: 'space-between', |
| 152 |
marginTop: mvs(29), |
| 153 |
}, |
| 154 |
BUTTON: { |
| 155 |
width: '100%', |
| 156 |
}, |
| Error |
Row 157, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| 157 |
BACK: { position: 'absolute', left: mvs(23), top: mvs(17) }, |
| 158 |
}); |
| 159 |
|
|
|
|
/src/components/molecules/modals/dilivery-disputed-modal.js
|
52 problems (29 errors, 23 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| Error |
Row 7, Column 9: "Replace `·mvs,·ms·` with `mvs,·ms`"
prettier/prettier
|
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 12, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| Warning |
Row 13, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| Warning |
Row 15, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| Warning |
Row 16, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 17, Column 33: "Replace `·visible,·onClose,·onPrimary,·isRateUser·` with `visible,·onClose,·onPrimary,·isRateUser`"
prettier/prettier
|
| Error |
Row 19, Column 76: "Insert `,`"
prettier/prettier
|
| Warning |
Row 19, Column 76: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 29, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 29, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| Error |
Row 33, Column 27: "Replace `prettier/prettier
|
| Warning |
Row 33, Column 101: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 34, Column 13: "Replace `prettier/prettier
|
| Warning |
Row 34, Column 79: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 34, Column 147: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 35, Column 1: "Replace `··········` with `············⏎··········)`"
prettier/prettier
|
| Error |
Row 36, Column 25: "Replace `·marginTop:·mvs(16)·` with `marginTop:·mvs(16)`"
prettier/prettier
|
| Error |
Row 38, Column 32: "Replace `·maxHeight:·mvs(81)·` with `maxHeight:·mvs(81)`"
prettier/prettier
|
| Error |
Row 39, Column 21: "Replace `'Dispute·Reason'` with `"Dispute·Reason"`"
prettier/prettier
|
| Warning |
Row 39, Column 21: "Unexpected usage of singlequote."
jsx-quotes
|
| Error |
Row 40, Column 27: "Replace `''` with `""`"
prettier/prettier
|
| Warning |
Row 40, Column 27: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 42, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 42, Column 23: "Replace `·textAlign:·'center',·fontSize:·mvs(13),·color:·colors.typeHeader` with `⏎················textAlign:·'center',⏎················fontSize:·mvs(13),⏎················color:·colors.typeHeader,⏎·············`"
prettier/prettier
|
| Error |
Row 43, Column 49: "Replace `·...payload,·reason:·text·` with `...payload,·reason:·text`"
prettier/prettier
|
| Error |
Row 47, Column 20: "Replace `·highlightTextStyle={{·fontSize:·mvs(14.5),·}}·highlightText={isRateUser·?·'Thank·you·for·contacting·us.'·:·''}·style={{·width:·'100%',·padding:·0,·fontSize:·mvs(14.5),·color:·colors.typeHeader,·textAlign:·'center',·marginBottom:·mvs(40),·marginTop:·mvs(30),` with `⏎············highlightTextStyle={{fontSize:·mvs(14.5)}}⏎············highlightText={isRateUser·?·'Thank·you·for·contacting·us.'·:·''}⏎············style={{⏎··············width:·'100%',⏎··············padding:·0,⏎··············fontSize:·mvs(14.5),⏎··············color:·colors.typeHeader,⏎··············textAlign:·'center',⏎··············marginBottom:·mvs(40),⏎··············marginTop:·mvs(30),⏎···········`"
prettier/prettier
|
| Warning |
Row 47, Column 62: "Unexpected trailing comma."
comma-dangle
|
| Warning |
Row 47, Column 139: "Inline style: { width: '100%', padding: 0, textAlign: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 47, Column 277: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 48, Column 21: "Replace `·label={'\nWe·will·investigate·the·dispute·and·get·back·to·you·as·soon·as·possible.'}·style={{·fontSize:·mvs(14.5),·color:·colors.typeHeader,·alignSelf:·'center',·}}` with `⏎··············label={⏎················'\nWe·will·investigate·the·dispute·and·get·back·to·you·as·soon·as·possible.'⏎··············}⏎··············style={{⏎················fontSize:·mvs(14.5),⏎················color:·colors.typeHeader,⏎················alignSelf:·'center',⏎··············}}⏎···········`"
prettier/prettier
|
| Warning |
Row 48, Column 114: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 48, Column 182: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 56, Column 26: "Replace `=>` with `·=>·`"
prettier/prettier
|
| Error |
Row 58, Column 71: "Insert `·`"
prettier/prettier
|
| Error |
Row 60, Column 27: "Insert `·(⏎·············`"
prettier/prettier
|
| Error |
Row 61, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 62, Column 15: "Replace `style={{·...styles.BUTTON,·marginTop:·mvs(10),·` with `··style={{...styles.BUTTON,·marginTop:·mvs(10)`"
prettier/prettier
|
| Warning |
Row 62, Column 60: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 63, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 64, Column 13: "Replace `/>` with `··/>⏎············)`"
prettier/prettier
|
| Error |
Row 78, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(20),` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(20),⏎·`"
prettier/prettier
|
| Warning |
Row 78, Column 118: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 79, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| Error |
Row 92, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| Error |
Row 170, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| 2 |
import { View, StyleSheet, ImageBackground } from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 4 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce'; |
| 5 |
import colors from '../../../config/colors'; |
| Warning |
Row 6, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| 6 |
import fonts from '../../../config/fonts'; |
| Error |
Row 7, Column 9: "Replace `·mvs,·ms·` with `mvs,·ms`"
prettier/prettier
|
| 7 |
import { mvs, ms } from '../../../config/metrices'; |
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| 8 |
import Medium from '../../../presentation/typography/medium-text'; |
| 9 |
import Regular from '../../../presentation/typography/regular-text'; |
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 10 |
import { TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| 11 |
import Buttons from '../../atoms/Button'; |
| Warning |
Row 12, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| 12 |
import CustomRadio from '../../atoms/RadioButton'; |
| Warning |
Row 13, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| 13 |
import CustomSwitch from '../../atoms/Switch'; |
| 14 |
import DualText from '../dual-text/dual-text'; |
| Warning |
Row 15, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| 15 |
import SettingCard from '../setting_card/setting-card'; |
| Warning |
Row 16, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| 16 |
const list = [true, false, false, true]; |
| Error |
Row 17, Column 33: "Replace `·visible,·onClose,·onPrimary,·isRateUser·` with `visible,·onClose,·onPrimary,·isRateUser`"
prettier/prettier
|
| 17 |
const DeliveryDisputedModal = ({ visible, onClose, onPrimary, isRateUser }) => { |
| 18 |
const [payload, setPayload] = React.useState({ |
| Error |
Row 19, Column 76: "Insert `,`"
prettier/prettier
|
| Warning |
Row 19, Column 76: "Missing trailing comma."
comma-dangle
|
| 19 |
reason: 'Deliverer not responding to my messages after several trials.' |
| 20 |
}); |
| 21 |
|
| 22 |
return ( |
| 23 |
<ReactNativeModal |
| 24 |
propagateSwipe |
| 25 |
isVisible={visible} |
| 26 |
// avoidKeyboard |
| 27 |
onBackdropPress={() => onClose(f => !f)} |
| 28 |
onBackButtonPress={() => onClose(f => !f)} |
| Warning |
Row 29, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 29, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| 29 |
style={{ margin: 0, padding: 0 }}> |
| 30 |
<View style={styles.CONTAINER}> |
| 31 |
<View style={styles.SUB_CONTAINER}> |
| 32 |
<Regular label={'Delivery Disputed'} style={styles.HEADING_TXT} /> |
| Error |
Row 33, Column 27: "Replace `prettier/prettier
|
| Warning |
Row 33, Column 101: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| 33 |
{!isRateUser && <DualText content={'Unfortunately '} highlightText={'Ralph Wakim'} style={{ fontSize: mvs(14.5), color: colors.typeHeader, alignSelf: 'center', textAlign: 'center' }}> |
| Error |
Row 34, Column 13: "Replace `prettier/prettier
|
| Warning |
Row 34, Column 79: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 34, Column 147: "Unexpected trailing comma."
comma-dangle
|
| 34 |
<Regular label={',\nthe buyer has Disputed the Delivery.'} style={{ fontSize: mvs(14.5), color: colors.typeHeader, alignSelf: 'center', }} /> |
| Error |
Row 35, Column 1: "Replace `··········` with `············⏎··········)`"
prettier/prettier
|
| 35 |
</DualText>} |
| Error |
Row 36, Column 25: "Replace `·marginTop:·mvs(16)·` with `marginTop:·mvs(16)`"
prettier/prettier
|
| 36 |
<View style={{ marginTop: mvs(16) }}> |
| 37 |
<TAKE_TO_INPUT_FIELD.ReviewInput |
| Error |
Row 38, Column 32: "Replace `·maxHeight:·mvs(81)·` with `maxHeight:·mvs(81)`"
prettier/prettier
|
| 38 |
containerStyle={{ maxHeight: mvs(81) }} |
| Error |
Row 39, Column 21: "Replace `'Dispute·Reason'` with `"Dispute·Reason"`"
prettier/prettier
|
| Warning |
Row 39, Column 21: "Unexpected usage of singlequote."
jsx-quotes
|
| 39 |
label='Dispute Reason' |
| Error |
Row 40, Column 27: "Replace `''` with `""`"
prettier/prettier
|
| Warning |
Row 40, Column 27: "Unexpected usage of singlequote."
jsx-quotes
|
| 40 |
placeholder='' |
| 41 |
value={payload.reason} |
| Warning |
Row 42, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 42, Column 23: "Replace `·textAlign:·'center',·fontSize:·mvs(13),·color:·colors.typeHeader` with `⏎················textAlign:·'center',⏎················fontSize:·mvs(13),⏎················color:·colors.typeHeader,⏎·············`"
prettier/prettier
|
| 42 |
style={{ textAlign: 'center', fontSize: mvs(13), color: colors.typeHeader }} |
| Error |
Row 43, Column 49: "Replace `·...payload,·reason:·text·` with `...payload,·reason:·text`"
prettier/prettier
|
| 43 |
onChangeText={text => setPayload({ ...payload, reason: text })} |
| 44 |
/> |
| 45 |
</View> |
| 46 |
|
| Error |
Row 47, Column 20: "Replace `·highlightTextStyle={{·fontSize:·mvs(14.5),·}}·highlightText={isRateUser·?·'Thank·you·for·contacting·us.'·:·''}·style={{·width:·'100%',·padding:·0,·fontSize:·mvs(14.5),·color:·colors.typeHeader,·textAlign:·'center',·marginBottom:·mvs(40),·marginTop:·mvs(30),` with `⏎············highlightTextStyle={{fontSize:·mvs(14.5)}}⏎············highlightText={isRateUser·?·'Thank·you·for·contacting·us.'·:·''}⏎············style={{⏎··············width:·'100%',⏎··············padding:·0,⏎··············fontSize:·mvs(14.5),⏎··············color:·colors.typeHeader,⏎··············textAlign:·'center',⏎··············marginBottom:·mvs(40),⏎··············marginTop:·mvs(30),⏎···········`"
prettier/prettier
|
| Warning |
Row 47, Column 62: "Unexpected trailing comma."
comma-dangle
|
| Warning |
Row 47, Column 139: "Inline style: { width: '100%', padding: 0, textAlign: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 47, Column 277: "Unexpected trailing comma."
comma-dangle
|
| 47 |
<DualText highlightTextStyle={{ fontSize: mvs(14.5), }} highlightText={isRateUser ? 'Thank you for contacting us.' : ''} style={{ width: '100%', padding: 0, fontSize: mvs(14.5), color: colors.typeHeader, textAlign: 'center', marginBottom: mvs(40), marginTop: mvs(30), }}> |
| Error |
Row 48, Column 21: "Replace `·label={'\nWe·will·investigate·the·dispute·and·get·back·to·you·as·soon·as·possible.'}·style={{·fontSize:·mvs(14.5),·color:·colors.typeHeader,·alignSelf:·'center',·}}` with `⏎··············label={⏎················'\nWe·will·investigate·the·dispute·and·get·back·to·you·as·soon·as·possible.'⏎··············}⏎··············style={{⏎················fontSize:·mvs(14.5),⏎················color:·colors.typeHeader,⏎················alignSelf:·'center',⏎··············}}⏎···········`"
prettier/prettier
|
| Warning |
Row 48, Column 114: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 48, Column 182: "Unexpected trailing comma."
comma-dangle
|
| 48 |
<Regular label={'\nWe will investigate the dispute and get back to you as soon as possible.'} style={{ fontSize: mvs(14.5), color: colors.typeHeader, alignSelf: 'center', }} /> |
| 49 |
</DualText> |
| 50 |
{/* <SettingCard style={{ paddingTop: mvs(13), paddingBottom: mvs(7) }} headingStyle={{ alignSelf: 'center', fontSize: mvs(14) }} heading={'Make sure your notifications are on'}> |
| 51 |
<CustomSwitch style={{ marginTop: 0 }} textStyle={{ color: colors.primary }} label={'Email'} /> |
| 52 |
<CustomSwitch style={{ marginTop: mvs(10) }} textStyle={{ color: colors.primary }} label={'SMS'} /> |
| 53 |
</SettingCard> */} |
| 54 |
<View style={styles.BUTTON_CONTAINER}> |
| 55 |
<Buttons.ButtonPrimary |
| Error |
Row 56, Column 26: "Replace `=>` with `·=>·`"
prettier/prettier
|
| 56 |
onClick={()=>onPrimary(payload?.reason)} |
| 57 |
style={styles.BUTTON} |
| Error |
Row 58, Column 71: "Insert `·`"
prettier/prettier
|
| 58 |
title={isRateUser ? 'Confirm' : 'Back to Notifications'}// & Rate Zenab Thaqi |
| 59 |
/> |
| Error |
Row 60, Column 27: "Insert `·(⏎·············`"
prettier/prettier
|
| 60 |
{isRateUser && <Buttons.ButtonSecondaryOutline |
| Error |
Row 61, Column 15: "Insert `··`"
prettier/prettier
|
| 61 |
onClick={onClose} |
| Error |
Row 62, Column 15: "Replace `style={{·...styles.BUTTON,·marginTop:·mvs(10),·` with `··style={{...styles.BUTTON,·marginTop:·mvs(10)`"
prettier/prettier
|
| Warning |
Row 62, Column 60: "Unexpected trailing comma."
comma-dangle
|
| 62 |
style={{ ...styles.BUTTON, marginTop: mvs(10), }} |
| Error |
Row 63, Column 1: "Insert `··`"
prettier/prettier
|
| 63 |
title={'Back'} |
| Error |
Row 64, Column 13: "Replace `/>` with `··/>⏎············)`"
prettier/prettier
|
| 64 |
/>} |
| 65 |
</View> |
| 66 |
</View> |
| 67 |
</View> |
| 68 |
</ReactNativeModal> |
| 69 |
); |
| 70 |
}; |
| 71 |
export default DeliveryDisputedModal; |
| 72 |
const styles = StyleSheet.create({ |
| 73 |
CONTAINER: { |
| 74 |
width: ms(332), |
| 75 |
alignSelf: 'center', |
| 76 |
borderRadius: mvs(20), |
| 77 |
}, |
| Error |
Row 78, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(20),` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(20),⏎·`"
prettier/prettier
|
| Warning |
Row 78, Column 118: "Unexpected trailing comma."
comma-dangle
|
| 78 |
REFUND_CONATINER: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', marginTop: mvs(20), }, |
| Error |
Row 79, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| 79 |
TEXT: { textAlign: 'center', marginTop: mvs(30), fontSize: mvs(14), color: colors.primary }, |
| 80 |
HEADING_TXT: { |
| 81 |
fontSize: mvs(19.5), |
| 82 |
color: colors.disputes, |
| 83 |
alignSelf: 'center', |
| 84 |
marginBottom: mvs(8.5), |
| 85 |
}, |
| 86 |
SUB_CONTAINER: { |
| 87 |
backgroundColor: colors.white, |
| 88 |
// paddingTop: mvs(20), |
| 89 |
paddingVertical: mvs(20), |
| 90 |
borderRadius: mvs(20), |
| 91 |
paddingHorizontal: mvs(10), |
| Error |
Row 92, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| 92 |
backgroundColor: colors.white, |
| 93 |
}, |
| 94 |
DESTINATION_CONTAINER: { |
| 95 |
alignItems: 'center', |
| 96 |
flexDirection: 'row', |
| 97 |
justifyContent: 'space-between', |
| 98 |
}, |
| 99 |
FLAG_BUTTON: { |
| 100 |
width: mvs(161), |
| 101 |
height: mvs(38), |
| 102 |
flexDirection: 'row-reverse', |
| 103 |
backgroundColor: colors.secondary, |
| 104 |
}, |
| 105 |
SEARCH_MAP: { |
| 106 |
marginTop: mvs(15), |
| 107 |
alignSelf: 'flex-end', |
| 108 |
width: mvs(161), |
| 109 |
height: mvs(38), |
| 110 |
flexDirection: 'row', |
| 111 |
backgroundColor: colors.primary, |
| 112 |
paddingHorizontal: mvs(23), |
| 113 |
}, |
| 114 |
MAP_ICON: { |
| 115 |
height: mvs(18), |
| 116 |
width: mvs(14), |
| 117 |
}, |
| 118 |
NO_DELIVERY_CONTAINER: { |
| 119 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 120 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 121 |
flexDirection: 'row', |
| 122 |
alignItems: 'center', |
| 123 |
paddingVertical: mvs(14), |
| 124 |
marginTop: mvs(15), |
| 125 |
borderColor: colors.filter_divider, |
| 126 |
}, |
| 127 |
NoDelivery: { |
| 128 |
fontSize: mvs(15), |
| 129 |
color: colors.headerTitle, |
| 130 |
}, |
| 131 |
PRICES_CONTAINER: { |
| 132 |
marginTop: mvs(13), |
| 133 |
flexDirection: 'row', |
| 134 |
justifyContent: 'space-between', |
| 135 |
}, |
| 136 |
PRICE_HEADING: { |
| 137 |
fontSize: mvs(15), |
| 138 |
color: colors.primary, |
| 139 |
marginBottom: mvs(10), |
| 140 |
}, |
| 141 |
MAX_MIN_PRICE: { |
| 142 |
width: mvs(161), |
| 143 |
}, |
| 144 |
DIV: { |
| 145 |
marginTop: mvs(14), |
| 146 |
marginBottom: mvs(13), |
| 147 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 148 |
borderColor: colors.filter_divider, |
| 149 |
}, |
| 150 |
DEL_TIME: { |
| 151 |
color: colors.primary, |
| 152 |
fontSize: mvs(15), |
| 153 |
marginBottom: mvs(8), |
| 154 |
}, |
| 155 |
RADIO_CONTAINER: { |
| 156 |
marginBottom: mvs(30), |
| 157 |
}, |
| 158 |
RADIO_LABEL: { |
| 159 |
color: colors.headerTitle, |
| 160 |
fontSize: mvs(15), |
| 161 |
}, |
| 162 |
BUTTON_CONTAINER: { |
| 163 |
// flexDirection: 'row', |
| 164 |
// justifyContent: 'space-between', |
| 165 |
marginTop: mvs(29), |
| 166 |
}, |
| 167 |
BUTTON: { |
| 168 |
width: '100%', |
| 169 |
}, |
| Error |
Row 170, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| 170 |
BACK: { position: 'absolute', left: mvs(23), top: mvs(17) }, |
| 171 |
}); |
| 172 |
|
|
|
|
/src/components/molecules/modals/dispute-modal.js
|
78 problems (38 errors, 40 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| Error |
Row 7, Column 9: "Replace `·mvs,·ms·` with `mvs,·ms`"
prettier/prettier
|
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 12, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| Warning |
Row 13, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| Warning |
Row 15, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| Warning |
Row 16, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 17, Column 24: "Replace `·visible,·onClose,·title·=·"Dispute",·reject·=·false,·onConfirm,name·,reason` with `⏎··visible,⏎··onClose,⏎··title·=·'Dispute',⏎··reject·=·false,⏎··onConfirm,⏎··name,⏎··reason,⏎`"
prettier/prettier
|
| Warning |
Row 17, Column 51: "Strings must use singlequote."
quotes
|
| Error |
Row 19, Column 19: "Replace `?·'I·wanted·a·space·grey·iPhone·13·Pro'·:·'Receipt·did·not·match·the·product·price·on·the·website.'` with `⏎······?·'I·wanted·a·space·grey·iPhone·13·Pro'⏎······:·'Receipt·did·not·match·the·product·price·on·the·website.',`"
prettier/prettier
|
| Warning |
Row 19, Column 19: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 19, Column 118: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 29, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 29, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| Error |
Row 34, Column 30: "Replace `·maxHeight:·mvs(81)·` with `maxHeight:·mvs(81)`"
prettier/prettier
|
| Error |
Row 35, Column 26: "Replace `?'Rejection·Reason':` with `·?·'Rejection·Reason'·:·`"
prettier/prettier
|
| Warning |
Row 35, Column 26: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 37, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 37, Column 21: "Replace `·textAlign:·'center',·fontSize:·mvs(13),·color·:·colors.typeHeader` with `⏎··············textAlign:·'center',⏎··············fontSize:·mvs(13),⏎··············color:·colors.typeHeader,⏎············`"
prettier/prettier
|
| Error |
Row 39, Column 47: "Replace `·...payload,·reason:·text·` with `...payload,·reason:·text`"
prettier/prettier
|
| Error |
Row 42, Column 23: "Replace `prettier/prettier
|
| Warning |
Row 42, Column 32: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 43, Column 1: "Replace `··········content·=·{`We·are·still·investigating·the·dispute.\nYou·will·be·notified·as·soon·as·we·reach·a\nverdict.·`}·⏎··········style={{·` with `··············content={`We·are·still·investigating·the·dispute.\nYou·will·be·notified·as·soon·as·we·reach·a\nverdict.·`}⏎··············style={{`"
prettier/prettier
|
| Warning |
Row 43, Column 22: "Strings must use singlequote."
quotes
|
| Warning |
Row 43, Column 119: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 44, Column 18: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 44, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 45, Column 1: "Replace `············fontSize:·mvs(15),·⏎············color:·colors.lightgrey2,·⏎············alignSelf:·'center',·⏎············textAlign:'center',·⏎············marginTop·:·mvs(29)·` with `················fontSize:·mvs(15),⏎················color:·colors.lightgrey2,⏎················alignSelf:·'center',⏎················textAlign:·'center',⏎················marginTop:·mvs(29),`"
prettier/prettier
|
| Warning |
Row 45, Column 31: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 46, Column 38: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 47, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 48, Column 32: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 49, Column 32: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 49, Column 32: "Missing trailing comma."
comma-dangle
|
| Error |
Row 50, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 51, Column 14: "Replace `prettier/prettier
|
| Warning |
Row 51, Column 22: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 55, Column 24: "Insert `⏎··········)`"
prettier/prettier
|
| Error |
Row 57, Column 22: "Replace `prettier/prettier
|
| Warning |
Row 57, Column 31: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 58, Column 34: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 59, Column 19: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 59, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 60, Column 31: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 61, Column 35: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 62, Column 1: "Replace `············alignSelf:·'center',·⏎············textAlign:'center',·⏎············marginTop·:·mvs(29)·⏎············` with `················alignSelf:·'center',⏎················textAlign:·'center',⏎················marginTop:·mvs(29),⏎··············`"
prettier/prettier
|
| Warning |
Row 62, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 63, Column 32: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 64, Column 32: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 64, Column 32: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 66, Column 23: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 66, Column 23: "Delete `·`"
prettier/prettier
|
| Error |
Row 67, Column 1: "Replace `·············label·=·` with `················label=`"
prettier/prettier
|
| Error |
Row 68, Column 14: "Replace `style·=·{{color·` with `···style={{color`"
prettier/prettier
|
| Error |
Row 69, Column 1: "Insert `·`"
prettier/prettier
|
| Error |
Row 70, Column 24: "Delete `}⏎`"
prettier/prettier
|
| Warning |
Row 72, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 72, Column 11: "Replace `··` with `)}`"
prettier/prettier
|
| Error |
Row 80, Column 11: "Replace `··{reject·&&` with `{reject·&&·(⏎···········`"
prettier/prettier
|
| Error |
Row 82, Column 50: "Delete `·`"
prettier/prettier
|
| Error |
Row 84, Column 15: "Delete `}⏎`"
prettier/prettier
|
| Error |
Row 86, Column 11: "Insert `)}⏎⏎·······`"
prettier/prettier
|
| Error |
Row 87, Column 13: "Delete `··`"
prettier/prettier
|
| Error |
Row 88, Column 1: "Replace `··············style={{...styles.BUTTON,·marginTop·` with `············style={{...styles.BUTTON,·marginTop`"
prettier/prettier
|
| Error |
Row 89, Column 13: "Replace `··title={reject?'Cancel':` with `title={reject·?·'Cancel'·:·`"
prettier/prettier
|
| Warning |
Row 89, Column 28: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 90, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 104, Column 14: "Replace `·:·'center'` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 104, Column 25: "Missing trailing comma."
comma-dangle
|
| Error |
Row 107, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(37),·marginBottom:·mvs(39)` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(37),⏎····marginBottom:·mvs(39),⏎·`"
prettier/prettier
|
| Error |
Row 108, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| Error |
Row 121, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| Error |
Row 200, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| 2 |
import { View, StyleSheet, ImageBackground } from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 4 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce'; |
| 5 |
import colors from '../../../config/colors'; |
| Warning |
Row 6, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| 6 |
import fonts from '../../../config/fonts'; |
| Error |
Row 7, Column 9: "Replace `·mvs,·ms·` with `mvs,·ms`"
prettier/prettier
|
| 7 |
import { mvs, ms } from '../../../config/metrices'; |
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| 8 |
import Medium from '../../../presentation/typography/medium-text'; |
| 9 |
import Regular from '../../../presentation/typography/regular-text'; |
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 10 |
import { TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| 11 |
import Buttons from '../../atoms/Button'; |
| Warning |
Row 12, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| 12 |
import CustomRadio from '../../atoms/RadioButton'; |
| Warning |
Row 13, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| 13 |
import CustomSwitch from '../../atoms/Switch'; |
| 14 |
import DualText from '../dual-text/dual-text'; |
| Warning |
Row 15, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| 15 |
import SettingCard from '../setting_card/setting-card'; |
| Warning |
Row 16, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| 16 |
const list = [true, false, false, true]; |
| Error |
Row 17, Column 24: "Replace `·visible,·onClose,·title·=·"Dispute",·reject·=·false,·onConfirm,name·,reason` with `⏎··visible,⏎··onClose,⏎··title·=·'Dispute',⏎··reject·=·false,⏎··onConfirm,⏎··name,⏎··reason,⏎`"
prettier/prettier
|
| Warning |
Row 17, Column 51: "Strings must use singlequote."
quotes
|
| 17 |
const DisputeModal = ({ visible, onClose, title = "Dispute", reject = false, onConfirm,name ,reason}) => { |
| 18 |
const [payload, setPayload] = React.useState({ |
| Error |
Row 19, Column 19: "Replace `?·'I·wanted·a·space·grey·iPhone·13·Pro'·:·'Receipt·did·not·match·the·product·price·on·the·website.'` with `⏎······?·'I·wanted·a·space·grey·iPhone·13·Pro'⏎······:·'Receipt·did·not·match·the·product·price·on·the·website.',`"
prettier/prettier
|
| Warning |
Row 19, Column 19: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 19, Column 118: "Missing trailing comma."
comma-dangle
|
| 19 |
reason: reject? 'I wanted a space grey iPhone 13 Pro' : 'Receipt did not match the product price on the website.' |
| 20 |
}); |
| 21 |
|
| 22 |
return ( |
| 23 |
<ReactNativeModal |
| 24 |
propagateSwipe |
| 25 |
isVisible={visible} |
| 26 |
// avoidKeyboard |
| 27 |
onBackdropPress={() => onClose(f => !f)} |
| 28 |
onBackButtonPress={() => onClose(f => !f)} |
| Warning |
Row 29, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 29, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| 29 |
style={{ margin: 0, padding: 0 }}> |
| 30 |
<View style={styles.CONTAINER}> |
| 31 |
<View style={styles.SUB_CONTAINER}> |
| 32 |
<Regular label={title} style={styles.HEADING_TXT} /> |
| 33 |
<TAKE_TO_INPUT_FIELD.ViewReason |
| Error |
Row 34, Column 30: "Replace `·maxHeight:·mvs(81)·` with `maxHeight:·mvs(81)`"
prettier/prettier
|
| 34 |
containerStyle={{ maxHeight: mvs(81) }} |
| Error |
Row 35, Column 26: "Replace `?'Rejection·Reason':` with `·?·'Rejection·Reason'·:·`"
prettier/prettier
|
| Warning |
Row 35, Column 26: "Operator '?' must be spaced."
space-infix-ops
|
| 35 |
label={reject?'Rejection Reason':'Dispute Reason'} |
| 36 |
value={reason} |
| Warning |
Row 37, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 37, Column 21: "Replace `·textAlign:·'center',·fontSize:·mvs(13),·color·:·colors.typeHeader` with `⏎··············textAlign:·'center',⏎··············fontSize:·mvs(13),⏎··············color:·colors.typeHeader,⏎············`"
prettier/prettier
|
| 37 |
style={{ textAlign: 'center', fontSize: mvs(13), color : colors.typeHeader}} |
| 38 |
editable={false} |
| Error |
Row 39, Column 47: "Replace `·...payload,·reason:·text·` with `...payload,·reason:·text`"
prettier/prettier
|
| 39 |
onChangeText={text => setPayload({ ...payload, reason: text })} |
| 40 |
/> |
| 41 |
{/* <Regular label={'Thank you for contacting us.'} style={{alignSelf:'center',color:colors.primary,marginTop:mvs(29)}}/> */} |
| Error |
Row 42, Column 23: "Replace `prettier/prettier
|
| Warning |
Row 42, Column 32: "Trailing spaces not allowed."
no-trailing-spaces
|
| 42 |
{!reject && <DualText |
| Error |
Row 43, Column 1: "Replace `··········content·=·{`We·are·still·investigating·the·dispute.\nYou·will·be·notified·as·soon·as·we·reach·a\nverdict.·`}·⏎··········style={{·` with `··············content={`We·are·still·investigating·the·dispute.\nYou·will·be·notified·as·soon·as·we·reach·a\nverdict.·`}⏎··············style={{`"
prettier/prettier
|
| Warning |
Row 43, Column 22: "Strings must use singlequote."
quotes
|
| Warning |
Row 43, Column 119: "Trailing spaces not allowed."
no-trailing-spaces
|
| 43 |
content = {`We are still investigating the dispute.\nYou will be notified as soon as we reach a\nverdict. `} |
| Warning |
Row 44, Column 18: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 44, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| 44 |
style={{ |
| Error |
Row 45, Column 1: "Replace `············fontSize:·mvs(15),·⏎············color:·colors.lightgrey2,·⏎············alignSelf:·'center',·⏎············textAlign:'center',·⏎············marginTop·:·mvs(29)·` with `················fontSize:·mvs(15),⏎················color:·colors.lightgrey2,⏎················alignSelf:·'center',⏎················textAlign:·'center',⏎················marginTop:·mvs(29),`"
prettier/prettier
|
| Warning |
Row 45, Column 31: "Trailing spaces not allowed."
no-trailing-spaces
|
| 45 |
fontSize: mvs(15), |
| Warning |
Row 46, Column 38: "Trailing spaces not allowed."
no-trailing-spaces
|
| 46 |
color: colors.lightgrey2, |
| Warning |
Row 47, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| 47 |
alignSelf: 'center', |
| Warning |
Row 48, Column 32: "Trailing spaces not allowed."
no-trailing-spaces
|
| 48 |
textAlign:'center', |
| Warning |
Row 49, Column 32: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 49, Column 32: "Missing trailing comma."
comma-dangle
|
| 49 |
marginTop : mvs(29) |
| Error |
Row 50, Column 1: "Insert `··`"
prettier/prettier
|
| 50 |
}}> |
| Error |
Row 51, Column 14: "Replace `prettier/prettier
|
| Warning |
Row 51, Column 22: "Trailing spaces not allowed."
no-trailing-spaces
|
| 51 |
<Regular |
| 52 |
label = "Thank you." |
| 53 |
style = {{color : colors.primary}} |
| 54 |
/> |
| Error |
Row 55, Column 24: "Insert `⏎··········)`"
prettier/prettier
|
| 55 |
</DualText>} |
| 56 |
|
| Error |
Row 57, Column 22: "Replace `prettier/prettier
|
| Warning |
Row 57, Column 31: "Trailing spaces not allowed."
no-trailing-spaces
|
| 57 |
{reject && <DualText |
| Warning |
Row 58, Column 34: "Trailing spaces not allowed."
no-trailing-spaces
|
| 58 |
content = {`${name} `} |
| Warning |
Row 59, Column 19: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 59, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| 59 |
style={{ |
| Warning |
Row 60, Column 31: "Trailing spaces not allowed."
no-trailing-spaces
|
| 60 |
fontSize: mvs(15), |
| Warning |
Row 61, Column 35: "Trailing spaces not allowed."
no-trailing-spaces
|
| 61 |
color: colors.primary, |
| Error |
Row 62, Column 1: "Replace `············alignSelf:·'center',·⏎············textAlign:'center',·⏎············marginTop·:·mvs(29)·⏎············` with `················alignSelf:·'center',⏎················textAlign:·'center',⏎················marginTop:·mvs(29),⏎··············`"
prettier/prettier
|
| Warning |
Row 62, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| 62 |
alignSelf: 'center', |
| Warning |
Row 63, Column 32: "Trailing spaces not allowed."
no-trailing-spaces
|
| 63 |
textAlign:'center', |
| Warning |
Row 64, Column 32: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 64, Column 32: "Missing trailing comma."
comma-dangle
|
| 64 |
marginTop : mvs(29) |
| 65 |
}}> |
| Warning |
Row 66, Column 23: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 66, Column 23: "Delete `·`"
prettier/prettier
|
| 66 |
<Regular |
| Error |
Row 67, Column 1: "Replace `·············label·=·` with `················label=`"
prettier/prettier
|
| 67 |
label = "will be notified to send a product proof that fits your requirements." |
| Error |
Row 68, Column 14: "Replace `style·=·{{color·` with `···style={{color`"
prettier/prettier
|
| 68 |
style = {{color : colors.typeHeader}} |
| Error |
Row 69, Column 1: "Insert `·`"
prettier/prettier
|
| 69 |
/> |
| Error |
Row 70, Column 24: "Delete `}⏎`"
prettier/prettier
|
| 70 |
</DualText>} |
| 71 |
|
| Warning |
Row 72, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 72, Column 11: "Replace `··` with `)}`"
prettier/prettier
|
| 72 |
|
| 73 |
|
| 74 |
{/* <SettingCard style={{ paddingTop: mvs(13), paddingBottom: mvs(7), marginTop: mvs(39) }} headingStyle={{ alignSelf: 'center', fontSize: mvs(14) }} heading={'Make sure your notifications are on'}> |
| 75 |
<CustomSwitch style={{ marginTop: 0 }} textStyle={{ color: colors.primary }} label={'Email'} /> |
| 76 |
<CustomSwitch style={{ marginTop: mvs(10) }} textStyle={{ color: colors.primary }} label={'SMS'} /> |
| 77 |
</SettingCard> */} |
| 78 |
|
| 79 |
{/* <View style={styles.BUTTON_CONTAINER}> */} |
| Error |
Row 80, Column 11: "Replace `··{reject·&&` with `{reject·&&·(⏎···········`"
prettier/prettier
|
| 80 |
{reject && <Buttons.ButtonPrimary |
| 81 |
onClick={onConfirm} |
| Error |
Row 82, Column 50: "Delete `·`"
prettier/prettier
|
| 82 |
style={{...styles.BUTTON, marginTop : mvs(29)}} |
| 83 |
title={'Confirm'} |
| Error |
Row 84, Column 15: "Delete `}⏎`"
prettier/prettier
|
| 84 |
/>} |
| 85 |
|
| Error |
Row 86, Column 11: "Insert `)}⏎⏎·······`"
prettier/prettier
|
| 86 |
<Buttons.ButtonSecondaryOutline |
| Error |
Row 87, Column 13: "Delete `··`"
prettier/prettier
|
| 87 |
onClick={onClose} |
| Error |
Row 88, Column 1: "Replace `··············style={{...styles.BUTTON,·marginTop·` with `············style={{...styles.BUTTON,·marginTop`"
prettier/prettier
|
| 88 |
style={{...styles.BUTTON, marginTop : reject ? mvs(10) : mvs(29)}} |
| Error |
Row 89, Column 13: "Replace `··title={reject?'Cancel':` with `title={reject·?·'Cancel'·:·`"
prettier/prettier
|
| Warning |
Row 89, Column 28: "Operator '?' must be spaced."
space-infix-ops
|
| 89 |
title={reject?'Cancel':'Back'} |
| Error |
Row 90, Column 1: "Delete `··`"
prettier/prettier
|
| 90 |
/> |
| 91 |
{/* </View> */} |
| 92 |
</View> |
| 93 |
</View> |
| 94 |
</ReactNativeModal> |
| 95 |
); |
| 96 |
}; |
| 97 |
export default DisputeModal; |
| 98 |
const styles = StyleSheet.create({ |
| 99 |
CONTAINER: { |
| 100 |
// position: 'absolute', |
| 101 |
// bottom: 0, |
| 102 |
width: ms(332), |
| 103 |
borderRadius: mvs(20), |
| Error |
Row 104, Column 14: "Replace `·:·'center'` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 104, Column 25: "Missing trailing comma."
comma-dangle
|
| 104 |
alignSelf : 'center' |
| 105 |
//paddingHorizontal: mvs(22), |
| 106 |
}, |
| Error |
Row 107, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(37),·marginBottom:·mvs(39)` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(37),⏎····marginBottom:·mvs(39),⏎·`"
prettier/prettier
|
| 107 |
REFUND_CONATINER: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', marginTop: mvs(37), marginBottom: mvs(39) }, |
| Error |
Row 108, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| 108 |
TEXT: { textAlign: 'center', marginTop: mvs(30), fontSize: mvs(14), color: colors.primary }, |
| 109 |
HEADING_TXT: { |
| 110 |
fontSize: mvs(19.5), |
| 111 |
color: colors.pink, |
| 112 |
alignSelf: 'center', |
| 113 |
marginBottom: mvs(9.5), |
| 114 |
}, |
| 115 |
SUB_CONTAINER: { |
| 116 |
backgroundColor: colors.white, |
| 117 |
// paddingTop: mvs(20), |
| 118 |
paddingVertical: mvs(20), |
| 119 |
borderRadius: mvs(20), |
| 120 |
paddingHorizontal: mvs(10), |
| Error |
Row 121, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| 121 |
backgroundColor: colors.white, |
| 122 |
}, |
| 123 |
DESTINATION_CONTAINER: { |
| 124 |
alignItems: 'center', |
| 125 |
flexDirection: 'row', |
| 126 |
justifyContent: 'space-between', |
| 127 |
}, |
| 128 |
FLAG_BUTTON: { |
| 129 |
width: mvs(161), |
| 130 |
height: mvs(38), |
| 131 |
flexDirection: 'row-reverse', |
| 132 |
backgroundColor: colors.secondary, |
| 133 |
}, |
| 134 |
SEARCH_MAP: { |
| 135 |
marginTop: mvs(15), |
| 136 |
alignSelf: 'flex-end', |
| 137 |
width: mvs(161), |
| 138 |
height: mvs(38), |
| 139 |
flexDirection: 'row', |
| 140 |
backgroundColor: colors.primary, |
| 141 |
paddingHorizontal: mvs(23), |
| 142 |
}, |
| 143 |
MAP_ICON: { |
| 144 |
height: mvs(18), |
| 145 |
width: mvs(14), |
| 146 |
}, |
| 147 |
NO_DELIVERY_CONTAINER: { |
| 148 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 149 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 150 |
flexDirection: 'row', |
| 151 |
alignItems: 'center', |
| 152 |
paddingVertical: mvs(14), |
| 153 |
marginTop: mvs(15), |
| 154 |
borderColor: colors.filter_divider, |
| 155 |
}, |
| 156 |
NoDelivery: { |
| 157 |
fontSize: mvs(15), |
| 158 |
color: colors.headerTitle, |
| 159 |
}, |
| 160 |
PRICES_CONTAINER: { |
| 161 |
marginTop: mvs(13), |
| 162 |
flexDirection: 'row', |
| 163 |
justifyContent: 'space-between', |
| 164 |
}, |
| 165 |
PRICE_HEADING: { |
| 166 |
fontSize: mvs(15), |
| 167 |
color: colors.primary, |
| 168 |
marginBottom: mvs(10), |
| 169 |
}, |
| 170 |
MAX_MIN_PRICE: { |
| 171 |
width: mvs(161), |
| 172 |
}, |
| 173 |
DIV: { |
| 174 |
marginTop: mvs(14), |
| 175 |
marginBottom: mvs(13), |
| 176 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 177 |
borderColor: colors.filter_divider, |
| 178 |
}, |
| 179 |
DEL_TIME: { |
| 180 |
color: colors.primary, |
| 181 |
fontSize: mvs(15), |
| 182 |
marginBottom: mvs(8), |
| 183 |
}, |
| 184 |
RADIO_CONTAINER: { |
| 185 |
marginBottom: mvs(30), |
| 186 |
}, |
| 187 |
RADIO_LABEL: { |
| 188 |
color: colors.headerTitle, |
| 189 |
fontSize: mvs(15), |
| 190 |
}, |
| 191 |
BUTTON_CONTAINER: { |
| 192 |
flexDirection: 'row', |
| 193 |
justifyContent: 'space-between', |
| 194 |
marginTop: mvs(29), |
| 195 |
//borderWidth:1 |
| 196 |
}, |
| 197 |
BUTTON: { |
| 198 |
width: '100%', |
| 199 |
}, |
| Error |
Row 200, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| 200 |
BACK: { position: 'absolute', left: mvs(23), top: mvs(17) }, |
| 201 |
}); |
| 202 |
|
|
|
|
/src/components/molecules/modals/dispute-result-modal.js
|
55 problems (41 errors, 14 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Error |
Row 6, Column 9: "Replace `·mvs,·ms·` with `mvs,·ms`"
prettier/prettier
|
| Warning |
Row 7, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Error |
Row 9, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 11, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 12, Column 30: "Replace `·visible,·onClose·` with `visible,·onClose`"
prettier/prettier
|
| Error |
Row 14, Column 76: "Insert `,`"
prettier/prettier
|
| Warning |
Row 14, Column 76: "Missing trailing comma."
comma-dangle
|
| Error |
Row 16, Column 8: "Replace `=` with `·=·`"
prettier/prettier
|
| Warning |
Row 16, Column 8: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 17, Column 25: "Insert `·`"
prettier/prettier
|
| Warning |
Row 25, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 25, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| Error |
Row 29, Column 11: "Delete `··`"
prettier/prettier
|
| Error |
Row 30, Column 13: "Replace `··containerStyle={{·maxHeight:·mvs(81)·` with `containerStyle={{maxHeight:·mvs(81)`"
prettier/prettier
|
| Error |
Row 31, Column 1: "Replace `··············label='Dispute·Reason'` with `············label="Dispute·Reason"`"
prettier/prettier
|
| Warning |
Row 31, Column 21: "Unexpected usage of singlequote."
jsx-quotes
|
| Error |
Row 32, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 33, Column 1: "Replace `··············style={{·textAlign:·'center',·fontSize:·mvs(13)·` with `············style={{textAlign:·'center',·fontSize:·mvs(13)`"
prettier/prettier
|
| Warning |
Row 33, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 34, Column 1: "Replace `··············onChangeText={text·=>·setPayload({·...payload,·reason:·text·` with `············onChangeText={text·=>·setPayload({...payload,·reason:·text`"
prettier/prettier
|
| Error |
Row 35, Column 11: "Delete `··`"
prettier/prettier
|
| Error |
Row 36, Column 1: "Replace `············prettier/prettier
|
| Error |
Row 37, Column 11: "Replace `··prettier/prettier
|
| Error |
Row 38, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 39, Column 13: "Replace `··prettier/prettier
|
| Error |
Row 40, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 41, Column 1: "Replace `················unitStyle={{·color:·colors.green,·fontSize:·mvs(21)·` with `··············unitStyle={{color:·colors.green,·fontSize:·mvs(21)`"
prettier/prettier
|
| Error |
Row 42, Column 15: "Delete `··`"
prettier/prettier
|
| Error |
Row 43, Column 1: "Replace `················` with `··············`"
prettier/prettier
|
| Warning |
Row 43, Column 24: "Strings must use singlequote."
quotes
|
| Error |
Row 44, Column 1: "Replace `················priceUnit={`${(500000*` with `··············priceUnit={`${(500000·*·`"
prettier/prettier
|
| Warning |
Row 44, Column 38: "Operator '*' must be spaced."
space-infix-ops
|
| Error |
Row 45, Column 15: "Replace `··style={{·color:·colors.green,·fontSize:·mvs(21)·` with `style={{color:·colors.green,·fontSize:·mvs(21)`"
prettier/prettier
|
| Error |
Row 46, Column 1: "Replace `················containerStyle={{·justifyContent:·'center',height:mvs(48)·` with `··············containerStyle={{justifyContent:·'center',·height:·mvs(48)`"
prettier/prettier
|
| Warning |
Row 46, Column 33: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 47, Column 13: "Delete `··`"
prettier/prettier
|
| Error |
Row 48, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 49, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 50, Column 13: "Delete `··`"
prettier/prettier
|
| Error |
Row 51, Column 1: "Replace `················onClick={()·=>·{·` with `··············onClick={()·=>·{`"
prettier/prettier
|
| Error |
Row 52, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 53, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 54, Column 13: "Delete `··`"
prettier/prettier
|
| Error |
Row 55, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 68, Column 14: "Replace `·:·'center'` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 68, Column 25: "Missing trailing comma."
comma-dangle
|
| Error |
Row 71, Column 20: "Replace `{·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(20),` with `·{⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(20),⏎·`"
prettier/prettier
|
| Warning |
Row 71, Column 117: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 72, Column 8: "Replace `{·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `·{⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| Error |
Row 85, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| Error |
Row 163, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| 2 |
import { View, StyleSheet, ImageBackground } from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 4 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce'; |
| 5 |
import colors from '../../../config/colors'; |
| Error |
Row 6, Column 9: "Replace `·mvs,·ms·` with `mvs,·ms`"
prettier/prettier
|
| 6 |
import { mvs, ms } from '../../../config/metrices'; |
| Warning |
Row 7, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| 7 |
import Medium from '../../../presentation/typography/medium-text'; |
| 8 |
import Regular from '../../../presentation/typography/regular-text'; |
| Error |
Row 9, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 9 |
import { TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| 10 |
import Buttons from '../../atoms/Button'; |
| Warning |
Row 11, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| 11 |
const list = [true, false, false, true]; |
| Error |
Row 12, Column 30: "Replace `·visible,·onClose·` with `visible,·onClose`"
prettier/prettier
|
| 12 |
const DisputeResultModal = ({ visible, onClose }) => { |
| 13 |
const [payload, setPayload] = React.useState({ |
| Error |
Row 14, Column 76: "Insert `,`"
prettier/prettier
|
| Warning |
Row 14, Column 76: "Missing trailing comma."
comma-dangle
|
| 14 |
reason: 'Deliverer not responding to my messages after several trials.' |
| 15 |
}); |
| Error |
Row 16, Column 8: "Replace `=` with `·=·`"
prettier/prettier
|
| Warning |
Row 16, Column 8: "Operator '=' must be spaced."
space-infix-ops
|
| 16 |
var v=788990909; |
| Error |
Row 17, Column 25: "Insert `·`"
prettier/prettier
|
| 17 |
console.log('local: ',v.toLocaleString('en')); |
| 18 |
return ( |
| 19 |
<ReactNativeModal |
| 20 |
propagateSwipe |
| 21 |
isVisible={visible} |
| 22 |
avoidKeyboard |
| 23 |
onBackdropPress={() => onClose(f => !f)} |
| 24 |
onBackButtonPress={() => onClose(f => !f)} |
| Warning |
Row 25, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 25, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| 25 |
style={{ margin: 0, padding: 0 }}> |
| 26 |
<View style={styles.CONTAINER}> |
| 27 |
<View style={styles.SUB_CONTAINER}> |
| 28 |
<Regular label={'Dispute Result'} style={styles.HEADING_TXT} /> |
| Error |
Row 29, Column 11: "Delete `··`"
prettier/prettier
|
| 29 |
<TAKE_TO_INPUT_FIELD.ReviewInput |
| Error |
Row 30, Column 13: "Replace `··containerStyle={{·maxHeight:·mvs(81)·` with `containerStyle={{maxHeight:·mvs(81)`"
prettier/prettier
|
| 30 |
containerStyle={{ maxHeight: mvs(81) }} |
| Error |
Row 31, Column 1: "Replace `··············label='Dispute·Reason'` with `············label="Dispute·Reason"`"
prettier/prettier
|
| Warning |
Row 31, Column 21: "Unexpected usage of singlequote."
jsx-quotes
|
| 31 |
label='Dispute Reason' |
| Error |
Row 32, Column 1: "Delete `··`"
prettier/prettier
|
| 32 |
value={payload.reason} |
| Error |
Row 33, Column 1: "Replace `··············style={{·textAlign:·'center',·fontSize:·mvs(13)·` with `············style={{textAlign:·'center',·fontSize:·mvs(13)`"
prettier/prettier
|
| Warning |
Row 33, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 33 |
style={{ textAlign: 'center', fontSize: mvs(13) }} |
| Error |
Row 34, Column 1: "Replace `··············onChangeText={text·=>·setPayload({·...payload,·reason:·text·` with `············onChangeText={text·=>·setPayload({...payload,·reason:·text`"
prettier/prettier
|
| 34 |
onChangeText={text => setPayload({ ...payload, reason: text })} |
| Error |
Row 35, Column 11: "Delete `··`"
prettier/prettier
|
| 35 |
/> |
| Error |
Row 36, Column 1: "Replace `············prettier/prettier
|
| 36 |
<Regular style={styles.TEXT} label={'We are glad to inform you that the investigation result was in your favor.'} /> |
| Error |
Row 37, Column 11: "Replace `··prettier/prettier
|
| 37 |
<Regular style={{...styles.TEXT,color: colors.typeHeader,marginTop: mvs(20)}} label={'The Held amount will be released to the you. Thank you'} /> |
| Error |
Row 38, Column 1: "Delete `··`"
prettier/prettier
|
| 38 |
<View style={styles.REFUND_CONATINER}> |
| Error |
Row 39, Column 13: "Replace `··prettier/prettier
|
| 39 |
<Regular style={{ fontSize: mvs(14), color: colors.typeHeader }} label={'Amount'} /> |
| Error |
Row 40, Column 1: "Delete `··`"
prettier/prettier
|
| 40 |
<TAKE_TO_INPUT_FIELD.PriceInput |
| Error |
Row 41, Column 1: "Replace `················unitStyle={{·color:·colors.green,·fontSize:·mvs(21)·` with `··············unitStyle={{color:·colors.green,·fontSize:·mvs(21)`"
prettier/prettier
|
| 41 |
unitStyle={{ color: colors.green, fontSize: mvs(21) }} |
| Error |
Row 42, Column 15: "Delete `··`"
prettier/prettier
|
| 42 |
editable={false} |
| Error |
Row 43, Column 1: "Replace `················` with `··············`"
prettier/prettier
|
| Warning |
Row 43, Column 24: "Strings must use singlequote."
quotes
|
| 43 |
value={`US$`} |
| Error |
Row 44, Column 1: "Replace `················priceUnit={`${(500000*` with `··············priceUnit={`${(500000·*·`"
prettier/prettier
|
| Warning |
Row 44, Column 38: "Operator '*' must be spaced."
space-infix-ops
|
| 44 |
priceUnit={`${(500000*1).toLocaleString()}`} |
| Error |
Row 45, Column 15: "Replace `··style={{·color:·colors.green,·fontSize:·mvs(21)·` with `style={{color:·colors.green,·fontSize:·mvs(21)`"
prettier/prettier
|
| 45 |
style={{ color: colors.green, fontSize: mvs(21) }} |
| Error |
Row 46, Column 1: "Replace `················containerStyle={{·justifyContent:·'center',height:mvs(48)·` with `··············containerStyle={{justifyContent:·'center',·height:·mvs(48)`"
prettier/prettier
|
| Warning |
Row 46, Column 33: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| 46 |
containerStyle={{ justifyContent: 'center',height:mvs(48) }} |
| Error |
Row 47, Column 13: "Delete `··`"
prettier/prettier
|
| 47 |
/> |
| Error |
Row 48, Column 1: "Delete `··`"
prettier/prettier
|
| 48 |
</View> |
| Error |
Row 49, Column 1: "Delete `··`"
prettier/prettier
|
| 49 |
<View style={styles.BUTTON_CONTAINER}> |
| Error |
Row 50, Column 13: "Delete `··`"
prettier/prettier
|
| 50 |
<Buttons.ButtonPrimary |
| Error |
Row 51, Column 1: "Replace `················onClick={()·=>·{·` with `··············onClick={()·=>·{`"
prettier/prettier
|
| 51 |
onClick={() => { }} |
| Error |
Row 52, Column 1: "Delete `··`"
prettier/prettier
|
| 52 |
style={styles.BUTTON} |
| Error |
Row 53, Column 1: "Delete `··`"
prettier/prettier
|
| 53 |
title={'Back to Notifications'} |
| Error |
Row 54, Column 13: "Delete `··`"
prettier/prettier
|
| 54 |
/> |
| Error |
Row 55, Column 1: "Delete `··`"
prettier/prettier
|
| 55 |
</View> |
| 56 |
</View> |
| 57 |
</View> |
| 58 |
</ReactNativeModal> |
| 59 |
); |
| 60 |
}; |
| 61 |
export default DisputeResultModal; |
| 62 |
const styles = StyleSheet.create({ |
| 63 |
CONTAINER: { |
| 64 |
// position: 'absolute', |
| 65 |
// bottom: 0, |
| 66 |
width: ms(332), |
| 67 |
borderRadius: mvs(20), |
| Error |
Row 68, Column 14: "Replace `·:·'center'` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 68, Column 25: "Missing trailing comma."
comma-dangle
|
| 68 |
alignSelf : 'center' |
| 69 |
//paddingHorizontal: mvs(22), |
| 70 |
}, |
| Error |
Row 71, Column 20: "Replace `{·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(20),` with `·{⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(20),⏎·`"
prettier/prettier
|
| Warning |
Row 71, Column 117: "Unexpected trailing comma."
comma-dangle
|
| 71 |
REFUND_CONATINER:{ flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', marginTop: mvs(20), }, |
| Error |
Row 72, Column 8: "Replace `{·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `·{⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| 72 |
TEXT:{ textAlign: 'center', marginTop: mvs(30), fontSize: mvs(14), color: colors.primary }, |
| 73 |
HEADING_TXT: { |
| 74 |
fontSize: mvs(20), |
| 75 |
color: colors.disputes, |
| 76 |
alignSelf: 'center', |
| 77 |
marginBottom: mvs(10), |
| 78 |
}, |
| 79 |
SUB_CONTAINER: { |
| 80 |
backgroundColor: colors.white, |
| 81 |
// paddingTop: mvs(20), |
| 82 |
paddingVertical: mvs(20), |
| 83 |
borderRadius: mvs(20), |
| 84 |
paddingHorizontal: mvs(10), |
| Error |
Row 85, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| 85 |
backgroundColor: colors.white, |
| 86 |
}, |
| 87 |
DESTINATION_CONTAINER: { |
| 88 |
alignItems: 'center', |
| 89 |
flexDirection: 'row', |
| 90 |
justifyContent: 'space-between', |
| 91 |
}, |
| 92 |
FLAG_BUTTON: { |
| 93 |
width: mvs(161), |
| 94 |
height: mvs(38), |
| 95 |
flexDirection: 'row-reverse', |
| 96 |
backgroundColor: colors.secondary, |
| 97 |
}, |
| 98 |
SEARCH_MAP: { |
| 99 |
marginTop: mvs(15), |
| 100 |
alignSelf: 'flex-end', |
| 101 |
width: mvs(161), |
| 102 |
height: mvs(38), |
| 103 |
flexDirection: 'row', |
| 104 |
backgroundColor: colors.primary, |
| 105 |
paddingHorizontal: mvs(23), |
| 106 |
}, |
| 107 |
MAP_ICON: { |
| 108 |
height: mvs(18), |
| 109 |
width: mvs(14), |
| 110 |
}, |
| 111 |
NO_DELIVERY_CONTAINER: { |
| 112 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 113 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 114 |
flexDirection: 'row', |
| 115 |
alignItems: 'center', |
| 116 |
paddingVertical: mvs(14), |
| 117 |
marginTop: mvs(15), |
| 118 |
borderColor: colors.filter_divider, |
| 119 |
}, |
| 120 |
NoDelivery: { |
| 121 |
fontSize: mvs(15), |
| 122 |
color: colors.headerTitle, |
| 123 |
}, |
| 124 |
PRICES_CONTAINER: { |
| 125 |
marginTop: mvs(13), |
| 126 |
flexDirection: 'row', |
| 127 |
justifyContent: 'space-between', |
| 128 |
}, |
| 129 |
PRICE_HEADING: { |
| 130 |
fontSize: mvs(15), |
| 131 |
color: colors.primary, |
| 132 |
marginBottom: mvs(10), |
| 133 |
}, |
| 134 |
MAX_MIN_PRICE: { |
| 135 |
width: mvs(161), |
| 136 |
}, |
| 137 |
DIV: { |
| 138 |
marginTop: mvs(14), |
| 139 |
marginBottom: mvs(13), |
| 140 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 141 |
borderColor: colors.filter_divider, |
| 142 |
}, |
| 143 |
DEL_TIME: { |
| 144 |
color: colors.primary, |
| 145 |
fontSize: mvs(15), |
| 146 |
marginBottom: mvs(8), |
| 147 |
}, |
| 148 |
RADIO_CONTAINER: { |
| 149 |
marginBottom: mvs(30), |
| 150 |
}, |
| 151 |
RADIO_LABEL: { |
| 152 |
color: colors.headerTitle, |
| 153 |
fontSize: mvs(15), |
| 154 |
}, |
| 155 |
BUTTON_CONTAINER: { |
| 156 |
flexDirection: 'row', |
| 157 |
justifyContent: 'space-between', |
| 158 |
marginTop: mvs(29), |
| 159 |
}, |
| 160 |
BUTTON: { |
| 161 |
width: '100%', |
| 162 |
}, |
| Error |
Row 163, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| 163 |
BACK: { position: 'absolute', left: mvs(23), top: mvs(17) }, |
| 164 |
}); |
| 165 |
|
|
|
|
/src/components/molecules/modals/dispute-submit-modal.js
|
34 problems (20 errors, 14 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| Error |
Row 7, Column 9: "Replace `·mvs,·ms·` with `mvs,·ms`"
prettier/prettier
|
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 12, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| Warning |
Row 13, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| Warning |
Row 14, Column 8: "'DualText' is defined but never used."
no-unused-vars
|
| Warning |
Row 15, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| Warning |
Row 16, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 17, Column 30: "Replace `·visible,·onClose·` with `visible,·onClose`"
prettier/prettier
|
| Error |
Row 19, Column 72: "Insert `,`"
prettier/prettier
|
| Warning |
Row 19, Column 72: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 29, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 29, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| Error |
Row 33, Column 11: "Delete `··`"
prettier/prettier
|
| Error |
Row 34, Column 13: "Replace `··containerStyle={{·maxHeight:·mvs(81)·` with `containerStyle={{maxHeight:·mvs(81)`"
prettier/prettier
|
| Error |
Row 35, Column 1: "Replace `··············label='Dispute·Reason'` with `············label="Dispute·Reason"`"
prettier/prettier
|
| Warning |
Row 35, Column 21: "Unexpected usage of singlequote."
jsx-quotes
|
| Error |
Row 36, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 37, Column 1: "Replace `··············style={{·textAlign:·'center',·fontSize:·mvs(13)·` with `············style={{textAlign:·'center',·fontSize:·mvs(13)`"
prettier/prettier
|
| Warning |
Row 37, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 38, Column 1: "Replace `··············onChangeText={text·=>·setPayload({·...payload,·reason:·text·` with `············onChangeText={text·=>·setPayload({...payload,·reason:·text`"
prettier/prettier
|
| Error |
Row 39, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 46, Column 31: "Delete `·`"
prettier/prettier
|
| Error |
Row 63, Column 14: "Replace `·:·'center'` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 63, Column 25: "Missing trailing comma."
comma-dangle
|
| Error |
Row 66, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(37),marginBottom:mvs(39)` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(37),⏎····marginBottom:·mvs(39),⏎·`"
prettier/prettier
|
| Error |
Row 67, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| Error |
Row 80, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| Error |
Row 158, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| 2 |
import { View, StyleSheet, ImageBackground } from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 4 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce'; |
| 5 |
import colors from '../../../config/colors'; |
| Warning |
Row 6, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| 6 |
import fonts from '../../../config/fonts'; |
| Error |
Row 7, Column 9: "Replace `·mvs,·ms·` with `mvs,·ms`"
prettier/prettier
|
| 7 |
import { mvs, ms } from '../../../config/metrices'; |
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| 8 |
import Medium from '../../../presentation/typography/medium-text'; |
| 9 |
import Regular from '../../../presentation/typography/regular-text'; |
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 10 |
import { TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| 11 |
import Buttons from '../../atoms/Button'; |
| Warning |
Row 12, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| 12 |
import CustomRadio from '../../atoms/RadioButton'; |
| Warning |
Row 13, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| 13 |
import CustomSwitch from '../../atoms/Switch'; |
| Warning |
Row 14, Column 8: "'DualText' is defined but never used."
no-unused-vars
|
| 14 |
import DualText from '../dual-text/dual-text'; |
| Warning |
Row 15, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| 15 |
import SettingCard from '../setting_card/setting-card'; |
| Warning |
Row 16, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| 16 |
const list = [true, false, false, true]; |
| Error |
Row 17, Column 30: "Replace `·visible,·onClose·` with `visible,·onClose`"
prettier/prettier
|
| 17 |
const DisputeSubmitModal = ({ visible, onClose }) => { |
| 18 |
const [payload, setPayload] = React.useState({ |
| Error |
Row 19, Column 72: "Insert `,`"
prettier/prettier
|
| Warning |
Row 19, Column 72: "Missing trailing comma."
comma-dangle
|
| 19 |
reason: 'Buyer never confirmed delivery after receiving his order.' |
| 20 |
}); |
| 21 |
|
| 22 |
return ( |
| 23 |
<ReactNativeModal |
| 24 |
propagateSwipe |
| 25 |
isVisible={visible} |
| 26 |
// avoidKeyboard |
| 27 |
onBackdropPress={() => onClose(f => !f)} |
| 28 |
onBackButtonPress={() => onClose(f => !f)} |
| Warning |
Row 29, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 29, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| 29 |
style={{ margin: 0, padding: 0 }}> |
| 30 |
<View style={styles.CONTAINER}> |
| 31 |
<View style={styles.SUB_CONTAINER}> |
| 32 |
<Regular label={'Dispute'} style={styles.HEADING_TXT} /> |
| Error |
Row 33, Column 11: "Delete `··`"
prettier/prettier
|
| 33 |
<TAKE_TO_INPUT_FIELD.ReviewInput |
| Error |
Row 34, Column 13: "Replace `··containerStyle={{·maxHeight:·mvs(81)·` with `containerStyle={{maxHeight:·mvs(81)`"
prettier/prettier
|
| 34 |
containerStyle={{ maxHeight: mvs(81) }} |
| Error |
Row 35, Column 1: "Replace `··············label='Dispute·Reason'` with `············label="Dispute·Reason"`"
prettier/prettier
|
| Warning |
Row 35, Column 21: "Unexpected usage of singlequote."
jsx-quotes
|
| 35 |
label='Dispute Reason' |
| Error |
Row 36, Column 1: "Delete `··`"
prettier/prettier
|
| 36 |
value={payload.reason} |
| Error |
Row 37, Column 1: "Replace `··············style={{·textAlign:·'center',·fontSize:·mvs(13)·` with `············style={{textAlign:·'center',·fontSize:·mvs(13)`"
prettier/prettier
|
| Warning |
Row 37, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 37 |
style={{ textAlign: 'center', fontSize: mvs(13) }} |
| Error |
Row 38, Column 1: "Replace `··············onChangeText={text·=>·setPayload({·...payload,·reason:·text·` with `············onChangeText={text·=>·setPayload({...payload,·reason:·text`"
prettier/prettier
|
| 38 |
onChangeText={text => setPayload({ ...payload, reason: text })} |
| Error |
Row 39, Column 1: "Delete `··`"
prettier/prettier
|
| 39 |
/> |
| 40 |
{/* <SettingCard style={{paddingTop:mvs(13),paddingBottom:mvs(7),marginTop:mvs(40)}} headingStyle={{ alignSelf: 'center', fontSize: mvs(14) }} heading={'Make sure your notifications are on'}> |
| 41 |
<CustomSwitch style={{marginTop:0}} textStyle={{color:colors.primary}} label={'Email'} /> |
| 42 |
<CustomSwitch style={{marginTop:mvs(10)}} textStyle={{color:colors.primary}} label={'SMS'} /> |
| 43 |
</SettingCard> */} |
| 44 |
<View style={styles.BUTTON_CONTAINER}> |
| 45 |
<Buttons.ButtonPrimary |
| Error |
Row 46, Column 31: "Delete `·`"
prettier/prettier
|
| 46 |
onClick={() => { }} |
| 47 |
style={styles.BUTTON} |
| 48 |
title={'Back to Notifications'} |
| 49 |
/> |
| 50 |
</View> |
| 51 |
</View> |
| 52 |
</View> |
| 53 |
</ReactNativeModal> |
| 54 |
); |
| 55 |
}; |
| 56 |
export default DisputeSubmitModal; |
| 57 |
const styles = StyleSheet.create({ |
| 58 |
CONTAINER: { |
| 59 |
// position: 'absolute', |
| 60 |
// bottom: 0, |
| 61 |
width: ms(332), |
| 62 |
borderRadius: mvs(20), |
| Error |
Row 63, Column 14: "Replace `·:·'center'` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 63, Column 25: "Missing trailing comma."
comma-dangle
|
| 63 |
alignSelf : 'center' |
| 64 |
//paddingHorizontal: mvs(22), |
| 65 |
}, |
| Error |
Row 66, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(37),marginBottom:mvs(39)` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(37),⏎····marginBottom:·mvs(39),⏎·`"
prettier/prettier
|
| 66 |
REFUND_CONATINER: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', marginTop: mvs(37),marginBottom:mvs(39) }, |
| Error |
Row 67, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| 67 |
TEXT: { textAlign: 'center', marginTop: mvs(30), fontSize: mvs(14), color: colors.primary }, |
| 68 |
HEADING_TXT: { |
| 69 |
fontSize: mvs(19.5), |
| 70 |
color: colors.disputes, |
| 71 |
alignSelf: 'center', |
| 72 |
marginBottom: mvs(9.5), |
| 73 |
}, |
| 74 |
SUB_CONTAINER: { |
| 75 |
backgroundColor: colors.white, |
| 76 |
// paddingTop: mvs(20), |
| 77 |
paddingVertical: mvs(20), |
| 78 |
borderRadius: mvs(20), |
| 79 |
paddingHorizontal: mvs(10), |
| Error |
Row 80, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| 80 |
backgroundColor: colors.white, |
| 81 |
}, |
| 82 |
DESTINATION_CONTAINER: { |
| 83 |
alignItems: 'center', |
| 84 |
flexDirection: 'row', |
| 85 |
justifyContent: 'space-between', |
| 86 |
}, |
| 87 |
FLAG_BUTTON: { |
| 88 |
width: mvs(161), |
| 89 |
height: mvs(38), |
| 90 |
flexDirection: 'row-reverse', |
| 91 |
backgroundColor: colors.secondary, |
| 92 |
}, |
| 93 |
SEARCH_MAP: { |
| 94 |
marginTop: mvs(15), |
| 95 |
alignSelf: 'flex-end', |
| 96 |
width: mvs(161), |
| 97 |
height: mvs(38), |
| 98 |
flexDirection: 'row', |
| 99 |
backgroundColor: colors.primary, |
| 100 |
paddingHorizontal: mvs(23), |
| 101 |
}, |
| 102 |
MAP_ICON: { |
| 103 |
height: mvs(18), |
| 104 |
width: mvs(14), |
| 105 |
}, |
| 106 |
NO_DELIVERY_CONTAINER: { |
| 107 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 108 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 109 |
flexDirection: 'row', |
| 110 |
alignItems: 'center', |
| 111 |
paddingVertical: mvs(14), |
| 112 |
marginTop: mvs(15), |
| 113 |
borderColor: colors.filter_divider, |
| 114 |
}, |
| 115 |
NoDelivery: { |
| 116 |
fontSize: mvs(15), |
| 117 |
color: colors.headerTitle, |
| 118 |
}, |
| 119 |
PRICES_CONTAINER: { |
| 120 |
marginTop: mvs(13), |
| 121 |
flexDirection: 'row', |
| 122 |
justifyContent: 'space-between', |
| 123 |
}, |
| 124 |
PRICE_HEADING: { |
| 125 |
fontSize: mvs(15), |
| 126 |
color: colors.primary, |
| 127 |
marginBottom: mvs(10), |
| 128 |
}, |
| 129 |
MAX_MIN_PRICE: { |
| 130 |
width: mvs(161), |
| 131 |
}, |
| 132 |
DIV: { |
| 133 |
marginTop: mvs(14), |
| 134 |
marginBottom: mvs(13), |
| 135 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 136 |
borderColor: colors.filter_divider, |
| 137 |
}, |
| 138 |
DEL_TIME: { |
| 139 |
color: colors.primary, |
| 140 |
fontSize: mvs(15), |
| 141 |
marginBottom: mvs(8), |
| 142 |
}, |
| 143 |
RADIO_CONTAINER: { |
| 144 |
marginBottom: mvs(30), |
| 145 |
}, |
| 146 |
RADIO_LABEL: { |
| 147 |
color: colors.headerTitle, |
| 148 |
fontSize: mvs(15), |
| 149 |
}, |
| 150 |
BUTTON_CONTAINER: { |
| 151 |
flexDirection: 'row', |
| 152 |
justifyContent: 'space-between', |
| 153 |
marginTop: mvs(29), |
| 154 |
}, |
| 155 |
BUTTON: { |
| 156 |
width: '100%', |
| 157 |
}, |
| Error |
Row 158, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| 158 |
BACK: { position: 'absolute', left: mvs(23), top: mvs(17) }, |
| 159 |
}); |
| 160 |
|
|
|
|
/src/components/molecules/modals/dispute-submited-modal.js
|
35 problems (19 errors, 16 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| Error |
Row 7, Column 9: "Replace `·mvs,·ms·` with `mvs,·ms`"
prettier/prettier
|
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 12, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| Warning |
Row 13, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| Warning |
Row 14, Column 8: "'DualText' is defined but never used."
no-unused-vars
|
| Warning |
Row 15, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| Warning |
Row 16, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 17, Column 32: "Replace `·visible,·onClose·` with `visible,·onClose`"
prettier/prettier
|
| Error |
Row 19, Column 12: "Replace `·'The·receipt·sent·does·not·match·the·product·price.·I·would·like·to·cancel·this·order·and·raise·a·dispute.'` with `⏎······'The·receipt·sent·does·not·match·the·product·price.·I·would·like·to·cancel·this·order·and·raise·a·dispute.',`"
prettier/prettier
|
| Warning |
Row 19, Column 120: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 29, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 29, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| Error |
Row 34, Column 30: "Replace `·maxHeight:·mvs(81)·` with `maxHeight:·mvs(81)`"
prettier/prettier
|
| Error |
Row 35, Column 19: "Replace `'Dispute·Reason'` with `"Dispute·Reason"`"
prettier/prettier
|
| Warning |
Row 35, Column 19: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 37, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 37, Column 21: "Replace `·textAlign:·'center',·fontSize:·mvs(13)·` with `textAlign:·'center',·fontSize:·mvs(13)`"
prettier/prettier
|
| Error |
Row 38, Column 47: "Replace `·...payload,·reason:·text·` with `...payload,·reason:·text`"
prettier/prettier
|
| Error |
Row 40, Column 19: "Replace `·label={'Thank·you·for·contacting·us.'}·style={{alignSelf:'center',color:colors.primary,marginTop:mvs(29)}}` with `⏎············label={'Thank·you·for·contacting·us.'}⏎············style={{⏎··············alignSelf:·'center',⏎··············color:·colors.primary,⏎··············marginTop:·mvs(29),⏎············}}⏎··········`"
prettier/prettier
|
| Warning |
Row 40, Column 66: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 41, Column 19: "Replace `·label={'We·will·investigate·your·dispute·and·get·back·to·you·as·soon·as·possible.'}·style={{·fontSize:·mvs(14.5),·color:·colors.typeHeader,·alignSelf:·'center',textAlign:'center'·}}` with `⏎············label={⏎··············'We·will·investigate·your·dispute·and·get·back·to·you·as·soon·as·possible.'⏎············}⏎············style={{⏎··············fontSize:·mvs(14.5),⏎··············color:·colors.typeHeader,⏎··············alignSelf:·'center',⏎··············textAlign:·'center',⏎············}}⏎·········`"
prettier/prettier
|
| Warning |
Row 41, Column 111: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 48, Column 31: "Delete `·`"
prettier/prettier
|
| Error |
Row 65, Column 14: "Replace `·:·'center'` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 65, Column 25: "Missing trailing comma."
comma-dangle
|
| Error |
Row 68, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(37),·marginBottom:·mvs(39)` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(37),⏎····marginBottom:·mvs(39),⏎·`"
prettier/prettier
|
| Error |
Row 69, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| Error |
Row 82, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| Error |
Row 160, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| 2 |
import { View, StyleSheet, ImageBackground } from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 4 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce'; |
| 5 |
import colors from '../../../config/colors'; |
| Warning |
Row 6, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| 6 |
import fonts from '../../../config/fonts'; |
| Error |
Row 7, Column 9: "Replace `·mvs,·ms·` with `mvs,·ms`"
prettier/prettier
|
| 7 |
import { mvs, ms } from '../../../config/metrices'; |
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| 8 |
import Medium from '../../../presentation/typography/medium-text'; |
| 9 |
import Regular from '../../../presentation/typography/regular-text'; |
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 10 |
import { TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| 11 |
import Buttons from '../../atoms/Button'; |
| Warning |
Row 12, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| 12 |
import CustomRadio from '../../atoms/RadioButton'; |
| Warning |
Row 13, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| 13 |
import CustomSwitch from '../../atoms/Switch'; |
| Warning |
Row 14, Column 8: "'DualText' is defined but never used."
no-unused-vars
|
| 14 |
import DualText from '../dual-text/dual-text'; |
| Warning |
Row 15, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| 15 |
import SettingCard from '../setting_card/setting-card'; |
| Warning |
Row 16, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| 16 |
const list = [true, false, false, true]; |
| Error |
Row 17, Column 32: "Replace `·visible,·onClose·` with `visible,·onClose`"
prettier/prettier
|
| 17 |
const DisputeSubmitedModal = ({ visible, onClose }) => { |
| 18 |
const [payload, setPayload] = React.useState({ |
| Error |
Row 19, Column 12: "Replace `·'The·receipt·sent·does·not·match·the·product·price.·I·would·like·to·cancel·this·order·and·raise·a·dispute.'` with `⏎······'The·receipt·sent·does·not·match·the·product·price.·I·would·like·to·cancel·this·order·and·raise·a·dispute.',`"
prettier/prettier
|
| Warning |
Row 19, Column 120: "Missing trailing comma."
comma-dangle
|
| 19 |
reason: 'The receipt sent does not match the product price. I would like to cancel this order and raise a dispute.' |
| 20 |
}); |
| 21 |
|
| 22 |
return ( |
| 23 |
<ReactNativeModal |
| 24 |
propagateSwipe |
| 25 |
isVisible={visible} |
| 26 |
// avoidKeyboard |
| 27 |
onBackdropPress={() => onClose(f => !f)} |
| 28 |
onBackButtonPress={() => onClose(f => !f)} |
| Warning |
Row 29, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 29, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| 29 |
style={{ margin: 0, padding: 0 }}> |
| 30 |
<View style={styles.CONTAINER}> |
| 31 |
<View style={styles.SUB_CONTAINER}> |
| 32 |
<Regular label={'Dispute Submitted'} style={styles.HEADING_TXT} /> |
| 33 |
<TAKE_TO_INPUT_FIELD.ReviewInput |
| Error |
Row 34, Column 30: "Replace `·maxHeight:·mvs(81)·` with `maxHeight:·mvs(81)`"
prettier/prettier
|
| 34 |
containerStyle={{ maxHeight: mvs(81) }} |
| Error |
Row 35, Column 19: "Replace `'Dispute·Reason'` with `"Dispute·Reason"`"
prettier/prettier
|
| Warning |
Row 35, Column 19: "Unexpected usage of singlequote."
jsx-quotes
|
| 35 |
label='Dispute Reason' |
| 36 |
value={payload.reason} |
| Warning |
Row 37, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 37, Column 21: "Replace `·textAlign:·'center',·fontSize:·mvs(13)·` with `textAlign:·'center',·fontSize:·mvs(13)`"
prettier/prettier
|
| 37 |
style={{ textAlign: 'center', fontSize: mvs(13) }} |
| Error |
Row 38, Column 47: "Replace `·...payload,·reason:·text·` with `...payload,·reason:·text`"
prettier/prettier
|
| 38 |
onChangeText={text => setPayload({ ...payload, reason: text })} |
| 39 |
/> |
| Error |
Row 40, Column 19: "Replace `·label={'Thank·you·for·contacting·us.'}·style={{alignSelf:'center',color:colors.primary,marginTop:mvs(29)}}` with `⏎············label={'Thank·you·for·contacting·us.'}⏎············style={{⏎··············alignSelf:·'center',⏎··············color:·colors.primary,⏎··············marginTop:·mvs(29),⏎············}}⏎··········`"
prettier/prettier
|
| Warning |
Row 40, Column 66: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| 40 |
<Regular label={'Thank you for contacting us.'} style={{alignSelf:'center',color:colors.primary,marginTop:mvs(29)}}/> |
| Error |
Row 41, Column 19: "Replace `·label={'We·will·investigate·your·dispute·and·get·back·to·you·as·soon·as·possible.'}·style={{·fontSize:·mvs(14.5),·color:·colors.typeHeader,·alignSelf:·'center',textAlign:'center'·}}` with `⏎············label={⏎··············'We·will·investigate·your·dispute·and·get·back·to·you·as·soon·as·possible.'⏎············}⏎············style={{⏎··············fontSize:·mvs(14.5),⏎··············color:·colors.typeHeader,⏎··············alignSelf:·'center',⏎··············textAlign:·'center',⏎············}}⏎·········`"
prettier/prettier
|
| Warning |
Row 41, Column 111: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| 41 |
<Regular label={'We will investigate your dispute and get back to you as soon as possible.'} style={{ fontSize: mvs(14.5), color: colors.typeHeader, alignSelf: 'center',textAlign:'center' }} /> |
| 42 |
{/* <SettingCard style={{ paddingTop: mvs(13), paddingBottom: mvs(7), marginTop: mvs(39) }} headingStyle={{ alignSelf: 'center', fontSize: mvs(14) }} heading={'Make sure your notifications are on'}> |
| 43 |
<CustomSwitch style={{ marginTop: 0 }} textStyle={{ color: colors.primary }} label={'Email'} /> |
| 44 |
<CustomSwitch style={{ marginTop: mvs(10) }} textStyle={{ color: colors.primary }} label={'SMS'} /> |
| 45 |
</SettingCard> */} |
| 46 |
<View style={styles.BUTTON_CONTAINER}> |
| 47 |
<Buttons.ButtonPrimary |
| Error |
Row 48, Column 31: "Delete `·`"
prettier/prettier
|
| 48 |
onClick={() => { }} |
| 49 |
style={styles.BUTTON} |
| 50 |
title={'Back to Notifications'} |
| 51 |
/> |
| 52 |
</View> |
| 53 |
</View> |
| 54 |
</View> |
| 55 |
</ReactNativeModal> |
| 56 |
); |
| 57 |
}; |
| 58 |
export default DisputeSubmitedModal; |
| 59 |
const styles = StyleSheet.create({ |
| 60 |
CONTAINER: { |
| 61 |
// position: 'absolute', |
| 62 |
// bottom: 0, |
| 63 |
width: ms(332), |
| 64 |
borderRadius: mvs(20), |
| Error |
Row 65, Column 14: "Replace `·:·'center'` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 65, Column 25: "Missing trailing comma."
comma-dangle
|
| 65 |
alignSelf : 'center' |
| 66 |
//paddingHorizontal: mvs(22), |
| 67 |
}, |
| Error |
Row 68, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(37),·marginBottom:·mvs(39)` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(37),⏎····marginBottom:·mvs(39),⏎·`"
prettier/prettier
|
| 68 |
REFUND_CONATINER: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', marginTop: mvs(37), marginBottom: mvs(39) }, |
| Error |
Row 69, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| 69 |
TEXT: { textAlign: 'center', marginTop: mvs(30), fontSize: mvs(14), color: colors.primary }, |
| 70 |
HEADING_TXT: { |
| 71 |
fontSize: mvs(19.5), |
| 72 |
color: colors.disputes, |
| 73 |
alignSelf: 'center', |
| 74 |
marginBottom: mvs(9.5), |
| 75 |
}, |
| 76 |
SUB_CONTAINER: { |
| 77 |
backgroundColor: colors.white, |
| 78 |
// paddingTop: mvs(20), |
| 79 |
paddingVertical: mvs(20), |
| 80 |
borderRadius: mvs(20), |
| 81 |
paddingHorizontal: mvs(10), |
| Error |
Row 82, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| 82 |
backgroundColor: colors.white, |
| 83 |
}, |
| 84 |
DESTINATION_CONTAINER: { |
| 85 |
alignItems: 'center', |
| 86 |
flexDirection: 'row', |
| 87 |
justifyContent: 'space-between', |
| 88 |
}, |
| 89 |
FLAG_BUTTON: { |
| 90 |
width: mvs(161), |
| 91 |
height: mvs(38), |
| 92 |
flexDirection: 'row-reverse', |
| 93 |
backgroundColor: colors.secondary, |
| 94 |
}, |
| 95 |
SEARCH_MAP: { |
| 96 |
marginTop: mvs(15), |
| 97 |
alignSelf: 'flex-end', |
| 98 |
width: mvs(161), |
| 99 |
height: mvs(38), |
| 100 |
flexDirection: 'row', |
| 101 |
backgroundColor: colors.primary, |
| 102 |
paddingHorizontal: mvs(23), |
| 103 |
}, |
| 104 |
MAP_ICON: { |
| 105 |
height: mvs(18), |
| 106 |
width: mvs(14), |
| 107 |
}, |
| 108 |
NO_DELIVERY_CONTAINER: { |
| 109 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 110 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 111 |
flexDirection: 'row', |
| 112 |
alignItems: 'center', |
| 113 |
paddingVertical: mvs(14), |
| 114 |
marginTop: mvs(15), |
| 115 |
borderColor: colors.filter_divider, |
| 116 |
}, |
| 117 |
NoDelivery: { |
| 118 |
fontSize: mvs(15), |
| 119 |
color: colors.headerTitle, |
| 120 |
}, |
| 121 |
PRICES_CONTAINER: { |
| 122 |
marginTop: mvs(13), |
| 123 |
flexDirection: 'row', |
| 124 |
justifyContent: 'space-between', |
| 125 |
}, |
| 126 |
PRICE_HEADING: { |
| 127 |
fontSize: mvs(15), |
| 128 |
color: colors.primary, |
| 129 |
marginBottom: mvs(10), |
| 130 |
}, |
| 131 |
MAX_MIN_PRICE: { |
| 132 |
width: mvs(161), |
| 133 |
}, |
| 134 |
DIV: { |
| 135 |
marginTop: mvs(14), |
| 136 |
marginBottom: mvs(13), |
| 137 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 138 |
borderColor: colors.filter_divider, |
| 139 |
}, |
| 140 |
DEL_TIME: { |
| 141 |
color: colors.primary, |
| 142 |
fontSize: mvs(15), |
| 143 |
marginBottom: mvs(8), |
| 144 |
}, |
| 145 |
RADIO_CONTAINER: { |
| 146 |
marginBottom: mvs(30), |
| 147 |
}, |
| 148 |
RADIO_LABEL: { |
| 149 |
color: colors.headerTitle, |
| 150 |
fontSize: mvs(15), |
| 151 |
}, |
| 152 |
BUTTON_CONTAINER: { |
| 153 |
flexDirection: 'row', |
| 154 |
justifyContent: 'space-between', |
| 155 |
marginTop: mvs(29), |
| 156 |
}, |
| 157 |
BUTTON: { |
| 158 |
width: '100%', |
| 159 |
}, |
| Error |
Row 160, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| 160 |
BACK: { position: 'absolute', left: mvs(23), top: mvs(17) }, |
| 161 |
}); |
| 162 |
|
|
|
|
/src/components/molecules/modals/image-picker/image-picker.js
|
3 problems (0 errors, 3 warnings)
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Warning |
Row 2, Column 21: "'Text' is defined but never used."
no-unused-vars
|
| 2 |
import {StyleSheet, Text, TouchableOpacity, View} from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| 4 |
import colors from '../../../../config/colors'; |
| 5 |
import {mvs} from '../../../../config/metrices'; |
| 6 |
import Medium from '../../../../presentation/typography/medium-text'; |
| 7 |
import Regular from '../../../../presentation/typography/regular-text'; |
| 8 |
import MaterialIcons from 'react-native-vector-icons/MaterialIcons'; |
| 9 |
const ImagePicker = ({ |
| 10 |
visible, |
| 11 |
onSubmit, |
| 12 |
onClose, |
| 13 |
showDelete = true, |
| 14 |
...props |
| 15 |
}) => { |
| 16 |
const [btnList, setBtnList] = React.useState([]); |
| 17 |
React.useEffect(() => { |
| 18 |
setBtnList( |
| 19 |
showDelete |
| 20 |
? [ |
| 21 |
{label: 'Camera', slug: 'Camera', icon: 'photo-camera'}, |
| 22 |
{label: 'Gallery', slug: 'Gallery', icon: 'photo'}, |
| 23 |
{label: 'Delete', slug: 'Delete', icon: 'delete'}, |
| 24 |
] |
| 25 |
: [ |
| 26 |
{label: 'Camera', slug: 'Camera', icon: 'photo-camera'}, |
| 27 |
{label: 'Gallery', slug: 'Gallery', icon: 'photo'}, |
| 28 |
], |
| 29 |
); |
| 30 |
}, [showDelete]); |
| 31 |
return ( |
| 32 |
<ReactNativeModal |
| 33 |
onBackdropPress={() => onClose(false)} |
| 34 |
isVisible={visible} |
| Warning |
Row 35, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| 35 |
style={{margin: 0, padding: 0}} |
| 36 |
onBackButtonPress={() => onClose(false)}> |
| 37 |
<View style={styles.CONTAINER}> |
| 38 |
<Medium label={'Choose Profile Photo'} style={styles.HEADING_TXT} /> |
| 39 |
<View style={styles.SUB_CONTAINER}> |
| 40 |
{btnList?.map((el, index) => ( |
| 41 |
<View |
| 42 |
key={index} |
| Warning |
Row 43, Column 22: "Inline style: { justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 43 |
style={{ |
| 44 |
width: mvs(80), |
| 45 |
justifyContent: 'center', |
| 46 |
alignItems: 'center', |
| 47 |
}}> |
| 48 |
<TouchableOpacity |
| 49 |
activeOpacity={1} |
| 50 |
onPress={() => onSubmit(el.slug)} |
| 51 |
style={styles.BTN_CONTAINER}> |
| 52 |
<MaterialIcons |
| 53 |
name={el.icon} |
| 54 |
size={mvs(20)} |
| 55 |
color={colors.primary} |
| 56 |
/> |
| 57 |
</TouchableOpacity> |
| 58 |
<Regular |
| 59 |
label={el.label} |
| 60 |
style={{marginTop: mvs(10), fontSize: mvs(13)}} |
| 61 |
/> |
| 62 |
</View> |
| 63 |
))} |
| 64 |
</View> |
| 65 |
</View> |
| 66 |
</ReactNativeModal> |
| 67 |
); |
| 68 |
}; |
| 69 |
|
| 70 |
export default ImagePicker; |
| 71 |
|
| 72 |
const styles = StyleSheet.create({ |
| 73 |
CONTAINER: { |
| 74 |
position: 'absolute', |
| 75 |
bottom: 0, |
| 76 |
width: '100%', |
| 77 |
borderTopLeftRadius: mvs(20), |
| 78 |
borderTopRightRadius: mvs(20), |
| 79 |
backgroundColor: colors.primary, |
| 80 |
}, |
| 81 |
HEADING_TXT: { |
| 82 |
fontSize: mvs(15), |
| 83 |
color: colors.white, |
| 84 |
alignSelf: 'center', |
| 85 |
marginTop: mvs(13), |
| 86 |
marginBottom: mvs(16), |
| 87 |
}, |
| 88 |
SUB_CONTAINER: { |
| 89 |
backgroundColor: colors.white, |
| 90 |
flexDirection: 'row', |
| 91 |
paddingTop: mvs(20), |
| 92 |
paddingBottom: mvs(38), |
| 93 |
paddingHorizontal: mvs(22), |
| 94 |
borderTopLeftRadius: mvs(20), |
| 95 |
borderTopRightRadius: mvs(20), |
| 96 |
}, |
| 97 |
BTN_CONTAINER: { |
| 98 |
backgroundColor: colors.white, |
| 99 |
borderWidth: StyleSheet.hairlineWidth, |
| 100 |
borderColor: colors.headerTitle, |
| 101 |
height: mvs(40), |
| 102 |
width: mvs(40), |
| 103 |
borderRadius: mvs(40), |
| 104 |
justifyContent: 'center', |
| 105 |
alignItems: 'center', |
| 106 |
}, |
| 107 |
}); |
| 108 |
|
|
|
|
/src/components/molecules/modals/international-order-date-filter-modal.js
|
322 problems (283 errors, 39 warnings)
|
| Severity |
Rule |
| Error |
Row 4, Column 9: "Replace `·View,·StyleSheet·` with `View,·StyleSheet`"
prettier/prettier
|
| Warning |
Row 5, Column 8: "'ReactNativeModal' is defined but never used."
no-unused-vars
|
| Error |
Row 7, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Warning |
Row 13, Column 8: "'Calendar' is defined but never used."
no-unused-vars
|
| Warning |
Row 14, Column 8: "'DateTimePicker' is defined but never used."
no-unused-vars
|
| Error |
Row 18, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 19, Column 45: "Replace `·visible,·onClose,·navigation,·onApply,profileData·` with `⏎··visible,⏎··onClose,⏎··navigation,⏎··onApply,⏎··profileData,⏎`"
prettier/prettier
|
| Error |
Row 20, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 20, Column 12: "'sliderValue' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 20, Column 25: "'setSliderValue' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 21, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Warning |
Row 21, Column 12: "'selectedIndex' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 21, Column 27: "'setSelectedIndex' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 22, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 24, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 25, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 26, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 27, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 28, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 29, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 30, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 31, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 32, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 33, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 34, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 35, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 36, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 37, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 38, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 39, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 40, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 41, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 42, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 43, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 44, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 45, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 46, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 47, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 48, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 49, Column 1: "Replace `····const·hideDatePicker·=·(date)` with `··const·hideDatePicker·=·date`"
prettier/prettier
|
| Error |
Row 50, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 51, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 52, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 53, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 54, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 55, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 56, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 57, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 58, Column 3: "Replace `··const·showDatePicker·=·(option)` with `const·showDatePicker·=·option`"
prettier/prettier
|
| Error |
Row 59, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 60, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 61, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 62, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 63, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 64, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 65, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 66, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 67, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 68, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 69, Column 1: "Replace `········prettier/prettier
|
| Warning |
Row 69, Column 36: "Unexpected usage of singlequote."
jsx-quotes
|
| Error |
Row 70, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 71, Column 1: "Replace `················prettier/prettier
|
| Warning |
Row 71, Column 30: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Error |
Row 72, Column 1: "Replace `·····················setPayload({·...payload,·isOneWay:·value,·isRound:·false·})}·/>` with `··········⏎··············setPayload({...payload,·isOneWay:·value,·isRound:·false})⏎············}`"
prettier/prettier
|
| Error |
Row 73, Column 11: "Replace `···········setPayload({·...payload,·isOneWay:·false,·isRound:·value·})}·/>` with `/>⏎··········⏎··············setPayload({...payload,·isOneWay:·false,·isRound:·value})`"
prettier/prettier
|
| Error |
Row 74, Column 13: "Replace `····prettier/prettier
|
| Error |
Row 75, Column 9: "Replace `········⏎········prettier/prettier
|
| Error |
Row 76, Column 1: "Replace `·····················showDatePicker('date')}·iconName={'date'}·title={payload.date·||·'Departure'}·style={{·...styles.FLAG_BUTTON,·width:·'49%'·}}·iconStyle={styles.RTL_ICON}·/>` with `···········showDatePicker('date')}⏎············iconName={'date'}⏎············title={payload.date·||·'Departure'}⏎············style={{...styles.FLAG_BUTTON,·width:·'49%'}}⏎············iconStyle={styles.RTL_ICON}`"
prettier/prettier
|
| Warning |
Row 76, Column 240: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 77, Column 11: "Replace `···········showDatePicker('departure')}·iconName={'date'}·title={payload.departure·||·'Departure'}·style={{·...styles.FLAG_BUTTON,·width:·'49%'·}}·iconStyle={styles.RTL_ICON}·/>` with `/>⏎···········showDatePicker('departure')}⏎············iconName={'date'}⏎············title={payload.departure·||·'Departure'}⏎············style={{...styles.FLAG_BUTTON,·width:·'49%'}}⏎············iconStyle={styles.RTL_ICON}`"
prettier/prettier
|
| Warning |
Row 77, Column 256: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 78, Column 11: "Replace `······` with `/>⏎········`"
prettier/prettier
|
| Error |
Row 79, Column 9: "Replace `········` with `prettier/prettier
|
| Warning |
Row 79, Column 30: "Inline style: { justifyContent: 'flex-end' }"
react-native/no-inline-styles
|
| Error |
Row 80, Column 11: "Replace `···········showDatePicker('returning')}·iconName={'date'}·title={payload.returning·||·'Returning'}·style={{·...styles.FLAG_BUTTON,·width:·'49%'·}}·iconStyle={styles.RTL_ICON}·/>` with `}}>⏎···········showDatePicker('returning')}⏎············iconName={'date'}⏎············title={payload.returning·||·'Returning'}⏎············style={{...styles.FLAG_BUTTON,·width:·'49%'}}⏎············iconStyle={styles.RTL_ICON}`"
prettier/prettier
|
| Warning |
Row 80, Column 256: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 81, Column 11: "Replace `······` with `/>⏎········`"
prettier/prettier
|
| Error |
Row 82, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 83, Column 11: "Replace `··········` with `prettier/prettier
|
| Error |
Row 84, Column 11: "Replace `···········{·}}·iconName={'flag'}·title={'Kuwait'}·style={styles.FLAG_BUTTON}` with `/>⏎···········{}}⏎············iconName={'flag'}⏎············title={'Kuwait'}⏎············style={styles.FLAG_BUTTON}⏎···········`"
prettier/prettier
|
| Error |
Row 85, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| Error |
Row 86, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| Error |
Row 87, Column 13: "Replace `········}}·` with `}}⏎··········`"
prettier/prettier
|
| Error |
Row 88, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 89, Column 1: "Replace `················prettier/prettier
|
| Error |
Row 90, Column 11: "Replace `··········` with `prettier/prettier
|
| Error |
Row 91, Column 11: "Replace `···········{·}}·iconName={'flag'}·title={'Select'}·style={{·...styles.FLAG_BUTTON,·flexDirection:·'row'·}}` with `/>⏎···········{}}⏎············iconName={'flag'}⏎············title={'Select'}⏎············style={{...styles.FLAG_BUTTON,·flexDirection:·'row'}}⏎···········`"
prettier/prettier
|
| Warning |
Row 91, Column 160: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 92, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| Error |
Row 93, Column 1: "Delete `··········`"
prettier/prettier
|
| Error |
Row 94, Column 13: "Replace `········}}` with `}}⏎·········`"
prettier/prettier
|
| Error |
Row 95, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 96, Column 1: "Replace `················prettier/prettier
|
| Error |
Row 97, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 98, Column 1: "Replace `····················onChange={(value)·=>·setPayload({·...payload,·no_delivery:·value·` with `··········onChange={value·=>·setPayload({...payload,·no_delivery:·value`"
prettier/prettier
|
| Error |
Row 99, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 100, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 101, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 102, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 103, Column 11: "Replace `··········prettier/prettier
|
| Warning |
Row 103, Column 34: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 104, Column 13: "Replace `·············setPayload({·...payload,·isThirtyDays:·true,·isThreeWeeks:·false,·isTwoWeeks:·false,·isNinetyDays:·false,·is_urgent:·false,·})}·/>` with `⏎················setPayload({⏎··················...payload,⏎··················isThirtyDays:·true,⏎··················isThreeWeeks:·false,⏎··················isTwoWeeks:·false,⏎··················isNinetyDays:·false,⏎··················is_urgent:·false,⏎················})⏎··············}`"
prettier/prettier
|
| Warning |
Row 104, Column 319: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 105, Column 13: "Replace `·············setPayload({·...payload,·isThirtyDays:·false,·isThreeWeeks:·true,·isTwoWeeks:·false,·isNinetyDays:·false,·is_urgent:·false,·})}·/>⏎····················⏎············⏎················setPayload({⏎··················...payload,⏎··················isThirtyDays:·false,⏎··················isThreeWeeks:·true,⏎··················isTwoWeeks:·false,⏎··················isNinetyDays:·false,⏎··················is_urgent:·false,⏎················})⏎··············}⏎············/`"
prettier/prettier
|
| Warning |
Row 105, Column 351: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 107, Column 11: "Replace `··········⏎··········prettier/prettier
|
| Warning |
Row 107, Column 34: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 108, Column 13: "Replace `·············setPayload({·...payload,·isThirtyDays:·false,·isThreeWeeks:·false,·isTwoWeeks:·true,·isNinetyDays:·false,·is_urgent:·false,·})}·/>` with `⏎················setPayload({⏎··················...payload,⏎··················isThirtyDays:·false,⏎··················isThreeWeeks:·false,⏎··················isTwoWeeks:·true,⏎··················isNinetyDays:·false,⏎··················is_urgent:·false,⏎················})⏎··············}`"
prettier/prettier
|
| Warning |
Row 108, Column 315: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 109, Column 13: "Replace `·············setPayload({·...payload,·isThirtyDays:·false,·isThreeWeeks:·false,·isTwoWeeks:·false,·isNinetyDays:·true,·is_urgent:·false,·})}·/>⏎····················⏎············⏎················setPayload({⏎··················...payload,⏎··················isThirtyDays:·false,⏎··················isThreeWeeks:·false,⏎··················isTwoWeeks:·false,⏎··················isNinetyDays:·true,⏎··················is_urgent:·false,⏎················})⏎··············}⏎············/`"
prettier/prettier
|
| Warning |
Row 109, Column 351: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 111, Column 11: "Replace `···········setPayload({·...payload,·isThirtyDays:·false,·isThreeWeeks:·false,·isTwoWeeks:·false,·isNinetyDays:·false,·is_urgent:·true,·})}·/>` with `⏎··········⏎··············setPayload({⏎················...payload,⏎················isThirtyDays:·false,⏎················isThreeWeeks:·false,⏎················isTwoWeeks:·false,⏎················isNinetyDays:·false,⏎················is_urgent:·true,⏎··············})`"
prettier/prettier
|
| Warning |
Row 111, Column 310: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 112, Column 13: "Replace `····prettier/prettier
|
| Error |
Row 113, Column 9: "Insert `⏎`"
prettier/prettier
|
| Error |
Row 114, Column 11: "Delete `··········`"
prettier/prettier
|
| Error |
Row 115, Column 13: "Replace `············` with `prettier/prettier
|
| Warning |
Row 115, Column 41: "Inline style: { alignSelf: 'flex-end' }"
react-native/no-inline-styles
|
| Error |
Row 116, Column 13: "Insert `/>⏎`"
prettier/prettier
|
| Error |
Row 117, Column 15: "Replace `··············` with `prettier/prettier
|
| Error |
Row 118, Column 15: "Replace `··············⏎··············prettier/prettier
|
| Warning |
Row 118, Column 44: "Inline style: { width: '55%' }"
react-native/no-inline-styles
|
| Error |
Row 119, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 120, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 121, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 122, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 123, Column 1: "Replace `································onValueChange={(v)·=>·{·setPayload({·...payload,·minPrice:·v·})·}}` with `················onValueChange={v·=>·{⏎··················setPayload({...payload,·minPrice:·v});`"
prettier/prettier
|
| Warning |
Row 123, Column 96: "Missing semicolon."
semi
|
| Error |
Row 124, Column 17: "Replace `············` with `}}⏎··············`"
prettier/prettier
|
| Error |
Row 125, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 126, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 127, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 128, Column 13: "Replace `············` with `prettier/prettier
|
| Warning |
Row 128, Column 41: "Inline style: { alignSelf: 'flex-end' }"
react-native/no-inline-styles
|
| Error |
Row 129, Column 13: "Insert `/>⏎`"
prettier/prettier
|
| Error |
Row 130, Column 1: "Delete `··············`"
prettier/prettier
|
| Error |
Row 131, Column 15: "Replace `··············prettier/prettier
|
| Warning |
Row 131, Column 44: "Inline style: { width: '55%' }"
react-native/no-inline-styles
|
| Error |
Row 132, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 133, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 134, Column 1: "Delete `················`"
prettier/prettier
|
| Error |
Row 135, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 136, Column 1: "Replace `································onValueChange={(v)·=>·{·setPayload({·...payload,·maxPrice:·v·})·}}` with `················onValueChange={v·=>·{⏎··················setPayload({...payload,·maxPrice:·v});`"
prettier/prettier
|
| Warning |
Row 136, Column 96: "Missing semicolon."
semi
|
| Error |
Row 137, Column 17: "Replace `············` with `}}⏎··············`"
prettier/prettier
|
| Error |
Row 138, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 139, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 140, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 141, Column 1: "Replace `················prettier/prettier
|
| Warning |
Row 141, Column 58: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 142, Column 1: "Replace `·····················onApply(` with `··········`"
prettier/prettier
|
| Error |
Row 143, Column 15: "Replace `··········` with `onApply(`"
prettier/prettier
|
| Error |
Row 144, Column 1: "Replace `····························no_delivery:payload.no_delivery?1:` with `················no_delivery:·payload.no_delivery·?·1·:·`"
prettier/prettier
|
| Warning |
Row 144, Column 60: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 145, Column 1: "Replace `····························country_from:` with `················country_from:·`"
prettier/prettier
|
| Error |
Row 146, Column 17: "Replace `············country_to:` with `country_to:·`"
prettier/prettier
|
| Error |
Row 147, Column 1: "Replace `····························delivery_date:` with `················delivery_date:·`"
prettier/prettier
|
| Error |
Row 148, Column 15: "Insert `})⏎··`"
prettier/prettier
|
| Error |
Row 149, Column 1: "Replace `····················)}·style={{·...styles.BUTTON,·width:·'49%'·}}·title={'Apply·Filters'}·/>` with `············style={{...styles.BUTTON,·width:·'49%'}}⏎············title={'Apply·Filters'}`"
prettier/prettier
|
| Warning |
Row 149, Column 31: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 150, Column 11: "Replace `···········onClose()}·style={{·...styles.BUTTON,·width:·'49%'·}}·title={'Clear·All'}·/>` with `/>⏎···········onClose()}⏎············style={{...styles.BUTTON,·width:·'49%'}}⏎············title={'Clear·All'}`"
prettier/prettier
|
| Warning |
Row 150, Column 86: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 151, Column 9: "Insert `··/>⏎`"
prettier/prettier
|
| Error |
Row 152, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 164, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 165, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 166, Column 1: "Replace `····················onClose={()·=>·{·setDatePickerVisibility(false)·}}` with `··········onClose={()·=>·{⏎············setDatePickerVisibility(false);`"
prettier/prettier
|
| Warning |
Row 166, Column 68: "Missing semicolon."
semi
|
| Error |
Row 167, Column 11: "Insert `}}⏎`"
prettier/prettier
|
| Error |
Row 168, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 169, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 170, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 171, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 172, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 173, Column 11: "Delete `··········`"
prettier/prettier
|
| Error |
Row 174, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 175, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 176, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 177, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 178, Column 1: "Delete `··········`"
prettier/prettier
|
| Error |
Row 179, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 180, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 181, Column 1: "Delete `··········`"
prettier/prettier
|
| Error |
Row 182, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 183, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 184, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 185, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 187, Column 22: "Replace `=state=>` with `·=·state·=>·`"
prettier/prettier
|
| Warning |
Row 187, Column 22: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 188, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 189, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 189, Column 3: "Missing semicolon."
semi
|
| Error |
Row 190, Column 40: "Insert `·`"
prettier/prettier
|
| Error |
Row 192, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 193, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 194, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 195, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 196, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 197, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 198, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 199, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 200, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 201, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 202, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 203, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 204, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 205, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 206, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 207, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 208, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 209, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 210, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 211, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 212, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 213, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 214, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 215, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 216, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 217, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 218, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 219, Column 1: "Replace `········marginTop:·mvs(10)` with `····marginTop:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 219, Column 27: "Missing trailing comma."
comma-dangle
|
| Error |
Row 220, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 221, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 222, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 223, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 224, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 225, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 226, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 227, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 228, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 229, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 230, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 231, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 232, Column 1: "Delete `⏎····`"
prettier/prettier
|
| Error |
Row 234, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 235, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 237, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 237, Column 5: "Duplicate key 'DESTINATION_CONTAINER'."
no-dupe-keys
|
| Error |
Row 238, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 239, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 240, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 241, Column 1: "Delete `⏎··`"
prettier/prettier
|
| Error |
Row 243, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 244, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 245, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 246, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 247, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 248, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 249, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 250, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 251, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 252, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 253, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 254, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 255, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 256, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 257, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 258, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 259, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 260, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 261, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 262, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 263, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 264, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 265, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 266, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 267, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 268, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 269, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 270, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 271, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 272, Column 1: "Replace `········fontSize:·mvs(15),` with `····fontSize:·mvs(15),⏎···`"
prettier/prettier
|
| Error |
Row 273, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 274, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 275, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 276, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 277, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 278, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 279, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 280, Column 5: "Replace `····marginBottom:·mvs(10)⏎` with `marginBottom:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 280, Column 30: "Missing trailing comma."
comma-dangle
|
| Error |
Row 282, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 283, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 284, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 285, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 286, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 287, Column 5: "Replace `····justifyContent:·'space-between'⏎` with `justifyContent:·'space-between',`"
prettier/prettier
|
| Warning |
Row 287, Column 40: "Missing trailing comma."
comma-dangle
|
| Error |
Row 289, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 290, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 291, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 292, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 293, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 294, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 295, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 296, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 297, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 298, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 299, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 300, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 301, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 302, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 303, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 304, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 305, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 306, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 307, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 308, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 308, Column 5: "Duplicate key 'BUTTON_CONTAINER'."
no-dupe-keys
|
| Error |
Row 309, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 310, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 311, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 312, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 313, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 313, Column 5: "Duplicate key 'BUTTON'."
no-dupe-keys
|
| Error |
Row 314, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 315, Column 3: "Delete `··`"
prettier/prettier
|
| Warning |
Row 316, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 316, Column 4: "Insert `⏎`"
prettier/prettier
|
| Line |
Source |
| 1 |
import Slider from '@react-native-community/slider'; |
| 2 |
import moment from 'moment'; |
| 3 |
import React from 'react'; |
| Error |
Row 4, Column 9: "Replace `·View,·StyleSheet·` with `View,·StyleSheet`"
prettier/prettier
|
| 4 |
import { View, StyleSheet } from 'react-native'; |
| Warning |
Row 5, Column 8: "'ReactNativeModal' is defined but never used."
no-unused-vars
|
| 5 |
import ReactNativeModal from 'react-native-modal'; |
| 6 |
import colors from '../../../config/colors'; |
| Error |
Row 7, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 7 |
import { mvs } from '../../../config/metrices'; |
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| 8 |
import Medium from '../../../presentation/typography/medium-text'; |
| 9 |
import Regular from '../../../presentation/typography/regular-text'; |
| 10 |
import Buttons from '../../atoms/Button'; |
| 11 |
import CustomRadio from '../../atoms/RadioButton'; |
| 12 |
import CustomSwitch from '../../atoms/Switch'; |
| Warning |
Row 13, Column 8: "'Calendar' is defined but never used."
no-unused-vars
|
| 13 |
import Calendar from '../calendar/calendar'; |
| Warning |
Row 14, Column 8: "'DateTimePicker' is defined but never used."
no-unused-vars
|
| 14 |
import DateTimePicker from '../destination-card/date-picker'; |
| 15 |
import InternationalOrderFilterModal from './international-order-filter-modal'; |
| 16 |
import ModalWrapper from './../modal-wrapper/modal-wrapper'; |
| 17 |
import DatePickerModal from './date-picker-modal'; |
| Error |
Row 18, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 18 |
import { connect } from 'react-redux'; |
| Error |
Row 19, Column 45: "Replace `·visible,·onClose,·navigation,·onApply,profileData·` with `⏎··visible,⏎··onClose,⏎··navigation,⏎··onApply,⏎··profileData,⏎`"
prettier/prettier
|
| 19 |
const InternationalOrderDateFilterModal = ({ visible, onClose, navigation, onApply,profileData }) => { |
| Error |
Row 20, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 20, Column 12: "'sliderValue' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 20, Column 25: "'setSliderValue' is assigned a value but never used."
no-unused-vars
|
| 20 |
const [sliderValue, setSliderValue] = React.useState(10); |
| Error |
Row 21, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Warning |
Row 21, Column 12: "'selectedIndex' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 21, Column 27: "'setSelectedIndex' is assigned a value but never used."
no-unused-vars
|
| 21 |
const [selectedIndex, setSelectedIndex] = React.useState(0); |
| Error |
Row 22, Column 1: "Delete `··`"
prettier/prettier
|
| 22 |
const [nextModal, setNextModal] = React.useState(false); |
| 23 |
|
| Error |
Row 24, Column 3: "Delete `··`"
prettier/prettier
|
| 24 |
const [payload, setPayload] = React.useState({ |
| Error |
Row 25, Column 5: "Delete `····`"
prettier/prettier
|
| 25 |
isOneWay: true, |
| Error |
Row 26, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 26 |
isRound: false, |
| Error |
Row 27, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 27 |
isThirtyDays: true, |
| Error |
Row 28, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 28 |
isThreeWeeks: false, |
| Error |
Row 29, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 29 |
isNinetyDays: false, |
| Error |
Row 30, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 30 |
isTwoWeeks: false, |
| Error |
Row 31, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 31 |
is_urgent: false, |
| Error |
Row 32, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 32 |
no_delivery: true, |
| Error |
Row 33, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 33 |
maxPrice: '100', |
| Error |
Row 34, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 34 |
minPrice: '1000', |
| Error |
Row 35, Column 5: "Delete `····`"
prettier/prettier
|
| 35 |
date: '', |
| Error |
Row 36, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 36 |
departure: '', |
| Error |
Row 37, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 37 |
returning: '', |
| Error |
Row 38, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 38 |
// |
| Error |
Row 39, Column 1: "Delete `····`"
prettier/prettier
|
| 39 |
// is_urgent: false, |
| Error |
Row 40, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 40 |
country_from: 'Pakistan', |
| Error |
Row 41, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 41 |
country_to: 'Pakistan', |
| Error |
Row 42, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 42 |
// no_delivery: true, |
| Error |
Row 43, Column 1: "Delete `····`"
prettier/prettier
|
| 43 |
delivery_date: moment().add(3, 'days').format('YYYY-MM-DD'), |
| Error |
Row 44, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 44 |
max_price: 20000, |
| Error |
Row 45, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 45 |
reward: 10, |
| Error |
Row 46, Column 3: "Delete `··`"
prettier/prettier
|
| 46 |
}); |
| Error |
Row 47, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 47 |
const [dateOption, setDateOption] = React.useState(''); |
| Error |
Row 48, Column 1: "Delete `··`"
prettier/prettier
|
| 48 |
const [isDatePickerVisible, setDatePickerVisibility] = React.useState(false); |
| Error |
Row 49, Column 1: "Replace `····const·hideDatePicker·=·(date)` with `··const·hideDatePicker·=·date`"
prettier/prettier
|
| 49 |
const hideDatePicker = (date) => { |
| Error |
Row 50, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 50 |
console.log(date); |
| Error |
Row 51, Column 1: "Delete `····`"
prettier/prettier
|
| 51 |
console.log(`${date?.day} / ${date?.month + 1} / ${date?.year}`); |
| Error |
Row 52, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 52 |
setPayload({ |
| Error |
Row 53, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 53 |
...payload, |
| Error |
Row 54, Column 1: "Delete `······`"
prettier/prettier
|
| 54 |
[dateOption]: `${date?.day} / ${date?.month + 1} / ${date?.year}`, |
| Error |
Row 55, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 55 |
}); |
| Error |
Row 56, Column 1: "Delete `····`"
prettier/prettier
|
| 56 |
setDatePickerVisibility(false); |
| Error |
Row 57, Column 1: "Delete `··`"
prettier/prettier
|
| 57 |
}; |
| Error |
Row 58, Column 3: "Replace `··const·showDatePicker·=·(option)` with `const·showDatePicker·=·option`"
prettier/prettier
|
| 58 |
const showDatePicker = (option) => { |
| Error |
Row 59, Column 1: "Delete `····`"
prettier/prettier
|
| 59 |
if (!payload[option]) { |
| Error |
Row 60, Column 7: "Delete `······`"
prettier/prettier
|
| 60 |
setPayload({ |
| Error |
Row 61, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 61 |
...payload, |
| Error |
Row 62, Column 1: "Delete `········`"
prettier/prettier
|
| 62 |
[option]: `${new Date().getDate()} / ${new Date().getMonth()} / ${new Date().getFullYear()}`, |
| Error |
Row 63, Column 7: "Delete `······`"
prettier/prettier
|
| 63 |
}); |
| Error |
Row 64, Column 1: "Delete `····`"
prettier/prettier
|
| 64 |
} |
| Error |
Row 65, Column 5: "Delete `····`"
prettier/prettier
|
| 65 |
setDateOption(option); |
| Error |
Row 66, Column 1: "Delete `····`"
prettier/prettier
|
| 66 |
setDatePickerVisibility(true); |
| Error |
Row 67, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 67 |
}; |
| Error |
Row 68, Column 1: "Delete `··`"
prettier/prettier
|
| 68 |
return ( |
| Error |
Row 69, Column 1: "Replace `········prettier/prettier
|
| Warning |
Row 69, Column 36: "Unexpected usage of singlequote."
jsx-quotes
|
| 69 |
<ModalWrapper isBack title='Filters' visible={visible} onClose={onClose}> |
| Error |
Row 70, Column 7: "Delete `······`"
prettier/prettier
|
| 70 |
<> |
| Error |
Row 71, Column 1: "Replace `················prettier/prettier
|
| Warning |
Row 71, Column 30: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| 71 |
<View style={{ flexDirection: 'row', justifyContent: 'space-between' }}> |
| Error |
Row 72, Column 1: "Replace `·····················setPayload({·...payload,·isOneWay:·value,·isRound:·false·})}·/>` with `··········⏎··············setPayload({...payload,·isOneWay:·value,·isRound:·false})⏎············}`"
prettier/prettier
|
| 72 |
<CustomRadio style={styles.TRIP_TYPE_RADIO} status={payload.isOneWay} label={'One Way'} onChange={(value) => setPayload({ ...payload, isOneWay: value, isRound: false })} /> |
| Error |
Row 73, Column 11: "Replace `···········setPayload({·...payload,·isOneWay:·false,·isRound:·value·})}·/>` with `/>⏎··········⏎··············setPayload({...payload,·isOneWay:·false,·isRound:·value})`"
prettier/prettier
|
| 73 |
<CustomRadio style={styles.TRIP_TYPE_RADIO} status={payload.isRound} label={'Round Trip'} onChange={(value) => setPayload({ ...payload, isOneWay: false, isRound: value })} /> |
| Error |
Row 74, Column 13: "Replace `····prettier/prettier
|
| 74 |
</View> |
| Error |
Row 75, Column 9: "Replace `········⏎········prettier/prettier
|
| 75 |
<View style={{ ...styles.DESTINATION_CONTAINER, marginTop: mvs(10) }}> |
| Error |
Row 76, Column 1: "Replace `·····················showDatePicker('date')}·iconName={'date'}·title={payload.date·||·'Departure'}·style={{·...styles.FLAG_BUTTON,·width:·'49%'·}}·iconStyle={styles.RTL_ICON}·/>` with `···········showDatePicker('date')}⏎············iconName={'date'}⏎············title={payload.date·||·'Departure'}⏎············style={{...styles.FLAG_BUTTON,·width:·'49%'}}⏎············iconStyle={styles.RTL_ICON}`"
prettier/prettier
|
| Warning |
Row 76, Column 240: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 76 |
<Buttons.ButtonRTL textStyle={{ color: payload.date ? colors.primary : colors.lightgrey2 }} disabled={payload.isRound} onClick={() => showDatePicker('date')} iconName={'date'} title={payload.date || 'Departure'} style={{ ...styles.FLAG_BUTTON, width: '49%' }} iconStyle={styles.RTL_ICON} /> |
| Error |
Row 77, Column 11: "Replace `···········showDatePicker('departure')}·iconName={'date'}·title={payload.departure·||·'Departure'}·style={{·...styles.FLAG_BUTTON,·width:·'49%'·}}·iconStyle={styles.RTL_ICON}·/>` with `/>⏎···········showDatePicker('departure')}⏎············iconName={'date'}⏎············title={payload.departure·||·'Departure'}⏎············style={{...styles.FLAG_BUTTON,·width:·'49%'}}⏎············iconStyle={styles.RTL_ICON}`"
prettier/prettier
|
| Warning |
Row 77, Column 256: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 77 |
<Buttons.ButtonRTL textStyle={{ color: payload.departure ? colors.primary : colors.lightgrey2 }} disabled={payload.isOneWay} onClick={() => showDatePicker('departure')} iconName={'date'} title={payload.departure || 'Departure'} style={{ ...styles.FLAG_BUTTON, width: '49%' }} iconStyle={styles.RTL_ICON} /> |
| Error |
Row 78, Column 11: "Replace `······` with `/>⏎········`"
prettier/prettier
|
| 78 |
</View> |
| Error |
Row 79, Column 9: "Replace `········` with `prettier/prettier
|
| Warning |
Row 79, Column 30: "Inline style: { justifyContent: 'flex-end' }"
react-native/no-inline-styles
|
| 79 |
<View style={{ ...styles.DESTINATION_CONTAINER, justifyContent: 'flex-end', marginTop: mvs(10) }}> |
| Error |
Row 80, Column 11: "Replace `···········showDatePicker('returning')}·iconName={'date'}·title={payload.returning·||·'Returning'}·style={{·...styles.FLAG_BUTTON,·width:·'49%'·}}·iconStyle={styles.RTL_ICON}·/>` with `}}>⏎···········showDatePicker('returning')}⏎············iconName={'date'}⏎············title={payload.returning·||·'Returning'}⏎············style={{...styles.FLAG_BUTTON,·width:·'49%'}}⏎············iconStyle={styles.RTL_ICON}`"
prettier/prettier
|
| Warning |
Row 80, Column 256: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 80 |
<Buttons.ButtonRTL textStyle={{ color: payload.returning ? colors.primary : colors.lightgrey2 }} disabled={payload.isOneWay} onClick={() => showDatePicker('returning')} iconName={'date'} title={payload.returning || 'Returning'} style={{ ...styles.FLAG_BUTTON, width: '49%' }} iconStyle={styles.RTL_ICON} /> |
| Error |
Row 81, Column 11: "Replace `······` with `/>⏎········`"
prettier/prettier
|
| 81 |
</View> |
| Error |
Row 82, Column 1: "Delete `········`"
prettier/prettier
|
| 82 |
<View> |
| Error |
Row 83, Column 11: "Replace `··········` with `prettier/prettier
|
| 83 |
<Regular label={'Location'} style={{ fontSize: mvs(15), color: colors.typeHeader, marginBottom: mvs(10) }} /> |
| Error |
Row 84, Column 11: "Replace `···········{·}}·iconName={'flag'}·title={'Kuwait'}·style={styles.FLAG_BUTTON}` with `/>⏎···········{}}⏎············iconName={'flag'}⏎············title={'Kuwait'}⏎············style={styles.FLAG_BUTTON}⏎···········`"
prettier/prettier
|
| 84 |
<Buttons.ButtonRTL textStyle={{ color: colors.primary }} onClick={() => { }} iconName={'flag'} title={'Kuwait'} style={styles.FLAG_BUTTON} iconStyle={{ |
| Error |
Row 85, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| 85 |
height: mvs(23), |
| Error |
Row 86, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| 86 |
width: mvs(23), |
| Error |
Row 87, Column 13: "Replace `········}}·` with `}}⏎··········`"
prettier/prettier
|
| 87 |
}} /> |
| Error |
Row 88, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 88 |
</View> |
| Error |
Row 89, Column 1: "Replace `················prettier/prettier
|
| 89 |
<View style={{ marginTop: mvs(8) }}> |
| Error |
Row 90, Column 11: "Replace `··········` with `prettier/prettier
|
| 90 |
<Regular label={'Destination'} style={{ fontSize: mvs(15), color: colors.typeHeader, marginBottom: mvs(10) }} /> |
| Error |
Row 91, Column 11: "Replace `···········{·}}·iconName={'flag'}·title={'Select'}·style={{·...styles.FLAG_BUTTON,·flexDirection:·'row'·}}` with `/>⏎···········{}}⏎············iconName={'flag'}⏎············title={'Select'}⏎············style={{...styles.FLAG_BUTTON,·flexDirection:·'row'}}⏎···········`"
prettier/prettier
|
| Warning |
Row 91, Column 160: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| 91 |
<Buttons.ButtonRTL textStyle={{ color: colors.lightgrey2 }} showIcon={false} onClick={() => { }} iconName={'flag'} title={'Select'} style={{ ...styles.FLAG_BUTTON, flexDirection: 'row' }} iconStyle={{ |
| Error |
Row 92, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| 92 |
height: mvs(23), |
| Error |
Row 93, Column 1: "Delete `··········`"
prettier/prettier
|
| 93 |
width: mvs(23), |
| Error |
Row 94, Column 13: "Replace `········}}` with `}}⏎·········`"
prettier/prettier
|
| 94 |
}} /> |
| Error |
Row 95, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 95 |
</View> |
| Error |
Row 96, Column 1: "Replace `················prettier/prettier
|
| 96 |
<CustomSwitch textStyle={{ color: colors.typeHeader }} label={'No delivery offers'} |
| Error |
Row 97, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 97 |
value={payload.no_delivery} |
| Error |
Row 98, Column 1: "Replace `····················onChange={(value)·=>·setPayload({·...payload,·no_delivery:·value·` with `··········onChange={value·=>·setPayload({...payload,·no_delivery:·value`"
prettier/prettier
|
| 98 |
onChange={(value) => setPayload({ ...payload, no_delivery: value })} |
| Error |
Row 99, Column 9: "Delete `········`"
prettier/prettier
|
| 99 |
/> |
| Error |
Row 100, Column 1: "Delete `········`"
prettier/prettier
|
| 100 |
<View style={styles.DIV} /> |
| Error |
Row 101, Column 9: "Delete `········`"
prettier/prettier
|
| 101 |
<Regular label={'Delivery time'} style={styles.DEL_TIME} /> |
| Error |
Row 102, Column 1: "Delete `········`"
prettier/prettier
|
| 102 |
<View style={styles.RADIO_CONTAINER}> |
| Error |
Row 103, Column 11: "Replace `··········prettier/prettier
|
| Warning |
Row 103, Column 34: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| 103 |
<View style={{ flexDirection: 'row', marginBottom: mvs(8) }}> |
| Error |
Row 104, Column 13: "Replace `·············setPayload({·...payload,·isThirtyDays:·true,·isThreeWeeks:·false,·isTwoWeeks:·false,·isNinetyDays:·false,·is_urgent:·false,·})}·/>` with `⏎················setPayload({⏎··················...payload,⏎··················isThirtyDays:·true,⏎··················isThreeWeeks:·false,⏎··················isTwoWeeks:·false,⏎··················isNinetyDays:·false,⏎··················is_urgent:·false,⏎················})⏎··············}`"
prettier/prettier
|
| Warning |
Row 104, Column 319: "Unexpected trailing comma."
comma-dangle
|
| 104 |
<CustomRadio labelStyle={{ color: payload?.isThirtyDays ? colors.primary : colors.headerTitle }} status={payload.isThirtyDays} label={'Up to 30 days'} onChange={(value) => setPayload({ ...payload, isThirtyDays: true, isThreeWeeks: false, isTwoWeeks: false, isNinetyDays: false, is_urgent: false, })} /> |
| Error |
Row 105, Column 13: "Replace `·············setPayload({·...payload,·isThirtyDays:·false,·isThreeWeeks:·true,·isTwoWeeks:·false,·isNinetyDays:·false,·is_urgent:·false,·})}·/>⏎····················⏎············⏎················setPayload({⏎··················...payload,⏎··················isThirtyDays:·false,⏎··················isThreeWeeks:·true,⏎··················isTwoWeeks:·false,⏎··················isNinetyDays:·false,⏎··················is_urgent:·false,⏎················})⏎··············}⏎············/`"
prettier/prettier
|
| Warning |
Row 105, Column 351: "Unexpected trailing comma."
comma-dangle
|
| 105 |
<CustomRadio labelStyle={{ color: payload?.isThreeWeeks ? colors.primary : colors.headerTitle }} style={{ marginLeft: mvs(45) }} status={payload.isThreeWeeks} label={'Up to 3 weeks'} onChange={(value) => setPayload({ ...payload, isThirtyDays: false, isThreeWeeks: true, isTwoWeeks: false, isNinetyDays: false, is_urgent: false, })} /> |
| 106 |
</View> |
| Error |
Row 107, Column 11: "Replace `··········⏎··········prettier/prettier
|
| Warning |
Row 107, Column 34: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| 107 |
<View style={{ flexDirection: 'row', marginBottom: mvs(8) }}> |
| Error |
Row 108, Column 13: "Replace `·············setPayload({·...payload,·isThirtyDays:·false,·isThreeWeeks:·false,·isTwoWeeks:·true,·isNinetyDays:·false,·is_urgent:·false,·})}·/>` with `⏎················setPayload({⏎··················...payload,⏎··················isThirtyDays:·false,⏎··················isThreeWeeks:·false,⏎··················isTwoWeeks:·true,⏎··················isNinetyDays:·false,⏎··················is_urgent:·false,⏎················})⏎··············}`"
prettier/prettier
|
| Warning |
Row 108, Column 315: "Unexpected trailing comma."
comma-dangle
|
| 108 |
<CustomRadio labelStyle={{ color: payload?.isTwoWeeks ? colors.primary : colors.headerTitle }} status={payload.isTwoWeeks} label={'Up to 2 weeks'} onChange={(value) => setPayload({ ...payload, isThirtyDays: false, isThreeWeeks: false, isTwoWeeks: true, isNinetyDays: false, is_urgent: false, })} /> |
| Error |
Row 109, Column 13: "Replace `·············setPayload({·...payload,·isThirtyDays:·false,·isThreeWeeks:·false,·isTwoWeeks:·false,·isNinetyDays:·true,·is_urgent:·false,·})}·/>⏎····················⏎············⏎················setPayload({⏎··················...payload,⏎··················isThirtyDays:·false,⏎··················isThreeWeeks:·false,⏎··················isTwoWeeks:·false,⏎··················isNinetyDays:·true,⏎··················is_urgent:·false,⏎················})⏎··············}⏎············/`"
prettier/prettier
|
| Warning |
Row 109, Column 351: "Unexpected trailing comma."
comma-dangle
|
| 109 |
<CustomRadio labelStyle={{ color: payload?.isNinetyDays ? colors.primary : colors.headerTitle }} style={{ marginLeft: mvs(45) }} status={payload.isNinetyDays} label={'Up to 90 days'} onChange={(value) => setPayload({ ...payload, isThirtyDays: false, isThreeWeeks: false, isTwoWeeks: false, isNinetyDays: true, is_urgent: false, })} /> |
| 110 |
</View> |
| Error |
Row 111, Column 11: "Replace `···········setPayload({·...payload,·isThirtyDays:·false,·isThreeWeeks:·false,·isTwoWeeks:·false,·isNinetyDays:·false,·is_urgent:·true,·})}·/>` with `⏎··········⏎··············setPayload({⏎················...payload,⏎················isThirtyDays:·false,⏎················isThreeWeeks:·false,⏎················isTwoWeeks:·false,⏎················isNinetyDays:·false,⏎················is_urgent:·true,⏎··············})`"
prettier/prettier
|
| Warning |
Row 111, Column 310: "Unexpected trailing comma."
comma-dangle
|
| 111 |
<CustomRadio subLabel={' (Higher rewards)'} labelStyle={{ color: colors.pink }} style={{}} status={payload.is_urgent} label={'Urgent Deliveries'} onChange={(value) => setPayload({ ...payload, isThirtyDays: false, isThreeWeeks: false, isTwoWeeks: false, isNinetyDays: false, is_urgent: true, })} /> |
| Error |
Row 112, Column 13: "Replace `····prettier/prettier
|
| 112 |
</View> |
| Error |
Row 113, Column 9: "Insert `⏎`"
prettier/prettier
|
| 113 |
<View style={styles.PRICES_CONTAINER}> |
| Error |
Row 114, Column 11: "Delete `··········`"
prettier/prettier
|
| 114 |
<View> |
| Error |
Row 115, Column 13: "Replace `············` with `prettier/prettier
|
| Warning |
Row 115, Column 41: "Inline style: { alignSelf: 'flex-end' }"
react-native/no-inline-styles
|
| 115 |
<Regular style={{ alignSelf: 'flex-end', color: colors.primary }} label={`${Math.floor(payload.minPrice)} ${profileData?.currency?.currency_code}`} /> |
| Error |
Row 116, Column 13: "Insert `/>⏎`"
prettier/prettier
|
| 116 |
<View style={styles.MAX_MIN_PRICE}> |
| Error |
Row 117, Column 15: "Replace `··············` with `prettier/prettier
|
| 117 |
<Regular style={styles.PRICE_HEADING} label={'Max Product Price'} /> |
| Error |
Row 118, Column 15: "Replace `··············⏎··············prettier/prettier
|
| Warning |
Row 118, Column 44: "Inline style: { width: '55%' }"
react-native/no-inline-styles
|
| 118 |
<Slider style={{ width: '55%', marginRight: mvs(-15) }} |
| Error |
Row 119, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 119 |
minimumValue={0} |
| Error |
Row 120, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 120 |
maximumValue={1000} |
| Error |
Row 121, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 121 |
minimumTrackTintColor={colors.primary} |
| Error |
Row 122, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 122 |
thumbTintColor={colors.primary} |
| Error |
Row 123, Column 1: "Replace `································onValueChange={(v)·=>·{·setPayload({·...payload,·minPrice:·v·})·}}` with `················onValueChange={v·=>·{⏎··················setPayload({...payload,·minPrice:·v});`"
prettier/prettier
|
| Warning |
Row 123, Column 96: "Missing semicolon."
semi
|
| 123 |
onValueChange={(v) => { setPayload({ ...payload, minPrice: v }) }} |
| Error |
Row 124, Column 17: "Replace `············` with `}}⏎··············`"
prettier/prettier
|
| 124 |
/> |
| Error |
Row 125, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 125 |
</View> |
| Error |
Row 126, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 126 |
</View> |
| Error |
Row 127, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 127 |
<View> |
| Error |
Row 128, Column 13: "Replace `············` with `prettier/prettier
|
| Warning |
Row 128, Column 41: "Inline style: { alignSelf: 'flex-end' }"
react-native/no-inline-styles
|
| 128 |
<Regular style={{ alignSelf: 'flex-end', color: colors.primary }} label={`${Math.floor(payload.maxPrice)} ${profileData?.currency?.currency_code}`} /> |
| Error |
Row 129, Column 13: "Insert `/>⏎`"
prettier/prettier
|
| 129 |
<View style={styles.MAX_MIN_PRICE}> |
| Error |
Row 130, Column 1: "Delete `··············`"
prettier/prettier
|
| 130 |
<Regular style={styles.PRICE_HEADING} label={'Max Reward'} /> |
| Error |
Row 131, Column 15: "Replace `··············prettier/prettier
|
| Warning |
Row 131, Column 44: "Inline style: { width: '55%' }"
react-native/no-inline-styles
|
| 131 |
<Slider style={{ width: '55%', marginRight: mvs(-15) }} |
| Error |
Row 132, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 132 |
minimumValue={0} |
| Error |
Row 133, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 133 |
maximumValue={1000} |
| Error |
Row 134, Column 1: "Delete `················`"
prettier/prettier
|
| 134 |
minimumTrackTintColor={colors.primary} |
| Error |
Row 135, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 135 |
thumbTintColor={colors.primary} |
| Error |
Row 136, Column 1: "Replace `································onValueChange={(v)·=>·{·setPayload({·...payload,·maxPrice:·v·})·}}` with `················onValueChange={v·=>·{⏎··················setPayload({...payload,·maxPrice:·v});`"
prettier/prettier
|
| Warning |
Row 136, Column 96: "Missing semicolon."
semi
|
| 136 |
onValueChange={(v) => { setPayload({ ...payload, maxPrice: v }) }} |
| Error |
Row 137, Column 17: "Replace `············` with `}}⏎··············`"
prettier/prettier
|
| 137 |
/> |
| Error |
Row 138, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 138 |
</View> |
| Error |
Row 139, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 139 |
</View> |
| Error |
Row 140, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 140 |
</View> |
| Error |
Row 141, Column 1: "Replace `················prettier/prettier
|
| Warning |
Row 141, Column 58: "Unexpected trailing comma."
comma-dangle
|
| 141 |
<View style={{ ...styles.BUTTON_CONTAINER, }}> |
| Error |
Row 142, Column 1: "Replace `·····················onApply(` with `··········`"
prettier/prettier
|
| 142 |
<Buttons.ButtonPrimary onClick={() => onApply( |
| Error |
Row 143, Column 15: "Replace `··········` with `onApply(`"
prettier/prettier
|
| 143 |
{ |
| Error |
Row 144, Column 1: "Replace `····························no_delivery:payload.no_delivery?1:` with `················no_delivery:·payload.no_delivery·?·1·:·`"
prettier/prettier
|
| Warning |
Row 144, Column 60: "Operator '?' must be spaced."
space-infix-ops
|
| 144 |
no_delivery:payload.no_delivery?1:0, |
| Error |
Row 145, Column 1: "Replace `····························country_from:` with `················country_from:·`"
prettier/prettier
|
| 145 |
country_from:payload.country_from, |
| Error |
Row 146, Column 17: "Replace `············country_to:` with `country_to:·`"
prettier/prettier
|
| 146 |
country_to:payload.country_to, |
| Error |
Row 147, Column 1: "Replace `····························delivery_date:` with `················delivery_date:·`"
prettier/prettier
|
| 147 |
delivery_date:payload.delivery_date, |
| Error |
Row 148, Column 15: "Insert `})⏎··`"
prettier/prettier
|
| 148 |
} |
| Error |
Row 149, Column 1: "Replace `····················)}·style={{·...styles.BUTTON,·width:·'49%'·}}·title={'Apply·Filters'}·/>` with `············style={{...styles.BUTTON,·width:·'49%'}}⏎············title={'Apply·Filters'}`"
prettier/prettier
|
| Warning |
Row 149, Column 31: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 149 |
)} style={{ ...styles.BUTTON, width: '49%' }} title={'Apply Filters'} /> |
| Error |
Row 150, Column 11: "Replace `···········onClose()}·style={{·...styles.BUTTON,·width:·'49%'·}}·title={'Clear·All'}·/>` with `/>⏎···········onClose()}⏎············style={{...styles.BUTTON,·width:·'49%'}}⏎············title={'Clear·All'}`"
prettier/prettier
|
| Warning |
Row 150, Column 86: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 150 |
<Buttons.ButtonSecondaryOutline onClick={() => onClose()} style={{ ...styles.BUTTON, width: '49%' }} title={'Clear All'} /> |
| Error |
Row 151, Column 9: "Insert `··/>⏎`"
prettier/prettier
|
| 151 |
</View> |
| Error |
Row 152, Column 1: "Delete `········`"
prettier/prettier
|
| 152 |
{/* <DateTimePicker |
| 153 |
isVisible={isDatePickerVisible} |
| 154 |
onCancel={hideDatePicker} |
| 155 |
mode="date" |
| 156 |
maximumDate={new Date()} |
| 157 |
isDarkModeEnabled={false} |
| 158 |
// backdropStyleIOS={colors.black} |
| 159 |
onConfirm={date => { |
| 160 |
setPayload({ ...payload, [dateOption]: moment(date).format('MM / DD / YYYY') }); |
| 161 |
setDatePickerVisibility(false); |
| 162 |
}} |
| 163 |
/> */} |
| Error |
Row 164, Column 9: "Delete `········`"
prettier/prettier
|
| 164 |
<DatePickerModal |
| Error |
Row 165, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 165 |
visible={isDatePickerVisible} |
| Error |
Row 166, Column 1: "Replace `····················onClose={()·=>·{·setDatePickerVisibility(false)·}}` with `··········onClose={()·=>·{⏎············setDatePickerVisibility(false);`"
prettier/prettier
|
| Warning |
Row 166, Column 68: "Missing semicolon."
semi
|
| 166 |
onClose={() => { setDatePickerVisibility(false) }} |
| Error |
Row 167, Column 11: "Insert `}}⏎`"
prettier/prettier
|
| 167 |
onApply={hideDatePicker} |
| Error |
Row 168, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 168 |
/> |
| Error |
Row 169, Column 1: "Delete `········`"
prettier/prettier
|
| 169 |
<InternationalOrderFilterModal |
| Error |
Row 170, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 170 |
onApply={() => { |
| Error |
Row 171, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 171 |
setNextModal(false); |
| Error |
Row 172, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 172 |
onClose(false); |
| Error |
Row 173, Column 11: "Delete `··········`"
prettier/prettier
|
| 173 |
}} |
| Error |
Row 174, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 174 |
visible={nextModal} |
| Error |
Row 175, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 175 |
onClose={() => { |
| Error |
Row 176, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 176 |
setNextModal(false); |
| Error |
Row 177, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 177 |
}} |
| Error |
Row 178, Column 1: "Delete `··········`"
prettier/prettier
|
| 178 |
onBackButton={() => { |
| Error |
Row 179, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 179 |
setNextModal(false); |
| Error |
Row 180, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 180 |
}} |
| Error |
Row 181, Column 1: "Delete `··········`"
prettier/prettier
|
| 181 |
navigation={navigation} |
| Error |
Row 182, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 182 |
/> |
| Error |
Row 183, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 183 |
</> |
| Error |
Row 184, Column 1: "Delete `····`"
prettier/prettier
|
| 184 |
</ModalWrapper> |
| Error |
Row 185, Column 3: "Delete `··`"
prettier/prettier
|
| 185 |
); |
| 186 |
}; |
| Error |
Row 187, Column 22: "Replace `=state=>` with `·=·state·=>·`"
prettier/prettier
|
| Warning |
Row 187, Column 22: "Operator '=' must be spaced."
space-infix-ops
|
| 187 |
const mapStateToProps=state=>({ |
| Error |
Row 188, Column 1: "Delete `··`"
prettier/prettier
|
| 188 |
profileData: state.auth.userInfo?.profile || {}, |
| Error |
Row 189, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 189, Column 3: "Missing semicolon."
semi
|
| 189 |
}) |
| Error |
Row 190, Column 40: "Insert `·`"
prettier/prettier
|
| 190 |
export default connect(mapStateToProps,{})(InternationalOrderDateFilterModal); |
| 191 |
const styles = StyleSheet.create({ |
| Error |
Row 192, Column 3: "Delete `··`"
prettier/prettier
|
| 192 |
CONTAINER: { |
| Error |
Row 193, Column 1: "Delete `····`"
prettier/prettier
|
| 193 |
position: 'absolute', |
| Error |
Row 194, Column 5: "Delete `····`"
prettier/prettier
|
| 194 |
bottom: 0, |
| Error |
Row 195, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 195 |
width: '100%', |
| Error |
Row 196, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 196 |
borderTopLeftRadius: mvs(20), |
| Error |
Row 197, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 197 |
borderTopRightRadius: mvs(20), |
| Error |
Row 198, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 198 |
backgroundColor: colors.primary, |
| Error |
Row 199, Column 3: "Delete `··`"
prettier/prettier
|
| 199 |
}, |
| Error |
Row 200, Column 1: "Delete `··`"
prettier/prettier
|
| 200 |
HEADING_TXT: { |
| Error |
Row 201, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 201 |
fontSize: mvs(15), |
| Error |
Row 202, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 202 |
color: colors.white, |
| Error |
Row 203, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 203 |
alignSelf: 'center', |
| Error |
Row 204, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 204 |
marginTop: mvs(13), |
| Error |
Row 205, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 205 |
marginBottom: mvs(16), |
| Error |
Row 206, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 206 |
}, |
| Error |
Row 207, Column 1: "Delete `··`"
prettier/prettier
|
| 207 |
SUB_CONTAINER: { |
| Error |
Row 208, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 208 |
backgroundColor: colors.white, |
| Error |
Row 209, Column 5: "Delete `····`"
prettier/prettier
|
| 209 |
paddingTop: mvs(20), |
| Error |
Row 210, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 210 |
paddingBottom: mvs(38), |
| Error |
Row 211, Column 1: "Delete `····`"
prettier/prettier
|
| 211 |
paddingHorizontal: mvs(22), |
| Error |
Row 212, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 212 |
borderTopLeftRadius: mvs(20), |
| Error |
Row 213, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 213 |
borderTopRightRadius: mvs(20), |
| Error |
Row 214, Column 1: "Delete `··`"
prettier/prettier
|
| 214 |
}, |
| Error |
Row 215, Column 3: "Delete `··`"
prettier/prettier
|
| 215 |
DESTINATION_CONTAINER: { |
| Error |
Row 216, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 216 |
alignItems: 'center', |
| Error |
Row 217, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 217 |
flexDirection: 'row', |
| Error |
Row 218, Column 1: "Delete `····`"
prettier/prettier
|
| 218 |
justifyContent: 'space-between', |
| Error |
Row 219, Column 1: "Replace `········marginTop:·mvs(10)` with `····marginTop:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 219, Column 27: "Missing trailing comma."
comma-dangle
|
| 219 |
marginTop: mvs(10) |
| Error |
Row 220, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 220 |
}, |
| Error |
Row 221, Column 1: "Delete `··`"
prettier/prettier
|
| 221 |
BUTTON_CONTAINER: { |
| Error |
Row 222, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 222 |
flexDirection: 'row', |
| Error |
Row 223, Column 1: "Delete `····`"
prettier/prettier
|
| 223 |
justifyContent: 'space-between', |
| Error |
Row 224, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 224 |
}, |
| Error |
Row 225, Column 1: "Delete `··`"
prettier/prettier
|
| 225 |
BUTTON: { |
| Error |
Row 226, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 226 |
width: '49%', |
| Error |
Row 227, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 227 |
}, |
| Error |
Row 228, Column 1: "Delete `··`"
prettier/prettier
|
| 228 |
TRIP_TYPE_RADIO: { |
| Error |
Row 229, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 229 |
width: mvs(161), |
| Error |
Row 230, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 230 |
}, |
| Error |
Row 231, Column 1: "Delete `··`"
prettier/prettier
|
| 231 |
RTL_ICON: { |
| Error |
Row 232, Column 1: "Delete `⏎····`"
prettier/prettier
|
| 232 |
|
| 233 |
height: mvs(23), |
| Error |
Row 234, Column 5: "Delete `····`"
prettier/prettier
|
| 234 |
width: mvs(23), |
| Error |
Row 235, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 235 |
}, |
| 236 |
|
| Error |
Row 237, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 237, Column 5: "Duplicate key 'DESTINATION_CONTAINER'."
no-dupe-keys
|
| 237 |
DESTINATION_CONTAINER: { |
| Error |
Row 238, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 238 |
alignItems: 'center', |
| Error |
Row 239, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 239 |
flexDirection: 'row', |
| Error |
Row 240, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 240 |
justifyContent: 'space-between', |
| Error |
Row 241, Column 1: "Delete `⏎··`"
prettier/prettier
|
| 241 |
|
| 242 |
}, |
| Error |
Row 243, Column 1: "Delete `··`"
prettier/prettier
|
| 243 |
FLAG_BUTTON: { |
| Error |
Row 244, Column 5: "Delete `····`"
prettier/prettier
|
| 244 |
width: '100%', |
| Error |
Row 245, Column 1: "Delete `····`"
prettier/prettier
|
| 245 |
height: mvs(38), |
| Error |
Row 246, Column 5: "Delete `····`"
prettier/prettier
|
| 246 |
flexDirection: 'row-reverse', |
| Error |
Row 247, Column 1: "Delete `····`"
prettier/prettier
|
| 247 |
backgroundColor: colors.secondary, |
| Error |
Row 248, Column 3: "Delete `··`"
prettier/prettier
|
| 248 |
}, |
| Error |
Row 249, Column 1: "Delete `··`"
prettier/prettier
|
| 249 |
SEARCH_MAP: { |
| Error |
Row 250, Column 1: "Delete `····`"
prettier/prettier
|
| 250 |
marginTop: mvs(15), |
| Error |
Row 251, Column 5: "Delete `····`"
prettier/prettier
|
| 251 |
alignSelf: 'flex-end', |
| Error |
Row 252, Column 1: "Delete `····`"
prettier/prettier
|
| 252 |
width: mvs(161), |
| Error |
Row 253, Column 5: "Delete `····`"
prettier/prettier
|
| 253 |
height: mvs(38), |
| Error |
Row 254, Column 1: "Delete `····`"
prettier/prettier
|
| 254 |
flexDirection: 'row', |
| Error |
Row 255, Column 5: "Delete `····`"
prettier/prettier
|
| 255 |
backgroundColor: colors.primary, |
| Error |
Row 256, Column 5: "Delete `····`"
prettier/prettier
|
| 256 |
paddingHorizontal: mvs(23), |
| Error |
Row 257, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 257 |
}, |
| Error |
Row 258, Column 1: "Delete `··`"
prettier/prettier
|
| 258 |
MAP_ICON: { |
| Error |
Row 259, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 259 |
height: mvs(18), |
| Error |
Row 260, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 260 |
width: mvs(14), |
| Error |
Row 261, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 261 |
}, |
| Error |
Row 262, Column 1: "Delete `··`"
prettier/prettier
|
| 262 |
NO_DELIVERY_CONTAINER: { |
| Error |
Row 263, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 263 |
borderTopWidth: StyleSheet.hairlineWidth, |
| Error |
Row 264, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 264 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| Error |
Row 265, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 265 |
flexDirection: 'row', |
| Error |
Row 266, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 266 |
alignItems: 'center', |
| Error |
Row 267, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 267 |
paddingVertical: mvs(14), |
| Error |
Row 268, Column 5: "Delete `····`"
prettier/prettier
|
| 268 |
marginTop: mvs(15), |
| Error |
Row 269, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 269 |
borderColor: colors.filter_divider, |
| Error |
Row 270, Column 3: "Delete `··`"
prettier/prettier
|
| 270 |
}, |
| Error |
Row 271, Column 1: "Delete `··`"
prettier/prettier
|
| 271 |
NoDelivery: { |
| Error |
Row 272, Column 1: "Replace `········fontSize:·mvs(15),` with `····fontSize:·mvs(15),⏎···`"
prettier/prettier
|
| 272 |
fontSize: mvs(15), color: colors.headerTitle, |
| Error |
Row 273, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 273 |
}, |
| Error |
Row 274, Column 1: "Delete `··`"
prettier/prettier
|
| 274 |
PRICES_CONTAINER: { |
| Error |
Row 275, Column 1: "Delete `····`"
prettier/prettier
|
| 275 |
justifyContent: 'space-between', |
| Error |
Row 276, Column 1: "Delete `··`"
prettier/prettier
|
| 276 |
}, |
| Error |
Row 277, Column 3: "Delete `··`"
prettier/prettier
|
| 277 |
PRICE_HEADING: { |
| Error |
Row 278, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 278 |
fontSize: mvs(15), |
| Error |
Row 279, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 279 |
color: colors.typeHeader, |
| Error |
Row 280, Column 5: "Replace `····marginBottom:·mvs(10)⏎` with `marginBottom:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 280, Column 30: "Missing trailing comma."
comma-dangle
|
| 280 |
marginBottom: mvs(10) |
| 281 |
|
| Error |
Row 282, Column 3: "Delete `··`"
prettier/prettier
|
| 282 |
}, |
| Error |
Row 283, Column 1: "Delete `··`"
prettier/prettier
|
| 283 |
MAX_MIN_PRICE: { |
| Error |
Row 284, Column 1: "Delete `····`"
prettier/prettier
|
| 284 |
// width: mvs(161), |
| Error |
Row 285, Column 5: "Delete `····`"
prettier/prettier
|
| 285 |
flexDirection: 'row', |
| Error |
Row 286, Column 1: "Delete `····`"
prettier/prettier
|
| 286 |
alignItems: 'center', |
| Error |
Row 287, Column 5: "Replace `····justifyContent:·'space-between'⏎` with `justifyContent:·'space-between',`"
prettier/prettier
|
| Warning |
Row 287, Column 40: "Missing trailing comma."
comma-dangle
|
| 287 |
justifyContent: 'space-between' |
| 288 |
|
| Error |
Row 289, Column 1: "Delete `··`"
prettier/prettier
|
| 289 |
}, |
| Error |
Row 290, Column 3: "Delete `··`"
prettier/prettier
|
| 290 |
DIV: { |
| Error |
Row 291, Column 1: "Delete `····`"
prettier/prettier
|
| 291 |
marginTop: mvs(15), |
| Error |
Row 292, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 292 |
marginBottom: mvs(13), |
| Error |
Row 293, Column 1: "Delete `····`"
prettier/prettier
|
| 293 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| Error |
Row 294, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 294 |
borderColor: colors.filter_divider, |
| Error |
Row 295, Column 3: "Delete `··`"
prettier/prettier
|
| 295 |
}, |
| Error |
Row 296, Column 1: "Delete `··`"
prettier/prettier
|
| 296 |
DEL_TIME: { |
| Error |
Row 297, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 297 |
color: colors.typeHeader, |
| Error |
Row 298, Column 5: "Delete `····`"
prettier/prettier
|
| 298 |
fontSize: mvs(15), |
| Error |
Row 299, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 299 |
marginBottom: mvs(8), |
| Error |
Row 300, Column 3: "Delete `··`"
prettier/prettier
|
| 300 |
}, |
| Error |
Row 301, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 301 |
RADIO_CONTAINER: { |
| Error |
Row 302, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 302 |
marginBottom: mvs(18), |
| Error |
Row 303, Column 3: "Delete `··`"
prettier/prettier
|
| 303 |
}, |
| Error |
Row 304, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 304 |
RADIO_LABEL: { |
| Error |
Row 305, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 305 |
color: colors.headerTitle, |
| Error |
Row 306, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 306 |
fontSize: mvs(15), |
| Error |
Row 307, Column 3: "Delete `··`"
prettier/prettier
|
| 307 |
}, |
| Error |
Row 308, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 308, Column 5: "Duplicate key 'BUTTON_CONTAINER'."
no-dupe-keys
|
| 308 |
BUTTON_CONTAINER: { |
| Error |
Row 309, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 309 |
marginTop: mvs(30), |
| Error |
Row 310, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 310 |
flexDirection: 'row', |
| Error |
Row 311, Column 1: "Delete `····`"
prettier/prettier
|
| 311 |
justifyContent: 'space-between', |
| Error |
Row 312, Column 3: "Delete `··`"
prettier/prettier
|
| 312 |
}, |
| Error |
Row 313, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 313, Column 5: "Duplicate key 'BUTTON'."
no-dupe-keys
|
| 313 |
BUTTON: { |
| Error |
Row 314, Column 1: "Delete `····`"
prettier/prettier
|
| 314 |
width: mvs(161), |
| Error |
Row 315, Column 3: "Delete `··`"
prettier/prettier
|
| 315 |
}, |
| Warning |
Row 316, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 316, Column 4: "Insert `⏎`"
prettier/prettier
|
| 316 |
}); |
|
|
|
/src/components/molecules/modals/international-order-filter-modal.js
|
51 problems (41 errors, 10 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·TouchableOpacity·` with `View,·StyleSheet,·TouchableOpacity`"
prettier/prettier
|
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 9, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Error |
Row 12, Column 41: "Replace `·onBackButton,visible,·onClose,·onApply,·navigation·` with `⏎··onBackButton,⏎··visible,⏎··onClose,⏎··onApply,⏎··navigation,⏎`"
prettier/prettier
|
| Warning |
Row 30, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 30, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| Warning |
Row 32, Column 22: "Inline style: { alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 32, Column 23: "Replace `·alignItems:·'center',·paddingHorizontal:·mvs(22)·` with `alignItems:·'center',·paddingHorizontal:·mvs(22)`"
prettier/prettier
|
| Error |
Row 42, Column 23: "Replace `·fontSize:·mvs(15),·color:·colors.headerTitle·` with `fontSize:·mvs(15),·color:·colors.headerTitle`"
prettier/prettier
|
| Error |
Row 45, Column 31: "Delete `·`"
prettier/prettier
|
| Error |
Row 55, Column 25: "Replace `·...styles.DESTINATION_CONTAINER,·marginTop:·mvs(10)·` with `...styles.DESTINATION_CONTAINER,·marginTop:·mvs(10)`"
prettier/prettier
|
| Error |
Row 58, Column 23: "Replace `·fontSize:·mvs(15),·color:·colors.headerTitle·` with `fontSize:·mvs(15),·color:·colors.headerTitle`"
prettier/prettier
|
| Error |
Row 61, Column 31: "Delete `·`"
prettier/prettier
|
| Error |
Row 76, Column 25: "Replace `·color:·colors.white,·fontSize:·mvs(12)·` with `color:·colors.white,·fontSize:·mvs(12)`"
prettier/prettier
|
| Error |
Row 81, Column 23: "Replace `·marginTop:·mvs(8)·` with `marginTop:·mvs(8)`"
prettier/prettier
|
| Error |
Row 84, Column 25: "Replace `·=·{{color·:·"#54585D"` with `={{color:·'#54585D'`"
prettier/prettier
|
| Warning |
Row 84, Column 29: "Inline style: { color: '#54585D' }"
react-native/no-inline-styles
|
| Warning |
Row 84, Column 38: "Strings must use singlequote."
quotes
|
| Error |
Row 85, Column 46: "Replace `·...payload,·isNoDelivery:·value·` with `...payload,·isNoDelivery:·value`"
prettier/prettier
|
| Error |
Row 95, Column 16: "Replace `style={{·color:·colors.typeHeader·` with `·style={{color:·colors.typeHeader`"
prettier/prettier
|
| Error |
Row 97, Column 48: "Replace `·...payload,·maxPrice:·t·` with `...payload,·maxPrice:·t`"
prettier/prettier
|
| Error |
Row 102, Column 25: "Replace `·...styles.PRICE_HEADING,·color:·colors.primary·` with `...styles.PRICE_HEADING,·color:·colors.primary`"
prettier/prettier
|
| Error |
Row 106, Column 25: "Replace `·color:·colors.typeHeader·` with `color:·colors.typeHeader`"
prettier/prettier
|
| Error |
Row 108, Column 48: "Replace `·...payload,·minPrice:·t·` with `...payload,·minPrice:·t`"
prettier/prettier
|
| Warning |
Row 115, Column 26: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 115, Column 27: "Replace `·flexDirection:·'row'·` with `flexDirection:·'row'`"
prettier/prettier
|
| Error |
Row 117, Column 30: "Replace `color:payload.isThirtyDays?colors.primary:colors.headerTitle` with `⏎··················color:·payload.isThirtyDays⏎····················?·colors.primary⏎····················:·colors.headerTitle,⏎················`"
prettier/prettier
|
| Warning |
Row 117, Column 56: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 118, Column 46: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 133, Column 30: "Replace `color:payload.isThreeWeeks?colors.primary:colors.headerTitle` with `⏎··················color:·payload.isThreeWeeks⏎····················?·colors.primary⏎····················:·colors.headerTitle,⏎················`"
prettier/prettier
|
| Warning |
Row 133, Column 56: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 134, Column 25: "Replace `·marginLeft:·mvs(45)·` with `marginLeft:·mvs(45)`"
prettier/prettier
|
| Warning |
Row 149, Column 26: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 149, Column 27: "Replace `·flexDirection:·'row',·marginTop:·mvs(8)·` with `flexDirection:·'row',·marginTop:·mvs(8)`"
prettier/prettier
|
| Error |
Row 151, Column 30: "Replace `color:payload.isTwoWeeks?colors.primary:colors.headerTitle` with `⏎··················color:·payload.isTwoWeeks⏎····················?·colors.primary⏎····················:·colors.headerTitle,⏎················`"
prettier/prettier
|
| Warning |
Row 151, Column 54: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 166, Column 30: "Replace `color:payload.isNinetyDays?colors.primary:colors.headerTitle` with `⏎··················color:·payload.isNinetyDays⏎····················?·colors.primary⏎····················:·colors.headerTitle,⏎················`"
prettier/prettier
|
| Warning |
Row 166, Column 56: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 167, Column 25: "Replace `·marginLeft:·mvs(45)·` with `marginLeft:·mvs(45)`"
prettier/prettier
|
| Error |
Row 184, Column 28: "Replace `·color:·colors.pink·` with `color:·colors.pink`"
prettier/prettier
|
| Error |
Row 185, Column 23: "Replace `·marginTop:·mvs(8)·` with `marginTop:·mvs(8)`"
prettier/prettier
|
| Error |
Row 188, Column 33: "Insert `⏎···············`"
prettier/prettier
|
| Error |
Row 189, Column 17: "Insert `··`"
prettier/prettier
|
| Error |
Row 190, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 191, Column 17: "Insert `··`"
prettier/prettier
|
| Error |
Row 192, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 193, Column 17: "Insert `··`"
prettier/prettier
|
| Error |
Row 194, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| Error |
Row 195, Column 15: "Replace `})` with `··})⏎··············`"
prettier/prettier
|
| Error |
Row 206, Column 23: "Replace `·...styles.BUTTON·` with `...styles.BUTTON`"
prettier/prettier
|
| Error |
Row 314, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·TouchableOpacity·` with `View,·StyleSheet,·TouchableOpacity`"
prettier/prettier
|
| 2 |
import { View, StyleSheet, TouchableOpacity } from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| 4 |
import colors from '../../../config/colors'; |
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 5 |
import { mvs } from '../../../config/metrices'; |
| 6 |
import Medium from '../../../presentation/typography/medium-text'; |
| 7 |
import Regular from '../../../presentation/typography/regular-text'; |
| 8 |
import Buttons from '../../atoms/Button'; |
| Error |
Row 9, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 9 |
import { TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| 10 |
import CustomRadio from '../../atoms/RadioButton'; |
| 11 |
import Back from '../../../../resource/assets/common-icons/back-white.svg'; |
| Error |
Row 12, Column 41: "Replace `·onBackButton,visible,·onClose,·onApply,·navigation·` with `⏎··onBackButton,⏎··visible,⏎··onClose,⏎··onApply,⏎··navigation,⏎`"
prettier/prettier
|
| 12 |
const InternationalOrderFilterModal = ({ onBackButton,visible, onClose, onApply, navigation }) => { |
| 13 |
const [payload, setPayload] = React.useState({ |
| 14 |
isThirtyDays: true, |
| 15 |
isNinetyDays: false, |
| 16 |
isThreeWeeks: false, |
| 17 |
isTwoWeeks: false, |
| 18 |
isUrgent: false, |
| 19 |
isNoDelivery: true, |
| 20 |
maxPrice: '100', |
| 21 |
minPrice: '1000', |
| 22 |
}); |
| 23 |
return ( |
| 24 |
<ReactNativeModal |
| 25 |
propagateSwipe |
| 26 |
isVisible={visible} |
| 27 |
avoidKeyboard |
| 28 |
onBackdropPress={() => onClose()} |
| 29 |
onBackButtonPress={() => onClose()} |
| Warning |
Row 30, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 30, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| 30 |
style={{ margin: 0, padding: 0 }}> |
| 31 |
<View style={styles.CONTAINER}> |
| Warning |
Row 32, Column 22: "Inline style: { alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 32, Column 23: "Replace `·alignItems:·'center',·paddingHorizontal:·mvs(22)·` with `alignItems:·'center',·paddingHorizontal:·mvs(22)`"
prettier/prettier
|
| 32 |
<View style={{ alignItems: 'center', paddingHorizontal: mvs(22) }}> |
| 33 |
<TouchableOpacity style={styles.BACK} onPress={() => onBackButton()}> |
| 34 |
<Back width={mvs(16)} height={mvs(16)} /> |
| 35 |
</TouchableOpacity> |
| 36 |
<Medium label={'Filters'} style={styles.HEADING_TXT} /> |
| 37 |
</View> |
| 38 |
<View style={styles.SUB_CONTAINER}> |
| 39 |
<View style={styles.DESTINATION_CONTAINER}> |
| 40 |
<Regular |
| 41 |
label={'Location'} |
| Error |
Row 42, Column 23: "Replace `·fontSize:·mvs(15),·color:·colors.headerTitle·` with `fontSize:·mvs(15),·color:·colors.headerTitle`"
prettier/prettier
|
| 42 |
style={{ fontSize: mvs(15), color: colors.headerTitle }} |
| 43 |
/> |
| 44 |
<Buttons.ButtonRTL |
| Error |
Row 45, Column 31: "Delete `·`"
prettier/prettier
|
| 45 |
onClick={() => { }} |
| 46 |
iconName={'flag'} |
| 47 |
title={'Kuwait'} |
| 48 |
style={styles.FLAG_BUTTON} |
| 49 |
iconStyle={{ |
| 50 |
height: mvs(23), |
| 51 |
width: mvs(23), |
| 52 |
}} |
| 53 |
/> |
| 54 |
</View> |
| Error |
Row 55, Column 25: "Replace `·...styles.DESTINATION_CONTAINER,·marginTop:·mvs(10)·` with `...styles.DESTINATION_CONTAINER,·marginTop:·mvs(10)`"
prettier/prettier
|
| 55 |
<View style={{ ...styles.DESTINATION_CONTAINER, marginTop: mvs(10) }}> |
| 56 |
<Regular |
| 57 |
label={'Destination'} |
| Error |
Row 58, Column 23: "Replace `·fontSize:·mvs(15),·color:·colors.headerTitle·` with `fontSize:·mvs(15),·color:·colors.headerTitle`"
prettier/prettier
|
| 58 |
style={{ fontSize: mvs(15), color: colors.headerTitle }} |
| 59 |
/> |
| 60 |
<Buttons.ButtonRTL |
| Error |
Row 61, Column 31: "Delete `·`"
prettier/prettier
|
| 61 |
onClick={() => { }} |
| 62 |
iconName={'flag'} |
| 63 |
title={'Shuwaikh'} |
| 64 |
style={styles.FLAG_BUTTON} |
| 65 |
iconStyle={{ |
| 66 |
height: mvs(23), |
| 67 |
width: mvs(23), |
| 68 |
}} |
| 69 |
/> |
| 70 |
</View> |
| 71 |
<Buttons.ButtonRTL |
| 72 |
onClick={() => navigation.navigate('searchmap')} |
| 73 |
iconName={'maptransparent'} |
| 74 |
title={'Search on map'} |
| 75 |
style={styles.SEARCH_MAP} |
| Error |
Row 76, Column 25: "Replace `·color:·colors.white,·fontSize:·mvs(12)·` with `color:·colors.white,·fontSize:·mvs(12)`"
prettier/prettier
|
| 76 |
textStyle={{ color: colors.white, fontSize: mvs(12) }} |
| 77 |
iconStyle={styles.MAP_ICON} |
| 78 |
/> |
| 79 |
<View style={styles.NO_DELIVERY_CONTAINER}> |
| 80 |
<CustomRadio |
| Error |
Row 81, Column 23: "Replace `·marginTop:·mvs(8)·` with `marginTop:·mvs(8)`"
prettier/prettier
|
| 81 |
style={{ marginTop: mvs(8) }} |
| 82 |
status={payload.isNoDelivery} |
| 83 |
label={'No delivery offers'} |
| Error |
Row 84, Column 25: "Replace `·=·{{color·:·"#54585D"` with `={{color:·'#54585D'`"
prettier/prettier
|
| Warning |
Row 84, Column 29: "Inline style: { color: '#54585D' }"
react-native/no-inline-styles
|
| Warning |
Row 84, Column 38: "Strings must use singlequote."
quotes
|
| 84 |
labelStyle = {{color : "#54585D"}} |
| Error |
Row 85, Column 46: "Replace `·...payload,·isNoDelivery:·value·` with `...payload,·isNoDelivery:·value`"
prettier/prettier
|
| 85 |
onChange={value => setPayload({ ...payload, isNoDelivery: value })} |
| 86 |
/> |
| 87 |
</View> |
| 88 |
<View style={styles.PRICES_CONTAINER}> |
| 89 |
<View style={styles.MAX_MIN_PRICE}> |
| 90 |
<Regular |
| 91 |
style={styles.PRICE_HEADING} |
| 92 |
label={'Max Product Price'} |
| 93 |
/> |
| 94 |
<TAKE_TO_INPUT_FIELD.PriceInput |
| Error |
Row 95, Column 16: "Replace `style={{·color:·colors.typeHeader·` with `·style={{color:·colors.typeHeader`"
prettier/prettier
|
| 95 |
style={{ color: colors.typeHeader }} |
| 96 |
value={payload.maxPrice} |
| Error |
Row 97, Column 48: "Replace `·...payload,·maxPrice:·t·` with `...payload,·maxPrice:·t`"
prettier/prettier
|
| 97 |
onChangeText={t => setPayload({ ...payload, maxPrice: t })} |
| 98 |
/> |
| 99 |
</View> |
| 100 |
<View style={styles.MAX_MIN_PRICE}> |
| 101 |
<Regular |
| Error |
Row 102, Column 25: "Replace `·...styles.PRICE_HEADING,·color:·colors.primary·` with `...styles.PRICE_HEADING,·color:·colors.primary`"
prettier/prettier
|
| 102 |
style={{ ...styles.PRICE_HEADING, color: colors.primary }} |
| 103 |
label={'Min Reward'} |
| 104 |
/> |
| 105 |
<TAKE_TO_INPUT_FIELD.PriceInput |
| Error |
Row 106, Column 25: "Replace `·color:·colors.typeHeader·` with `color:·colors.typeHeader`"
prettier/prettier
|
| 106 |
style={{ color: colors.typeHeader }} |
| 107 |
value={payload.minPrice} |
| Error |
Row 108, Column 48: "Replace `·...payload,·minPrice:·t·` with `...payload,·minPrice:·t`"
prettier/prettier
|
| 108 |
onChangeText={t => setPayload({ ...payload, minPrice: t })} |
| 109 |
/> |
| 110 |
</View> |
| 111 |
</View> |
| 112 |
<View style={styles.DIV} /> |
| 113 |
<Regular label={'Delivery time'} style={styles.DEL_TIME} /> |
| 114 |
<View style={styles.RADIO_CONTAINER}> |
| Warning |
Row 115, Column 26: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 115, Column 27: "Replace `·flexDirection:·'row'·` with `flexDirection:·'row'`"
prettier/prettier
|
| 115 |
<View style={{ flexDirection: 'row' }}> |
| 116 |
<CustomRadio |
| Error |
Row 117, Column 30: "Replace `color:payload.isThirtyDays?colors.primary:colors.headerTitle` with `⏎··················color:·payload.isThirtyDays⏎····················?·colors.primary⏎····················:·colors.headerTitle,⏎················`"
prettier/prettier
|
| Warning |
Row 117, Column 56: "Operator '?' must be spaced."
space-infix-ops
|
| 117 |
labelStyle={{color:payload.isThirtyDays?colors.primary:colors.headerTitle}} |
| Error |
Row 118, Column 46: "Delete `⏎`"
prettier/prettier
|
| 118 |
status={payload.isThirtyDays} |
| 119 |
|
| 120 |
label={'Up to 30 days'} |
| 121 |
onChange={value => |
| 122 |
setPayload({ |
| 123 |
...payload, |
| 124 |
isThreeWeeks: !value, |
| 125 |
isNinetyDays: !value, |
| 126 |
isThirtyDays: value, |
| 127 |
isTwoWeeks: !value, |
| 128 |
isUrgent: !value, |
| 129 |
}) |
| 130 |
} |
| 131 |
/> |
| 132 |
<CustomRadio |
| Error |
Row 133, Column 30: "Replace `color:payload.isThreeWeeks?colors.primary:colors.headerTitle` with `⏎··················color:·payload.isThreeWeeks⏎····················?·colors.primary⏎····················:·colors.headerTitle,⏎················`"
prettier/prettier
|
| Warning |
Row 133, Column 56: "Operator '?' must be spaced."
space-infix-ops
|
| 133 |
labelStyle={{color:payload.isThreeWeeks?colors.primary:colors.headerTitle}} |
| Error |
Row 134, Column 25: "Replace `·marginLeft:·mvs(45)·` with `marginLeft:·mvs(45)`"
prettier/prettier
|
| 134 |
style={{ marginLeft: mvs(45) }} |
| 135 |
status={payload.isThreeWeeks} |
| 136 |
label={'Up to 3 weeks'} |
| 137 |
onChange={value => |
| 138 |
setPayload({ |
| 139 |
...payload, |
| 140 |
isThreeWeeks: value, |
| 141 |
isNinetyDays: !value, |
| 142 |
isThirtyDays: !value, |
| 143 |
isTwoWeeks: !value, |
| 144 |
isUrgent: !value, |
| 145 |
}) |
| 146 |
} |
| 147 |
/> |
| 148 |
</View> |
| Warning |
Row 149, Column 26: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 149, Column 27: "Replace `·flexDirection:·'row',·marginTop:·mvs(8)·` with `flexDirection:·'row',·marginTop:·mvs(8)`"
prettier/prettier
|
| 149 |
<View style={{ flexDirection: 'row', marginTop: mvs(8) }}> |
| 150 |
<CustomRadio |
| Error |
Row 151, Column 30: "Replace `color:payload.isTwoWeeks?colors.primary:colors.headerTitle` with `⏎··················color:·payload.isTwoWeeks⏎····················?·colors.primary⏎····················:·colors.headerTitle,⏎················`"
prettier/prettier
|
| Warning |
Row 151, Column 54: "Operator '?' must be spaced."
space-infix-ops
|
| 151 |
labelStyle={{color:payload.isTwoWeeks?colors.primary:colors.headerTitle}} |
| 152 |
status={payload.isTwoWeeks} |
| 153 |
label={'Up to 2 weeks'} |
| 154 |
onChange={value => |
| 155 |
setPayload({ |
| 156 |
...payload, |
| 157 |
isTwoWeeks: value, |
| 158 |
isThreeWeeks: !value, |
| 159 |
isThirtyDays: !value, |
| 160 |
isNinetyDays: !value, |
| 161 |
isUrgent: !value, |
| 162 |
}) |
| 163 |
} |
| 164 |
/> |
| 165 |
<CustomRadio |
| Error |
Row 166, Column 30: "Replace `color:payload.isNinetyDays?colors.primary:colors.headerTitle` with `⏎··················color:·payload.isNinetyDays⏎····················?·colors.primary⏎····················:·colors.headerTitle,⏎················`"
prettier/prettier
|
| Warning |
Row 166, Column 56: "Operator '?' must be spaced."
space-infix-ops
|
| 166 |
labelStyle={{color:payload.isNinetyDays?colors.primary:colors.headerTitle}} |
| Error |
Row 167, Column 25: "Replace `·marginLeft:·mvs(45)·` with `marginLeft:·mvs(45)`"
prettier/prettier
|
| 167 |
style={{ marginLeft: mvs(45) }} |
| 168 |
status={payload.isNinetyDays} |
| 169 |
label={'Up to 90 days'} |
| 170 |
onChange={value => |
| 171 |
setPayload({ |
| 172 |
...payload, |
| 173 |
isTwoWeeks: !value, |
| 174 |
isThreeWeeks: !value, |
| 175 |
isThirtyDays: !value, |
| 176 |
isNinetyDays: value, |
| 177 |
isUrgent: !value, |
| 178 |
}) |
| 179 |
} |
| 180 |
/> |
| 181 |
</View> |
| 182 |
<CustomRadio |
| 183 |
subLabel={' (Higher rewards)'} |
| Error |
Row 184, Column 28: "Replace `·color:·colors.pink·` with `color:·colors.pink`"
prettier/prettier
|
| 184 |
labelStyle={{ color: colors.pink }} |
| Error |
Row 185, Column 23: "Replace `·marginTop:·mvs(8)·` with `marginTop:·mvs(8)`"
prettier/prettier
|
| 185 |
style={{ marginTop: mvs(8) }} |
| 186 |
status={payload.isUrgent} |
| 187 |
label={'Urgent Deliveries'} |
| Error |
Row 188, Column 33: "Insert `⏎···············`"
prettier/prettier
|
| 188 |
onChange={value => setPayload({ |
| Error |
Row 189, Column 17: "Insert `··`"
prettier/prettier
|
| 189 |
...payload, |
| Error |
Row 190, Column 1: "Insert `··`"
prettier/prettier
|
| 190 |
isTwoWeeks: !value, |
| Error |
Row 191, Column 17: "Insert `··`"
prettier/prettier
|
| 191 |
isThreeWeeks: !value, |
| Error |
Row 192, Column 1: "Insert `··`"
prettier/prettier
|
| 192 |
isThirtyDays: !value, |
| Error |
Row 193, Column 17: "Insert `··`"
prettier/prettier
|
| 193 |
isNinetyDays: !value, |
| Error |
Row 194, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| 194 |
isUrgent: value, |
| Error |
Row 195, Column 15: "Replace `})` with `··})⏎··············`"
prettier/prettier
|
| 195 |
})} |
| 196 |
/> |
| 197 |
</View> |
| 198 |
<View style={styles.BUTTON_CONTAINER}> |
| 199 |
<Buttons.ButtonPrimary |
| 200 |
onClick={onApply} |
| 201 |
style={styles.BUTTON} |
| 202 |
title={'Apply'} |
| 203 |
/> |
| 204 |
<Buttons.ButtonSecondayLight |
| 205 |
onClick={() => onClose()} |
| Error |
Row 206, Column 23: "Replace `·...styles.BUTTON·` with `...styles.BUTTON`"
prettier/prettier
|
| 206 |
style={{ ...styles.BUTTON }} |
| 207 |
title={'Clear all'} |
| 208 |
/> |
| 209 |
</View> |
| 210 |
</View> |
| 211 |
</View> |
| 212 |
</ReactNativeModal> |
| 213 |
); |
| 214 |
}; |
| 215 |
export default InternationalOrderFilterModal; |
| 216 |
const styles = StyleSheet.create({ |
| 217 |
CONTAINER: { |
| 218 |
position: 'absolute', |
| 219 |
bottom: 0, |
| 220 |
width: '100%', |
| 221 |
borderTopLeftRadius: mvs(20), |
| 222 |
borderTopRightRadius: mvs(20), |
| 223 |
backgroundColor: colors.primary, |
| 224 |
}, |
| 225 |
HEADING_TXT: { |
| 226 |
fontSize: mvs(15), |
| 227 |
color: colors.white, |
| 228 |
alignSelf: 'center', |
| 229 |
marginTop: mvs(13), |
| 230 |
marginBottom: mvs(16), |
| 231 |
}, |
| 232 |
SUB_CONTAINER: { |
| 233 |
backgroundColor: colors.white, |
| 234 |
paddingVertical: mvs(20), |
| 235 |
paddingHorizontal: mvs(22), |
| 236 |
borderTopLeftRadius: mvs(20), |
| 237 |
borderTopRightRadius: mvs(20), |
| 238 |
}, |
| 239 |
DESTINATION_CONTAINER: { |
| 240 |
alignItems: 'center', |
| 241 |
flexDirection: 'row', |
| 242 |
justifyContent: 'space-between', |
| 243 |
}, |
| 244 |
FLAG_BUTTON: { |
| 245 |
width: mvs(161), |
| 246 |
height: mvs(38), |
| 247 |
flexDirection: 'row-reverse', |
| 248 |
backgroundColor: colors.secondary, |
| 249 |
}, |
| 250 |
SEARCH_MAP: { |
| 251 |
marginTop: mvs(15), |
| 252 |
alignSelf: 'flex-end', |
| 253 |
width: mvs(161), |
| 254 |
height: mvs(38), |
| 255 |
flexDirection: 'row', |
| 256 |
backgroundColor: colors.primary, |
| 257 |
paddingHorizontal: mvs(23), |
| 258 |
}, |
| 259 |
MAP_ICON: { |
| 260 |
height: mvs(18), |
| 261 |
width: mvs(14), |
| 262 |
}, |
| 263 |
NO_DELIVERY_CONTAINER: { |
| 264 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 265 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 266 |
flexDirection: 'row', |
| 267 |
alignItems: 'center', |
| 268 |
paddingVertical: mvs(14), |
| 269 |
marginTop: mvs(15), |
| 270 |
borderColor: colors.filter_divider, |
| 271 |
}, |
| 272 |
NoDelivery: { |
| 273 |
fontSize: mvs(15), |
| 274 |
color: colors.headerTitle, |
| 275 |
}, |
| 276 |
PRICES_CONTAINER: { |
| 277 |
marginTop: mvs(13), |
| 278 |
flexDirection: 'row', |
| 279 |
justifyContent: 'space-between', |
| 280 |
}, |
| 281 |
PRICE_HEADING: { |
| 282 |
fontSize: mvs(15), |
| 283 |
color: colors.primary, |
| 284 |
marginBottom: mvs(10), |
| 285 |
}, |
| 286 |
MAX_MIN_PRICE: { |
| 287 |
width: mvs(161), |
| 288 |
}, |
| 289 |
DIV: { |
| 290 |
marginTop: mvs(15), |
| 291 |
marginBottom: mvs(13), |
| 292 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 293 |
borderColor: colors.filter_divider, |
| 294 |
}, |
| 295 |
DEL_TIME: { |
| 296 |
color: colors.primary, |
| 297 |
fontSize: mvs(15), |
| 298 |
marginBottom: mvs(8), |
| 299 |
}, |
| 300 |
RADIO_CONTAINER: { |
| 301 |
marginBottom: mvs(30), |
| 302 |
}, |
| 303 |
RADIO_LABEL: { |
| 304 |
color: colors.headerTitle, |
| 305 |
fontSize: mvs(15), |
| 306 |
}, |
| 307 |
BUTTON_CONTAINER: { |
| 308 |
flexDirection: 'row', |
| 309 |
justifyContent: 'space-between', |
| 310 |
}, |
| 311 |
BUTTON: { |
| 312 |
width: mvs(161), |
| 313 |
}, |
| Error |
Row 314, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| 314 |
BACK: { position: 'absolute', left: mvs(23), top: mvs(17) }, |
| 315 |
}); |
| 316 |
|
|
|
|
/src/components/molecules/modals/local-order-filter-modal.js
|
216 problems (190 errors, 26 warnings)
|
| Severity |
Rule |
| Error |
Row 4, Column 9: "Replace `·StyleSheet,·View·` with `StyleSheet,·View`"
prettier/prettier
|
| Warning |
Row 5, Column 8: "'ReactNativeModal' is defined but never used."
no-unused-vars
|
| Error |
Row 6, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 8, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 9, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Error |
Row 11, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 11, Column 10: "'TAKE_TO_INPUT_FIELD' is defined but never used."
no-unused-vars
|
| Warning |
Row 15, Column 8: "'GoogleSearchBar' is defined but never used."
no-unused-vars
|
| Error |
Row 17, Column 33: "Replace `·visible,·onClose,·onSearchMap,·onApply·,profileData` with `⏎··visible,⏎··onClose,⏎··onSearchMap,⏎··onApply,⏎··profileData,⏎`"
prettier/prettier
|
| Error |
Row 18, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 18, Column 12: "'sliderValue' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 18, Column 25: "'setSliderValue' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 19, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 19, Column 12: "'selectedIndex' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 19, Column 27: "'setSelectedIndex' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 20, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 21, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 22, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 23, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 24, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 25, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 26, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 27, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 28, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 29, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 30, Column 1: "Replace `⏎····})` with `··});`"
prettier/prettier
|
| Warning |
Row 31, Column 7: "Missing semicolon."
semi
|
| Error |
Row 32, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 33, Column 1: "Replace `········prettier/prettier
|
| Warning |
Row 33, Column 29: "Unexpected usage of singlequote."
jsx-quotes
|
| Error |
Row 34, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 35, Column 1: "Replace `················` with `········prettier/prettier
|
| Error |
Row 36, Column 9: "Replace `·········{·}}·iconName={'flag'}·title={'Kuwait'}·style={styles.FLAG_BUTTON}` with `/>⏎·········{}}⏎··········iconName={'flag'}⏎··········title={'Kuwait'}⏎··········style={styles.FLAG_BUTTON}⏎·········`"
prettier/prettier
|
| Error |
Row 37, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 38, Column 13: "Delete `········`"
prettier/prettier
|
| Error |
Row 39, Column 11: "Replace `······}}·/>` with `}}`"
prettier/prettier
|
| Warning |
Row 40, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 40, Column 9: "Replace `········` with `/>`"
prettier/prettier
|
| Error |
Row 41, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 42, Column 7: "Replace `······prettier/prettier
|
| Error |
Row 43, Column 1: "Replace `················` with `········prettier/prettier
|
| Error |
Row 44, Column 9: "Replace `·········{·}}·iconName={'flag'}·title={'Select'}·style={{·...styles.FLAG_BUTTON,·flexDirection:·'row'·}}` with `/>⏎·········{}}⏎··········iconName={'flag'}⏎··········title={'Select'}⏎··········style={{...styles.FLAG_BUTTON,·flexDirection:·'row'}}⏎·········`"
prettier/prettier
|
| Warning |
Row 44, Column 156: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 45, Column 1: "Replace `····················` with `············`"
prettier/prettier
|
| Error |
Row 46, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 47, Column 11: "Replace `······}}` with `}}⏎·······`"
prettier/prettier
|
| Error |
Row 48, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 49, Column 1: "Replace `············prettier/prettier
|
| Error |
Row 50, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 51, Column 1: "Replace `················onChange={(value)·=>·setPayload({·...payload,·no_delivery:·value·` with `········onChange={value·=>·setPayload({...payload,·no_delivery:·value`"
prettier/prettier
|
| Error |
Row 52, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 53, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 54, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 55, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 56, Column 1: "Replace `················prettier/prettier
|
| Warning |
Row 56, Column 30: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 57, Column 1: "Replace `·····················setPayload({·...payload,·isThreeDays:·true,·is_urgent:·false,·isTwoDays:·false,delivery_date:moment().add(3,·'days').format('YYYY-MM-DD')·})}·/>` with `··········⏎··············setPayload({⏎················...payload,⏎················isThreeDays:·true,⏎················is_urgent:·false,⏎················isTwoDays:·false,⏎················delivery_date:·moment().add(3,·'days').format('YYYY-MM-DD'),⏎··············})⏎············}`"
prettier/prettier
|
| Error |
Row 58, Column 11: "Replace `···········setPayload({·...payload,·isThreeDays:·false,·is_urgent:·false,·isTwoDays:·true,delivery_date:moment().add(3,·'days').format('YYYY-MM-DD')·})}·/>⏎················⏎··········⏎··············setPayload({⏎················...payload,⏎················isThreeDays:·false,⏎················is_urgent:·false,⏎················isTwoDays:·true,⏎················delivery_date:·moment().add(3,·'days').format('YYYY-MM-DD'),⏎··············})⏎············}⏎··········/`"
prettier/prettier
|
| Error |
Row 60, Column 9: "Replace `·········setPayload({·...payload,·is_urgent:·true,·isTwoDays:·false,·isThreeDays:·false,delivery_date:moment().add(1,·'days').format('YYYY-MM-DD')·})}·/>⏎············⏎········⏎············setPayload({⏎··············...payload,⏎··············is_urgent:·true,⏎··············isTwoDays:·false,⏎··············isThreeDays:·false,⏎··············delivery_date:·moment().add(1,·'days').format('YYYY-MM-DD'),⏎············})⏎··········}⏎········/`"
prettier/prettier
|
| Error |
Row 62, Column 7: "Insert `⏎`"
prettier/prettier
|
| Error |
Row 63, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 64, Column 11: "Replace `··········` with `prettier/prettier
|
| Warning |
Row 64, Column 37: "Inline style: { alignSelf: 'flex-end' }"
react-native/no-inline-styles
|
| Error |
Row 65, Column 11: "Insert `/>⏎`"
prettier/prettier
|
| Error |
Row 66, Column 1: "Delete `············`"
prettier/prettier
|
| Error |
Row 67, Column 13: "Replace `············prettier/prettier
|
| Warning |
Row 67, Column 40: "Inline style: { width: '55%' }"
react-native/no-inline-styles
|
| Error |
Row 68, Column 15: "Delete `··············`"
prettier/prettier
|
| Error |
Row 69, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 70, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 71, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 72, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 73, Column 1: "Replace `····························onSlidingComplete={(v)·=>·{·setPayload({·...payload,·max_price:·v·})·}}` with `··············onSlidingComplete={v·=>·{⏎················setPayload({...payload,·max_price:·v});`"
prettier/prettier
|
| Warning |
Row 73, Column 97: "Missing semicolon."
semi
|
| Error |
Row 74, Column 1: "Replace `························/>` with `··············}}`"
prettier/prettier
|
| Error |
Row 75, Column 13: "Insert `/>⏎`"
prettier/prettier
|
| Error |
Row 76, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 77, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 78, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 79, Column 11: "Replace `··········` with `prettier/prettier
|
| Warning |
Row 79, Column 37: "Inline style: { alignSelf: 'flex-end' }"
react-native/no-inline-styles
|
| Error |
Row 80, Column 11: "Insert `/>⏎`"
prettier/prettier
|
| Error |
Row 81, Column 1: "Delete `············`"
prettier/prettier
|
| Error |
Row 82, Column 13: "Replace `············prettier/prettier
|
| Warning |
Row 82, Column 40: "Inline style: { width: '55%' }"
react-native/no-inline-styles
|
| Error |
Row 83, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 84, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 85, Column 1: "Delete `··············`"
prettier/prettier
|
| Error |
Row 86, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 87, Column 15: "Delete `··············`"
prettier/prettier
|
| Error |
Row 88, Column 1: "Replace `····························onSlidingComplete={(v)·=>·{·setPayload({·...payload,·reward:·v·})·}}` with `··············onSlidingComplete={v·=>·{⏎················setPayload({...payload,·reward:·v});`"
prettier/prettier
|
| Warning |
Row 88, Column 94: "Missing semicolon."
semi
|
| Error |
Row 89, Column 15: "Insert `}}⏎··`"
prettier/prettier
|
| Error |
Row 90, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 91, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 92, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 93, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 94, Column 9: "Replace `········` with `⏎···········`"
prettier/prettier
|
| Error |
Row 95, Column 1: "Replace `····················no_delivery:payload.no_delivery?1:` with `··············no_delivery:·payload.no_delivery·?·1·:·`"
prettier/prettier
|
| Warning |
Row 95, Column 52: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 96, Column 1: "Replace `····················country_from:` with `··············country_from:·`"
prettier/prettier
|
| Error |
Row 97, Column 15: "Replace `······country_to:` with `country_to:·`"
prettier/prettier
|
| Error |
Row 98, Column 15: "Replace `······delivery_date:` with `delivery_date:·`"
prettier/prettier
|
| Error |
Row 99, Column 13: "Replace `········})}·style={styles.BUTTON}·title={'Apply·Filters'}·/>` with `})⏎··········}⏎··········style={styles.BUTTON}⏎··········title={'Apply·Filters'}`"
prettier/prettier
|
| Error |
Row 100, Column 9: "Replace `·········onClose()}·style={{·...styles.BUTTON,·}}·title={'Clear·All'}·/>⏎⏎······` with `/>⏎·········onClose()}⏎··········style={{...styles.BUTTON}}⏎··········title={'Clear·All'}⏎········/>⏎`"
prettier/prettier
|
| Warning |
Row 100, Column 100: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 103, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 104, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 106, Column 22: "Replace `=state=>` with `·=·state·=>·`"
prettier/prettier
|
| Warning |
Row 106, Column 22: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 107, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 108, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 108, Column 3: "Missing semicolon."
semi
|
| Error |
Row 109, Column 40: "Insert `·`"
prettier/prettier
|
| Error |
Row 111, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 112, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 113, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 114, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 115, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 116, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 117, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 118, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 119, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 120, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 121, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 122, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 123, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 124, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 125, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 126, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 127, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 128, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 129, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 130, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 131, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 132, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 133, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 134, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 135, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 136, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 137, Column 1: "Delete `⏎··`"
prettier/prettier
|
| Error |
Row 139, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 140, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 141, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 142, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 143, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 144, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 145, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 146, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 147, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 148, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 149, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 150, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 151, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 152, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 153, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 154, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 155, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 156, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 157, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 158, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 159, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 160, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 161, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 162, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 163, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 164, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 165, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 166, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 167, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 168, Column 1: "Replace `········fontSize:·mvs(15),` with `····fontSize:·mvs(15),⏎···`"
prettier/prettier
|
| Error |
Row 169, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 170, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 171, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 172, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 173, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 174, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 175, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 176, Column 1: "Replace `········marginBottom:·mvs(10)⏎` with `····marginBottom:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 176, Column 30: "Missing trailing comma."
comma-dangle
|
| Error |
Row 178, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 179, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 180, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 181, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 182, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 183, Column 1: "Replace `········justifyContent:·'space-between'⏎` with `····justifyContent:·'space-between',`"
prettier/prettier
|
| Warning |
Row 183, Column 40: "Missing trailing comma."
comma-dangle
|
| Error |
Row 185, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 186, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 187, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 188, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 189, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 190, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 191, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 192, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 193, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 194, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 195, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 196, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 197, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 198, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 199, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 200, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 201, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 202, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 203, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 204, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 205, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 206, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 207, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 208, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 209, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 210, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 211, Column 3: "Delete `··`"
prettier/prettier
|
| Warning |
Row 212, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 212, Column 4: "Insert `⏎`"
prettier/prettier
|
| Line |
Source |
| 1 |
import Slider from '@react-native-community/slider'; |
| 2 |
import moment from 'moment'; |
| 3 |
import React from 'react'; |
| Error |
Row 4, Column 9: "Replace `·StyleSheet,·View·` with `StyleSheet,·View`"
prettier/prettier
|
| 4 |
import { StyleSheet, View } from 'react-native'; |
| Warning |
Row 5, Column 8: "'ReactNativeModal' is defined but never used."
no-unused-vars
|
| 5 |
import ReactNativeModal from 'react-native-modal'; |
| Error |
Row 6, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 6 |
import { connect } from 'react-redux'; |
| 7 |
import colors from '../../../config/colors'; |
| Error |
Row 8, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 8 |
import { mvs } from '../../../config/metrices'; |
| Warning |
Row 9, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| 9 |
import Medium from '../../../presentation/typography/medium-text'; |
| 10 |
import Regular from '../../../presentation/typography/regular-text'; |
| Error |
Row 11, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 11, Column 10: "'TAKE_TO_INPUT_FIELD' is defined but never used."
no-unused-vars
|
| 11 |
import { TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| 12 |
import Buttons from '../../atoms/Button'; |
| 13 |
import CustomRadio from '../../atoms/RadioButton'; |
| 14 |
import CustomSwitch from '../../atoms/Switch'; |
| Warning |
Row 15, Column 8: "'GoogleSearchBar' is defined but never used."
no-unused-vars
|
| 15 |
import GoogleSearchBar from '../google-search-bar'; |
| 16 |
import ModalWrapper from '../modal-wrapper/modal-wrapper'; |
| Error |
Row 17, Column 33: "Replace `·visible,·onClose,·onSearchMap,·onApply·,profileData` with `⏎··visible,⏎··onClose,⏎··onSearchMap,⏎··onApply,⏎··profileData,⏎`"
prettier/prettier
|
| 17 |
const LocalOrderFilterModal = ({ visible, onClose, onSearchMap, onApply ,profileData}) => { |
| Error |
Row 18, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 18, Column 12: "'sliderValue' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 18, Column 25: "'setSliderValue' is assigned a value but never used."
no-unused-vars
|
| 18 |
const [sliderValue, setSliderValue] = React.useState(10); |
| Error |
Row 19, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 19, Column 12: "'selectedIndex' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 19, Column 27: "'setSelectedIndex' is assigned a value but never used."
no-unused-vars
|
| 19 |
const [selectedIndex, setSelectedIndex] = React.useState(0); |
| Error |
Row 20, Column 3: "Delete `··`"
prettier/prettier
|
| 20 |
const [payload, setPayload] = React.useState({ |
| Error |
Row 21, Column 5: "Delete `····`"
prettier/prettier
|
| 21 |
isTwoDays: false, |
| Error |
Row 22, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 22 |
isThreeDays: true, |
| Error |
Row 23, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 23 |
is_urgent: false, |
| Error |
Row 24, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 24 |
country_from: 'Pakistan', |
| Error |
Row 25, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 25 |
country_to: 'Pakistan', |
| Error |
Row 26, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 26 |
no_delivery: true, |
| Error |
Row 27, Column 1: "Delete `····`"
prettier/prettier
|
| 27 |
delivery_date: moment().add(3, 'days').format('YYYY-MM-DD'), |
| Error |
Row 28, Column 1: "Delete `····`"
prettier/prettier
|
| 28 |
max_price: 20000, |
| Error |
Row 29, Column 5: "Delete `····`"
prettier/prettier
|
| 29 |
reward: 10, |
| Error |
Row 30, Column 1: "Replace `⏎····})` with `··});`"
prettier/prettier
|
| 30 |
|
| Warning |
Row 31, Column 7: "Missing semicolon."
semi
|
| 31 |
}) |
| Error |
Row 32, Column 3: "Delete `··`"
prettier/prettier
|
| 32 |
return ( |
| Error |
Row 33, Column 1: "Replace `········prettier/prettier
|
| Warning |
Row 33, Column 29: "Unexpected usage of singlequote."
jsx-quotes
|
| 33 |
<ModalWrapper title='Filters' isBack visible={visible} onClose={onClose}> |
| Error |
Row 34, Column 7: "Delete `······`"
prettier/prettier
|
| 34 |
<View> |
| Error |
Row 35, Column 1: "Replace `················` with `········prettier/prettier
|
| 35 |
<Regular label={'Location'} style={{ fontSize: mvs(15), color: colors.typeHeader, marginBottom: mvs(10) }} /> |
| Error |
Row 36, Column 9: "Replace `·········{·}}·iconName={'flag'}·title={'Kuwait'}·style={styles.FLAG_BUTTON}` with `/>⏎·········{}}⏎··········iconName={'flag'}⏎··········title={'Kuwait'}⏎··········style={styles.FLAG_BUTTON}⏎·········`"
prettier/prettier
|
| 36 |
<Buttons.ButtonRTL textStyle={{ color: colors.primary }} onClick={() => { }} iconName={'flag'} title={'Kuwait'} style={styles.FLAG_BUTTON} iconStyle={{ |
| Error |
Row 37, Column 1: "Delete `········`"
prettier/prettier
|
| 37 |
height: mvs(23), |
| Error |
Row 38, Column 13: "Delete `········`"
prettier/prettier
|
| 38 |
width: mvs(23), |
| Error |
Row 39, Column 11: "Replace `······}}·/>` with `}}`"
prettier/prettier
|
| 39 |
}} /> |
| Warning |
Row 40, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 40, Column 9: "Replace `········` with `/>`"
prettier/prettier
|
| 40 |
|
| Error |
Row 41, Column 1: "Delete `······`"
prettier/prettier
|
| 41 |
</View> |
| Error |
Row 42, Column 7: "Replace `······prettier/prettier
|
| 42 |
<View style={{ marginTop: mvs(8) }}> |
| Error |
Row 43, Column 1: "Replace `················` with `········prettier/prettier
|
| 43 |
<Regular label={'Destination'} style={{ fontSize: mvs(15), color: colors.typeHeader, marginBottom: mvs(10) }} /> |
| Error |
Row 44, Column 9: "Replace `·········{·}}·iconName={'flag'}·title={'Select'}·style={{·...styles.FLAG_BUTTON,·flexDirection:·'row'·}}` with `/>⏎·········{}}⏎··········iconName={'flag'}⏎··········title={'Select'}⏎··········style={{...styles.FLAG_BUTTON,·flexDirection:·'row'}}⏎·········`"
prettier/prettier
|
| Warning |
Row 44, Column 156: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| 44 |
<Buttons.ButtonRTL textStyle={{ color: colors.lightgrey2 }} showIcon={false} onClick={() => { }} iconName={'flag'} title={'Select'} style={{ ...styles.FLAG_BUTTON, flexDirection: 'row' }} iconStyle={{ |
| Error |
Row 45, Column 1: "Replace `····················` with `············`"
prettier/prettier
|
| 45 |
height: mvs(23), |
| Error |
Row 46, Column 1: "Delete `········`"
prettier/prettier
|
| 46 |
width: mvs(23), |
| Error |
Row 47, Column 11: "Replace `······}}` with `}}⏎·······`"
prettier/prettier
|
| 47 |
}} /> |
| Error |
Row 48, Column 1: "Delete `······`"
prettier/prettier
|
| 48 |
</View> |
| Error |
Row 49, Column 1: "Replace `············prettier/prettier
|
| 49 |
<CustomSwitch textStyle={{ color: colors.typeHeader }} label={'No delivery offers'} |
| Error |
Row 50, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 50 |
value={payload.no_delivery} |
| Error |
Row 51, Column 1: "Replace `················onChange={(value)·=>·setPayload({·...payload,·no_delivery:·value·` with `········onChange={value·=>·setPayload({...payload,·no_delivery:·value`"
prettier/prettier
|
| 51 |
onChange={(value) => setPayload({ ...payload, no_delivery: value })} |
| Error |
Row 52, Column 1: "Delete `······`"
prettier/prettier
|
| 52 |
/> |
| Error |
Row 53, Column 1: "Delete `······`"
prettier/prettier
|
| 53 |
<View style={styles.DIV} /> |
| Error |
Row 54, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 54 |
<Regular label={'Delivery time'} style={styles.DEL_TIME} /> |
| Error |
Row 55, Column 7: "Delete `······`"
prettier/prettier
|
| 55 |
<View style={styles.RADIO_CONTAINER}> |
| Error |
Row 56, Column 1: "Replace `················prettier/prettier
|
| Warning |
Row 56, Column 30: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| 56 |
<View style={{ flexDirection: 'row' }}> |
| Error |
Row 57, Column 1: "Replace `·····················setPayload({·...payload,·isThreeDays:·true,·is_urgent:·false,·isTwoDays:·false,delivery_date:moment().add(3,·'days').format('YYYY-MM-DD')·})}·/>` with `··········⏎··············setPayload({⏎················...payload,⏎················isThreeDays:·true,⏎················is_urgent:·false,⏎················isTwoDays:·false,⏎················delivery_date:·moment().add(3,·'days').format('YYYY-MM-DD'),⏎··············})⏎············}`"
prettier/prettier
|
| 57 |
<CustomRadio labelStyle={{ color: payload?.isThreeDays ? colors.primary : colors.headerTitle }} status={payload.isThreeDays} label={'Within 3 days'} onChange={(value) => setPayload({ ...payload, isThreeDays: true, is_urgent: false, isTwoDays: false,delivery_date:moment().add(3, 'days').format('YYYY-MM-DD') })} /> |
| Error |
Row 58, Column 11: "Replace `···········setPayload({·...payload,·isThreeDays:·false,·is_urgent:·false,·isTwoDays:·true,delivery_date:moment().add(3,·'days').format('YYYY-MM-DD')·})}·/>⏎················⏎··········⏎··············setPayload({⏎················...payload,⏎················isThreeDays:·false,⏎················is_urgent:·false,⏎················isTwoDays:·true,⏎················delivery_date:·moment().add(3,·'days').format('YYYY-MM-DD'),⏎··············})⏎············}⏎··········/`"
prettier/prettier
|
| 58 |
<CustomRadio labelStyle={{ color: payload?.isTwoDays ? colors.primary : colors.headerTitle }} style={{ marginLeft: mvs(45) }} status={payload.isTwoDays} label={'Within 2 days'} onChange={(value) => setPayload({ ...payload, isThreeDays: false, is_urgent: false, isTwoDays: true,delivery_date:moment().add(3, 'days').format('YYYY-MM-DD') })} /> |
| 59 |
</View> |
| Error |
Row 60, Column 9: "Replace `·········setPayload({·...payload,·is_urgent:·true,·isTwoDays:·false,·isThreeDays:·false,delivery_date:moment().add(1,·'days').format('YYYY-MM-DD')·})}·/>⏎············⏎········⏎············setPayload({⏎··············...payload,⏎··············is_urgent:·true,⏎··············isTwoDays:·false,⏎··············isThreeDays:·false,⏎··············delivery_date:·moment().add(1,·'days').format('YYYY-MM-DD'),⏎············})⏎··········}⏎········/`"
prettier/prettier
|
| 60 |
<CustomRadio subLabel={' (Higher rewards)'} labelStyle={{ color: colors.pink }} style={{ marginTop: mvs(8) }} status={payload.is_urgent} label={'Urgent Deliveries'} onChange={(value) => setPayload({ ...payload, is_urgent: true, isTwoDays: false, isThreeDays: false,delivery_date:moment().add(1, 'days').format('YYYY-MM-DD') })} /> |
| 61 |
</View> |
| Error |
Row 62, Column 7: "Insert `⏎`"
prettier/prettier
|
| 62 |
<View style={styles.PRICES_CONTAINER}> |
| Error |
Row 63, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 63 |
<View> |
| Error |
Row 64, Column 11: "Replace `··········` with `prettier/prettier
|
| Warning |
Row 64, Column 37: "Inline style: { alignSelf: 'flex-end' }"
react-native/no-inline-styles
|
| 64 |
<Regular style={{ alignSelf: 'flex-end', color: colors.primary }} label={`${Math.floor(payload.max_price)} ${profileData?.currency?.currency_code}`} /> |
| Error |
Row 65, Column 11: "Insert `/>⏎`"
prettier/prettier
|
| 65 |
<View style={styles.MAX_MIN_PRICE}> |
| Error |
Row 66, Column 1: "Delete `············`"
prettier/prettier
|
| 66 |
<Regular style={styles.PRICE_HEADING} label={'Max Product Price'} /> |
| Error |
Row 67, Column 13: "Replace `············prettier/prettier
|
| Warning |
Row 67, Column 40: "Inline style: { width: '55%' }"
react-native/no-inline-styles
|
| 67 |
<Slider style={{ width: '55%', marginRight: mvs(-15) }} |
| Error |
Row 68, Column 15: "Delete `··············`"
prettier/prettier
|
| 68 |
minimumValue={0} |
| Error |
Row 69, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 69 |
maximumValue={20000} |
| Error |
Row 70, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 70 |
minimumTrackTintColor={colors.primary} |
| Error |
Row 71, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 71 |
thumbTintColor={colors.primary} |
| Error |
Row 72, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 72 |
value={payload.max_price} |
| Error |
Row 73, Column 1: "Replace `····························onSlidingComplete={(v)·=>·{·setPayload({·...payload,·max_price:·v·})·}}` with `··············onSlidingComplete={v·=>·{⏎················setPayload({...payload,·max_price:·v});`"
prettier/prettier
|
| Warning |
Row 73, Column 97: "Missing semicolon."
semi
|
| 73 |
onSlidingComplete={(v) => { setPayload({ ...payload, max_price: v }) }} |
| Error |
Row 74, Column 1: "Replace `························/>` with `··············}}`"
prettier/prettier
|
| 74 |
/> |
| Error |
Row 75, Column 13: "Insert `/>⏎`"
prettier/prettier
|
| 75 |
{/* <TAKE_TO_INPUT_FIELD.PriceInput value={payload.max_price} onChangeText={(t)=>setPayload({...payload,max_price:t})}/> */} |
| Error |
Row 76, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 76 |
</View> |
| Error |
Row 77, Column 1: "Delete `········`"
prettier/prettier
|
| 77 |
</View> |
| Error |
Row 78, Column 1: "Delete `········`"
prettier/prettier
|
| 78 |
<View> |
| Error |
Row 79, Column 11: "Replace `··········` with `prettier/prettier
|
| Warning |
Row 79, Column 37: "Inline style: { alignSelf: 'flex-end' }"
react-native/no-inline-styles
|
| 79 |
<Regular style={{ alignSelf: 'flex-end', color: colors.primary }} label={`${Math.floor(payload.reward)} ${profileData?.currency?.currency_code}`} /> |
| Error |
Row 80, Column 11: "Insert `/>⏎`"
prettier/prettier
|
| 80 |
<View style={styles.MAX_MIN_PRICE}> |
| Error |
Row 81, Column 1: "Delete `············`"
prettier/prettier
|
| 81 |
<Regular style={styles.PRICE_HEADING} label={'Min Reward'} /> |
| Error |
Row 82, Column 13: "Replace `············prettier/prettier
|
| Warning |
Row 82, Column 40: "Inline style: { width: '55%' }"
react-native/no-inline-styles
|
| 82 |
<Slider style={{ width: '55%', marginRight: mvs(-15) }} |
| Error |
Row 83, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 83 |
minimumValue={0} |
| Error |
Row 84, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 84 |
maximumValue={150} |
| Error |
Row 85, Column 1: "Delete `··············`"
prettier/prettier
|
| 85 |
minimumTrackTintColor={colors.primary} |
| Error |
Row 86, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 86 |
thumbTintColor={colors.primary} |
| Error |
Row 87, Column 15: "Delete `··············`"
prettier/prettier
|
| 87 |
value={payload.reward} |
| Error |
Row 88, Column 1: "Replace `····························onSlidingComplete={(v)·=>·{·setPayload({·...payload,·reward:·v·})·}}` with `··············onSlidingComplete={v·=>·{⏎················setPayload({...payload,·reward:·v});`"
prettier/prettier
|
| Warning |
Row 88, Column 94: "Missing semicolon."
semi
|
| 88 |
onSlidingComplete={(v) => { setPayload({ ...payload, reward: v }) }} |
| Error |
Row 89, Column 15: "Insert `}}⏎··`"
prettier/prettier
|
| 89 |
/> |
| Error |
Row 90, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 90 |
</View> |
| Error |
Row 91, Column 1: "Delete `········`"
prettier/prettier
|
| 91 |
</View> |
| Error |
Row 92, Column 7: "Delete `······`"
prettier/prettier
|
| 92 |
</View> |
| Error |
Row 93, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 93 |
<View style={styles.BUTTON_CONTAINER}> |
| Error |
Row 94, Column 9: "Replace `········` with `⏎···········`"
prettier/prettier
|
| 94 |
<Buttons.ButtonPrimary onClick={() => onApply({ |
| Error |
Row 95, Column 1: "Replace `····················no_delivery:payload.no_delivery?1:` with `··············no_delivery:·payload.no_delivery·?·1·:·`"
prettier/prettier
|
| Warning |
Row 95, Column 52: "Operator '?' must be spaced."
space-infix-ops
|
| 95 |
no_delivery:payload.no_delivery?1:0, |
| Error |
Row 96, Column 1: "Replace `····················country_from:` with `··············country_from:·`"
prettier/prettier
|
| 96 |
country_from:payload.country_from, |
| Error |
Row 97, Column 15: "Replace `······country_to:` with `country_to:·`"
prettier/prettier
|
| 97 |
country_to:payload.country_to, |
| Error |
Row 98, Column 15: "Replace `······delivery_date:` with `delivery_date:·`"
prettier/prettier
|
| 98 |
delivery_date:payload.delivery_date, |
| Error |
Row 99, Column 13: "Replace `········})}·style={styles.BUTTON}·title={'Apply·Filters'}·/>` with `})⏎··········}⏎··········style={styles.BUTTON}⏎··········title={'Apply·Filters'}`"
prettier/prettier
|
| 99 |
})} style={styles.BUTTON} title={'Apply Filters'} /> |
| Error |
Row 100, Column 9: "Replace `·········onClose()}·style={{·...styles.BUTTON,·}}·title={'Clear·All'}·/>⏎⏎······` with `/>⏎·········onClose()}⏎··········style={{...styles.BUTTON}}⏎··········title={'Clear·All'}⏎········/>⏎`"
prettier/prettier
|
| Warning |
Row 100, Column 100: "Unexpected trailing comma."
comma-dangle
|
| 100 |
<Buttons.ButtonSecondaryOutline onClick={() => onClose()} style={{ ...styles.BUTTON, }} title={'Clear All'} /> |
| 101 |
|
| 102 |
</View> |
| Error |
Row 103, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 103 |
</ModalWrapper> |
| Error |
Row 104, Column 1: "Delete `··`"
prettier/prettier
|
| 104 |
); |
| 105 |
}; |
| Error |
Row 106, Column 22: "Replace `=state=>` with `·=·state·=>·`"
prettier/prettier
|
| Warning |
Row 106, Column 22: "Operator '=' must be spaced."
space-infix-ops
|
| 106 |
const mapStateToProps=state=>({ |
| Error |
Row 107, Column 1: "Delete `··`"
prettier/prettier
|
| 107 |
profileData: state.auth.userInfo?.profile || {}, |
| Error |
Row 108, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 108, Column 3: "Missing semicolon."
semi
|
| 108 |
}) |
| Error |
Row 109, Column 40: "Insert `·`"
prettier/prettier
|
| 109 |
export default connect(mapStateToProps,{})(LocalOrderFilterModal); |
| 110 |
const styles = StyleSheet.create({ |
| Error |
Row 111, Column 3: "Delete `··`"
prettier/prettier
|
| 111 |
CONTAINER: { |
| Error |
Row 112, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 112 |
position: 'absolute', |
| Error |
Row 113, Column 5: "Delete `····`"
prettier/prettier
|
| 113 |
bottom: 0, |
| Error |
Row 114, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 114 |
width: '100%', |
| Error |
Row 115, Column 1: "Delete `····`"
prettier/prettier
|
| 115 |
borderTopLeftRadius: mvs(20), |
| Error |
Row 116, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 116 |
borderTopRightRadius: mvs(20), |
| Error |
Row 117, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 117 |
backgroundColor: colors.primary, |
| Error |
Row 118, Column 3: "Delete `··`"
prettier/prettier
|
| 118 |
}, |
| Error |
Row 119, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 119 |
HEADING_TXT: { |
| Error |
Row 120, Column 1: "Delete `····`"
prettier/prettier
|
| 120 |
fontSize: mvs(15), |
| Error |
Row 121, Column 1: "Delete `····`"
prettier/prettier
|
| 121 |
color: colors.white, |
| Error |
Row 122, Column 5: "Delete `····`"
prettier/prettier
|
| 122 |
alignSelf: 'center', |
| Error |
Row 123, Column 1: "Delete `····`"
prettier/prettier
|
| 123 |
marginTop: mvs(13), |
| Error |
Row 124, Column 5: "Delete `····`"
prettier/prettier
|
| 124 |
marginBottom: mvs(16), |
| Error |
Row 125, Column 3: "Delete `··`"
prettier/prettier
|
| 125 |
}, |
| Error |
Row 126, Column 1: "Delete `··`"
prettier/prettier
|
| 126 |
SUB_CONTAINER: { |
| Error |
Row 127, Column 5: "Delete `····`"
prettier/prettier
|
| 127 |
backgroundColor: colors.white, |
| Error |
Row 128, Column 1: "Delete `····`"
prettier/prettier
|
| 128 |
paddingVertical: mvs(20), |
| Error |
Row 129, Column 5: "Delete `····`"
prettier/prettier
|
| 129 |
paddingHorizontal: mvs(22), |
| Error |
Row 130, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 130 |
borderTopLeftRadius: mvs(20), |
| Error |
Row 131, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 131 |
borderTopRightRadius: mvs(20), |
| Error |
Row 132, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 132 |
}, |
| Error |
Row 133, Column 1: "Delete `··`"
prettier/prettier
|
| 133 |
DESTINATION_CONTAINER: { |
| Error |
Row 134, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 134 |
alignItems: 'center', |
| Error |
Row 135, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 135 |
flexDirection: 'row', |
| Error |
Row 136, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 136 |
justifyContent: 'space-between', |
| Error |
Row 137, Column 1: "Delete `⏎··`"
prettier/prettier
|
| 137 |
|
| 138 |
}, |
| Error |
Row 139, Column 1: "Delete `··`"
prettier/prettier
|
| 139 |
FLAG_BUTTON: { |
| Error |
Row 140, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 140 |
width: '100%', |
| Error |
Row 141, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 141 |
height: mvs(38), |
| Error |
Row 142, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 142 |
flexDirection: 'row-reverse', |
| Error |
Row 143, Column 1: "Delete `····`"
prettier/prettier
|
| 143 |
backgroundColor: colors.secondary, |
| Error |
Row 144, Column 1: "Delete `··`"
prettier/prettier
|
| 144 |
}, |
| Error |
Row 145, Column 3: "Delete `··`"
prettier/prettier
|
| 145 |
SEARCH_MAP: { |
| Error |
Row 146, Column 1: "Delete `····`"
prettier/prettier
|
| 146 |
marginTop: mvs(15), |
| Error |
Row 147, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 147 |
alignSelf: 'flex-end', |
| Error |
Row 148, Column 5: "Delete `····`"
prettier/prettier
|
| 148 |
width: mvs(161), |
| Error |
Row 149, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 149 |
height: mvs(38), |
| Error |
Row 150, Column 1: "Delete `····`"
prettier/prettier
|
| 150 |
flexDirection: 'row', |
| Error |
Row 151, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 151 |
backgroundColor: colors.primary, |
| Error |
Row 152, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 152 |
paddingHorizontal: mvs(23), |
| Error |
Row 153, Column 3: "Delete `··`"
prettier/prettier
|
| 153 |
}, |
| Error |
Row 154, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 154 |
MAP_ICON: { |
| Error |
Row 155, Column 1: "Delete `····`"
prettier/prettier
|
| 155 |
height: mvs(18), |
| Error |
Row 156, Column 1: "Delete `····`"
prettier/prettier
|
| 156 |
width: mvs(14), |
| Error |
Row 157, Column 3: "Delete `··`"
prettier/prettier
|
| 157 |
}, |
| Error |
Row 158, Column 1: "Delete `··`"
prettier/prettier
|
| 158 |
NO_DELIVERY_CONTAINER: { |
| Error |
Row 159, Column 1: "Delete `····`"
prettier/prettier
|
| 159 |
borderTopWidth: StyleSheet.hairlineWidth, |
| Error |
Row 160, Column 5: "Delete `····`"
prettier/prettier
|
| 160 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| Error |
Row 161, Column 5: "Delete `····`"
prettier/prettier
|
| 161 |
flexDirection: 'row', |
| Error |
Row 162, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 162 |
alignItems: 'center', |
| Error |
Row 163, Column 1: "Delete `····`"
prettier/prettier
|
| 163 |
paddingVertical: mvs(14), |
| Error |
Row 164, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 164 |
marginTop: mvs(15), |
| Error |
Row 165, Column 1: "Delete `····`"
prettier/prettier
|
| 165 |
borderColor: colors.filter_divider, |
| Error |
Row 166, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 166 |
}, |
| Error |
Row 167, Column 1: "Delete `··`"
prettier/prettier
|
| 167 |
NoDelivery: { |
| Error |
Row 168, Column 1: "Replace `········fontSize:·mvs(15),` with `····fontSize:·mvs(15),⏎···`"
prettier/prettier
|
| 168 |
fontSize: mvs(15), color: colors.headerTitle, |
| Error |
Row 169, Column 1: "Delete `··`"
prettier/prettier
|
| 169 |
}, |
| Error |
Row 170, Column 3: "Delete `··`"
prettier/prettier
|
| 170 |
PRICES_CONTAINER: { |
| Error |
Row 171, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 171 |
justifyContent: 'space-between', |
| Error |
Row 172, Column 3: "Delete `··`"
prettier/prettier
|
| 172 |
}, |
| Error |
Row 173, Column 1: "Delete `··`"
prettier/prettier
|
| 173 |
PRICE_HEADING: { |
| Error |
Row 174, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 174 |
fontSize: mvs(15), |
| Error |
Row 175, Column 1: "Delete `····`"
prettier/prettier
|
| 175 |
color: colors.typeHeader, |
| Error |
Row 176, Column 1: "Replace `········marginBottom:·mvs(10)⏎` with `····marginBottom:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 176, Column 30: "Missing trailing comma."
comma-dangle
|
| 176 |
marginBottom: mvs(10) |
| 177 |
|
| Error |
Row 178, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 178 |
}, |
| Error |
Row 179, Column 1: "Delete `··`"
prettier/prettier
|
| 179 |
MAX_MIN_PRICE: { |
| Error |
Row 180, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 180 |
// width: mvs(161), |
| Error |
Row 181, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 181 |
flexDirection: 'row', |
| Error |
Row 182, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 182 |
alignItems: 'center', |
| Error |
Row 183, Column 1: "Replace `········justifyContent:·'space-between'⏎` with `····justifyContent:·'space-between',`"
prettier/prettier
|
| Warning |
Row 183, Column 40: "Missing trailing comma."
comma-dangle
|
| 183 |
justifyContent: 'space-between' |
| 184 |
|
| Error |
Row 185, Column 3: "Delete `··`"
prettier/prettier
|
| 185 |
}, |
| Error |
Row 186, Column 1: "Delete `··`"
prettier/prettier
|
| 186 |
DIV: { |
| Error |
Row 187, Column 1: "Delete `····`"
prettier/prettier
|
| 187 |
marginTop: mvs(15), |
| Error |
Row 188, Column 5: "Delete `····`"
prettier/prettier
|
| 188 |
marginBottom: mvs(13), |
| Error |
Row 189, Column 1: "Delete `····`"
prettier/prettier
|
| 189 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| Error |
Row 190, Column 5: "Delete `····`"
prettier/prettier
|
| 190 |
borderColor: colors.filter_divider, |
| Error |
Row 191, Column 3: "Delete `··`"
prettier/prettier
|
| 191 |
}, |
| Error |
Row 192, Column 1: "Delete `··`"
prettier/prettier
|
| 192 |
DEL_TIME: { |
| Error |
Row 193, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 193 |
color: colors.typeHeader, |
| Error |
Row 194, Column 5: "Delete `····`"
prettier/prettier
|
| 194 |
fontSize: mvs(15), |
| Error |
Row 195, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 195 |
marginBottom: mvs(8), |
| Error |
Row 196, Column 1: "Delete `··`"
prettier/prettier
|
| 196 |
}, |
| Error |
Row 197, Column 3: "Delete `··`"
prettier/prettier
|
| 197 |
RADIO_CONTAINER: { |
| Error |
Row 198, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 198 |
marginBottom: mvs(18), |
| Error |
Row 199, Column 1: "Delete `··`"
prettier/prettier
|
| 199 |
}, |
| Error |
Row 200, Column 3: "Delete `··`"
prettier/prettier
|
| 200 |
RADIO_LABEL: { |
| Error |
Row 201, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 201 |
color: colors.headerTitle, |
| Error |
Row 202, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 202 |
fontSize: mvs(15), |
| Error |
Row 203, Column 3: "Delete `··`"
prettier/prettier
|
| 203 |
}, |
| Error |
Row 204, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 204 |
BUTTON_CONTAINER: { |
| Error |
Row 205, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 205 |
marginTop: mvs(30), |
| Error |
Row 206, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 206 |
flexDirection: 'row', |
| Error |
Row 207, Column 1: "Delete `····`"
prettier/prettier
|
| 207 |
justifyContent: 'space-between', |
| Error |
Row 208, Column 3: "Delete `··`"
prettier/prettier
|
| 208 |
}, |
| Error |
Row 209, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 209 |
BUTTON: { |
| Error |
Row 210, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 210 |
width: '49%', |
| Error |
Row 211, Column 3: "Delete `··`"
prettier/prettier
|
| 211 |
}, |
| Warning |
Row 212, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 212, Column 4: "Insert `⏎`"
prettier/prettier
|
| 212 |
}); |
|
|
|
/src/components/molecules/modals/local-order-search-result-filter.js
|
0 problems
|
|
|
/src/components/molecules/modals/map-search-order-filter-modal.js
|
164 problems (154 errors, 10 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet·` with `View,·StyleSheet`"
prettier/prettier
|
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 9, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Error |
Row 11, Column 37: "Replace `·visible,·onClose·` with `visible,·onClose`"
prettier/prettier
|
| Error |
Row 12, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 13, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 14, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 15, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 16, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 17, Column 1: "Replace `········isNoDelivery:` with `····isNoDelivery:·`"
prettier/prettier
|
| Error |
Row 18, Column 1: "Replace `········maxPrice:` with `····maxPrice:·`"
prettier/prettier
|
| Error |
Row 19, Column 1: "Replace `········minPrice:` with `····minPrice:·`"
prettier/prettier
|
| Error |
Row 20, Column 3: "Replace `··})` with `});`"
prettier/prettier
|
| Warning |
Row 20, Column 7: "Missing semicolon."
semi
|
| Error |
Row 21, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 22, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 23, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 24, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 25, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 26, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 27, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 28, Column 7: "Replace `······style={{·margin:·0,·padding:·0·` with `style={{margin:·0,·padding:·0`"
prettier/prettier
|
| Warning |
Row 28, Column 20: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 29, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 30, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 31, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 32, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 33, Column 13: "Replace `············prettier/prettier
|
| Warning |
Row 33, Column 97: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 34, Column 1: "Replace `························labelStyle·=·{{color·:·"#54585D"` with `··············labelStyle={{color:·'#54585D'`"
prettier/prettier
|
| Warning |
Row 34, Column 39: "Inline style: { color: '#54585D' }"
react-native/no-inline-styles
|
| Warning |
Row 34, Column 48: "Strings must use singlequote."
quotes
|
| Error |
Row 35, Column 1: "Replace `························label={'No·delivery·offers'}·onChange={(value)·=>·setPayload({·...payload,·isNoDelivery:·value·})}·/>` with `··············label={'No·delivery·offers'}⏎··············onChange={value·=>·setPayload({...payload,·isNoDelivery:·value})}`"
prettier/prettier
|
| Error |
Row 36, Column 11: "Insert `··/>⏎`"
prettier/prettier
|
| Error |
Row 37, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 38, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 39, Column 15: "Replace `··············` with `prettier/prettier
|
| Error |
Row 40, Column 15: "Replace `··············setPayload({...payload,maxPrice:t})}/>` with `/>⏎···············setPayload({...payload,·maxPrice:·t})}`"
prettier/prettier
|
| Error |
Row 41, Column 15: "Insert `/>⏎··`"
prettier/prettier
|
| Error |
Row 42, Column 1: "Delete `············`"
prettier/prettier
|
| Error |
Row 43, Column 15: "Replace `··············` with `prettier/prettier
|
| Error |
Row 44, Column 15: "Replace `··············setPayload({...payload,minPrice:t})}/>` with `/>⏎···············setPayload({...payload,·minPrice:·t})}`"
prettier/prettier
|
| Error |
Row 45, Column 15: "Insert `/>⏎··`"
prettier/prettier
|
| Error |
Row 46, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 47, Column 1: "Delete `··········`"
prettier/prettier
|
| Error |
Row 48, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 49, Column 11: "Delete `··········`"
prettier/prettier
|
| Error |
Row 50, Column 1: "Replace `························prettier/prettier
|
| Warning |
Row 50, Column 38: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 51, Column 15: "Replace `···············setPayload({·...payload,·isThreeWeeks:·!value,isNinetyDays:!value,·isThirtyDays:value,isTwoWeeks:!value})}·/>` with `⏎··················setPayload({⏎····················...payload,⏎····················isThreeWeeks:·!value,⏎····················isNinetyDays:·!value,⏎····················isThirtyDays:·value,⏎····················isTwoWeeks:·!value,⏎··················})⏎················}`"
prettier/prettier
|
| Error |
Row 52, Column 15: "Replace `···············setPayload({·...payload,·isThreeWeeks:·value,isNinetyDays:!value,·isThirtyDays:!value,isTwoWeeks:!value})}·/>` with `/>⏎··············⏎··················setPayload({⏎····················...payload,⏎····················isThreeWeeks:·value,⏎····················isNinetyDays:·!value,⏎····················isThirtyDays:·!value,⏎····················isTwoWeeks:·!value,⏎··················})⏎················}`"
prettier/prettier
|
| Error |
Row 53, Column 15: "Replace `··········prettier/prettier
|
| Error |
Row 54, Column 13: "Replace `············⏎············prettier/prettier
|
| Warning |
Row 54, Column 38: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 55, Column 15: "Replace `···············setPayload({·...payload,isTwoWeeks:value,·isThreeWeeks:·!value,·isThirtyDays:·!value·})}·/>` with `⏎··················setPayload({⏎····················...payload,⏎····················isTwoWeeks:·value,⏎····················isThreeWeeks:·!value,⏎····················isThirtyDays:·!value,⏎··················})⏎················}`"
prettier/prettier
|
| Error |
Row 56, Column 15: "Replace `···············setPayload({·...payload,·isThreeWeeks:·!value,·isNinetyDays:·value,isThirtyDays:!value,isTwoWeeks:!value·})}·/>⏎························` with `/>⏎··············⏎··················setPayload({⏎····················...payload,⏎····················isThreeWeeks:·!value,⏎····················isNinetyDays:·value,⏎····················isThirtyDays:·!value,⏎····················isTwoWeeks:·!value,⏎··················})⏎················}`"
prettier/prettier
|
| Error |
Row 58, Column 13: "Replace `········` with `··/>⏎············`"
prettier/prettier
|
| Error |
Row 59, Column 11: "Insert `⏎`"
prettier/prettier
|
| Error |
Row 60, Column 13: "Replace `·············{·}}·style={styles.BUTTON}·title={'Apply'}·/>` with `·{}}⏎··············style={styles.BUTTON}⏎··············title={'Apply'}`"
prettier/prettier
|
| Error |
Row 61, Column 13: "Replace `·············onClose()}·style={{...styles.BUTTON,}}·title={'Clear·all'}·/>` with `/>⏎·············onClose()}⏎··············style={{...styles.BUTTON}}⏎··············title={'Clear·all'}`"
prettier/prettier
|
| Warning |
Row 61, Column 104: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 62, Column 12: "Replace `·········` with `·/>⏎··········`"
prettier/prettier
|
| Error |
Row 63, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 64, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 65, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 66, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 70, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 71, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 72, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 73, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 74, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 75, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 76, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 77, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 78, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 79, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 80, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 81, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 82, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 83, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 84, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 85, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 86, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 87, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 88, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 89, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 90, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 91, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 92, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 93, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 94, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 95, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 96, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 97, Column 1: "Delete `⏎··`"
prettier/prettier
|
| Error |
Row 99, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 100, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 101, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 102, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 103, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 104, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 105, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 106, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 107, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 108, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 109, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 110, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 111, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 112, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 113, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 114, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 115, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 116, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 117, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 118, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 119, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 120, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 121, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 122, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 123, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 124, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 125, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 126, Column 5: "Replace `····fontSize:·mvs(15),` with `fontSize:·mvs(15),⏎···`"
prettier/prettier
|
| Error |
Row 127, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 128, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 129, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 130, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 131, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 132, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 133, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 134, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 135, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 136, Column 5: "Replace `····marginBottom:·mvs(10)⏎` with `marginBottom:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 136, Column 30: "Missing trailing comma."
comma-dangle
|
| Error |
Row 138, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 139, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 140, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 141, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 142, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 143, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 144, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 145, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 146, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 147, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 148, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 149, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 150, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 151, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 152, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 153, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 154, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 155, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 156, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 157, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 158, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 159, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 160, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 161, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 162, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 163, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 164, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 165, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 166, Column 3: "Delete `··`"
prettier/prettier
|
| Warning |
Row 167, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 167, Column 4: "Insert `⏎`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet·` with `View,·StyleSheet`"
prettier/prettier
|
| 2 |
import { View, StyleSheet } from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| 4 |
import colors from '../../../config/colors'; |
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 5 |
import { mvs } from '../../../config/metrices'; |
| 6 |
import Medium from '../../../presentation/typography/medium-text'; |
| 7 |
import Regular from '../../../presentation/typography/regular-text'; |
| 8 |
import Buttons from '../../atoms/Button'; |
| Error |
Row 9, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 9 |
import { TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| 10 |
import CustomRadio from '../../atoms/RadioButton'; |
| Error |
Row 11, Column 37: "Replace `·visible,·onClose·` with `visible,·onClose`"
prettier/prettier
|
| 11 |
const MapSearchOrderFilterModal = ({ visible, onClose }) => { |
| Error |
Row 12, Column 3: "Delete `··`"
prettier/prettier
|
| 12 |
const [payload, setPayload] = React.useState({ |
| Error |
Row 13, Column 5: "Delete `····`"
prettier/prettier
|
| 13 |
isThirtyDays: true, |
| Error |
Row 14, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 14 |
isNinetyDays: false, |
| Error |
Row 15, Column 1: "Delete `····`"
prettier/prettier
|
| 15 |
isThreeWeeks: false, |
| Error |
Row 16, Column 5: "Delete `····`"
prettier/prettier
|
| 16 |
isTwoWeeks: false, |
| Error |
Row 17, Column 1: "Replace `········isNoDelivery:` with `····isNoDelivery:·`"
prettier/prettier
|
| 17 |
isNoDelivery:true, |
| Error |
Row 18, Column 1: "Replace `········maxPrice:` with `····maxPrice:·`"
prettier/prettier
|
| 18 |
maxPrice:'100', |
| Error |
Row 19, Column 1: "Replace `········minPrice:` with `····minPrice:·`"
prettier/prettier
|
| 19 |
minPrice:'1000', |
| Error |
Row 20, Column 3: "Replace `··})` with `});`"
prettier/prettier
|
| Warning |
Row 20, Column 7: "Missing semicolon."
semi
|
| 20 |
}) |
| Error |
Row 21, Column 3: "Delete `··`"
prettier/prettier
|
| 21 |
return ( |
| Error |
Row 22, Column 1: "Delete `····`"
prettier/prettier
|
| 22 |
<ReactNativeModal |
| Error |
Row 23, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 23 |
propagateSwipe |
| Error |
Row 24, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 24 |
isVisible={visible} |
| Error |
Row 25, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 25 |
avoidKeyboard |
| Error |
Row 26, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 26 |
onBackdropPress={() => onClose(f => !f)} |
| Error |
Row 27, Column 1: "Delete `······`"
prettier/prettier
|
| 27 |
onBackButtonPress={() => onClose(f => !f)} |
| Error |
Row 28, Column 7: "Replace `······style={{·margin:·0,·padding:·0·` with `style={{margin:·0,·padding:·0`"
prettier/prettier
|
| Warning |
Row 28, Column 20: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| 28 |
style={{ margin: 0, padding: 0 }}> |
| Error |
Row 29, Column 1: "Delete `······`"
prettier/prettier
|
| 29 |
<View style={styles.CONTAINER}> |
| Error |
Row 30, Column 1: "Delete `········`"
prettier/prettier
|
| 30 |
<Medium label={'Filters'} style={styles.HEADING_TXT} /> |
| Error |
Row 31, Column 9: "Delete `········`"
prettier/prettier
|
| 31 |
<View style={styles.SUB_CONTAINER}> |
| Error |
Row 32, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 32 |
<View style={styles.NO_DELIVERY_CONTAINER}> |
| Error |
Row 33, Column 13: "Replace `············prettier/prettier
|
| Warning |
Row 33, Column 97: "Trailing spaces not allowed."
no-trailing-spaces
|
| 33 |
<CustomRadio style={{ marginTop: mvs(8) }} status={payload.isNoDelivery} |
| Error |
Row 34, Column 1: "Replace `························labelStyle·=·{{color·:·"#54585D"` with `··············labelStyle={{color:·'#54585D'`"
prettier/prettier
|
| Warning |
Row 34, Column 39: "Inline style: { color: '#54585D' }"
react-native/no-inline-styles
|
| Warning |
Row 34, Column 48: "Strings must use singlequote."
quotes
|
| 34 |
labelStyle = {{color : "#54585D"}} |
| Error |
Row 35, Column 1: "Replace `························label={'No·delivery·offers'}·onChange={(value)·=>·setPayload({·...payload,·isNoDelivery:·value·})}·/>` with `··············label={'No·delivery·offers'}⏎··············onChange={value·=>·setPayload({...payload,·isNoDelivery:·value})}`"
prettier/prettier
|
| 35 |
label={'No delivery offers'} onChange={(value) => setPayload({ ...payload, isNoDelivery: value })} /> |
| Error |
Row 36, Column 11: "Insert `··/>⏎`"
prettier/prettier
|
| 36 |
</View> |
| Error |
Row 37, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 37 |
<View style={styles.PRICES_CONTAINER}> |
| Error |
Row 38, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 38 |
<View style={styles.MAX_MIN_PRICE}> |
| Error |
Row 39, Column 15: "Replace `··············` with `prettier/prettier
|
| 39 |
<Regular style={styles.PRICE_HEADING} label={'Max Product Price'} /> |
| Error |
Row 40, Column 15: "Replace `··············setPayload({...payload,maxPrice:t})}/>` with `/>⏎···············setPayload({...payload,·maxPrice:·t})}`"
prettier/prettier
|
| 40 |
<TAKE_TO_INPUT_FIELD.PriceInput value={payload.maxPrice} onChangeText={(t)=>setPayload({...payload,maxPrice:t})}/> |
| Error |
Row 41, Column 15: "Insert `/>⏎··`"
prettier/prettier
|
| 41 |
</View> |
| Error |
Row 42, Column 1: "Delete `············`"
prettier/prettier
|
| 42 |
<View style={styles.MAX_MIN_PRICE}> |
| Error |
Row 43, Column 15: "Replace `··············` with `prettier/prettier
|
| 43 |
<Regular style={{...styles.PRICE_HEADING,color:colors.green}} label={'Min Reward'} /> |
| Error |
Row 44, Column 15: "Replace `··············setPayload({...payload,minPrice:t})}/>` with `/>⏎···············setPayload({...payload,·minPrice:·t})}`"
prettier/prettier
|
| 44 |
<TAKE_TO_INPUT_FIELD.PriceInput style={{color:colors.green}} value={payload.minPrice} onChangeText={(t)=>setPayload({...payload,minPrice:t})}/> |
| Error |
Row 45, Column 15: "Insert `/>⏎··`"
prettier/prettier
|
| 45 |
</View> |
| Error |
Row 46, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 46 |
</View> |
| Error |
Row 47, Column 1: "Delete `··········`"
prettier/prettier
|
| 47 |
<View style={styles.DIV} /> |
| Error |
Row 48, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 48 |
<Regular label={'Delivery time'} style={styles.DEL_TIME} /> |
| Error |
Row 49, Column 11: "Delete `··········`"
prettier/prettier
|
| 49 |
<View style={styles.RADIO_CONTAINER}> |
| Error |
Row 50, Column 1: "Replace `························prettier/prettier
|
| Warning |
Row 50, Column 38: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| 50 |
<View style={{ flexDirection: 'row' }}> |
| Error |
Row 51, Column 15: "Replace `···············setPayload({·...payload,·isThreeWeeks:·!value,isNinetyDays:!value,·isThirtyDays:value,isTwoWeeks:!value})}·/>` with `⏎··················setPayload({⏎····················...payload,⏎····················isThreeWeeks:·!value,⏎····················isNinetyDays:·!value,⏎····················isThirtyDays:·value,⏎····················isTwoWeeks:·!value,⏎··················})⏎················}`"
prettier/prettier
|
| 51 |
<CustomRadio status={payload.isThirtyDays} label={'Up to 30 days'} onChange={(value) => setPayload({ ...payload, isThreeWeeks: !value,isNinetyDays:!value, isThirtyDays:value,isTwoWeeks:!value})} /> |
| Error |
Row 52, Column 15: "Replace `···············setPayload({·...payload,·isThreeWeeks:·value,isNinetyDays:!value,·isThirtyDays:!value,isTwoWeeks:!value})}·/>` with `/>⏎··············⏎··················setPayload({⏎····················...payload,⏎····················isThreeWeeks:·value,⏎····················isNinetyDays:·!value,⏎····················isThirtyDays:·!value,⏎····················isTwoWeeks:·!value,⏎··················})⏎················}`"
prettier/prettier
|
| 52 |
<CustomRadio style={{ marginLeft: mvs(45) }} status={payload.isThreeWeeks} label={'Up to 3 weeks'} onChange={(value) => setPayload({ ...payload, isThreeWeeks: value,isNinetyDays:!value, isThirtyDays:!value,isTwoWeeks:!value})} /> |
| Error |
Row 53, Column 15: "Replace `··········prettier/prettier
|
| 53 |
</View> |
| Error |
Row 54, Column 13: "Replace `············⏎············prettier/prettier
|
| Warning |
Row 54, Column 38: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| 54 |
<View style={{ flexDirection: 'row',marginTop:mvs(8) }}> |
| Error |
Row 55, Column 15: "Replace `···············setPayload({·...payload,isTwoWeeks:value,·isThreeWeeks:·!value,·isThirtyDays:·!value·})}·/>` with `⏎··················setPayload({⏎····················...payload,⏎····················isTwoWeeks:·value,⏎····················isThreeWeeks:·!value,⏎····················isThirtyDays:·!value,⏎··················})⏎················}`"
prettier/prettier
|
| 55 |
<CustomRadio status={payload.isTwoWeeks} label={'Up to 2 weeks'} onChange={(value) => setPayload({ ...payload,isTwoWeeks:value, isThreeWeeks: !value, isThirtyDays: !value })} /> |
| Error |
Row 56, Column 15: "Replace `···············setPayload({·...payload,·isThreeWeeks:·!value,·isNinetyDays:·value,isThirtyDays:!value,isTwoWeeks:!value·})}·/>⏎························` with `/>⏎··············⏎··················setPayload({⏎····················...payload,⏎····················isThreeWeeks:·!value,⏎····················isNinetyDays:·value,⏎····················isThirtyDays:·!value,⏎····················isTwoWeeks:·!value,⏎··················})⏎················}`"
prettier/prettier
|
| 56 |
<CustomRadio style={{ marginLeft: mvs(45) }} status={payload.isNinetyDays} label={'Up to 90 days'} onChange={(value) => setPayload({ ...payload, isThreeWeeks: !value, isNinetyDays: value,isThirtyDays:!value,isTwoWeeks:!value })} /> |
| 57 |
</View> |
| Error |
Row 58, Column 13: "Replace `········` with `··/>⏎············`"
prettier/prettier
|
| 58 |
</View> |
| Error |
Row 59, Column 11: "Insert `⏎`"
prettier/prettier
|
| 59 |
<View style={styles.BUTTON_CONTAINER}> |
| Error |
Row 60, Column 13: "Replace `·············{·}}·style={styles.BUTTON}·title={'Apply'}·/>` with `·{}}⏎··············style={styles.BUTTON}⏎··············title={'Apply'}`"
prettier/prettier
|
| 60 |
<Buttons.ButtonPrimary onClick={() => { }} style={styles.BUTTON} title={'Apply'} /> |
| Error |
Row 61, Column 13: "Replace `·············onClose()}·style={{...styles.BUTTON,}}·title={'Clear·all'}·/>` with `/>⏎·············onClose()}⏎··············style={{...styles.BUTTON}}⏎··············title={'Clear·all'}`"
prettier/prettier
|
| Warning |
Row 61, Column 104: "Unexpected trailing comma."
comma-dangle
|
| 61 |
<Buttons.ButtonSecondayLight onClick={() => onClose()} style={{...styles.BUTTON,}} title={'Clear all'} /> |
| Error |
Row 62, Column 12: "Replace `·········` with `·/>⏎··········`"
prettier/prettier
|
| 62 |
</View> |
| Error |
Row 63, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 63 |
</View> |
| Error |
Row 64, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 64 |
</View> |
| Error |
Row 65, Column 1: "Delete `····`"
prettier/prettier
|
| 65 |
</ReactNativeModal> |
| Error |
Row 66, Column 1: "Delete `··`"
prettier/prettier
|
| 66 |
); |
| 67 |
}; |
| 68 |
export default MapSearchOrderFilterModal; |
| 69 |
const styles = StyleSheet.create({ |
| Error |
Row 70, Column 3: "Delete `··`"
prettier/prettier
|
| 70 |
CONTAINER: { |
| Error |
Row 71, Column 1: "Delete `····`"
prettier/prettier
|
| 71 |
position: 'absolute', |
| Error |
Row 72, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 72 |
bottom: 0, |
| Error |
Row 73, Column 1: "Delete `····`"
prettier/prettier
|
| 73 |
width: '100%', |
| Error |
Row 74, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 74 |
borderTopLeftRadius: mvs(20), |
| Error |
Row 75, Column 1: "Delete `····`"
prettier/prettier
|
| 75 |
borderTopRightRadius: mvs(20), |
| Error |
Row 76, Column 5: "Delete `····`"
prettier/prettier
|
| 76 |
backgroundColor: colors.primary, |
| Error |
Row 77, Column 3: "Delete `··`"
prettier/prettier
|
| 77 |
}, |
| Error |
Row 78, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 78 |
HEADING_TXT: { |
| Error |
Row 79, Column 1: "Delete `····`"
prettier/prettier
|
| 79 |
fontSize: mvs(15), |
| Error |
Row 80, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 80 |
color: colors.white, |
| Error |
Row 81, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 81 |
alignSelf: 'center', |
| Error |
Row 82, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 82 |
marginTop: mvs(13), |
| Error |
Row 83, Column 1: "Delete `····`"
prettier/prettier
|
| 83 |
marginBottom: mvs(16), |
| Error |
Row 84, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 84 |
}, |
| Error |
Row 85, Column 1: "Delete `··`"
prettier/prettier
|
| 85 |
SUB_CONTAINER: { |
| Error |
Row 86, Column 1: "Delete `····`"
prettier/prettier
|
| 86 |
backgroundColor: colors.white, |
| Error |
Row 87, Column 5: "Delete `····`"
prettier/prettier
|
| 87 |
paddingTop: mvs(18), |
| Error |
Row 88, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 88 |
paddingBottom: mvs(38), |
| Error |
Row 89, Column 1: "Delete `····`"
prettier/prettier
|
| 89 |
paddingHorizontal: mvs(22), |
| Error |
Row 90, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 90 |
borderTopLeftRadius: mvs(20), |
| Error |
Row 91, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 91 |
borderTopRightRadius: mvs(20), |
| Error |
Row 92, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 92 |
}, |
| Error |
Row 93, Column 1: "Delete `··`"
prettier/prettier
|
| 93 |
DESTINATION_CONTAINER: { |
| Error |
Row 94, Column 1: "Delete `····`"
prettier/prettier
|
| 94 |
alignItems: 'center', |
| Error |
Row 95, Column 5: "Delete `····`"
prettier/prettier
|
| 95 |
flexDirection: 'row', |
| Error |
Row 96, Column 1: "Delete `····`"
prettier/prettier
|
| 96 |
justifyContent: 'space-between', |
| Error |
Row 97, Column 1: "Delete `⏎··`"
prettier/prettier
|
| 97 |
|
| 98 |
}, |
| Error |
Row 99, Column 1: "Delete `··`"
prettier/prettier
|
| 99 |
FLAG_BUTTON: { |
| Error |
Row 100, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 100 |
width: mvs(161), |
| Error |
Row 101, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 101 |
height: mvs(38), |
| Error |
Row 102, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 102 |
flexDirection: 'row-reverse', |
| Error |
Row 103, Column 1: "Delete `····`"
prettier/prettier
|
| 103 |
backgroundColor: colors.secondary, |
| Error |
Row 104, Column 3: "Delete `··`"
prettier/prettier
|
| 104 |
}, |
| Error |
Row 105, Column 1: "Delete `··`"
prettier/prettier
|
| 105 |
SEARCH_MAP: { |
| Error |
Row 106, Column 1: "Delete `····`"
prettier/prettier
|
| 106 |
marginTop: mvs(15), |
| Error |
Row 107, Column 5: "Delete `····`"
prettier/prettier
|
| 107 |
alignSelf: 'flex-end', |
| Error |
Row 108, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 108 |
width: mvs(161), |
| Error |
Row 109, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 109 |
height: mvs(38), |
| Error |
Row 110, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 110 |
flexDirection: 'row', |
| Error |
Row 111, Column 1: "Delete `····`"
prettier/prettier
|
| 111 |
backgroundColor: colors.primary, |
| Error |
Row 112, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 112 |
paddingHorizontal: mvs(23), |
| Error |
Row 113, Column 3: "Delete `··`"
prettier/prettier
|
| 113 |
}, |
| Error |
Row 114, Column 1: "Delete `··`"
prettier/prettier
|
| 114 |
MAP_ICON: { |
| Error |
Row 115, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 115 |
height: mvs(18), |
| Error |
Row 116, Column 1: "Delete `····`"
prettier/prettier
|
| 116 |
width: mvs(14), |
| Error |
Row 117, Column 3: "Delete `··`"
prettier/prettier
|
| 117 |
}, |
| Error |
Row 118, Column 1: "Delete `··`"
prettier/prettier
|
| 118 |
NO_DELIVERY_CONTAINER: { |
| Error |
Row 119, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 119 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| Error |
Row 120, Column 5: "Delete `····`"
prettier/prettier
|
| 120 |
flexDirection: 'row', |
| Error |
Row 121, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 121 |
alignItems: 'center', |
| Error |
Row 122, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 122 |
paddingBottom: mvs(14), |
| Error |
Row 123, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 123 |
borderColor: colors.filter_divider, |
| Error |
Row 124, Column 3: "Delete `··`"
prettier/prettier
|
| 124 |
}, |
| Error |
Row 125, Column 1: "Delete `··`"
prettier/prettier
|
| 125 |
NoDelivery: { |
| Error |
Row 126, Column 5: "Replace `····fontSize:·mvs(15),` with `fontSize:·mvs(15),⏎···`"
prettier/prettier
|
| 126 |
fontSize: mvs(15), color: colors.headerTitle, |
| Error |
Row 127, Column 3: "Delete `··`"
prettier/prettier
|
| 127 |
}, |
| Error |
Row 128, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 128 |
PRICES_CONTAINER: { |
| Error |
Row 129, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 129 |
marginTop: mvs(13), |
| Error |
Row 130, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 130 |
flexDirection: 'row', |
| Error |
Row 131, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 131 |
justifyContent: 'space-between', |
| Error |
Row 132, Column 3: "Delete `··`"
prettier/prettier
|
| 132 |
}, |
| Error |
Row 133, Column 1: "Delete `··`"
prettier/prettier
|
| 133 |
PRICE_HEADING: { |
| Error |
Row 134, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 134 |
fontSize: mvs(15), |
| Error |
Row 135, Column 1: "Delete `····`"
prettier/prettier
|
| 135 |
color: colors.primary, |
| Error |
Row 136, Column 5: "Replace `····marginBottom:·mvs(10)⏎` with `marginBottom:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 136, Column 30: "Missing trailing comma."
comma-dangle
|
| 136 |
marginBottom: mvs(10) |
| 137 |
|
| Error |
Row 138, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 138 |
}, |
| Error |
Row 139, Column 1: "Delete `··`"
prettier/prettier
|
| 139 |
MAX_MIN_PRICE: { |
| Error |
Row 140, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 140 |
width: mvs(161), |
| Error |
Row 141, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 141 |
}, |
| Error |
Row 142, Column 1: "Delete `··`"
prettier/prettier
|
| 142 |
DIV: { |
| Error |
Row 143, Column 1: "Delete `····`"
prettier/prettier
|
| 143 |
marginTop: mvs(15), |
| Error |
Row 144, Column 5: "Delete `····`"
prettier/prettier
|
| 144 |
marginBottom: mvs(13), |
| Error |
Row 145, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 145 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| Error |
Row 146, Column 5: "Delete `····`"
prettier/prettier
|
| 146 |
borderColor: colors.filter_divider, |
| Error |
Row 147, Column 1: "Delete `··`"
prettier/prettier
|
| 147 |
}, |
| Error |
Row 148, Column 3: "Delete `··`"
prettier/prettier
|
| 148 |
DEL_TIME: { |
| Error |
Row 149, Column 1: "Delete `····`"
prettier/prettier
|
| 149 |
color: colors.primary, |
| Error |
Row 150, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 150 |
fontSize: mvs(15), |
| Error |
Row 151, Column 1: "Delete `····`"
prettier/prettier
|
| 151 |
marginBottom: mvs(8), |
| Error |
Row 152, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 152 |
}, |
| Error |
Row 153, Column 1: "Delete `··`"
prettier/prettier
|
| 153 |
RADIO_CONTAINER: { |
| Error |
Row 154, Column 1: "Delete `····`"
prettier/prettier
|
| 154 |
marginBottom: mvs(30), |
| Error |
Row 155, Column 3: "Delete `··`"
prettier/prettier
|
| 155 |
}, |
| Error |
Row 156, Column 1: "Delete `··`"
prettier/prettier
|
| 156 |
RADIO_LABEL: { |
| Error |
Row 157, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 157 |
color: colors.headerTitle, |
| Error |
Row 158, Column 5: "Delete `····`"
prettier/prettier
|
| 158 |
fontSize: mvs(15), |
| Error |
Row 159, Column 1: "Delete `··`"
prettier/prettier
|
| 159 |
}, |
| Error |
Row 160, Column 3: "Delete `··`"
prettier/prettier
|
| 160 |
BUTTON_CONTAINER: { |
| Error |
Row 161, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 161 |
flexDirection: 'row', |
| Error |
Row 162, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 162 |
justifyContent: 'space-between', |
| Error |
Row 163, Column 3: "Delete `··`"
prettier/prettier
|
| 163 |
}, |
| Error |
Row 164, Column 1: "Delete `··`"
prettier/prettier
|
| 164 |
BUTTON: { |
| Error |
Row 165, Column 5: "Delete `····`"
prettier/prettier
|
| 165 |
width: mvs(161), |
| Error |
Row 166, Column 3: "Delete `··`"
prettier/prettier
|
| 166 |
}, |
| Warning |
Row 167, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 167, Column 4: "Insert `⏎`"
prettier/prettier
|
| 167 |
}); |
|
|
|
/src/components/molecules/modals/map-search-order-radius.js
|
122 problems (102 errors, 20 warnings)
|
| Severity |
Rule |
| Error |
Row 3, Column 9: "Replace `·View,·StyleSheet,·FlatList,·ActivityIndicator,·ScrollView·` with `⏎··View,⏎··StyleSheet,⏎··FlatList,⏎··ActivityIndicator,⏎··ScrollView,⏎`"
prettier/prettier
|
| Warning |
Row 3, Column 28: "'FlatList' is defined but never used."
no-unused-vars
|
| Warning |
Row 4, Column 8: "'ReactNativeModal' is defined but never used."
no-unused-vars
|
| Error |
Row 5, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 5, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Error |
Row 7, Column 9: "Replace `·ModalMapIcon,·ModalThreeDot·` with `⏎··ModalMapIcon,⏎··ModalThreeDot,⏎`"
prettier/prettier
|
| Warning |
Row 7, Column 24: "'ModalThreeDot' is defined but never used."
no-unused-vars
|
| Error |
Row 9, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| Warning |
Row 9, Column 15: "'width' is defined but never used."
no-unused-vars
|
| Error |
Row 13, Column 9: "Replace `·MapSearchMakeOfferCard·` with `MapSearchMakeOfferCard`"
prettier/prettier
|
| Error |
Row 14, Column 37: "Replace `·orders,·visible,·loading,·setVisible,·onClose,·onSlider,·value,·isLocalOrder,·...props·` with `⏎··orders,⏎··visible,⏎··loading,⏎··setVisible,⏎··onClose,⏎··onSlider,⏎··value,⏎··isLocalOrder,⏎··...props⏎`"
prettier/prettier
|
| Error |
Row 15, Column 1: "Delete `⏎··`"
prettier/prettier
|
| Error |
Row 17, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 18, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 19, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 20, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 21, Column 9: "Replace `········` with `prettier/prettier
|
| Warning |
Row 21, Column 38: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| Error |
Row 22, Column 9: "Replace `········1?'Deliveries':'Delivery'}·found·near·you`}·style={styles.TXT}·/>` with `/>⏎·········1·?·'Deliveries'·:·'Delivery'}·found·near·you`}⏎··········style={styles.TXT}`"
prettier/prettier
|
| Warning |
Row 22, Column 45: "Operator '>' must be spaced."
space-infix-ops
|
| Warning |
Row 22, Column 47: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 23, Column 7: "Insert `··/>⏎`"
prettier/prettier
|
| Error |
Row 24, Column 1: "Replace `············prettier/prettier
|
| Warning |
Row 24, Column 53: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 25, Column 1: "Replace `················{loading·?` with `········{loading·?·(`"
prettier/prettier
|
| Error |
Row 26, Column 1: "Replace `·····················:` with `··········`"
prettier/prettier
|
| Warning |
Row 27, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 27, Column 9: "Replace `············` with `)·:·(`"
prettier/prettier
|
| Error |
Row 28, Column 1: "Replace `························prettier/prettier
|
| Warning |
Row 29, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 31, Column 1: "Replace `····························{orders?.map((item,·index)·=>⏎····································` with `············{orders?.map((item,·index)·=>·(⏎··············`"
prettier/prettier
|
| Error |
Row 33, Column 13: "Replace `················` with `)`"
prettier/prettier
|
| Error |
Row 34, Column 1: "Replace `························` with `··········`"
prettier/prettier
|
| Warning |
Row 35, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 35, Column 9: "Replace `··········⏎················` with `)`"
prettier/prettier
|
| Error |
Row 37, Column 1: "Replace `················prettier/prettier
|
| Warning |
Row 37, Column 84: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 38, Column 11: "Replace `··········` with `prettier/prettier
|
| Warning |
Row 38, Column 72: "Inline style: { alignSelf: 'flex-end' }"
react-native/no-inline-styles
|
| Error |
Row 39, Column 11: "Insert `/>⏎`"
prettier/prettier
|
| Error |
Row 40, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 41, Column 13: "Delete `············`"
prettier/prettier
|
| Error |
Row 42, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 43, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 44, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 45, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 46, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 47, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 48, Column 1: "Replace `····························onSlidingComplete={(v)·=>·{·onSlider(v)·}}` with `··············onSlidingComplete={v·=>·{⏎················onSlider(v);`"
prettier/prettier
|
| Warning |
Row 48, Column 68: "Missing semicolon."
semi
|
| Error |
Row 49, Column 14: "Replace `···········` with `·}}⏎··············`"
prettier/prettier
|
| Error |
Row 50, Column 13: "Delete `············`"
prettier/prettier
|
| Error |
Row 51, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 52, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 53, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 54, Column 11: "Replace `··········` with `prettier/prettier
|
| Error |
Row 55, Column 11: "Insert `/>⏎`"
prettier/prettier
|
| Error |
Row 56, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 57, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 58, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 59, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 62, Column 41: "Insert `;`"
prettier/prettier
|
| Warning |
Row 62, Column 41: "Missing semicolon."
semi
|
| Error |
Row 64, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 65, Column 1: "Replace `········position:` with `····position:·`"
prettier/prettier
|
| Error |
Row 66, Column 1: "Replace `········bottom:` with `····bottom:·`"
prettier/prettier
|
| Error |
Row 67, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 68, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 69, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 70, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 71, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 72, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 73, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 74, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 75, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 76, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 77, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 78, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 79, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 80, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 81, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 82, Column 1: "Replace `⏎········` with `····`"
prettier/prettier
|
| Error |
Row 84, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 85, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 86, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 87, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Warning |
Row 88, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 88, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 89, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 90, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 91, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 92, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 93, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 94, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 95, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 96, Column 1: "Replace `····BUTTON_TXT:·{⏎····` with `··BUTTON_TXT:·{`"
prettier/prettier
|
| Error |
Row 98, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 99, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 100, Column 5: "Replace `····marginHorizontal:` with `marginHorizontal:·`"
prettier/prettier
|
| Error |
Row 101, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 102, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 103, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 104, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 105, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 106, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 107, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 108, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 109, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 110, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 111, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 112, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 113, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 114, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 115, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 116, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 117, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 118, Column 1: "Replace `········flexDirection:·'row',·width:·'100%',·justifyContent:·'space-between'` with `····flexDirection:·'row',⏎····width:·'100%',⏎····justifyContent:·'space-between',`"
prettier/prettier
|
| Warning |
Row 118, Column 77: "Missing trailing comma."
comma-dangle
|
| Error |
Row 119, Column 3: "Replace `··}⏎⏎` with `},`"
prettier/prettier
|
| Warning |
Row 119, Column 6: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 122, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 122, Column 4: "Insert `⏎`"
prettier/prettier
|
| Line |
Source |
| 1 |
import Slider from '@react-native-community/slider'; |
| 2 |
import React from 'react'; |
| Error |
Row 3, Column 9: "Replace `·View,·StyleSheet,·FlatList,·ActivityIndicator,·ScrollView·` with `⏎··View,⏎··StyleSheet,⏎··FlatList,⏎··ActivityIndicator,⏎··ScrollView,⏎`"
prettier/prettier
|
| Warning |
Row 3, Column 28: "'FlatList' is defined but never used."
no-unused-vars
|
| 3 |
import { View, StyleSheet, FlatList, ActivityIndicator, ScrollView } from 'react-native'; |
| Warning |
Row 4, Column 8: "'ReactNativeModal' is defined but never used."
no-unused-vars
|
| 4 |
import ReactNativeModal from 'react-native-modal'; |
| Error |
Row 5, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 5, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 5 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce'; |
| 6 |
|
| Error |
Row 7, Column 9: "Replace `·ModalMapIcon,·ModalThreeDot·` with `⏎··ModalMapIcon,⏎··ModalThreeDot,⏎`"
prettier/prettier
|
| Warning |
Row 7, Column 24: "'ModalThreeDot' is defined but never used."
no-unused-vars
|
| 7 |
import { ModalMapIcon, ModalThreeDot } from '../../../../resource/assets/search-on-map'; |
| 8 |
import colors from '../../../config/colors'; |
| Error |
Row 9, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| Warning |
Row 9, Column 15: "'width' is defined but never used."
no-unused-vars
|
| 9 |
import { mvs, width } from '../../../config/metrices'; |
| 10 |
import Medium from '../../../presentation/typography/medium-text'; |
| 11 |
import Regular from '../../../presentation/typography/regular-text'; |
| 12 |
import Buttons from '../../atoms/Button'; |
| Error |
Row 13, Column 9: "Replace `·MapSearchMakeOfferCard·` with `MapSearchMakeOfferCard`"
prettier/prettier
|
| 13 |
import { MapSearchMakeOfferCard } from '../order_card/map-search/map-search-make-offer-card'; |
| Error |
Row 14, Column 37: "Replace `·orders,·visible,·loading,·setVisible,·onClose,·onSlider,·value,·isLocalOrder,·...props·` with `⏎··orders,⏎··visible,⏎··loading,⏎··setVisible,⏎··onClose,⏎··onSlider,⏎··value,⏎··isLocalOrder,⏎··...props⏎`"
prettier/prettier
|
| 14 |
const MapSearchOrderRadiusModal = ({ orders, visible, loading, setVisible, onClose, onSlider, value, isLocalOrder, ...props }) => { |
| Error |
Row 15, Column 1: "Delete `⏎··`"
prettier/prettier
|
| 15 |
|
| 16 |
let len = orders?.length || 0; |
| Error |
Row 17, Column 1: "Delete `··`"
prettier/prettier
|
| 17 |
let msg = len > 5 ? '5+' : len; |
| Error |
Row 18, Column 3: "Delete `··`"
prettier/prettier
|
| 18 |
return ( |
| Error |
Row 19, Column 1: "Delete `····`"
prettier/prettier
|
| 19 |
<View style={styles.CONTAINER}> |
| Error |
Row 20, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 20 |
<View style={styles.TOP_CONTAINER}> |
| Error |
Row 21, Column 9: "Replace `········` with `prettier/prettier
|
| Warning |
Row 21, Column 38: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| 21 |
<ModalMapIcon style={{ position: 'absolute', left: mvs(30), top: mvs(15) }} height={mvs(14.88)} width={mvs(11.69)} /> |
| Error |
Row 22, Column 9: "Replace `········1?'Deliveries':'Delivery'}·found·near·you`}·style={styles.TXT}·/>` with `/>⏎·········1·?·'Deliveries'·:·'Delivery'}·found·near·you`}⏎··········style={styles.TXT}`"
prettier/prettier
|
| Warning |
Row 22, Column 45: "Operator '>' must be spaced."
space-infix-ops
|
| Warning |
Row 22, Column 47: "Operator '?' must be spaced."
space-infix-ops
|
| 22 |
<Medium label={`${msg} ${len>1?'Deliveries':'Delivery'} found near you`} style={styles.TXT} /> |
| Error |
Row 23, Column 7: "Insert `··/>⏎`"
prettier/prettier
|
| 23 |
</View> |
| Error |
Row 24, Column 1: "Replace `············prettier/prettier
|
| Warning |
Row 24, Column 53: "Unexpected trailing comma."
comma-dangle
|
| 24 |
<View style={{...styles.BOTTOM_CONTAINER,}}> |
| Error |
Row 25, Column 1: "Replace `················{loading·?` with `········{loading·?·(`"
prettier/prettier
|
| 25 |
{loading ? |
| Error |
Row 26, Column 1: "Replace `·····················:` with `··········`"
prettier/prettier
|
| 26 |
<ActivityIndicator size={'small'} color={colors.typeHeader} /> : |
| Warning |
Row 27, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 27, Column 9: "Replace `············` with `)·:·(`"
prettier/prettier
|
| 27 |
|
| Error |
Row 28, Column 1: "Replace `························prettier/prettier
|
| 28 |
<ScrollView horizontal contentContainerStyle={{ |
| Warning |
Row 29, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| 29 |
|
| 30 |
}}> |
| Error |
Row 31, Column 1: "Replace `····························{orders?.map((item,·index)·=>⏎····································` with `············{orders?.map((item,·index)·=>·(⏎··············`"
prettier/prettier
|
| 31 |
{orders?.map((item, index) => |
| 32 |
<MapSearchMakeOfferCard item={item} {...props} /> |
| Error |
Row 33, Column 13: "Replace `················` with `)`"
prettier/prettier
|
| 33 |
)} |
| Error |
Row 34, Column 1: "Replace `························` with `··········`"
prettier/prettier
|
| 34 |
</ScrollView> |
| Warning |
Row 35, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 35, Column 9: "Replace `··········⏎················` with `)`"
prettier/prettier
|
| 35 |
|
| 36 |
} |
| Error |
Row 37, Column 1: "Replace `················prettier/prettier
|
| Warning |
Row 37, Column 84: "Unexpected trailing comma."
comma-dangle
|
| 37 |
<View style={{ ...styles.SLIDER_CONTAINER, marginHorizontal:mvs(20),}}> |
| Error |
Row 38, Column 11: "Replace `··········` with `prettier/prettier
|
| Warning |
Row 38, Column 72: "Inline style: { alignSelf: 'flex-end' }"
react-native/no-inline-styles
|
| 38 |
<Regular label={`${(value).toFixed(2)} km`} style={{ ...styles.DISTANCE_TXT, alignSelf: 'flex-end', marginRight: mvs(15) }} /> |
| Error |
Row 39, Column 11: "Insert `/>⏎`"
prettier/prettier
|
| 39 |
<View style={styles.RADIUS_CONTROLLER}> |
| Error |
Row 40, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 40 |
<Regular label={'Delivery Radius'} style={styles.DISTANCE_TXT} /> |
| Error |
Row 41, Column 13: "Delete `············`"
prettier/prettier
|
| 41 |
<Slider |
| Error |
Row 42, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 42 |
value={value} |
| Error |
Row 43, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 43 |
style={styles.SLIDER} |
| Error |
Row 44, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 44 |
minimumValue={0} |
| Error |
Row 45, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 45 |
maximumValue={150} |
| Error |
Row 46, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 46 |
minimumTrackTintColor={colors.pink} |
| Error |
Row 47, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 47 |
thumbTintColor={colors.primary} |
| Error |
Row 48, Column 1: "Replace `····························onSlidingComplete={(v)·=>·{·onSlider(v)·}}` with `··············onSlidingComplete={v·=>·{⏎················onSlider(v);`"
prettier/prettier
|
| Warning |
Row 48, Column 68: "Missing semicolon."
semi
|
| 48 |
onSlidingComplete={(v) => { onSlider(v) }} |
| Error |
Row 49, Column 14: "Replace `···········` with `·}}⏎··············`"
prettier/prettier
|
| 49 |
// onValueChange = {(v)=>{onSlider(v)}} |
| Error |
Row 50, Column 13: "Delete `············`"
prettier/prettier
|
| 50 |
/> |
| Error |
Row 51, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 51 |
</View> |
| Error |
Row 52, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 52 |
</View> |
| Error |
Row 53, Column 1: "Delete `········`"
prettier/prettier
|
| 53 |
<View style={styles.BUTTON_CONTAINER}> |
| Error |
Row 54, Column 11: "Replace `··········` with `prettier/prettier
|
| 54 |
<Buttons.ButtonPrimary onClick={onClose} style={styles.BUTTON_TXT} title={'Show all Orders'} /> |
| Error |
Row 55, Column 11: "Insert `/>⏎`"
prettier/prettier
|
| 55 |
{/* <Buttons.ButtonSeconday onClick={onClose} style={styles.BUTTON_TXT} title={'Cancel'} /> */} |
| Error |
Row 56, Column 1: "Delete `········`"
prettier/prettier
|
| 56 |
</View> |
| Error |
Row 57, Column 7: "Delete `······`"
prettier/prettier
|
| 57 |
</View> |
| Error |
Row 58, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 58 |
</View> |
| Error |
Row 59, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 59 |
); |
| 60 |
}; |
| 61 |
|
| Error |
Row 62, Column 41: "Insert `;`"
prettier/prettier
|
| Warning |
Row 62, Column 41: "Missing semicolon."
semi
|
| 62 |
export default MapSearchOrderRadiusModal |
| 63 |
const styles = StyleSheet.create({ |
| Error |
Row 64, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 64 |
CONTAINER: { |
| Error |
Row 65, Column 1: "Replace `········position:` with `····position:·`"
prettier/prettier
|
| 65 |
position:'absolute', |
| Error |
Row 66, Column 1: "Replace `········bottom:` with `····bottom:·`"
prettier/prettier
|
| 66 |
bottom:0, |
| Error |
Row 67, Column 1: "Delete `····`"
prettier/prettier
|
| 67 |
width: '100%', |
| Error |
Row 68, Column 5: "Delete `····`"
prettier/prettier
|
| 68 |
borderTopLeftRadius: mvs(20), |
| Error |
Row 69, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 69 |
borderTopRightRadius: mvs(20), |
| Error |
Row 70, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 70 |
backgroundColor: colors.primary, |
| Error |
Row 71, Column 1: "Delete `··`"
prettier/prettier
|
| 71 |
}, |
| Error |
Row 72, Column 3: "Delete `··`"
prettier/prettier
|
| 72 |
TXT: { |
| Error |
Row 73, Column 1: "Delete `····`"
prettier/prettier
|
| 73 |
fontSize: mvs(15), |
| Error |
Row 74, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 74 |
color: colors.white, |
| Error |
Row 75, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 75 |
alignSelf: 'center', |
| Error |
Row 76, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 76 |
marginTop: mvs(13), |
| Error |
Row 77, Column 1: "Delete `····`"
prettier/prettier
|
| 77 |
marginBottom: mvs(16), |
| Error |
Row 78, Column 3: "Delete `··`"
prettier/prettier
|
| 78 |
}, |
| Error |
Row 79, Column 1: "Delete `··`"
prettier/prettier
|
| 79 |
TOP_CONTAINER: { |
| Error |
Row 80, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 80 |
// flexDirection: 'row', |
| Error |
Row 81, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 81 |
// alignItems: 'center', |
| Error |
Row 82, Column 1: "Replace `⏎········` with `····`"
prettier/prettier
|
| 82 |
|
| 83 |
// alignSelf: 'center' |
| Error |
Row 84, Column 1: "Delete `····`"
prettier/prettier
|
| 84 |
// justifyContent:'' |
| Error |
Row 85, Column 3: "Delete `··`"
prettier/prettier
|
| 85 |
}, |
| Error |
Row 86, Column 1: "Delete `··`"
prettier/prettier
|
| 86 |
BOTTOM_CONTAINER: { |
| Error |
Row 87, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 87 |
// flexGrow: 1, |
| Warning |
Row 88, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 88, Column 1: "Delete `······`"
prettier/prettier
|
| 88 |
|
| Error |
Row 89, Column 5: "Delete `····`"
prettier/prettier
|
| 89 |
backgroundColor: colors.white, |
| Error |
Row 90, Column 1: "Delete `····`"
prettier/prettier
|
| 90 |
// paddingHorizontal: mvs(22), |
| Error |
Row 91, Column 5: "Delete `····`"
prettier/prettier
|
| 91 |
paddingTop: mvs(17), |
| Error |
Row 92, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 92 |
paddingBottom: mvs(20), |
| Error |
Row 93, Column 1: "Delete `····`"
prettier/prettier
|
| 93 |
borderTopLeftRadius: mvs(20), |
| Error |
Row 94, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 94 |
borderTopRightRadius: mvs(20), |
| Error |
Row 95, Column 3: "Delete `··`"
prettier/prettier
|
| 95 |
}, |
| Error |
Row 96, Column 1: "Replace `····BUTTON_TXT:·{⏎····` with `··BUTTON_TXT:·{`"
prettier/prettier
|
| 96 |
BUTTON_TXT: { |
| 97 |
}, |
| Error |
Row 98, Column 1: "Delete `··`"
prettier/prettier
|
| 98 |
BUTTON_CONTAINER: { |
| Error |
Row 99, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 99 |
marginTop: mvs(30), |
| Error |
Row 100, Column 5: "Replace `····marginHorizontal:` with `marginHorizontal:·`"
prettier/prettier
|
| 100 |
marginHorizontal:mvs(20), |
| Error |
Row 101, Column 5: "Delete `····`"
prettier/prettier
|
| 101 |
flexDirection: 'row', |
| Error |
Row 102, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 102 |
justifyContent: 'space-between', |
| Error |
Row 103, Column 3: "Delete `··`"
prettier/prettier
|
| 103 |
}, |
| Error |
Row 104, Column 1: "Delete `··`"
prettier/prettier
|
| 104 |
SLIDER_CONTAINER: { |
| Error |
Row 105, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 105 |
marginTop: mvs(5), |
| Error |
Row 106, Column 1: "Delete `····`"
prettier/prettier
|
| 106 |
justifyContent: 'space-between', |
| Error |
Row 107, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 107 |
alignItems: 'center', |
| Error |
Row 108, Column 1: "Delete `··`"
prettier/prettier
|
| 108 |
}, |
| Error |
Row 109, Column 3: "Delete `··`"
prettier/prettier
|
| 109 |
DISTANCE_TXT: { |
| Error |
Row 110, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 110 |
fontSize: mvs(15), |
| Error |
Row 111, Column 1: "Delete `····`"
prettier/prettier
|
| 111 |
color: colors.headerTitle, |
| Error |
Row 112, Column 3: "Delete `··`"
prettier/prettier
|
| 112 |
}, |
| Error |
Row 113, Column 1: "Delete `··`"
prettier/prettier
|
| 113 |
SLIDER: { |
| Error |
Row 114, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 114 |
width: mvs(202), |
| Error |
Row 115, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 115 |
height: mvs(18), |
| Error |
Row 116, Column 1: "Delete `··`"
prettier/prettier
|
| 116 |
}, |
| Error |
Row 117, Column 3: "Delete `··`"
prettier/prettier
|
| 117 |
RADIUS_CONTROLLER: { |
| Error |
Row 118, Column 1: "Replace `········flexDirection:·'row',·width:·'100%',·justifyContent:·'space-between'` with `····flexDirection:·'row',⏎····width:·'100%',⏎····justifyContent:·'space-between',`"
prettier/prettier
|
| Warning |
Row 118, Column 77: "Missing trailing comma."
comma-dangle
|
| 118 |
flexDirection: 'row', width: '100%', justifyContent: 'space-between' |
| Error |
Row 119, Column 3: "Replace `··}⏎⏎` with `},`"
prettier/prettier
|
| Warning |
Row 119, Column 6: "Missing trailing comma."
comma-dangle
|
| 119 |
} |
| 120 |
|
| 121 |
|
| Warning |
Row 122, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 122, Column 4: "Insert `⏎`"
prettier/prettier
|
| 122 |
}); |
|
|
|
/src/components/molecules/modals/our-partner-modal.js
|
0 problems
|
|
|
/src/components/molecules/modals/pin-store-location.js
|
29 problems (12 errors, 17 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `View,·StyleSheet,·ImageBackground,·TouchableOpacity` with `⏎··View,⏎··StyleSheet,⏎··ImageBackground,⏎··TouchableOpacity,⏎`"
prettier/prettier
|
| Warning |
Row 2, Column 27: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Warning |
Row 3, Column 8: "'ReactNativeModal' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 10, Column 8: "'Buttons' is defined but never used."
no-unused-vars
|
| Warning |
Row 11, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 13, Column 21: "["google_maps"] is better written in dot notation."
dot-notation
|
| Error |
Row 13, Column 35: "Insert `;`"
prettier/prettier
|
| Warning |
Row 13, Column 35: "Missing semicolon."
semi
|
| Warning |
Row 14, Column 10: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 14, Column 19: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 32, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Warning |
Row 34, Column 22: "Inline style: { alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 39, Column 26: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 40, Column 20: "Replace `·=·` with `=`"
prettier/prettier
|
| Warning |
Row 41, Column 20: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 45, Column 27: "Replace `·:·mvs(13)` with `:·mvs(13),`"
prettier/prettier
|
| Warning |
Row 45, Column 37: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 58, Column 26: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Warning |
Row 59, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 59, Column 20: "Replace `·⏎··············style·=·` with `⏎················style=`"
prettier/prettier
|
| Warning |
Row 60, Column 24: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| Error |
Row 61, Column 17: "Replace `position·` with `··position`"
prettier/prettier
|
| Error |
Row 62, Column 1: "Replace `················right·` with `··················right`"
prettier/prettier
|
| Error |
Row 63, Column 17: "Replace `top·:·mvs(5)` with `··top:·mvs(5),`"
prettier/prettier
|
| Warning |
Row 63, Column 29: "Missing trailing comma."
comma-dangle
|
| Error |
Row 64, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 65, Column 15: "Replace `height·=·{mvs(40)}·width·=·{mvs(40)}` with `··height={mvs(40)}⏎················width={mvs(40)}⏎··············`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `View,·StyleSheet,·ImageBackground,·TouchableOpacity` with `⏎··View,⏎··StyleSheet,⏎··ImageBackground,⏎··TouchableOpacity,⏎`"
prettier/prettier
|
| Warning |
Row 2, Column 27: "'ImageBackground' is defined but never used."
no-unused-vars
|
| 2 |
import {View, StyleSheet, ImageBackground, TouchableOpacity} from 'react-native'; |
| Warning |
Row 3, Column 8: "'ReactNativeModal' is defined but never used."
no-unused-vars
|
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 4 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce'; |
| 5 |
import colors from '../../../config/colors'; |
| 6 |
import {mvs} from '../../../config/metrices'; |
| 7 |
import Medium from '../../../presentation/typography/medium-text'; |
| 8 |
import Regular from '../../../presentation/typography/regular-text'; |
| 9 |
import * as SVGS from '../../../../resource/assets/social-icons/index'; |
| Warning |
Row 10, Column 8: "'Buttons' is defined but never used."
no-unused-vars
|
| 10 |
import Buttons from '../../atoms/Button'; |
| Warning |
Row 11, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| 11 |
const list = [true, false, false, true]; |
| 12 |
const PinStoreLocationModal = ({visible, onClose, onPress, address, title}) => { |
| Warning |
Row 13, Column 21: "["google_maps"] is better written in dot notation."
dot-notation
|
| Error |
Row 13, Column 35: "Insert `;`"
prettier/prettier
|
| Warning |
Row 13, Column 35: "Missing semicolon."
semi
|
| 13 |
const Maps = SVGS['google_maps'] |
| Warning |
Row 14, Column 10: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 14, Column 19: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| 14 |
const [payload, setPayload] = React.useState({ |
| 15 |
isThirtyDays: true, |
| 16 |
isNinetyDays: false, |
| 17 |
isThreeWeeks: false, |
| 18 |
isTwoWeeks: false, |
| 19 |
isUrgent: true, |
| 20 |
isNoDelivery: true, |
| 21 |
maxPrice: '100', |
| 22 |
minPrice: '1000', |
| 23 |
}); |
| 24 |
|
| 25 |
return ( |
| 26 |
<View |
| 27 |
propagateSwipe |
| 28 |
isVisible={visible} |
| 29 |
avoidKeyboard |
| 30 |
onBackdropPress={() => onClose(f => !f)} |
| 31 |
onBackButtonPress={() => onClose(f => !f)} |
| Warning |
Row 32, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| 32 |
style={{margin: 0, padding: 0}}> |
| 33 |
<View style={styles.CONTAINER}> |
| Warning |
Row 34, Column 22: "Inline style: { alignItems: 'center' }"
react-native/no-inline-styles
|
| 34 |
<View style={{alignItems: 'center', paddingHorizontal: mvs(22)}}> |
| 35 |
<Medium label={'Store Location'} style={styles.HEADING_TXT} /> |
| 36 |
</View> |
| 37 |
<View style={styles.SUB_CONTAINER}> |
| 38 |
<TouchableOpacity |
| Error |
Row 39, Column 26: "Replace `·=·` with `=`"
prettier/prettier
|
| 39 |
activeOpacity = {1} |
| Error |
Row 40, Column 20: "Replace `·=·` with `=`"
prettier/prettier
|
| 40 |
onPress = {onPress} |
| Warning |
Row 41, Column 20: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| 41 |
style={{ |
| 42 |
padding: mvs(10), |
| 43 |
backgroundColor: colors.secondary, |
| 44 |
flexDirection: 'row', |
| Error |
Row 45, Column 27: "Replace `·:·mvs(13)` with `:·mvs(13),`"
prettier/prettier
|
| Warning |
Row 45, Column 37: "Missing trailing comma."
comma-dangle
|
| 45 |
borderRadius : mvs(13) |
| 46 |
}}> |
| 47 |
{/* <ImageBackground |
| 48 |
source = {TAKE_TO_IMAGES.placeholder} |
| 49 |
style={{ |
| 50 |
height: mvs(127), |
| 51 |
width: mvs(112), |
| 52 |
backgroundColor: colors.black, |
| 53 |
overflow: 'hidden', |
| 54 |
borderRadius: mvs(10), |
| 55 |
}}> |
| 56 |
<View style={{height: '100%', width: '100%'}} /> |
| 57 |
</ImageBackground> */} |
| Warning |
Row 58, Column 26: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 58 |
<View style={{marginLeft: mvs(18), flex: 1}}> |
| Warning |
Row 59, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 59, Column 20: "Replace `·⏎··············style·=·` with `⏎················style=`"
prettier/prettier
|
| 59 |
<Maps |
| Warning |
Row 60, Column 24: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| 60 |
style = {{ |
| Error |
Row 61, Column 17: "Replace `position·` with `··position`"
prettier/prettier
|
| 61 |
position : 'absolute', |
| Error |
Row 62, Column 1: "Replace `················right·` with `··················right`"
prettier/prettier
|
| 62 |
right : mvs(5), |
| Error |
Row 63, Column 17: "Replace `top·:·mvs(5)` with `··top:·mvs(5),`"
prettier/prettier
|
| Warning |
Row 63, Column 29: "Missing trailing comma."
comma-dangle
|
| 63 |
top : mvs(5) |
| Error |
Row 64, Column 1: "Insert `··`"
prettier/prettier
|
| 64 |
}} |
| Error |
Row 65, Column 15: "Replace `height·=·{mvs(40)}·width·=·{mvs(40)}` with `··height={mvs(40)}⏎················width={mvs(40)}⏎··············`"
prettier/prettier
|
| 65 |
height = {mvs(40)} width = {mvs(40)}/> |
| 66 |
{/* <ImageBackground |
| 67 |
source = {TAKE_TO_IMAGES.placeholder} |
| 68 |
style={{ |
| 69 |
height: mvs(32), |
| 70 |
width: mvs(70), |
| 71 |
backgroundColor: colors.black, |
| 72 |
}}> |
| 73 |
<View style={{height: '100%', width: '100%'}} /> |
| 74 |
</ImageBackground> */} |
| 75 |
<Regular |
| 76 |
style={{ |
| 77 |
color: colors.primary, |
| 78 |
fontSize: mvs(15), |
| 79 |
marginTop: mvs(6), |
| 80 |
}} |
| 81 |
label={title} |
| 82 |
/> |
| 83 |
<Regular |
| 84 |
style={{ |
| 85 |
color: colors.headerTitle, |
| 86 |
fontSize: mvs(12), |
| 87 |
marginTop: mvs(6), |
| 88 |
}} |
| 89 |
label={ |
| 90 |
address |
| 91 |
// '360 Mall, Lower Ground Level Kuwait City, 13003, Kuwait' |
| 92 |
} |
| 93 |
/> |
| 94 |
{/* <Regular |
| 95 |
style={{ |
| 96 |
color: colors.primary, |
| 97 |
fontSize: mvs(10), |
| 98 |
marginTop: mvs(6), |
| 99 |
}} |
| 100 |
label={'+965 1803 535'} |
| 101 |
/> */} |
| 102 |
</View> |
| 103 |
</TouchableOpacity> |
| 104 |
{/* <View style={styles.BUTTON_CONTAINER}> |
| 105 |
<Buttons.ButtonPrimary |
| 106 |
onClick={onPress} |
| 107 |
style={styles.BUTTON} |
| 108 |
title={'Save Pin'} |
| 109 |
/> |
| 110 |
<Buttons.ButtonSecondayLight |
| 111 |
onClick={() => onClose()} |
| 112 |
style={{...styles.BUTTON}} |
| 113 |
title={'Cancel'} |
| 114 |
/> |
| 115 |
</View> */} |
| 116 |
</View> |
| 117 |
</View> |
| 118 |
</View> |
| 119 |
); |
| 120 |
}; |
| 121 |
export default PinStoreLocationModal; |
| 122 |
const styles = StyleSheet.create({ |
| 123 |
CONTAINER: { |
| 124 |
position: 'absolute', |
| 125 |
bottom: 0, |
| 126 |
width: '100%', |
| 127 |
borderTopLeftRadius: mvs(20), |
| 128 |
borderTopRightRadius: mvs(20), |
| 129 |
backgroundColor: colors.primary, |
| 130 |
}, |
| 131 |
HEADING_TXT: { |
| 132 |
fontSize: mvs(15), |
| 133 |
color: colors.white, |
| 134 |
alignSelf: 'center', |
| 135 |
marginTop: mvs(13), |
| 136 |
marginBottom: mvs(16), |
| 137 |
}, |
| 138 |
SUB_CONTAINER: { |
| 139 |
backgroundColor: colors.white, |
| 140 |
paddingTop: mvs(20), |
| 141 |
paddingBottom: mvs(38), |
| 142 |
paddingHorizontal: mvs(22), |
| 143 |
borderTopLeftRadius: mvs(20), |
| 144 |
borderTopRightRadius: mvs(20), |
| 145 |
}, |
| 146 |
DESTINATION_CONTAINER: { |
| 147 |
alignItems: 'center', |
| 148 |
flexDirection: 'row', |
| 149 |
justifyContent: 'space-between', |
| 150 |
}, |
| 151 |
FLAG_BUTTON: { |
| 152 |
width: mvs(161), |
| 153 |
height: mvs(38), |
| 154 |
flexDirection: 'row-reverse', |
| 155 |
backgroundColor: colors.secondary, |
| 156 |
}, |
| 157 |
SEARCH_MAP: { |
| 158 |
marginTop: mvs(15), |
| 159 |
alignSelf: 'flex-end', |
| 160 |
width: mvs(161), |
| 161 |
height: mvs(38), |
| 162 |
flexDirection: 'row', |
| 163 |
backgroundColor: colors.primary, |
| 164 |
paddingHorizontal: mvs(23), |
| 165 |
}, |
| 166 |
MAP_ICON: { |
| 167 |
height: mvs(18), |
| 168 |
width: mvs(14), |
| 169 |
}, |
| 170 |
NO_DELIVERY_CONTAINER: { |
| 171 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 172 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 173 |
flexDirection: 'row', |
| 174 |
alignItems: 'center', |
| 175 |
paddingVertical: mvs(14), |
| 176 |
marginTop: mvs(15), |
| 177 |
borderColor: colors.filter_divider, |
| 178 |
}, |
| 179 |
NoDelivery: { |
| 180 |
fontSize: mvs(15), |
| 181 |
color: colors.headerTitle, |
| 182 |
}, |
| 183 |
PRICES_CONTAINER: { |
| 184 |
marginTop: mvs(13), |
| 185 |
flexDirection: 'row', |
| 186 |
justifyContent: 'space-between', |
| 187 |
}, |
| 188 |
PRICE_HEADING: { |
| 189 |
fontSize: mvs(15), |
| 190 |
color: colors.primary, |
| 191 |
marginBottom: mvs(10), |
| 192 |
}, |
| 193 |
MAX_MIN_PRICE: { |
| 194 |
width: mvs(161), |
| 195 |
}, |
| 196 |
DIV: { |
| 197 |
marginTop: mvs(14), |
| 198 |
marginBottom: mvs(13), |
| 199 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 200 |
borderColor: colors.filter_divider, |
| 201 |
}, |
| 202 |
DEL_TIME: { |
| 203 |
color: colors.primary, |
| 204 |
fontSize: mvs(15), |
| 205 |
marginBottom: mvs(8), |
| 206 |
}, |
| 207 |
RADIO_CONTAINER: { |
| 208 |
marginBottom: mvs(30), |
| 209 |
}, |
| 210 |
RADIO_LABEL: { |
| 211 |
color: colors.headerTitle, |
| 212 |
fontSize: mvs(15), |
| 213 |
}, |
| 214 |
BUTTON_CONTAINER: { |
| 215 |
flexDirection: 'row', |
| 216 |
justifyContent: 'space-between', |
| 217 |
marginTop: mvs(29), |
| 218 |
}, |
| 219 |
BUTTON: { |
| 220 |
width: mvs(161), |
| 221 |
}, |
| 222 |
BACK: {position: 'absolute', left: mvs(23), top: mvs(17)}, |
| 223 |
}); |
| 224 |
|
|
|
|
/src/components/molecules/modals/plus-options-modal.js
|
13 problems (8 errors, 5 warnings)
|
| Severity |
Rule |
| Warning |
Row 2, Column 15: "'Text' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 1: "Replace `⏎const·PlusOptionsModal·=·({visible,·onClose,·onPress,list=` with `const·PlusOptionsModal·=·({⏎··visible,⏎··onClose,⏎··onPress,⏎··list·=·`"
prettier/prettier
|
| Warning |
Row 11, Column 58: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 12, Column 1: "Replace `··` with `····`"
prettier/prettier
|
| Error |
Row 13, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 14, Column 1: "Replace `··` with `····`"
prettier/prettier
|
| Error |
Row 15, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 16, Column 3: "Insert `··`"
prettier/prettier
|
| Error |
Row 17, Column 1: "Replace `]` with `··],⏎`"
prettier/prettier
|
| Warning |
Row 23, Column 16: "Inline style: {
borderBottomWidth: 'index !== 4 ? StyleSheet.hairlineWidth : 0',
borderTopWidth: 'index !== 0 ? StyleSheet.hairlineWidth : 0'
}"
react-native/no-inline-styles
|
| Error |
Row 28, Column 21: "Replace `·=·{mvs(20)}·width·=·` with `={mvs(20)}·width=`"
prettier/prettier
|
| Warning |
Row 40, Column 14: "Inline style: { margin: 0 }"
react-native/no-inline-styles
|
| Warning |
Row 42, Column 16: "Inline style: { alignSelf: 'center', width: '100%', position: 'absolute', bottom: 0 }"
react-native/no-inline-styles
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Warning |
Row 2, Column 15: "'Text' is defined but never used."
no-unused-vars
|
| 2 |
import {View, Text, StyleSheet, TouchableOpacity} from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| 4 |
import * as Icons from '../../../../resource/assets/chat-options-modal-icons'; |
| 5 |
import colors from '../../../config/colors'; |
| 6 |
import {mvs} from '../../../config/metrices'; |
| 7 |
import Regular from '../../../presentation/typography/regular-text'; |
| 8 |
import Buttons from '../../atoms/Button'; |
| 9 |
|
| Error |
Row 10, Column 1: "Replace `⏎const·PlusOptionsModal·=·({visible,·onClose,·onPress,list=` with `const·PlusOptionsModal·=·({⏎··visible,⏎··onClose,⏎··onPress,⏎··list·=·`"
prettier/prettier
|
| 10 |
|
| Warning |
Row 11, Column 58: "Operator '=' must be spaced."
space-infix-ops
|
| 11 |
const PlusOptionsModal = ({visible, onClose, onPress,list=[ |
| Error |
Row 12, Column 1: "Replace `··` with `····`"
prettier/prettier
|
| 12 |
{icon: 'Camera', title: 'Camera'}, |
| Error |
Row 13, Column 1: "Insert `··`"
prettier/prettier
|
| 13 |
{icon: 'Gallery', title: 'Photo & Video Library'}, |
| Error |
Row 14, Column 1: "Replace `··` with `····`"
prettier/prettier
|
| 14 |
{icon: 'doc', title: 'Document'}, |
| Error |
Row 15, Column 1: "Insert `··`"
prettier/prettier
|
| 15 |
{icon: 'audio', title: 'Audio'}, |
| Error |
Row 16, Column 3: "Insert `··`"
prettier/prettier
|
| 16 |
{icon: 'Location', title: 'Location'}, |
| Error |
Row 17, Column 1: "Replace `]` with `··],⏎`"
prettier/prettier
|
| 17 |
]}) => { |
| 18 |
const Item = ({icon = 'Call', title, index}) => { |
| 19 |
const Icon = Icons[icon]; |
| 20 |
return ( |
| 21 |
<TouchableOpacity |
| 22 |
onPress={() => onPress(title)} |
| Warning |
Row 23, Column 16: "Inline style: {
borderBottomWidth: 'index !== 4 ? StyleSheet.hairlineWidth : 0',
borderTopWidth: 'index !== 0 ? StyleSheet.hairlineWidth : 0'
}"
react-native/no-inline-styles
|
| 23 |
style={{ |
| 24 |
...styles.item, |
| 25 |
borderBottomWidth: index !== 4 ? StyleSheet.hairlineWidth : 0, |
| 26 |
borderTopWidth: index !== 0 ? StyleSheet.hairlineWidth : 0, |
| 27 |
}}> |
| Error |
Row 28, Column 21: "Replace `·=·{mvs(20)}·width·=·` with `={mvs(20)}·width=`"
prettier/prettier
|
| 28 |
<Icon height = {mvs(20)} width = {mvs(20)} /> |
| 29 |
<Regular label={title} style={{marginLeft: mvs(23)}} /> |
| 30 |
</TouchableOpacity> |
| 31 |
); |
| 32 |
}; |
| 33 |
return ( |
| 34 |
<ReactNativeModal |
| 35 |
propagateSwipe |
| 36 |
isVisible={visible} |
| 37 |
onBackdropPress={onClose} |
| 38 |
onSwipeComplete={onClose} |
| 39 |
swipeDirection="up" |
| Warning |
Row 40, Column 14: "Inline style: { margin: 0 }"
react-native/no-inline-styles
|
| 40 |
style={{margin: 0}}> |
| 41 |
<View |
| Warning |
Row 42, Column 16: "Inline style: { alignSelf: 'center', width: '100%', position: 'absolute', bottom: 0 }"
react-native/no-inline-styles
|
| 42 |
style={{ |
| 43 |
alignSelf: 'center', |
| 44 |
backgroundColor: colors.white, |
| 45 |
width: '100%', |
| 46 |
paddingHorizontal: mvs(22), |
| 47 |
paddingVertical: mvs(15), |
| 48 |
position: 'absolute', |
| 49 |
bottom: 0, |
| 50 |
borderTopLeftRadius: mvs(20), |
| 51 |
borderTopRightRadius: mvs(20), |
| 52 |
}}> |
| 53 |
{list.map((ele, index) => ( |
| 54 |
<Item key={index} index={index} {...ele} /> |
| 55 |
))} |
| 56 |
<Buttons.ButtonSecondaryOutline |
| 57 |
onClick={onClose} |
| 58 |
style={{marginTop: mvs(20)}} |
| 59 |
title={'Cancel'} |
| 60 |
/> |
| 61 |
</View> |
| 62 |
</ReactNativeModal> |
| 63 |
); |
| 64 |
}; |
| 65 |
export default PlusOptionsModal; |
| 66 |
const styles = StyleSheet.create({ |
| 67 |
item: { |
| 68 |
paddingVertical: mvs(12), |
| 69 |
flexDirection: 'row', |
| 70 |
alignItems: 'center', |
| 71 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 72 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 73 |
borderColor: colors.doted, |
| 74 |
}, |
| 75 |
}); |
| 76 |
|
|
|
|
/src/components/molecules/modals/product-accepted-modal.js
|
75 problems (39 errors, 36 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| Error |
Row 7, Column 9: "Replace `·mvs,·ms·` with `mvs,·ms`"
prettier/prettier
|
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 10, Column 10: "'TAKE_TO_INPUT_FIELD' is defined but never used."
no-unused-vars
|
| Warning |
Row 12, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| Warning |
Row 13, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| Warning |
Row 15, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| Warning |
Row 16, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 18, Column 32: "Replace `·visible,·onClose,·name·=·"Ralph·Wakim",·onSendButton,·onBackButton` with `⏎··visible,⏎··onClose,⏎··name·=·'Ralph·Wakim',⏎··onSendButton,⏎··onBackButton,⏎`"
prettier/prettier
|
| Warning |
Row 18, Column 58: "Strings must use singlequote."
quotes
|
| Warning |
Row 19, Column 10: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 19, Column 19: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 20, Column 76: "Insert `,`"
prettier/prettier
|
| Warning |
Row 20, Column 76: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 30, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 30, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| Warning |
Row 35, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 35, Column 20: "Replace `·⏎··········content={'Congratulations·'}·⏎··········highlightText={name}·` with `⏎············content={'Congratulations·'}⏎············highlightText={name}`"
prettier/prettier
|
| Warning |
Row 36, Column 39: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 37, Column 31: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 38, Column 11: "Replace `highlightTextStyle={{fontSize·` with `··highlightTextStyle={{fontSize`"
prettier/prettier
|
| Error |
Row 39, Column 1: "Replace `··········style·=·` with `············style=`"
prettier/prettier
|
| Warning |
Row 39, Column 20: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 40, Column 13: "Replace `fontSize:·mvs(14.5),·⏎············color:·colors.typeHeader,·⏎············alignSelf:·'center',·` with `··fontSize:·mvs(14.5),⏎··············color:·colors.typeHeader,⏎··············alignSelf:·'center',`"
prettier/prettier
|
| Warning |
Row 40, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 41, Column 38: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 42, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 43, Column 1: "Replace `············textAlign:·'center',·` with `··············textAlign:·'center',`"
prettier/prettier
|
| Warning |
Row 43, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 44, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 45, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 46, Column 1: "Insert `····`"
prettier/prettier
|
| Warning |
Row 46, Column 20: "Strings must use singlequote."
quotes
|
| Error |
Row 47, Column 11: "Insert `····`"
prettier/prettier
|
| Error |
Row 48, Column 1: "Replace `··········highlightTextStyle·=·{{fontSize·:·mvs(15),·color·` with `··············highlightTextStyle={{fontSize:·mvs(15),·color`"
prettier/prettier
|
| Error |
Row 49, Column 1: "Replace `··········style·=·` with `··············style=`"
prettier/prettier
|
| Warning |
Row 49, Column 20: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 50, Column 1: "Replace `············fontSize:·mvs(14.5),·⏎············color:·colors.typeHeader,·⏎············alignSelf:·'center',·⏎············textAlign:·'center',·` with `················fontSize:·mvs(14.5),⏎················color:·colors.typeHeader,⏎················alignSelf:·'center',⏎················textAlign:·'center',`"
prettier/prettier
|
| Warning |
Row 50, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 51, Column 38: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 52, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 53, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 54, Column 11: "Replace `}}⏎··········>⏎············` with `····}}>⏎··············prettier/prettier
|
| Warning |
Row 56, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 57, Column 21: "Strings must use singlequote."
quotes
|
| Warning |
Row 57, Column 83: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 58, Column 11: "Replace `··` with `····/>`"
prettier/prettier
|
| Warning |
Row 58, Column 22: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 59, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 59, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 67, Column 1: "Replace `⏎` with `··`"
prettier/prettier
|
| Error |
Row 69, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 70, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 71, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Warning |
Row 71, Column 20: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 72, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 73, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 74, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 75, Column 13: "Replace `textStyle={{·color:·colors.white,·marginLeft:·mvs(13)·` with `··textStyle={{color:·colors.white,·marginLeft:·mvs(13)`"
prettier/prettier
|
| Error |
Row 76, Column 13: "Replace `iconStyle={{·height:·mvs(20),·width:·mvs(20)·` with `··iconStyle={{height:·mvs(20),·width:·mvs(20)`"
prettier/prettier
|
| Error |
Row 77, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 80, Column 23: "Replace `·...styles.BUTTON,·marginTop:·mvs(10),·` with `...styles.BUTTON,·marginTop:·mvs(10)`"
prettier/prettier
|
| Warning |
Row 80, Column 60: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 81, Column 33: "Insert `·`"
prettier/prettier
|
| Error |
Row 95, Column 15: "Insert `·`"
prettier/prettier
|
| Error |
Row 98, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(20),` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(20),⏎·`"
prettier/prettier
|
| Warning |
Row 98, Column 118: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 99, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| Error |
Row 112, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| Error |
Row 190, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| 2 |
import { View, StyleSheet, ImageBackground } from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 4 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce'; |
| 5 |
import colors from '../../../config/colors'; |
| Warning |
Row 6, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| 6 |
import fonts from '../../../config/fonts'; |
| Error |
Row 7, Column 9: "Replace `·mvs,·ms·` with `mvs,·ms`"
prettier/prettier
|
| 7 |
import { mvs, ms } from '../../../config/metrices'; |
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| 8 |
import Medium from '../../../presentation/typography/medium-text'; |
| 9 |
import Regular from '../../../presentation/typography/regular-text'; |
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 10, Column 10: "'TAKE_TO_INPUT_FIELD' is defined but never used."
no-unused-vars
|
| 10 |
import { TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| 11 |
import Buttons from '../../atoms/Button'; |
| Warning |
Row 12, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| 12 |
import CustomRadio from '../../atoms/RadioButton'; |
| Warning |
Row 13, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| 13 |
import CustomSwitch from '../../atoms/Switch'; |
| 14 |
import DualText from '../dual-text/dual-text'; |
| Warning |
Row 15, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| 15 |
import SettingCard from '../setting_card/setting-card'; |
| Warning |
Row 16, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| 16 |
const list = [true, false, false, true]; |
| 17 |
|
| Error |
Row 18, Column 32: "Replace `·visible,·onClose,·name·=·"Ralph·Wakim",·onSendButton,·onBackButton` with `⏎··visible,⏎··onClose,⏎··name·=·'Ralph·Wakim',⏎··onSendButton,⏎··onBackButton,⏎`"
prettier/prettier
|
| Warning |
Row 18, Column 58: "Strings must use singlequote."
quotes
|
| 18 |
const ProductAcceptedModal = ({ visible, onClose, name = "Ralph Wakim", onSendButton, onBackButton}) => { |
| Warning |
Row 19, Column 10: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 19, Column 19: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| 19 |
const [payload, setPayload] = React.useState({ |
| Error |
Row 20, Column 76: "Insert `,`"
prettier/prettier
|
| Warning |
Row 20, Column 76: "Missing trailing comma."
comma-dangle
|
| 20 |
reason: 'Deliverer not responding to my messages after several trials.' |
| 21 |
}); |
| 22 |
|
| 23 |
return ( |
| 24 |
<ReactNativeModal |
| 25 |
propagateSwipe |
| 26 |
isVisible={visible} |
| 27 |
// avoidKeyboard |
| 28 |
onBackdropPress={() => onClose(f => !f)} |
| 29 |
onBackButtonPress={() => onClose(f => !f)} |
| Warning |
Row 30, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 30, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| 30 |
style={{ margin: 0, padding: 0 }}> |
| 31 |
<View style={styles.CONTAINER}> |
| 32 |
<View style={styles.SUB_CONTAINER}> |
| 33 |
<Regular label={'Product Accepted'} style={styles.HEADING_TXT} /> |
| 34 |
|
| Warning |
Row 35, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 35, Column 20: "Replace `·⏎··········content={'Congratulations·'}·⏎··········highlightText={name}·` with `⏎············content={'Congratulations·'}⏎············highlightText={name}`"
prettier/prettier
|
| 35 |
<DualText |
| Warning |
Row 36, Column 39: "Trailing spaces not allowed."
no-trailing-spaces
|
| 36 |
content={'Congratulations '} |
| Warning |
Row 37, Column 31: "Trailing spaces not allowed."
no-trailing-spaces
|
| 37 |
highlightText={name} |
| Error |
Row 38, Column 11: "Replace `highlightTextStyle={{fontSize·` with `··highlightTextStyle={{fontSize`"
prettier/prettier
|
| 38 |
highlightTextStyle={{fontSize : mvs(15)}} |
| Error |
Row 39, Column 1: "Replace `··········style·=·` with `············style=`"
prettier/prettier
|
| Warning |
Row 39, Column 20: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| 39 |
style = {{ |
| Error |
Row 40, Column 13: "Replace `fontSize:·mvs(14.5),·⏎············color:·colors.typeHeader,·⏎············alignSelf:·'center',·` with `··fontSize:·mvs(14.5),⏎··············color:·colors.typeHeader,⏎··············alignSelf:·'center',`"
prettier/prettier
|
| Warning |
Row 40, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| 40 |
fontSize: mvs(14.5), |
| Warning |
Row 41, Column 38: "Trailing spaces not allowed."
no-trailing-spaces
|
| 41 |
color: colors.typeHeader, |
| Warning |
Row 42, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| 42 |
alignSelf: 'center', |
| Error |
Row 43, Column 1: "Replace `············textAlign:·'center',·` with `··············textAlign:·'center',`"
prettier/prettier
|
| Warning |
Row 43, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| 43 |
textAlign: 'center', |
| Error |
Row 44, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 44 |
}}> |
| Error |
Row 45, Column 1: "Insert `··`"
prettier/prettier
|
| 45 |
<DualText |
| Error |
Row 46, Column 1: "Insert `····`"
prettier/prettier
|
| Warning |
Row 46, Column 20: "Strings must use singlequote."
quotes
|
| 46 |
content={`,\nthe buyer has accepted the Product.`} |
| Error |
Row 47, Column 11: "Insert `····`"
prettier/prettier
|
| 47 |
//highlightText = {`\nUS$ 90 reward.`} |
| Error |
Row 48, Column 1: "Replace `··········highlightTextStyle·=·{{fontSize·:·mvs(15),·color·` with `··············highlightTextStyle={{fontSize:·mvs(15),·color`"
prettier/prettier
|
| 48 |
highlightTextStyle = {{fontSize : mvs(15), color : colors.green}} |
| Error |
Row 49, Column 1: "Replace `··········style·=·` with `··············style=`"
prettier/prettier
|
| Warning |
Row 49, Column 20: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| 49 |
style = {{ |
| Error |
Row 50, Column 1: "Replace `············fontSize:·mvs(14.5),·⏎············color:·colors.typeHeader,·⏎············alignSelf:·'center',·⏎············textAlign:·'center',·` with `················fontSize:·mvs(14.5),⏎················color:·colors.typeHeader,⏎················alignSelf:·'center',⏎················textAlign:·'center',`"
prettier/prettier
|
| Warning |
Row 50, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| 50 |
fontSize: mvs(14.5), |
| Warning |
Row 51, Column 38: "Trailing spaces not allowed."
no-trailing-spaces
|
| 51 |
color: colors.typeHeader, |
| Warning |
Row 52, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| 52 |
alignSelf: 'center', |
| Warning |
Row 53, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| 53 |
textAlign: 'center', |
| Error |
Row 54, Column 11: "Replace `}}⏎··········>⏎············` with `····}}>⏎··············prettier/prettier
|
| 54 |
}} |
| 55 |
> |
| Warning |
Row 56, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| 56 |
<Regular |
| Warning |
Row 57, Column 21: "Strings must use singlequote."
quotes
|
| Warning |
Row 57, Column 83: "Trailing spaces not allowed."
no-trailing-spaces
|
| 57 |
label = {`\n\nPlease proceed to sending the buyer a\nproduct proof.`}/> |
| Error |
Row 58, Column 11: "Replace `··` with `····/>`"
prettier/prettier
|
| Warning |
Row 58, Column 22: "Trailing spaces not allowed."
no-trailing-spaces
|
| 58 |
</DualText> |
| Warning |
Row 59, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 59, Column 11: "Insert `··`"
prettier/prettier
|
| 59 |
|
| 60 |
</DualText> |
| 61 |
|
| 62 |
{/* <SettingCard style={{ paddingTop: mvs(13), paddingBottom: mvs(7), marginTop : mvs(43) }} headingStyle={{ alignSelf: 'center', fontSize: mvs(14) }} heading={'Make sure your notifications are on'}> |
| 63 |
<CustomSwitch style={{ marginTop: 0 }} textStyle={{ color: colors.primary }} label={'Email'} /> |
| 64 |
<CustomSwitch style={{ marginTop: mvs(10) }} textStyle={{ color: colors.primary }} label={'SMS'} /> |
| 65 |
</SettingCard> */} |
| 66 |
<View style={styles.BUTTON_CONTAINER}> |
| Error |
Row 67, Column 1: "Replace `⏎` with `··`"
prettier/prettier
|
| 67 |
|
| 68 |
<Buttons.ButtonPrimary |
| Error |
Row 69, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 69 |
onClick={onSendButton} |
| Error |
Row 70, Column 1: "Insert `··`"
prettier/prettier
|
| 70 |
title={'Send a Receipt picture'} |
| Error |
Row 71, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Warning |
Row 71, Column 20: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| 71 |
style={{ |
| Error |
Row 72, Column 1: "Insert `··`"
prettier/prettier
|
| 72 |
justifyContent: 'center', |
| Error |
Row 73, Column 1: "Insert `··`"
prettier/prettier
|
| 73 |
// marginTop:orderType==='normal'? mvs(15):mvs(129), |
| Error |
Row 74, Column 1: "Insert `··`"
prettier/prettier
|
| 74 |
}} |
| Error |
Row 75, Column 13: "Replace `textStyle={{·color:·colors.white,·marginLeft:·mvs(13)·` with `··textStyle={{color:·colors.white,·marginLeft:·mvs(13)`"
prettier/prettier
|
| 75 |
textStyle={{ color: colors.white, marginLeft: mvs(13) }} |
| Error |
Row 76, Column 13: "Replace `iconStyle={{·height:·mvs(20),·width:·mvs(20)·` with `··iconStyle={{height:·mvs(20),·width:·mvs(20)`"
prettier/prettier
|
| 76 |
iconStyle={{ height: mvs(20), width: mvs(20) }} |
| Error |
Row 77, Column 1: "Insert `··`"
prettier/prettier
|
| 77 |
/> |
| 78 |
<Buttons.ButtonSecondaryOutline |
| 79 |
onClick={onClose} |
| Error |
Row 80, Column 23: "Replace `·...styles.BUTTON,·marginTop:·mvs(10),·` with `...styles.BUTTON,·marginTop:·mvs(10)`"
prettier/prettier
|
| Warning |
Row 80, Column 60: "Unexpected trailing comma."
comma-dangle
|
| 80 |
style={{ ...styles.BUTTON, marginTop: mvs(10), }} |
| Error |
Row 81, Column 33: "Insert `·`"
prettier/prettier
|
| 81 |
textStyle={{color:colors.typeHeader}} |
| 82 |
title={'Back'} |
| 83 |
/> |
| 84 |
</View> |
| 85 |
</View> |
| 86 |
</View> |
| 87 |
</ReactNativeModal> |
| 88 |
); |
| 89 |
}; |
| 90 |
export default ProductAcceptedModal; |
| 91 |
|
| 92 |
const styles = StyleSheet.create({ |
| 93 |
CONTAINER: { |
| 94 |
width: ms(332), |
| Error |
Row 95, Column 15: "Insert `·`"
prettier/prettier
|
| 95 |
alignSelf:'center', |
| 96 |
borderRadius: mvs(20), |
| 97 |
}, |
| Error |
Row 98, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(20),` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(20),⏎·`"
prettier/prettier
|
| Warning |
Row 98, Column 118: "Unexpected trailing comma."
comma-dangle
|
| 98 |
REFUND_CONATINER: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', marginTop: mvs(20), }, |
| Error |
Row 99, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| 99 |
TEXT: { textAlign: 'center', marginTop: mvs(30), fontSize: mvs(14), color: colors.primary }, |
| 100 |
HEADING_TXT: { |
| 101 |
fontSize: mvs(19.5), |
| 102 |
color: colors.green, |
| 103 |
alignSelf: 'center', |
| 104 |
marginBottom: mvs(8.5), |
| 105 |
}, |
| 106 |
SUB_CONTAINER: { |
| 107 |
backgroundColor: colors.white, |
| 108 |
// paddingTop: mvs(20), |
| 109 |
paddingVertical: mvs(20), |
| 110 |
borderRadius: mvs(20), |
| 111 |
paddingHorizontal: mvs(10), |
| Error |
Row 112, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| 112 |
backgroundColor: colors.white, |
| 113 |
}, |
| 114 |
DESTINATION_CONTAINER: { |
| 115 |
alignItems: 'center', |
| 116 |
flexDirection: 'row', |
| 117 |
justifyContent: 'space-between', |
| 118 |
}, |
| 119 |
FLAG_BUTTON: { |
| 120 |
width: mvs(161), |
| 121 |
height: mvs(38), |
| 122 |
flexDirection: 'row-reverse', |
| 123 |
backgroundColor: colors.secondary, |
| 124 |
}, |
| 125 |
SEARCH_MAP: { |
| 126 |
marginTop: mvs(15), |
| 127 |
alignSelf: 'flex-end', |
| 128 |
width: mvs(161), |
| 129 |
height: mvs(38), |
| 130 |
flexDirection: 'row', |
| 131 |
backgroundColor: colors.primary, |
| 132 |
paddingHorizontal: mvs(23), |
| 133 |
}, |
| 134 |
MAP_ICON: { |
| 135 |
height: mvs(18), |
| 136 |
width: mvs(14), |
| 137 |
}, |
| 138 |
NO_DELIVERY_CONTAINER: { |
| 139 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 140 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 141 |
flexDirection: 'row', |
| 142 |
alignItems: 'center', |
| 143 |
paddingVertical: mvs(14), |
| 144 |
marginTop: mvs(15), |
| 145 |
borderColor: colors.filter_divider, |
| 146 |
}, |
| 147 |
NoDelivery: { |
| 148 |
fontSize: mvs(15), |
| 149 |
color: colors.headerTitle, |
| 150 |
}, |
| 151 |
PRICES_CONTAINER: { |
| 152 |
marginTop: mvs(13), |
| 153 |
flexDirection: 'row', |
| 154 |
justifyContent: 'space-between', |
| 155 |
}, |
| 156 |
PRICE_HEADING: { |
| 157 |
fontSize: mvs(15), |
| 158 |
color: colors.primary, |
| 159 |
marginBottom: mvs(10), |
| 160 |
}, |
| 161 |
MAX_MIN_PRICE: { |
| 162 |
width: mvs(161), |
| 163 |
}, |
| 164 |
DIV: { |
| 165 |
marginTop: mvs(14), |
| 166 |
marginBottom: mvs(13), |
| 167 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 168 |
borderColor: colors.filter_divider, |
| 169 |
}, |
| 170 |
DEL_TIME: { |
| 171 |
color: colors.primary, |
| 172 |
fontSize: mvs(15), |
| 173 |
marginBottom: mvs(8), |
| 174 |
}, |
| 175 |
RADIO_CONTAINER: { |
| 176 |
marginBottom: mvs(30), |
| 177 |
}, |
| 178 |
RADIO_LABEL: { |
| 179 |
color: colors.headerTitle, |
| 180 |
fontSize: mvs(15), |
| 181 |
}, |
| 182 |
BUTTON_CONTAINER: { |
| 183 |
// flexDirection: 'row', |
| 184 |
// justifyContent: 'space-between', |
| 185 |
marginTop: mvs(29), |
| 186 |
}, |
| 187 |
BUTTON: { |
| 188 |
width: '100%', |
| 189 |
}, |
| Error |
Row 190, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| 190 |
BACK: { position: 'absolute', left: mvs(23), top: mvs(17) }, |
| 191 |
}); |
| 192 |
|
|
|
|
/src/components/molecules/modals/product-rejected-modal.js
|
82 problems (46 errors, 36 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| Error |
Row 7, Column 9: "Replace `·mvs,·ms·` with `mvs,·ms`"
prettier/prettier
|
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 12, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| Warning |
Row 13, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| Warning |
Row 15, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| Warning |
Row 16, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 17, Column 32: "Replace `·visible,·onClose,·name·=·"Ralph·Wakim",·onSendButton,·onBackButton,·endButtonTitle·=·'Back·to·Delivery·History'` with `⏎··visible,⏎··onClose,⏎··name·=·'Ralph·Wakim',⏎··onSendButton,⏎··onBackButton,⏎··endButtonTitle·=·'Back·to·Delivery·History',⏎`"
prettier/prettier
|
| Warning |
Row 17, Column 58: "Strings must use singlequote."
quotes
|
| Error |
Row 19, Column 13: "Replace `"I·wanted·a·space·grey·iPhone·13·Pro"` with `'I·wanted·a·space·grey·iPhone·13·Pro',`"
prettier/prettier
|
| Warning |
Row 19, Column 13: "Strings must use singlequote."
quotes
|
| Warning |
Row 19, Column 50: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 29, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 29, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| Warning |
Row 34, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 34, Column 20: "Replace `·⏎··········content={'Unfortunately·'}·⏎··········highlightText={name}·⏎··········highlightTextStyle={{fontSize·` with `⏎············content={'Unfortunately·'}⏎············highlightText={name}⏎············highlightTextStyle={{fontSize`"
prettier/prettier
|
| Warning |
Row 35, Column 37: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 36, Column 31: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 38, Column 11: "Replace `style·=·` with `··style=`"
prettier/prettier
|
| Warning |
Row 38, Column 20: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 39, Column 1: "Replace `············fontSize:·mvs(14.5),·` with `··············fontSize:·mvs(14.5),`"
prettier/prettier
|
| Warning |
Row 39, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 40, Column 13: "Replace `color:·colors.typeHeader,·⏎············alignSelf:·'center',·` with `··color:·colors.typeHeader,⏎··············alignSelf:·'center',`"
prettier/prettier
|
| Warning |
Row 40, Column 38: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 41, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 42, Column 1: "Replace `············textAlign:·'center',·⏎············marginBottom·:·mvs(41)` with `··············textAlign:·'center',⏎··············marginBottom:·mvs(41),`"
prettier/prettier
|
| Warning |
Row 42, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 43, Column 35: "Missing trailing comma."
comma-dangle
|
| Error |
Row 44, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 45, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 46, Column 1: "Insert `····`"
prettier/prettier
|
| Warning |
Row 46, Column 20: "Strings must use singlequote."
quotes
|
| Error |
Row 47, Column 1: "Replace `··········` with `··············`"
prettier/prettier
|
| Error |
Row 48, Column 1: "Replace `··········highlightTextStyle·=·{{fontSize·:·mvs(15),·color·` with `··············highlightTextStyle={{fontSize:·mvs(15),·color`"
prettier/prettier
|
| Error |
Row 49, Column 1: "Replace `··········style·=·` with `··············style=`"
prettier/prettier
|
| Warning |
Row 49, Column 20: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 50, Column 1: "Replace `············fontSize:·mvs(14.5),·⏎············color:·colors.typeHeader,·` with `················fontSize:·mvs(14.5),⏎················color:·colors.typeHeader,`"
prettier/prettier
|
| Warning |
Row 50, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 51, Column 38: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 52, Column 1: "Replace `············alignSelf:·'center',·` with `················alignSelf:·'center',`"
prettier/prettier
|
| Warning |
Row 52, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 53, Column 1: "Replace `············textAlign:·'center',·⏎··········}}⏎··········>⏎··········⏎··············prettier/prettier
|
| Warning |
Row 53, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 56, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 57, Column 12: "Replace `label·=·{`\n\nPlease·proceed·to·sending·the·buyer·a\nProduct·proof·that·matches·the·requirements.`}/>··⏎············` with `·····label={`\n\nPlease·proceed·to·sending·the·buyer·a\nProduct·proof·that·matches·the·requirements.`}⏎··············/>⏎············`"
prettier/prettier
|
| Warning |
Row 57, Column 21: "Strings must use singlequote."
quotes
|
| Warning |
Row 57, Column 113: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 58, Column 22: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 61, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 63, Column 30: "Delete `·`"
prettier/prettier
|
| Error |
Row 64, Column 19: "Replace `'Rejected·Reason'` with `"Rejected·Reason"`"
prettier/prettier
|
| Warning |
Row 64, Column 19: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 66, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 66, Column 21: "Delete `·`"
prettier/prettier
|
| Error |
Row 67, Column 47: "Replace `·...payload,·reason:·text·` with `...payload,·reason:·text`"
prettier/prettier
|
| Error |
Row 68, Column 13: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 71, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 77, Column 1: "Replace `⏎` with `··`"
prettier/prettier
|
| Error |
Row 79, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 80, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 81, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 81, Column 20: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 82, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 83, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 84, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 85, Column 1: "Replace `············textStyle={{·color:·colors.white,·marginLeft:·mvs(13)·` with `··············textStyle={{color:·colors.white,·marginLeft:·mvs(13)`"
prettier/prettier
|
| Error |
Row 86, Column 1: "Replace `············iconStyle={{·height:·mvs(20),·width:·mvs(20)·` with `··············iconStyle={{height:·mvs(20),·width:·mvs(20)`"
prettier/prettier
|
| Error |
Row 87, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 90, Column 23: "Replace `·...styles.BUTTON,·marginTop:·mvs(10),·` with `...styles.BUTTON,·marginTop:·mvs(10)`"
prettier/prettier
|
| Warning |
Row 90, Column 60: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 91, Column 33: "Insert `·`"
prettier/prettier
|
| Error |
Row 105, Column 15: "Insert `·`"
prettier/prettier
|
| Error |
Row 108, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(20),` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(20),⏎·`"
prettier/prettier
|
| Warning |
Row 108, Column 118: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 109, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| Error |
Row 122, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| Error |
Row 200, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| 2 |
import { View, StyleSheet, ImageBackground } from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 4 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce'; |
| 5 |
import colors from '../../../config/colors'; |
| Warning |
Row 6, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| 6 |
import fonts from '../../../config/fonts'; |
| Error |
Row 7, Column 9: "Replace `·mvs,·ms·` with `mvs,·ms`"
prettier/prettier
|
| 7 |
import { mvs, ms } from '../../../config/metrices'; |
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| 8 |
import Medium from '../../../presentation/typography/medium-text'; |
| 9 |
import Regular from '../../../presentation/typography/regular-text'; |
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 10 |
import { TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| 11 |
import Buttons from '../../atoms/Button'; |
| Warning |
Row 12, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| 12 |
import CustomRadio from '../../atoms/RadioButton'; |
| Warning |
Row 13, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| 13 |
import CustomSwitch from '../../atoms/Switch'; |
| 14 |
import DualText from '../dual-text/dual-text'; |
| Warning |
Row 15, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| 15 |
import SettingCard from '../setting_card/setting-card'; |
| Warning |
Row 16, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| 16 |
const list = [true, false, false, true]; |
| Error |
Row 17, Column 32: "Replace `·visible,·onClose,·name·=·"Ralph·Wakim",·onSendButton,·onBackButton,·endButtonTitle·=·'Back·to·Delivery·History'` with `⏎··visible,⏎··onClose,⏎··name·=·'Ralph·Wakim',⏎··onSendButton,⏎··onBackButton,⏎··endButtonTitle·=·'Back·to·Delivery·History',⏎`"
prettier/prettier
|
| Warning |
Row 17, Column 58: "Strings must use singlequote."
quotes
|
| 17 |
const ProductRejectedModal = ({ visible, onClose, name = "Ralph Wakim", onSendButton, onBackButton, endButtonTitle = 'Back to Delivery History'}) => { |
| 18 |
const [payload, setPayload] = React.useState({ |
| Error |
Row 19, Column 13: "Replace `"I·wanted·a·space·grey·iPhone·13·Pro"` with `'I·wanted·a·space·grey·iPhone·13·Pro',`"
prettier/prettier
|
| Warning |
Row 19, Column 13: "Strings must use singlequote."
quotes
|
| Warning |
Row 19, Column 50: "Missing trailing comma."
comma-dangle
|
| 19 |
reason: "I wanted a space grey iPhone 13 Pro" |
| 20 |
}); |
| 21 |
|
| 22 |
return ( |
| 23 |
<ReactNativeModal |
| 24 |
propagateSwipe |
| 25 |
isVisible={visible} |
| 26 |
// avoidKeyboard |
| 27 |
onBackdropPress={() => onClose(f => !f)} |
| 28 |
onBackButtonPress={() => onClose(f => !f)} |
| Warning |
Row 29, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 29, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| 29 |
style={{ margin: 0, padding: 0 }}> |
| 30 |
<View style={styles.CONTAINER}> |
| 31 |
<View style={styles.SUB_CONTAINER}> |
| 32 |
<Regular label={'Product Rejected'} style={styles.HEADING_TXT} /> |
| 33 |
|
| Warning |
Row 34, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 34, Column 20: "Replace `·⏎··········content={'Unfortunately·'}·⏎··········highlightText={name}·⏎··········highlightTextStyle={{fontSize·` with `⏎············content={'Unfortunately·'}⏎············highlightText={name}⏎············highlightTextStyle={{fontSize`"
prettier/prettier
|
| 34 |
<DualText |
| Warning |
Row 35, Column 37: "Trailing spaces not allowed."
no-trailing-spaces
|
| 35 |
content={'Unfortunately '} |
| Warning |
Row 36, Column 31: "Trailing spaces not allowed."
no-trailing-spaces
|
| 36 |
highlightText={name} |
| 37 |
highlightTextStyle={{fontSize : mvs(15)}} |
| Error |
Row 38, Column 11: "Replace `style·=·` with `··style=`"
prettier/prettier
|
| Warning |
Row 38, Column 20: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| 38 |
style = {{ |
| Error |
Row 39, Column 1: "Replace `············fontSize:·mvs(14.5),·` with `··············fontSize:·mvs(14.5),`"
prettier/prettier
|
| Warning |
Row 39, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| 39 |
fontSize: mvs(14.5), |
| Error |
Row 40, Column 13: "Replace `color:·colors.typeHeader,·⏎············alignSelf:·'center',·` with `··color:·colors.typeHeader,⏎··············alignSelf:·'center',`"
prettier/prettier
|
| Warning |
Row 40, Column 38: "Trailing spaces not allowed."
no-trailing-spaces
|
| 40 |
color: colors.typeHeader, |
| Warning |
Row 41, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| 41 |
alignSelf: 'center', |
| Error |
Row 42, Column 1: "Replace `············textAlign:·'center',·⏎············marginBottom·:·mvs(41)` with `··············textAlign:·'center',⏎··············marginBottom:·mvs(41),`"
prettier/prettier
|
| Warning |
Row 42, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| 42 |
textAlign: 'center', |
| Warning |
Row 43, Column 35: "Missing trailing comma."
comma-dangle
|
| 43 |
marginBottom : mvs(41) |
| Error |
Row 44, Column 1: "Insert `··`"
prettier/prettier
|
| 44 |
}}> |
| Error |
Row 45, Column 11: "Insert `··`"
prettier/prettier
|
| 45 |
<DualText |
| Error |
Row 46, Column 1: "Insert `····`"
prettier/prettier
|
| Warning |
Row 46, Column 20: "Strings must use singlequote."
quotes
|
| 46 |
content={`,\nthe buyer has Rejected the Product.`} |
| Error |
Row 47, Column 1: "Replace `··········` with `··············`"
prettier/prettier
|
| 47 |
//highlightText = {`\nUS$ 90 reward.`} |
| Error |
Row 48, Column 1: "Replace `··········highlightTextStyle·=·{{fontSize·:·mvs(15),·color·` with `··············highlightTextStyle={{fontSize:·mvs(15),·color`"
prettier/prettier
|
| 48 |
highlightTextStyle = {{fontSize : mvs(15), color : colors.green}} |
| Error |
Row 49, Column 1: "Replace `··········style·=·` with `··············style=`"
prettier/prettier
|
| Warning |
Row 49, Column 20: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| 49 |
style = {{ |
| Error |
Row 50, Column 1: "Replace `············fontSize:·mvs(14.5),·⏎············color:·colors.typeHeader,·` with `················fontSize:·mvs(14.5),⏎················color:·colors.typeHeader,`"
prettier/prettier
|
| Warning |
Row 50, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| 50 |
fontSize: mvs(14.5), |
| Warning |
Row 51, Column 38: "Trailing spaces not allowed."
no-trailing-spaces
|
| 51 |
color: colors.typeHeader, |
| Error |
Row 52, Column 1: "Replace `············alignSelf:·'center',·` with `················alignSelf:·'center',`"
prettier/prettier
|
| Warning |
Row 52, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| 52 |
alignSelf: 'center', |
| Error |
Row 53, Column 1: "Replace `············textAlign:·'center',·⏎··········}}⏎··········>⏎··········⏎··············prettier/prettier
|
| Warning |
Row 53, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| 53 |
textAlign: 'center', |
| 54 |
}} |
| 55 |
> |
| Warning |
Row 56, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| 56 |
<Regular |
| Error |
Row 57, Column 12: "Replace `label·=·{`\n\nPlease·proceed·to·sending·the·buyer·a\nProduct·proof·that·matches·the·requirements.`}/>··⏎············` with `·····label={`\n\nPlease·proceed·to·sending·the·buyer·a\nProduct·proof·that·matches·the·requirements.`}⏎··············/>⏎············`"
prettier/prettier
|
| Warning |
Row 57, Column 21: "Strings must use singlequote."
quotes
|
| Warning |
Row 57, Column 113: "Trailing spaces not allowed."
no-trailing-spaces
|
| 57 |
label = {`\n\nPlease proceed to sending the buyer a\nProduct proof that matches the requirements.`}/> |
| Warning |
Row 58, Column 22: "Trailing spaces not allowed."
no-trailing-spaces
|
| 58 |
</DualText> |
| 59 |
</DualText> |
| 60 |
|
| Error |
Row 61, Column 1: "Delete `⏎`"
prettier/prettier
|
| 61 |
|
| 62 |
<TAKE_TO_INPUT_FIELD.ReviewInput |
| Error |
Row 63, Column 30: "Delete `·`"
prettier/prettier
|
| 63 |
containerStyle={{ maxHeight: mvs(66)}} |
| Error |
Row 64, Column 19: "Replace `'Rejected·Reason'` with `"Rejected·Reason"`"
prettier/prettier
|
| Warning |
Row 64, Column 19: "Unexpected usage of singlequote."
jsx-quotes
|
| 64 |
label='Rejected Reason' |
| 65 |
value={payload.reason} |
| Warning |
Row 66, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 66, Column 21: "Delete `·`"
prettier/prettier
|
| 66 |
style={{ textAlign: 'center', fontSize: mvs(13)}} |
| Error |
Row 67, Column 47: "Replace `·...payload,·reason:·text·` with `...payload,·reason:·text`"
prettier/prettier
|
| 67 |
onChangeText={text => setPayload({ ...payload, reason: text })} |
| Error |
Row 68, Column 13: "Delete `⏎`"
prettier/prettier
|
| 68 |
/> |
| 69 |
|
| 70 |
|
| Error |
Row 71, Column 1: "Delete `⏎`"
prettier/prettier
|
| 71 |
|
| 72 |
{/* <SettingCard style={{ paddingTop: mvs(13), paddingBottom: mvs(7), marginTop : mvs(20) }} headingStyle={{ alignSelf: 'center', fontSize: mvs(14) }} heading={'Make sure your notifications are on'}> |
| 73 |
<CustomSwitch style={{ marginTop: 0 }} textStyle={{ color: colors.primary }} label={'Email'} /> |
| 74 |
<CustomSwitch style={{ marginTop: mvs(10) }} textStyle={{ color: colors.primary }} label={'SMS'} /> |
| 75 |
</SettingCard> */} |
| 76 |
<View style={styles.BUTTON_CONTAINER}> |
| Error |
Row 77, Column 1: "Replace `⏎` with `··`"
prettier/prettier
|
| 77 |
|
| 78 |
<Buttons.ButtonPrimary |
| Error |
Row 79, Column 13: "Insert `··`"
prettier/prettier
|
| 79 |
onClick={onSendButton} |
| Error |
Row 80, Column 1: "Insert `··`"
prettier/prettier
|
| 80 |
title={'Send a Product picture'} |
| Error |
Row 81, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 81, Column 20: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| 81 |
style={{ |
| Error |
Row 82, Column 1: "Insert `··`"
prettier/prettier
|
| 82 |
justifyContent: 'center', |
| Error |
Row 83, Column 1: "Insert `··`"
prettier/prettier
|
| 83 |
// marginTop:orderType==='normal'? mvs(15):mvs(129), |
| Error |
Row 84, Column 13: "Insert `··`"
prettier/prettier
|
| 84 |
}} |
| Error |
Row 85, Column 1: "Replace `············textStyle={{·color:·colors.white,·marginLeft:·mvs(13)·` with `··············textStyle={{color:·colors.white,·marginLeft:·mvs(13)`"
prettier/prettier
|
| 85 |
textStyle={{ color: colors.white, marginLeft: mvs(13) }} |
| Error |
Row 86, Column 1: "Replace `············iconStyle={{·height:·mvs(20),·width:·mvs(20)·` with `··············iconStyle={{height:·mvs(20),·width:·mvs(20)`"
prettier/prettier
|
| 86 |
iconStyle={{ height: mvs(20), width: mvs(20) }} |
| Error |
Row 87, Column 1: "Insert `··`"
prettier/prettier
|
| 87 |
/> |
| 88 |
<Buttons.ButtonSecondaryOutline |
| 89 |
onClick={onBackButton} |
| Error |
Row 90, Column 23: "Replace `·...styles.BUTTON,·marginTop:·mvs(10),·` with `...styles.BUTTON,·marginTop:·mvs(10)`"
prettier/prettier
|
| Warning |
Row 90, Column 60: "Unexpected trailing comma."
comma-dangle
|
| 90 |
style={{ ...styles.BUTTON, marginTop: mvs(10), }} |
| Error |
Row 91, Column 33: "Insert `·`"
prettier/prettier
|
| 91 |
textStyle={{color:colors.typeHeader}} |
| 92 |
title={endButtonTitle} |
| 93 |
/> |
| 94 |
</View> |
| 95 |
</View> |
| 96 |
</View> |
| 97 |
</ReactNativeModal> |
| 98 |
); |
| 99 |
}; |
| 100 |
export default ProductRejectedModal; |
| 101 |
|
| 102 |
const styles = StyleSheet.create({ |
| 103 |
CONTAINER: { |
| 104 |
width: ms(332), |
| Error |
Row 105, Column 15: "Insert `·`"
prettier/prettier
|
| 105 |
alignSelf:'center', |
| 106 |
borderRadius: mvs(20), |
| 107 |
}, |
| Error |
Row 108, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(20),` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(20),⏎·`"
prettier/prettier
|
| Warning |
Row 108, Column 118: "Unexpected trailing comma."
comma-dangle
|
| 108 |
REFUND_CONATINER: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', marginTop: mvs(20), }, |
| Error |
Row 109, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| 109 |
TEXT: { textAlign: 'center', marginTop: mvs(30), fontSize: mvs(14), color: colors.primary }, |
| 110 |
HEADING_TXT: { |
| 111 |
fontSize: mvs(19.5), |
| 112 |
color: colors.pink, |
| 113 |
alignSelf: 'center', |
| 114 |
marginBottom: mvs(8.5), |
| 115 |
}, |
| 116 |
SUB_CONTAINER: { |
| 117 |
backgroundColor: colors.white, |
| 118 |
// paddingTop: mvs(20), |
| 119 |
paddingVertical: mvs(20), |
| 120 |
borderRadius: mvs(20), |
| 121 |
paddingHorizontal: mvs(10), |
| Error |
Row 122, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| 122 |
backgroundColor: colors.white, |
| 123 |
}, |
| 124 |
DESTINATION_CONTAINER: { |
| 125 |
alignItems: 'center', |
| 126 |
flexDirection: 'row', |
| 127 |
justifyContent: 'space-between', |
| 128 |
}, |
| 129 |
FLAG_BUTTON: { |
| 130 |
width: mvs(161), |
| 131 |
height: mvs(38), |
| 132 |
flexDirection: 'row-reverse', |
| 133 |
backgroundColor: colors.secondary, |
| 134 |
}, |
| 135 |
SEARCH_MAP: { |
| 136 |
marginTop: mvs(15), |
| 137 |
alignSelf: 'flex-end', |
| 138 |
width: mvs(161), |
| 139 |
height: mvs(38), |
| 140 |
flexDirection: 'row', |
| 141 |
backgroundColor: colors.primary, |
| 142 |
paddingHorizontal: mvs(23), |
| 143 |
}, |
| 144 |
MAP_ICON: { |
| 145 |
height: mvs(18), |
| 146 |
width: mvs(14), |
| 147 |
}, |
| 148 |
NO_DELIVERY_CONTAINER: { |
| 149 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 150 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 151 |
flexDirection: 'row', |
| 152 |
alignItems: 'center', |
| 153 |
paddingVertical: mvs(14), |
| 154 |
marginTop: mvs(15), |
| 155 |
borderColor: colors.filter_divider, |
| 156 |
}, |
| 157 |
NoDelivery: { |
| 158 |
fontSize: mvs(15), |
| 159 |
color: colors.headerTitle, |
| 160 |
}, |
| 161 |
PRICES_CONTAINER: { |
| 162 |
marginTop: mvs(13), |
| 163 |
flexDirection: 'row', |
| 164 |
justifyContent: 'space-between', |
| 165 |
}, |
| 166 |
PRICE_HEADING: { |
| 167 |
fontSize: mvs(15), |
| 168 |
color: colors.primary, |
| 169 |
marginBottom: mvs(10), |
| 170 |
}, |
| 171 |
MAX_MIN_PRICE: { |
| 172 |
width: mvs(161), |
| 173 |
}, |
| 174 |
DIV: { |
| 175 |
marginTop: mvs(14), |
| 176 |
marginBottom: mvs(13), |
| 177 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 178 |
borderColor: colors.filter_divider, |
| 179 |
}, |
| 180 |
DEL_TIME: { |
| 181 |
color: colors.primary, |
| 182 |
fontSize: mvs(15), |
| 183 |
marginBottom: mvs(8), |
| 184 |
}, |
| 185 |
RADIO_CONTAINER: { |
| 186 |
marginBottom: mvs(30), |
| 187 |
}, |
| 188 |
RADIO_LABEL: { |
| 189 |
color: colors.headerTitle, |
| 190 |
fontSize: mvs(15), |
| 191 |
}, |
| 192 |
BUTTON_CONTAINER: { |
| 193 |
// flexDirection: 'row', |
| 194 |
// justifyContent: 'space-between', |
| 195 |
marginTop: mvs(29), |
| 196 |
}, |
| 197 |
BUTTON: { |
| 198 |
width: '100%', |
| 199 |
}, |
| Error |
Row 200, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| 200 |
BACK: { position: 'absolute', left: mvs(23), top: mvs(17) }, |
| 201 |
}); |
| 202 |
|
|
|
|
/src/components/molecules/modals/rating-submited-modal.js
|
45 problems (28 errors, 17 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| Error |
Row 7, Column 9: "Replace `·mvs,·ms·` with `mvs,·ms`"
prettier/prettier
|
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 10, Column 10: "'TAKE_TO_INPUT_FIELD' is defined but never used."
no-unused-vars
|
| Warning |
Row 12, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| Warning |
Row 13, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| Warning |
Row 15, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| Warning |
Row 16, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 17, Column 32: "Replace `·visible,·onClose,onPrimary,` with `visible,·onClose,·onPrimary,·`"
prettier/prettier
|
| Warning |
Row 18, Column 10: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 18, Column 19: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 19, Column 76: "Insert `,`"
prettier/prettier
|
| Warning |
Row 19, Column 76: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 29, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 29, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| Error |
Row 33, Column 20: "Replace `·content={'Sorry·for·the·inconvinience.'}·highlightText={'\nTaketo·Team.'}·style={{·fontSize:·mvs(14.5),·color:·colors.typeHeader,·alignSelf:·'center',·textAlign:·'center',·marginBottom:·mvs(40)·}}` with `⏎············content={'Sorry·for·the·inconvinience.'}⏎············highlightText={'\nTaketo·Team.'}⏎············style={{⏎··············fontSize:·mvs(14.5),⏎··············color:·colors.typeHeader,⏎··············alignSelf:·'center',⏎··············textAlign:·'center',⏎··············marginBottom:·mvs(40),⏎············}}⏎·········`"
prettier/prettier
|
| Warning |
Row 33, Column 102: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 39, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 40, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 41, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 42, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 43, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 44, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 44, Column 20: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 45, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 46, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 47, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 48, Column 1: "Replace `············textStyle={{·color:·colors.white,·marginLeft:·mvs(13)·` with `··············textStyle={{color:·colors.white,·marginLeft:·mvs(13)`"
prettier/prettier
|
| Error |
Row 49, Column 1: "Replace `············iconStyle={{·height:·mvs(20),·width:·mvs(20)·` with `··············iconStyle={{height:·mvs(20),·width:·mvs(20)`"
prettier/prettier
|
| Error |
Row 50, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 52, Column 1: "Delete `···`"
prettier/prettier
|
| Error |
Row 53, Column 23: "Replace `·...styles.BUTTON,·marginTop:·mvs(10),·` with `...styles.BUTTON,·marginTop:·mvs(10)`"
prettier/prettier
|
| Warning |
Row 53, Column 60: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 54, Column 33: "Insert `·`"
prettier/prettier
|
| Error |
Row 67, Column 15: "Insert `·`"
prettier/prettier
|
| Error |
Row 70, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(20),` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(20),⏎·`"
prettier/prettier
|
| Warning |
Row 70, Column 118: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 71, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| Error |
Row 84, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| Error |
Row 162, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| 2 |
import { View, StyleSheet, ImageBackground } from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 4 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce'; |
| 5 |
import colors from '../../../config/colors'; |
| Warning |
Row 6, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| 6 |
import fonts from '../../../config/fonts'; |
| Error |
Row 7, Column 9: "Replace `·mvs,·ms·` with `mvs,·ms`"
prettier/prettier
|
| 7 |
import { mvs, ms } from '../../../config/metrices'; |
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| 8 |
import Medium from '../../../presentation/typography/medium-text'; |
| 9 |
import Regular from '../../../presentation/typography/regular-text'; |
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 10, Column 10: "'TAKE_TO_INPUT_FIELD' is defined but never used."
no-unused-vars
|
| 10 |
import { TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| 11 |
import Buttons from '../../atoms/Button'; |
| Warning |
Row 12, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| 12 |
import CustomRadio from '../../atoms/RadioButton'; |
| Warning |
Row 13, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| 13 |
import CustomSwitch from '../../atoms/Switch'; |
| 14 |
import DualText from '../dual-text/dual-text'; |
| Warning |
Row 15, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| 15 |
import SettingCard from '../setting_card/setting-card'; |
| Warning |
Row 16, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| 16 |
const list = [true, false, false, true]; |
| Error |
Row 17, Column 32: "Replace `·visible,·onClose,onPrimary,` with `visible,·onClose,·onPrimary,·`"
prettier/prettier
|
| 17 |
const RatingSubmittedModal = ({ visible, onClose,onPrimary,onOuline}) => { |
| Warning |
Row 18, Column 10: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 18, Column 19: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| 18 |
const [payload, setPayload] = React.useState({ |
| Error |
Row 19, Column 76: "Insert `,`"
prettier/prettier
|
| Warning |
Row 19, Column 76: "Missing trailing comma."
comma-dangle
|
| 19 |
reason: 'Deliverer not responding to my messages after several trials.' |
| 20 |
}); |
| 21 |
|
| 22 |
return ( |
| 23 |
<ReactNativeModal |
| 24 |
propagateSwipe |
| 25 |
isVisible={visible} |
| 26 |
// avoidKeyboard |
| 27 |
onBackdropPress={() => onClose(f => !f)} |
| 28 |
onBackButtonPress={() => onClose(f => !f)} |
| Warning |
Row 29, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 29, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| 29 |
style={{ margin: 0, padding: 0 }}> |
| 30 |
<View style={styles.CONTAINER}> |
| 31 |
<View style={styles.SUB_CONTAINER}> |
| 32 |
<Regular label={'Rating Submitted'} style={styles.HEADING_TXT} /> |
| Error |
Row 33, Column 20: "Replace `·content={'Sorry·for·the·inconvinience.'}·highlightText={'\nTaketo·Team.'}·style={{·fontSize:·mvs(14.5),·color:·colors.typeHeader,·alignSelf:·'center',·textAlign:·'center',·marginBottom:·mvs(40)·}}` with `⏎············content={'Sorry·for·the·inconvinience.'}⏎············highlightText={'\nTaketo·Team.'}⏎············style={{⏎··············fontSize:·mvs(14.5),⏎··············color:·colors.typeHeader,⏎··············alignSelf:·'center',⏎··············textAlign:·'center',⏎··············marginBottom:·mvs(40),⏎············}}⏎·········`"
prettier/prettier
|
| Warning |
Row 33, Column 102: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| 33 |
<DualText content={'Sorry for the inconvinience.'} highlightText={'\nTaketo Team.'} style={{ fontSize: mvs(14.5), color: colors.typeHeader, alignSelf: 'center', textAlign: 'center', marginBottom: mvs(40) }} /> |
| 34 |
{/* <SettingCard style={{ paddingTop: mvs(13), paddingBottom: mvs(7) }} headingStyle={{ alignSelf: 'center', fontSize: mvs(14) }} heading={'Make sure your notifications are on'}> |
| 35 |
<CustomSwitch style={{ marginTop: 0 }} textStyle={{ color: colors.primary }} label={'Email'} /> |
| 36 |
<CustomSwitch style={{ marginTop: mvs(10) }} textStyle={{ color: colors.primary }} label={'SMS'} /> |
| 37 |
</SettingCard> */} |
| 38 |
<View style={styles.BUTTON_CONTAINER}> |
| Error |
Row 39, Column 11: "Insert `··`"
prettier/prettier
|
| 39 |
<Buttons.ButtonRTL |
| Error |
Row 40, Column 1: "Insert `··`"
prettier/prettier
|
| 40 |
// onClick={() => props.navigation.navigate('createorderestore')} |
| Error |
Row 41, Column 13: "Insert `··`"
prettier/prettier
|
| 41 |
onClick={onPrimary} |
| Error |
Row 42, Column 1: "Insert `··`"
prettier/prettier
|
| 42 |
iconName={'reorder'} |
| Error |
Row 43, Column 1: "Insert `··`"
prettier/prettier
|
| 43 |
title={'Reorder'} |
| Error |
Row 44, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 44, Column 20: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| 44 |
style={{ |
| Error |
Row 45, Column 1: "Insert `··`"
prettier/prettier
|
| 45 |
justifyContent: 'center', |
| Error |
Row 46, Column 1: "Insert `··`"
prettier/prettier
|
| 46 |
// marginTop:orderType==='normal'? mvs(15):mvs(129), |
| Error |
Row 47, Column 13: "Insert `··`"
prettier/prettier
|
| 47 |
}} |
| Error |
Row 48, Column 1: "Replace `············textStyle={{·color:·colors.white,·marginLeft:·mvs(13)·` with `··············textStyle={{color:·colors.white,·marginLeft:·mvs(13)`"
prettier/prettier
|
| 48 |
textStyle={{ color: colors.white, marginLeft: mvs(13) }} |
| Error |
Row 49, Column 1: "Replace `············iconStyle={{·height:·mvs(20),·width:·mvs(20)·` with `··············iconStyle={{height:·mvs(20),·width:·mvs(20)`"
prettier/prettier
|
| 49 |
iconStyle={{ height: mvs(20), width: mvs(20) }} |
| Error |
Row 50, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 50 |
/> |
| 51 |
<Buttons.ButtonSecondaryOutline |
| Error |
Row 52, Column 1: "Delete `···`"
prettier/prettier
|
| 52 |
onClick={onOuline} |
| Error |
Row 53, Column 23: "Replace `·...styles.BUTTON,·marginTop:·mvs(10),·` with `...styles.BUTTON,·marginTop:·mvs(10)`"
prettier/prettier
|
| Warning |
Row 53, Column 60: "Unexpected trailing comma."
comma-dangle
|
| 53 |
style={{ ...styles.BUTTON, marginTop: mvs(10), }} |
| Error |
Row 54, Column 33: "Insert `·`"
prettier/prettier
|
| 54 |
textStyle={{color:colors.typeHeader}} |
| 55 |
title={'Back to Orders'} |
| 56 |
/> |
| 57 |
</View> |
| 58 |
</View> |
| 59 |
</View> |
| 60 |
</ReactNativeModal> |
| 61 |
); |
| 62 |
}; |
| 63 |
export default RatingSubmittedModal; |
| 64 |
const styles = StyleSheet.create({ |
| 65 |
CONTAINER: { |
| 66 |
width: ms(332), |
| Error |
Row 67, Column 15: "Insert `·`"
prettier/prettier
|
| 67 |
alignSelf:'center', |
| 68 |
borderRadius: mvs(20), |
| 69 |
}, |
| Error |
Row 70, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(20),` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(20),⏎·`"
prettier/prettier
|
| Warning |
Row 70, Column 118: "Unexpected trailing comma."
comma-dangle
|
| 70 |
REFUND_CONATINER: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', marginTop: mvs(20), }, |
| Error |
Row 71, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| 71 |
TEXT: { textAlign: 'center', marginTop: mvs(30), fontSize: mvs(14), color: colors.primary }, |
| 72 |
HEADING_TXT: { |
| 73 |
fontSize: mvs(19.5), |
| 74 |
color: colors.primary, |
| 75 |
alignSelf: 'center', |
| 76 |
marginBottom: mvs(8.5), |
| 77 |
}, |
| 78 |
SUB_CONTAINER: { |
| 79 |
backgroundColor: colors.white, |
| 80 |
// paddingTop: mvs(20), |
| 81 |
paddingVertical: mvs(20), |
| 82 |
borderRadius: mvs(20), |
| 83 |
paddingHorizontal: mvs(10), |
| Error |
Row 84, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| 84 |
backgroundColor: colors.white, |
| 85 |
}, |
| 86 |
DESTINATION_CONTAINER: { |
| 87 |
alignItems: 'center', |
| 88 |
flexDirection: 'row', |
| 89 |
justifyContent: 'space-between', |
| 90 |
}, |
| 91 |
FLAG_BUTTON: { |
| 92 |
width: mvs(161), |
| 93 |
height: mvs(38), |
| 94 |
flexDirection: 'row-reverse', |
| 95 |
backgroundColor: colors.secondary, |
| 96 |
}, |
| 97 |
SEARCH_MAP: { |
| 98 |
marginTop: mvs(15), |
| 99 |
alignSelf: 'flex-end', |
| 100 |
width: mvs(161), |
| 101 |
height: mvs(38), |
| 102 |
flexDirection: 'row', |
| 103 |
backgroundColor: colors.primary, |
| 104 |
paddingHorizontal: mvs(23), |
| 105 |
}, |
| 106 |
MAP_ICON: { |
| 107 |
height: mvs(18), |
| 108 |
width: mvs(14), |
| 109 |
}, |
| 110 |
NO_DELIVERY_CONTAINER: { |
| 111 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 112 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 113 |
flexDirection: 'row', |
| 114 |
alignItems: 'center', |
| 115 |
paddingVertical: mvs(14), |
| 116 |
marginTop: mvs(15), |
| 117 |
borderColor: colors.filter_divider, |
| 118 |
}, |
| 119 |
NoDelivery: { |
| 120 |
fontSize: mvs(15), |
| 121 |
color: colors.headerTitle, |
| 122 |
}, |
| 123 |
PRICES_CONTAINER: { |
| 124 |
marginTop: mvs(13), |
| 125 |
flexDirection: 'row', |
| 126 |
justifyContent: 'space-between', |
| 127 |
}, |
| 128 |
PRICE_HEADING: { |
| 129 |
fontSize: mvs(15), |
| 130 |
color: colors.primary, |
| 131 |
marginBottom: mvs(10), |
| 132 |
}, |
| 133 |
MAX_MIN_PRICE: { |
| 134 |
width: mvs(161), |
| 135 |
}, |
| 136 |
DIV: { |
| 137 |
marginTop: mvs(14), |
| 138 |
marginBottom: mvs(13), |
| 139 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 140 |
borderColor: colors.filter_divider, |
| 141 |
}, |
| 142 |
DEL_TIME: { |
| 143 |
color: colors.primary, |
| 144 |
fontSize: mvs(15), |
| 145 |
marginBottom: mvs(8), |
| 146 |
}, |
| 147 |
RADIO_CONTAINER: { |
| 148 |
marginBottom: mvs(30), |
| 149 |
}, |
| 150 |
RADIO_LABEL: { |
| 151 |
color: colors.headerTitle, |
| 152 |
fontSize: mvs(15), |
| 153 |
}, |
| 154 |
BUTTON_CONTAINER: { |
| 155 |
// flexDirection: 'row', |
| 156 |
// justifyContent: 'space-between', |
| 157 |
marginTop: mvs(29), |
| 158 |
}, |
| 159 |
BUTTON: { |
| 160 |
width: '100%', |
| 161 |
}, |
| Error |
Row 162, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| 162 |
BACK: { position: 'absolute', left: mvs(23), top: mvs(17) }, |
| 163 |
}); |
| 164 |
|
|
|
|
/src/components/molecules/modals/receipt-disputed-modal.js
|
118 problems (88 errors, 30 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·TouchableOpacity,·View·` with `StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| Error |
Row 5, Column 9: "Replace `·ms,·mvs·` with `ms,·mvs`"
prettier/prettier
|
| Error |
Row 7, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 9, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| Warning |
Row 11, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| Error |
Row 12, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 12, Column 68: "Missing semicolon."
semi
|
| Warning |
Row 13, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 14, Column 32: "Replace `·visible,·onClose,·onSubmit,·onAttach,·userInfo·=·false,·name·=·"Ralph·Wakim",·dispute·=·false,·attach·=·true·,·title·=·'Dispute',·type·=·"Receipt",reason` with `⏎··visible,⏎··onClose,⏎··onSubmit,⏎··onAttach,⏎··userInfo·=·false,⏎··name·=·'Ralph·Wakim',⏎··dispute·=·false,⏎··attach·=·true,⏎··title·=·'Dispute',⏎··type·=·'Receipt',⏎··reason,⏎`"
prettier/prettier
|
| Warning |
Row 14, Column 96: "Strings must use singlequote."
quotes
|
| Warning |
Row 14, Column 170: "Strings must use singlequote."
quotes
|
| Error |
Row 16, Column 12: "Replace `·'The·receipt·sent·does·not·match·the·product·price.·I·would·like·to·cancel·this·order·and·raise·a·dispute.'` with `⏎······'The·receipt·sent·does·not·match·the·product·price.·I·would·like·to·cancel·this·order·and·raise·a·dispute.',`"
prettier/prettier
|
| Warning |
Row 16, Column 120: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 18, Column 21: "["file"] is better written in dot notation."
dot-notation
|
| Error |
Row 18, Column 28: "Insert `;`"
prettier/prettier
|
| Warning |
Row 18, Column 28: "Missing semicolon."
semi
|
| Warning |
Row 26, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 26, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| Error |
Row 31, Column 24: "Insert `(⏎············`"
prettier/prettier
|
| Error |
Row 32, Column 11: "Replace `content·=·` with `····content=`"
prettier/prettier
|
| Error |
Row 33, Column 11: "Replace `style·=·` with `····style=`"
prettier/prettier
|
| Warning |
Row 33, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 34, Column 1: "Replace `···········//·marginTop·:·mvs(10),·⏎············textAlign·` with `················//·marginTop·:·mvs(10),⏎················textAlign`"
prettier/prettier
|
| Warning |
Row 34, Column 35: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 36, Column 1: "Replace `············fontSize·` with `················fontSize`"
prettier/prettier
|
| Error |
Row 37, Column 1: "Replace `············color·` with `················color`"
prettier/prettier
|
| Error |
Row 38, Column 13: "Replace `marginBottom·:·mvs(23)` with `····marginBottom:·mvs(23),`"
prettier/prettier
|
| Warning |
Row 38, Column 35: "Missing trailing comma."
comma-dangle
|
| Error |
Row 39, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 40, Column 1: "Replace `··········highlightText·=·` with `··············highlightText=`"
prettier/prettier
|
| Error |
Row 41, Column 1: "Replace `··········highlightTextStyle·=·` with `··············highlightTextStyle=`"
prettier/prettier
|
| Error |
Row 42, Column 1: "Replace `············fontSize·` with `················fontSize`"
prettier/prettier
|
| Error |
Row 43, Column 1: "Replace `············color·:·colors.primary` with `················color:·colors.primary,`"
prettier/prettier
|
| Warning |
Row 43, Column 35: "Missing trailing comma."
comma-dangle
|
| Error |
Row 44, Column 11: "Replace `}}⏎··········>⏎···········` with `····}}>⏎··············`"
prettier/prettier
|
| Error |
Row 47, Column 12: "Replace `label·=·` with `·····label=`"
prettier/prettier
|
| Error |
Row 48, Column 12: "Replace `style·=·` with `·····style=`"
prettier/prettier
|
| Error |
Row 49, Column 1: "Replace `·············fontSize·` with `··················fontSize`"
prettier/prettier
|
| Error |
Row 50, Column 1: "Replace `·············color·:·colors.typeHeader` with `··················color:·colors.typeHeader,`"
prettier/prettier
|
| Warning |
Row 50, Column 39: "Missing trailing comma."
comma-dangle
|
| Error |
Row 51, Column 1: "Replace `···········` with `················`"
prettier/prettier
|
| Error |
Row 52, Column 1: "Replace `···········/>·⏎··········` with `··············/>⏎············⏎··········)`"
prettier/prettier
|
| Warning |
Row 52, Column 14: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 56, Column 30: "Delete `·`"
prettier/prettier
|
| Error |
Row 57, Column 19: "Replace `'Dispute·Reason'` with `"Dispute·Reason"`"
prettier/prettier
|
| Warning |
Row 57, Column 19: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 60, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 60, Column 21: "Delete `·`"
prettier/prettier
|
| Error |
Row 61, Column 47: "Replace `·...payload,·reason:·text·` with `...payload,·reason:·text`"
prettier/prettier
|
| Error |
Row 63, Column 25: "Replace `` with `(⏎············⏎··········)`"
prettier/prettier
|
| Warning |
Row 63, Column 80: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 64, Column 16: "Replace `·style·=·{{paddingHorizontal·:·mvs(6),·marginTop·:userInfo?·mvs(30)·:·0` with `⏎············style={{⏎··············paddingHorizontal:·mvs(6),⏎··············marginTop:·userInfo·?·mvs(30)·:·0,⏎············`"
prettier/prettier
|
| Warning |
Row 64, Column 26: "Inline style: { marginTop: 'userInfo? mvs(30) : 0' }"
react-native/no-inline-styles
|
| Warning |
Row 64, Column 74: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 65, Column 1: "Replace `··········prettier/prettier
|
| Warning |
Row 65, Column 111: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 72, Column 21: "Insert `·(`"
prettier/prettier
|
| Error |
Row 73, Column 1: "Replace `··········<>` with `············<>⏎··············`"
prettier/prettier
|
| Error |
Row 74, Column 11: "Replace `label·=·` with `······label=`"
prettier/prettier
|
| Error |
Row 75, Column 11: "Replace `style·=·` with `······style=`"
prettier/prettier
|
| Warning |
Row 75, Column 20: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 76, Column 1: "Replace `············color·` with `··················color`"
prettier/prettier
|
| Error |
Row 77, Column 1: "Replace `············fontSize·` with `··················fontSize`"
prettier/prettier
|
| Error |
Row 78, Column 1: "Replace `············alignSelf·` with `··················alignSelf`"
prettier/prettier
|
| Error |
Row 79, Column 1: "Replace `············marginTop·:·mvs(17)` with `··················marginTop:·mvs(17),`"
prettier/prettier
|
| Warning |
Row 79, Column 32: "Missing trailing comma."
comma-dangle
|
| Error |
Row 80, Column 1: "Replace `··········` with `················`"
prettier/prettier
|
| Error |
Row 81, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 82, Column 1: "Replace `··········` with `··············`"
prettier/prettier
|
| Error |
Row 83, Column 1: "Replace `··········onPress·=·` with `················onPress=`"
prettier/prettier
|
| Error |
Row 84, Column 1: "Replace `··········style·=·` with `················style=`"
prettier/prettier
|
| Warning |
Row 84, Column 20: "Inline style: {
width: '100%',
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'center'
}"
react-native/no-inline-styles
|
| Error |
Row 85, Column 1: "Replace `············height·` with `··················height`"
prettier/prettier
|
| Error |
Row 86, Column 13: "Replace `width·` with `······width`"
prettier/prettier
|
| Error |
Row 87, Column 13: "Replace `borderWidth·` with `······borderWidth`"
prettier/prettier
|
| Error |
Row 88, Column 1: "Replace `············borderRadius·` with `··················borderRadius`"
prettier/prettier
|
| Error |
Row 89, Column 1: "Replace `············borderColor·` with `··················borderColor`"
prettier/prettier
|
| Error |
Row 90, Column 1: "Replace `············marginTop·` with `··················marginTop`"
prettier/prettier
|
| Error |
Row 91, Column 1: "Replace `············flexDirection·` with `··················flexDirection`"
prettier/prettier
|
| Error |
Row 92, Column 1: "Replace `············alignItems·` with `··················alignItems`"
prettier/prettier
|
| Error |
Row 93, Column 1: "Replace `············justifyContent·` with `··················justifyContent`"
prettier/prettier
|
| Error |
Row 94, Column 11: "Replace `}}⏎··········>⏎··········⏎················prettier/prettier
|
| Error |
Row 97, Column 1: "Replace `··········prettier/prettier
|
| Warning |
Row 97, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 98, Column 1: "Replace `··········label·=·` with `··················label=`"
prettier/prettier
|
| Error |
Row 99, Column 1: "Replace `··········style·=·` with `··················style=`"
prettier/prettier
|
| Error |
Row 100, Column 1: "Replace `············color·` with `····················color`"
prettier/prettier
|
| Error |
Row 101, Column 1: "Replace `············marginLeft·:·mvs(13)` with `····················marginLeft:·mvs(13),`"
prettier/prettier
|
| Warning |
Row 101, Column 33: "Missing trailing comma."
comma-dangle
|
| Error |
Row 102, Column 1: "Replace `··········` with `··················`"
prettier/prettier
|
| Error |
Row 103, Column 1: "Replace `··········` with `················`"
prettier/prettier
|
| Error |
Row 104, Column 1: "Replace `··········>` with `··············⏎············>⏎··········)`"
prettier/prettier
|
| Error |
Row 106, Column 21: "Insert `·(`"
prettier/prettier
|
| Error |
Row 107, Column 1: "Replace `··········<>` with `············<>⏎··············`"
prettier/prettier
|
| Error |
Row 108, Column 1: "Replace `··········title·=·{"Submit"` with `················title={'Submit'`"
prettier/prettier
|
| Warning |
Row 108, Column 20: "Strings must use singlequote."
quotes
|
| Error |
Row 109, Column 11: "Replace `onClick·=·` with `······onClick=`"
prettier/prettier
|
| Error |
Row 110, Column 11: "Replace `style·=·{{marginTop·` with `······style={{marginTop`"
prettier/prettier
|
| Error |
Row 111, Column 11: "Insert `····`"
prettier/prettier
|
| Error |
Row 113, Column 1: "Replace `··········` with `··············`"
prettier/prettier
|
| Error |
Row 114, Column 11: "Replace `title·=·` with `······title=`"
prettier/prettier
|
| Error |
Row 115, Column 1: "Replace `··········onClick·=·` with `················onClick=`"
prettier/prettier
|
| Error |
Row 116, Column 1: "Replace `··········style·=·{{marginTop·` with `················style={{marginTop`"
prettier/prettier
|
| Error |
Row 117, Column 1: "Replace `··········/>>` with `··············/>⏎············>⏎··········)`"
prettier/prettier
|
| Error |
Row 119, Column 24: "Insert `(⏎············`"
prettier/prettier
|
| Error |
Row 120, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 121, Column 15: "Replace `onClick={()·=>·{·` with `··onClick={()·=>·{`"
prettier/prettier
|
| Error |
Row 122, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 123, Column 1: "Replace `··············title={userInfo` with `················title={userInfo·`"
prettier/prettier
|
| Warning |
Row 123, Column 30: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 124, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 125, Column 1: "Replace `··········` with `············⏎··········)`"
prettier/prettier
|
| Error |
Row 146, Column 14: "Replace `·:·'center'` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 146, Column 25: "Missing trailing comma."
comma-dangle
|
| Error |
Row 149, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(37),·marginBottom:·mvs(39)` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(37),⏎····marginBottom:·mvs(39),⏎·`"
prettier/prettier
|
| Error |
Row 150, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| Error |
Row 163, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| Error |
Row 241, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·TouchableOpacity,·View·` with `StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| 2 |
import { StyleSheet, TouchableOpacity, View } from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| 4 |
import colors from '../../../config/colors'; |
| Error |
Row 5, Column 9: "Replace `·ms,·mvs·` with `ms,·mvs`"
prettier/prettier
|
| 5 |
import { ms, mvs } from '../../../config/metrices'; |
| 6 |
import Regular from '../../../presentation/typography/regular-text'; |
| Error |
Row 7, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 7 |
import { TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| 8 |
import Buttons from '../../atoms/Button'; |
| Warning |
Row 9, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| 9 |
import CustomSwitch from '../../atoms/Switch'; |
| 10 |
import DualText from '../dual-text/dual-text'; |
| Warning |
Row 11, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| 11 |
import SettingCard from '../setting_card/setting-card'; |
| Error |
Row 12, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 12, Column 68: "Missing semicolon."
semi
|
| 12 |
import * as SVGS from '../../../../resource/assets/order-car-icons' |
| Warning |
Row 13, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| 13 |
const list = [true, false, false, true]; |
| Error |
Row 14, Column 32: "Replace `·visible,·onClose,·onSubmit,·onAttach,·userInfo·=·false,·name·=·"Ralph·Wakim",·dispute·=·false,·attach·=·true·,·title·=·'Dispute',·type·=·"Receipt",reason` with `⏎··visible,⏎··onClose,⏎··onSubmit,⏎··onAttach,⏎··userInfo·=·false,⏎··name·=·'Ralph·Wakim',⏎··dispute·=·false,⏎··attach·=·true,⏎··title·=·'Dispute',⏎··type·=·'Receipt',⏎··reason,⏎`"
prettier/prettier
|
| Warning |
Row 14, Column 96: "Strings must use singlequote."
quotes
|
| Warning |
Row 14, Column 170: "Strings must use singlequote."
quotes
|
| 14 |
const ReceiptDisputedModal = ({ visible, onClose, onSubmit, onAttach, userInfo = false, name = "Ralph Wakim", dispute = false, attach = true , title = 'Dispute', type = "Receipt",reason}) => { |
| 15 |
const [payload, setPayload] = React.useState({ |
| Error |
Row 16, Column 12: "Replace `·'The·receipt·sent·does·not·match·the·product·price.·I·would·like·to·cancel·this·order·and·raise·a·dispute.'` with `⏎······'The·receipt·sent·does·not·match·the·product·price.·I·would·like·to·cancel·this·order·and·raise·a·dispute.',`"
prettier/prettier
|
| Warning |
Row 16, Column 120: "Missing trailing comma."
comma-dangle
|
| 16 |
reason: 'The receipt sent does not match the product price. I would like to cancel this order and raise a dispute.' |
| 17 |
}); |
| Warning |
Row 18, Column 21: "["file"] is better written in dot notation."
dot-notation
|
| Error |
Row 18, Column 28: "Insert `;`"
prettier/prettier
|
| Warning |
Row 18, Column 28: "Missing semicolon."
semi
|
| 18 |
const File = SVGS['file'] |
| 19 |
return ( |
| 20 |
<ReactNativeModal |
| 21 |
propagateSwipe |
| 22 |
isVisible={visible} |
| 23 |
// avoidKeyboard |
| 24 |
onBackdropPress={() => onClose(f => !f)} |
| 25 |
onBackButtonPress={() => onClose(f => !f)} |
| Warning |
Row 26, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 26, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| 26 |
style={{ margin: 0, padding: 0 }}> |
| 27 |
<View style={styles.CONTAINER}> |
| 28 |
<View style={styles.SUB_CONTAINER}> |
| 29 |
<Regular label={title} style={styles.HEADING_TXT} /> |
| 30 |
|
| Error |
Row 31, Column 24: "Insert `(⏎············`"
prettier/prettier
|
| 31 |
{userInfo && <DualText |
| Error |
Row 32, Column 11: "Replace `content·=·` with `····content=`"
prettier/prettier
|
| 32 |
content = "Unfortunately " |
| Error |
Row 33, Column 11: "Replace `style·=·` with `····style=`"
prettier/prettier
|
| Warning |
Row 33, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 33 |
style = {{ |
| Error |
Row 34, Column 1: "Replace `···········//·marginTop·:·mvs(10),·⏎············textAlign·` with `················//·marginTop·:·mvs(10),⏎················textAlign`"
prettier/prettier
|
| Warning |
Row 34, Column 35: "Trailing spaces not allowed."
no-trailing-spaces
|
| 34 |
// marginTop : mvs(10), |
| 35 |
textAlign : 'center', |
| Error |
Row 36, Column 1: "Replace `············fontSize·` with `················fontSize`"
prettier/prettier
|
| 36 |
fontSize : mvs(15), |
| Error |
Row 37, Column 1: "Replace `············color·` with `················color`"
prettier/prettier
|
| 37 |
color : colors.typeHeader, |
| Error |
Row 38, Column 13: "Replace `marginBottom·:·mvs(23)` with `····marginBottom:·mvs(23),`"
prettier/prettier
|
| Warning |
Row 38, Column 35: "Missing trailing comma."
comma-dangle
|
| 38 |
marginBottom : mvs(23) |
| Error |
Row 39, Column 1: "Insert `····`"
prettier/prettier
|
| 39 |
}} |
| Error |
Row 40, Column 1: "Replace `··········highlightText·=·` with `··············highlightText=`"
prettier/prettier
|
| 40 |
highlightText = {name} |
| Error |
Row 41, Column 1: "Replace `··········highlightTextStyle·=·` with `··············highlightTextStyle=`"
prettier/prettier
|
| 41 |
highlightTextStyle = {{ |
| Error |
Row 42, Column 1: "Replace `············fontSize·` with `················fontSize`"
prettier/prettier
|
| 42 |
fontSize : mvs(15), |
| Error |
Row 43, Column 1: "Replace `············color·:·colors.primary` with `················color:·colors.primary,`"
prettier/prettier
|
| Warning |
Row 43, Column 35: "Missing trailing comma."
comma-dangle
|
| 43 |
color : colors.primary |
| Error |
Row 44, Column 11: "Replace `}}⏎··········>⏎···········` with `····}}>⏎··············`"
prettier/prettier
|
| 44 |
}} |
| 45 |
> |
| 46 |
<Regular |
| Error |
Row 47, Column 12: "Replace `label·=·` with `·····label=`"
prettier/prettier
|
| 47 |
label = {`,\nthe buyer has Disputed the ${type}.`} |
| Error |
Row 48, Column 12: "Replace `style·=·` with `·····style=`"
prettier/prettier
|
| 48 |
style = {{ |
| Error |
Row 49, Column 1: "Replace `·············fontSize·` with `··················fontSize`"
prettier/prettier
|
| 49 |
fontSize : mvs(15), |
| Error |
Row 50, Column 1: "Replace `·············color·:·colors.typeHeader` with `··················color:·colors.typeHeader,`"
prettier/prettier
|
| Warning |
Row 50, Column 39: "Missing trailing comma."
comma-dangle
|
| 50 |
color : colors.typeHeader |
| Error |
Row 51, Column 1: "Replace `···········` with `················`"
prettier/prettier
|
| 51 |
}} |
| Error |
Row 52, Column 1: "Replace `···········/>·⏎··········` with `··············/>⏎············⏎··········)`"
prettier/prettier
|
| Warning |
Row 52, Column 14: "Trailing spaces not allowed."
no-trailing-spaces
|
| 52 |
/> |
| 53 |
</DualText>} |
| 54 |
|
| 55 |
<TAKE_TO_INPUT_FIELD.ReviewInput |
| Error |
Row 56, Column 30: "Delete `·`"
prettier/prettier
|
| 56 |
containerStyle={{ maxHeight: mvs(81)}} |
| Error |
Row 57, Column 19: "Replace `'Dispute·Reason'` with `"Dispute·Reason"`"
prettier/prettier
|
| Warning |
Row 57, Column 19: "Unexpected usage of singlequote."
jsx-quotes
|
| 57 |
label='Dispute Reason' |
| 58 |
value={reason} |
| 59 |
editable={false} |
| Warning |
Row 60, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 60, Column 21: "Delete `·`"
prettier/prettier
|
| 60 |
style={{ textAlign: 'center', fontSize: mvs(13)}} |
| Error |
Row 61, Column 47: "Replace `·...payload,·reason:·text·` with `...payload,·reason:·text`"
prettier/prettier
|
| 61 |
onChangeText={text => setPayload({ ...payload, reason: text })} |
| 62 |
/> |
| Error |
Row 63, Column 25: "Replace `` with `(⏎············⏎··········)`"
prettier/prettier
|
| Warning |
Row 63, Column 80: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| 63 |
{!userInfo && <Regular label={'Thank you for contacting us.'} style={{alignSelf:'center',color:colors.primary,marginTop:mvs(29)}}/>} |
| Error |
Row 64, Column 16: "Replace `·style·=·{{paddingHorizontal·:·mvs(6),·marginTop·:userInfo?·mvs(30)·:·0` with `⏎············style={{⏎··············paddingHorizontal:·mvs(6),⏎··············marginTop:·userInfo·?·mvs(30)·:·0,⏎············`"
prettier/prettier
|
| Warning |
Row 64, Column 26: "Inline style: { marginTop: 'userInfo? mvs(30) : 0' }"
react-native/no-inline-styles
|
| Warning |
Row 64, Column 74: "Operator '?' must be spaced."
space-infix-ops
|
| 64 |
<View style = {{paddingHorizontal : mvs(6), marginTop :userInfo? mvs(30) : 0}}> |
| Error |
Row 65, Column 1: "Replace `··········prettier/prettier
|
| Warning |
Row 65, Column 111: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| 65 |
<Regular label={'We will investigate your dispute and get back to you as soon as possible.'} style={{ fontSize: mvs(14.5), color: colors.typeHeader, alignSelf: 'center',textAlign:'center' }} /> |
| 66 |
</View> |
| 67 |
{/* <SettingCard style={{ paddingTop: mvs(13), paddingBottom: mvs(7), marginTop: mvs(39) }} headingStyle={{ alignSelf: 'center', fontSize: mvs(14) }} heading={'Make sure your notifications are on'}> |
| 68 |
<CustomSwitch style={{ marginTop: 0 }} textStyle={{ color: colors.primary }} label={'Email'} /> |
| 69 |
<CustomSwitch style={{ marginTop: mvs(10) }} textStyle={{ color: colors.primary }} label={'SMS'} /> |
| 70 |
</SettingCard> */} |
| 71 |
|
| Error |
Row 72, Column 21: "Insert `·(`"
prettier/prettier
|
| 72 |
{attach && |
| Error |
Row 73, Column 1: "Replace `··········<>` with `············<>⏎··············`"
prettier/prettier
|
| 73 |
<><Regular |
| Error |
Row 74, Column 11: "Replace `label·=·` with `······label=`"
prettier/prettier
|
| 74 |
label = "Add attachment (optional)" |
| Error |
Row 75, Column 11: "Replace `style·=·` with `······style=`"
prettier/prettier
|
| Warning |
Row 75, Column 20: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| 75 |
style = {{ |
| Error |
Row 76, Column 1: "Replace `············color·` with `··················color`"
prettier/prettier
|
| 76 |
color : colors.lightgrey2, |
| Error |
Row 77, Column 1: "Replace `············fontSize·` with `··················fontSize`"
prettier/prettier
|
| 77 |
fontSize : mvs(13), |
| Error |
Row 78, Column 1: "Replace `············alignSelf·` with `··················alignSelf`"
prettier/prettier
|
| 78 |
alignSelf : 'center', |
| Error |
Row 79, Column 1: "Replace `············marginTop·:·mvs(17)` with `··················marginTop:·mvs(17),`"
prettier/prettier
|
| Warning |
Row 79, Column 32: "Missing trailing comma."
comma-dangle
|
| 79 |
marginTop : mvs(17) |
| Error |
Row 80, Column 1: "Replace `··········` with `················`"
prettier/prettier
|
| 80 |
}} |
| Error |
Row 81, Column 1: "Insert `····`"
prettier/prettier
|
| 81 |
/> |
| Error |
Row 82, Column 1: "Replace `··········` with `··············`"
prettier/prettier
|
| 82 |
<TouchableOpacity |
| Error |
Row 83, Column 1: "Replace `··········onPress·=·` with `················onPress=`"
prettier/prettier
|
| 83 |
onPress = {onAttach} |
| Error |
Row 84, Column 1: "Replace `··········style·=·` with `················style=`"
prettier/prettier
|
| Warning |
Row 84, Column 20: "Inline style: {
width: '100%',
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'center'
}"
react-native/no-inline-styles
|
| 84 |
style = {{ |
| Error |
Row 85, Column 1: "Replace `············height·` with `··················height`"
prettier/prettier
|
| 85 |
height : mvs(52), |
| Error |
Row 86, Column 13: "Replace `width·` with `······width`"
prettier/prettier
|
| 86 |
width : '100%', |
| Error |
Row 87, Column 13: "Replace `borderWidth·` with `······borderWidth`"
prettier/prettier
|
| 87 |
borderWidth : mvs(0.5), |
| Error |
Row 88, Column 1: "Replace `············borderRadius·` with `··················borderRadius`"
prettier/prettier
|
| 88 |
borderRadius : mvs(10), |
| Error |
Row 89, Column 1: "Replace `············borderColor·` with `··················borderColor`"
prettier/prettier
|
| 89 |
borderColor : colors.primary, |
| Error |
Row 90, Column 1: "Replace `············marginTop·` with `··················marginTop`"
prettier/prettier
|
| 90 |
marginTop : mvs(15), |
| Error |
Row 91, Column 1: "Replace `············flexDirection·` with `··················flexDirection`"
prettier/prettier
|
| 91 |
flexDirection : 'row', |
| Error |
Row 92, Column 1: "Replace `············alignItems·` with `··················alignItems`"
prettier/prettier
|
| 92 |
alignItems : 'center', |
| Error |
Row 93, Column 1: "Replace `············justifyContent·` with `··················justifyContent`"
prettier/prettier
|
| 93 |
justifyContent : 'center', |
| Error |
Row 94, Column 11: "Replace `}}⏎··········>⏎··········⏎················prettier/prettier
|
| 94 |
}} |
| 95 |
> |
| 96 |
<File/> |
| Error |
Row 97, Column 1: "Replace `··········prettier/prettier
|
| Warning |
Row 97, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| 97 |
<Regular |
| Error |
Row 98, Column 1: "Replace `··········label·=·` with `··················label=`"
prettier/prettier
|
| 98 |
label = "Attach" |
| Error |
Row 99, Column 1: "Replace `··········style·=·` with `··················style=`"
prettier/prettier
|
| 99 |
style = {{ |
| Error |
Row 100, Column 1: "Replace `············color·` with `····················color`"
prettier/prettier
|
| 100 |
color : colors.typeHeader, |
| Error |
Row 101, Column 1: "Replace `············marginLeft·:·mvs(13)` with `····················marginLeft:·mvs(13),`"
prettier/prettier
|
| Warning |
Row 101, Column 33: "Missing trailing comma."
comma-dangle
|
| 101 |
marginLeft : mvs(13) |
| Error |
Row 102, Column 1: "Replace `··········` with `··················`"
prettier/prettier
|
| 102 |
}} |
| Error |
Row 103, Column 1: "Replace `··········` with `················`"
prettier/prettier
|
| 103 |
/> |
| Error |
Row 104, Column 1: "Replace `··········>` with `··············⏎············>⏎··········)`"
prettier/prettier
|
| 104 |
</TouchableOpacity></>} |
| 105 |
|
| Error |
Row 106, Column 21: "Insert `·(`"
prettier/prettier
|
| 106 |
{attach && |
| Error |
Row 107, Column 1: "Replace `··········<>` with `············<>⏎··············`"
prettier/prettier
|
| 107 |
<><Buttons.ButtonPrimary |
| Error |
Row 108, Column 1: "Replace `··········title·=·{"Submit"` with `················title={'Submit'`"
prettier/prettier
|
| Warning |
Row 108, Column 20: "Strings must use singlequote."
quotes
|
| 108 |
title = {"Submit"} |
| Error |
Row 109, Column 11: "Replace `onClick·=·` with `······onClick=`"
prettier/prettier
|
| 109 |
onClick = {onSubmit} |
| Error |
Row 110, Column 11: "Replace `style·=·{{marginTop·` with `······style={{marginTop`"
prettier/prettier
|
| 110 |
style = {{marginTop : mvs(30)}} |
| Error |
Row 111, Column 11: "Insert `····`"
prettier/prettier
|
| 111 |
/> |
| 112 |
|
| Error |
Row 113, Column 1: "Replace `··········` with `··············`"
prettier/prettier
|
| 113 |
<Buttons.ButtonSecondaryOutline |
| Error |
Row 114, Column 11: "Replace `title·=·` with `······title=`"
prettier/prettier
|
| 114 |
title = "Cancel" |
| Error |
Row 115, Column 1: "Replace `··········onClick·=·` with `················onClick=`"
prettier/prettier
|
| 115 |
onClick = {onClose} |
| Error |
Row 116, Column 1: "Replace `··········style·=·{{marginTop·` with `················style={{marginTop`"
prettier/prettier
|
| 116 |
style = {{marginTop : mvs(10)}} |
| Error |
Row 117, Column 1: "Replace `··········/>>` with `··············/>⏎············>⏎··········)`"
prettier/prettier
|
| 117 |
/></>} |
| 118 |
|
| Error |
Row 119, Column 24: "Insert `(⏎············`"
prettier/prettier
|
| 119 |
{!dispute && <View style={styles.BUTTON_CONTAINER}> |
| Error |
Row 120, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 120 |
<Buttons.ButtonPrimary |
| Error |
Row 121, Column 15: "Replace `onClick={()·=>·{·` with `··onClick={()·=>·{`"
prettier/prettier
|
| 121 |
onClick={() => { }} |
| Error |
Row 122, Column 15: "Insert `··`"
prettier/prettier
|
| 122 |
style={styles.BUTTON} |
| Error |
Row 123, Column 1: "Replace `··············title={userInfo` with `················title={userInfo·`"
prettier/prettier
|
| Warning |
Row 123, Column 30: "Operator '?' must be spaced."
space-infix-ops
|
| 123 |
title={userInfo? 'Back to Delivery History' : 'Back to Orders'} |
| Error |
Row 124, Column 13: "Insert `··`"
prettier/prettier
|
| 124 |
/> |
| Error |
Row 125, Column 1: "Replace `··········` with `············⏎··········)`"
prettier/prettier
|
| 125 |
</View>} |
| 126 |
|
| 127 |
{/* {dispute && <View style={styles.BUTTON_CONTAINER}> |
| 128 |
<Buttons.ButtonSecondaryOutline |
| 129 |
onClick={onClose} |
| 130 |
style={styles.BUTTON} |
| 131 |
title={'Back'} |
| 132 |
/> |
| 133 |
</View>} */} |
| 134 |
</View> |
| 135 |
</View> |
| 136 |
</ReactNativeModal> |
| 137 |
); |
| 138 |
}; |
| 139 |
export default ReceiptDisputedModal; |
| 140 |
const styles = StyleSheet.create({ |
| 141 |
CONTAINER: { |
| 142 |
// position: 'absolute', |
| 143 |
// bottom: 0, |
| 144 |
width: ms(332), |
| 145 |
borderRadius: mvs(20), |
| Error |
Row 146, Column 14: "Replace `·:·'center'` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 146, Column 25: "Missing trailing comma."
comma-dangle
|
| 146 |
alignSelf : 'center' |
| 147 |
//paddingHorizontal: mvs(22), |
| 148 |
}, |
| Error |
Row 149, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(37),·marginBottom:·mvs(39)` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(37),⏎····marginBottom:·mvs(39),⏎·`"
prettier/prettier
|
| 149 |
REFUND_CONATINER: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', marginTop: mvs(37), marginBottom: mvs(39) }, |
| Error |
Row 150, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| 150 |
TEXT: { textAlign: 'center', marginTop: mvs(30), fontSize: mvs(14), color: colors.primary }, |
| 151 |
HEADING_TXT: { |
| 152 |
fontSize: mvs(19.5), |
| 153 |
color: colors.disputes, |
| 154 |
alignSelf: 'center', |
| 155 |
marginBottom: mvs(10), |
| 156 |
}, |
| 157 |
SUB_CONTAINER: { |
| 158 |
backgroundColor: colors.white, |
| 159 |
// paddingTop: mvs(20), |
| 160 |
paddingVertical: mvs(20), |
| 161 |
borderRadius: mvs(20), |
| 162 |
paddingHorizontal: mvs(10), |
| Error |
Row 163, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| 163 |
backgroundColor: colors.white, |
| 164 |
}, |
| 165 |
DESTINATION_CONTAINER: { |
| 166 |
alignItems: 'center', |
| 167 |
flexDirection: 'row', |
| 168 |
justifyContent: 'space-between', |
| 169 |
}, |
| 170 |
FLAG_BUTTON: { |
| 171 |
width: mvs(161), |
| 172 |
height: mvs(38), |
| 173 |
flexDirection: 'row-reverse', |
| 174 |
backgroundColor: colors.secondary, |
| 175 |
}, |
| 176 |
SEARCH_MAP: { |
| 177 |
marginTop: mvs(15), |
| 178 |
alignSelf: 'flex-end', |
| 179 |
width: mvs(161), |
| 180 |
height: mvs(38), |
| 181 |
flexDirection: 'row', |
| 182 |
backgroundColor: colors.primary, |
| 183 |
paddingHorizontal: mvs(23), |
| 184 |
}, |
| 185 |
MAP_ICON: { |
| 186 |
height: mvs(18), |
| 187 |
width: mvs(14), |
| 188 |
}, |
| 189 |
NO_DELIVERY_CONTAINER: { |
| 190 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 191 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 192 |
flexDirection: 'row', |
| 193 |
alignItems: 'center', |
| 194 |
paddingVertical: mvs(14), |
| 195 |
marginTop: mvs(15), |
| 196 |
borderColor: colors.filter_divider, |
| 197 |
}, |
| 198 |
NoDelivery: { |
| 199 |
fontSize: mvs(15), |
| 200 |
color: colors.headerTitle, |
| 201 |
}, |
| 202 |
PRICES_CONTAINER: { |
| 203 |
marginTop: mvs(13), |
| 204 |
flexDirection: 'row', |
| 205 |
justifyContent: 'space-between', |
| 206 |
}, |
| 207 |
PRICE_HEADING: { |
| 208 |
fontSize: mvs(15), |
| 209 |
color: colors.primary, |
| 210 |
marginBottom: mvs(10), |
| 211 |
}, |
| 212 |
MAX_MIN_PRICE: { |
| 213 |
width: mvs(161), |
| 214 |
}, |
| 215 |
DIV: { |
| 216 |
marginTop: mvs(14), |
| 217 |
marginBottom: mvs(13), |
| 218 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 219 |
borderColor: colors.filter_divider, |
| 220 |
}, |
| 221 |
DEL_TIME: { |
| 222 |
color: colors.primary, |
| 223 |
fontSize: mvs(15), |
| 224 |
marginBottom: mvs(8), |
| 225 |
}, |
| 226 |
RADIO_CONTAINER: { |
| 227 |
marginBottom: mvs(30), |
| 228 |
}, |
| 229 |
RADIO_LABEL: { |
| 230 |
color: colors.headerTitle, |
| 231 |
fontSize: mvs(15), |
| 232 |
}, |
| 233 |
BUTTON_CONTAINER: { |
| 234 |
flexDirection: 'row', |
| 235 |
justifyContent: 'space-between', |
| 236 |
marginTop: mvs(29), |
| 237 |
}, |
| 238 |
BUTTON: { |
| 239 |
width: '100%', |
| 240 |
}, |
| Error |
Row 241, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| 241 |
BACK: { position: 'absolute', left: mvs(23), top: mvs(17) }, |
| 242 |
}); |
| 243 |
|
|
|
|
/src/components/molecules/modals/reset-password-modal.js
|
114 problems (103 errors, 11 warnings)
|
| Severity |
Rule |
| Error |
Row 5, Column 9: "Replace `·StyleSheet,·View·` with `StyleSheet,·View`"
prettier/prettier
|
| Error |
Row 9, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 11, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Error |
Row 14, Column 30: "Replace `·visible,·onClose,onOkResult·` with `visible,·onClose,·onOkResult`"
prettier/prettier
|
| Error |
Row 15, Column 1: "Delete `⏎⏎··`"
prettier/prettier
|
| Error |
Row 18, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 19, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 20, Column 1: "Replace `········email:` with `····email:·`"
prettier/prettier
|
| Error |
Row 21, Column 1: "Replace `········otp:` with `····otp:·`"
prettier/prettier
|
| Error |
Row 22, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 24, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 25, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 26, Column 1: "Replace `············const·response·=·TAKE_TO_CONSTANT.resetValidation({·email:·forgotPayload?.email·});` with `······const·response·=·TAKE_TO_CONSTANT.resetValidation({⏎········email:·forgotPayload?.email,`"
prettier/prettier
|
| Error |
Row 27, Column 7: "Insert `});⏎`"
prettier/prettier
|
| Error |
Row 28, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 29, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 30, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 31, Column 1: "Replace `················setForgotPayload({·...forgotPayload,·otp:·res?.data?.data?.otp·` with `········setForgotPayload({...forgotPayload,·otp:·res?.data?.data?.otp`"
prettier/prettier
|
| Error |
Row 32, Column 1: "Replace `················onOkResult({·...forgotPayload,·otp:·res?.data?.data?.otp·` with `········onOkResult({...forgotPayload,·otp:·res?.data?.data?.otp`"
prettier/prettier
|
| Error |
Row 33, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 34, Column 1: "Replace `················alertRef.current.alertWithType(⏎····················'error',⏎····················'Error',⏎····················response.message,⏎················` with `········alertRef.current.alertWithType('error',·'Error',·response.message`"
prettier/prettier
|
| Error |
Row 39, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 40, Column 1: "Delete `⏎····`"
prettier/prettier
|
| Error |
Row 42, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 43, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 44, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 45, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 46, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 47, Column 1: "Delete `⏎····`"
prettier/prettier
|
| Error |
Row 49, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 50, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 51, Column 1: "Replace `····}` with `··};`"
prettier/prettier
|
| Warning |
Row 51, Column 6: "Missing semicolon."
semi
|
| Warning |
Row 52, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 52, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 53, Column 1: "Replace `····const·onClosing=()=>` with `··const·onClosing·=·()·=>·`"
prettier/prettier
|
| Warning |
Row 53, Column 20: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 54, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 55, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 56, Column 5: "Delete `··`"
prettier/prettier
|
| Error |
Row 57, Column 1: "Replace `····}` with `··};`"
prettier/prettier
|
| Warning |
Row 57, Column 6: "Missing semicolon."
semi
|
| Error |
Row 59, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 60, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 61, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 62, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 63, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 64, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 65, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 66, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 67, Column 1: "Replace `············swipeDirection='down'` with `······swipeDirection="down"`"
prettier/prettier
|
| Warning |
Row 67, Column 28: "Unexpected usage of singlequote."
jsx-quotes
|
| Error |
Row 68, Column 1: "Replace `············style={{·margin:·0,·` with `······style={{margin:·0`"
prettier/prettier
|
| Warning |
Row 68, Column 20: "Inline style: { margin: 0 }"
react-native/no-inline-styles
|
| Warning |
Row 68, Column 31: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 69, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 70, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 71, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 72, Column 11: "Delete `··········`"
prettier/prettier
|
| Error |
Row 73, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 74, Column 1: "Delete `············`"
prettier/prettier
|
| Error |
Row 75, Column 1: "Replace `························onChangeText={(t)=>setForgotPayload({...forgotPayload,email:` with `············onChangeText={t·=>·setForgotPayload({...forgotPayload,·email:·`"
prettier/prettier
|
| Error |
Row 76, Column 1: "Replace `························returnKeyType='next'` with `············returnKeyType="next"`"
prettier/prettier
|
| Warning |
Row 76, Column 39: "Unexpected usage of singlequote."
jsx-quotes
|
| Error |
Row 77, Column 1: "Replace `························labelStyle={{·color:·colors.typeHeader·` with `············labelStyle={{color:·colors.typeHeader`"
prettier/prettier
|
| Error |
Row 78, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 79, Column 1: "Replace `························placeholder={'Email·address'}·/>` with `············placeholder={'Email·address'}`"
prettier/prettier
|
| Error |
Row 80, Column 11: "Insert `/>⏎`"
prettier/prettier
|
| Error |
Row 81, Column 13: "Delete `············`"
prettier/prettier
|
| Error |
Row 82, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 83, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 84, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 85, Column 1: "Replace `····························onClick={onReset}·style={styles.RESET}·title={'Reset'}·/>` with `··············onClick={onReset}⏎··············style={styles.RESET}⏎··············title={'Reset'}`"
prettier/prettier
|
| Error |
Row 86, Column 13: "Replace `·············onClosing()}·style={styles.RESET}·title={'Cancel'}·/>` with `/>⏎·············onClosing()}⏎··············style={styles.RESET}⏎··············title={'Cancel'}`"
prettier/prettier
|
| Error |
Row 87, Column 13: "Insert `/>⏎··`"
prettier/prettier
|
| Error |
Row 88, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 89, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 91, Column 1: "Replace `············⏎····` with `······⏎`"
prettier/prettier
|
| Error |
Row 93, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 99, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 100, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 101, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 102, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 103, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 104, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 105, Column 1: "Replace `········backgroundColor:·colors.primary` with `····backgroundColor:·colors.primary,`"
prettier/prettier
|
| Warning |
Row 105, Column 40: "Missing trailing comma."
comma-dangle
|
| Error |
Row 106, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 107, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 108, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 109, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 110, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 111, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 112, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 113, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 114, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 115, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 116, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 117, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 118, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 119, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 120, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 121, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 122, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 123, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 124, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 125, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 126, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 127, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 128, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 129, Column 3: "Replace `··}⏎⏎` with `},`"
prettier/prettier
|
| Warning |
Row 129, Column 6: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 132, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 132, Column 4: "Insert `⏎`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_2_API from '@khan_ahmad786/common/api/API'; |
| 2 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 3 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 4 |
import React from 'react'; |
| Error |
Row 5, Column 9: "Replace `·StyleSheet,·View·` with `StyleSheet,·View`"
prettier/prettier
|
| 5 |
import { StyleSheet, View } from 'react-native'; |
| 6 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 7 |
import ReactNativeModal from 'react-native-modal'; |
| 8 |
import colors from '../../../config/colors'; |
| Error |
Row 9, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 9 |
import { mvs } from '../../../config/metrices'; |
| 10 |
import Medium from '../../../presentation/typography/medium-text'; |
| Error |
Row 11, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 11 |
import { TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| 12 |
import Buttons from '../../atoms/Button'; |
| 13 |
|
| Error |
Row 14, Column 30: "Replace `·visible,·onClose,onOkResult·` with `visible,·onClose,·onOkResult`"
prettier/prettier
|
| 14 |
const ResetPasswordModal = ({ visible, onClose,onOkResult }) => { |
| Error |
Row 15, Column 1: "Delete `⏎⏎··`"
prettier/prettier
|
| 15 |
|
| 16 |
|
| 17 |
const alertRef = React.useRef(); |
| Error |
Row 18, Column 3: "Delete `··`"
prettier/prettier
|
| 18 |
const [loading, setLoading] = React.useState(false); |
| Error |
Row 19, Column 1: "Delete `··`"
prettier/prettier
|
| 19 |
const [forgotPayload, setForgotPayload] = React.useState({ |
| Error |
Row 20, Column 1: "Replace `········email:` with `····email:·`"
prettier/prettier
|
| 20 |
email:'', |
| Error |
Row 21, Column 1: "Replace `········otp:` with `····otp:·`"
prettier/prettier
|
| 21 |
otp:'', |
| Error |
Row 22, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 22 |
}); |
| 23 |
|
| Error |
Row 24, Column 1: "Delete `··`"
prettier/prettier
|
| 24 |
const onReset = async () => { |
| Error |
Row 25, Column 5: "Delete `····`"
prettier/prettier
|
| 25 |
try { |
| Error |
Row 26, Column 1: "Replace `············const·response·=·TAKE_TO_CONSTANT.resetValidation({·email:·forgotPayload?.email·});` with `······const·response·=·TAKE_TO_CONSTANT.resetValidation({⏎········email:·forgotPayload?.email,`"
prettier/prettier
|
| 26 |
const response = TAKE_TO_CONSTANT.resetValidation({ email: forgotPayload?.email }); |
| Error |
Row 27, Column 7: "Insert `});⏎`"
prettier/prettier
|
| 27 |
if (response.status) { |
| Error |
Row 28, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 28 |
setLoading(true); |
| Error |
Row 29, Column 1: "Delete `········`"
prettier/prettier
|
| 29 |
const res = await TAKE_2_API?.forgotPassword(forgotPayload?.email); |
| Error |
Row 30, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 30 |
console.log('res in onrest::', res); |
| Error |
Row 31, Column 1: "Replace `················setForgotPayload({·...forgotPayload,·otp:·res?.data?.data?.otp·` with `········setForgotPayload({...forgotPayload,·otp:·res?.data?.data?.otp`"
prettier/prettier
|
| 31 |
setForgotPayload({ ...forgotPayload, otp: res?.data?.data?.otp }); |
| Error |
Row 32, Column 1: "Replace `················onOkResult({·...forgotPayload,·otp:·res?.data?.data?.otp·` with `········onOkResult({...forgotPayload,·otp:·res?.data?.data?.otp`"
prettier/prettier
|
| 32 |
onOkResult({ ...forgotPayload, otp: res?.data?.data?.otp }); |
| Error |
Row 33, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 33 |
} else { |
| Error |
Row 34, Column 1: "Replace `················alertRef.current.alertWithType(⏎····················'error',⏎····················'Error',⏎····················response.message,⏎················` with `········alertRef.current.alertWithType('error',·'Error',·response.message`"
prettier/prettier
|
| 34 |
alertRef.current.alertWithType( |
| 35 |
'error', |
| 36 |
'Error', |
| 37 |
response.message, |
| 38 |
); |
| Error |
Row 39, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 39 |
} |
| Error |
Row 40, Column 1: "Delete `⏎····`"
prettier/prettier
|
| 40 |
|
| 41 |
} catch (error) { |
| Error |
Row 42, Column 1: "Delete `······`"
prettier/prettier
|
| 42 |
alertRef.current.alertWithType( |
| Error |
Row 43, Column 9: "Delete `········`"
prettier/prettier
|
| 43 |
'error', |
| Error |
Row 44, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 44 |
'Error', |
| Error |
Row 45, Column 1: "Delete `········`"
prettier/prettier
|
| 45 |
UI_API._returnError(error), |
| Error |
Row 46, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 46 |
); |
| Error |
Row 47, Column 1: "Delete `⏎····`"
prettier/prettier
|
| 47 |
|
| 48 |
} finally { |
| Error |
Row 49, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 49 |
setLoading(false); |
| Error |
Row 50, Column 5: "Delete `····`"
prettier/prettier
|
| 50 |
} |
| Error |
Row 51, Column 1: "Replace `····}` with `··};`"
prettier/prettier
|
| Warning |
Row 51, Column 6: "Missing semicolon."
semi
|
| 51 |
} |
| Warning |
Row 52, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 52, Column 1: "Delete `····`"
prettier/prettier
|
| 52 |
|
| Error |
Row 53, Column 1: "Replace `····const·onClosing=()=>` with `··const·onClosing·=·()·=>·`"
prettier/prettier
|
| Warning |
Row 53, Column 20: "Operator '=' must be spaced."
space-infix-ops
|
| 53 |
const onClosing=()=>{ |
| Error |
Row 54, Column 1: "Delete `··`"
prettier/prettier
|
| 54 |
if (!loading) { |
| Error |
Row 55, Column 1: "Delete `··`"
prettier/prettier
|
| 55 |
onClose(); |
| Error |
Row 56, Column 5: "Delete `··`"
prettier/prettier
|
| 56 |
} |
| Error |
Row 57, Column 1: "Replace `····}` with `··};`"
prettier/prettier
|
| Warning |
Row 57, Column 6: "Missing semicolon."
semi
|
| 57 |
} |
| 58 |
|
| Error |
Row 59, Column 1: "Delete `··`"
prettier/prettier
|
| 59 |
return ( |
| Error |
Row 60, Column 5: "Delete `····`"
prettier/prettier
|
| 60 |
<ReactNativeModal |
| Error |
Row 61, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 61 |
propagateSwipe |
| Error |
Row 62, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 62 |
isVisible={visible} |
| Error |
Row 63, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 63 |
avoidKeyboard |
| Error |
Row 64, Column 1: "Delete `······`"
prettier/prettier
|
| 64 |
onBackButtonPress={() => onClosing()} |
| Error |
Row 65, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 65 |
onBackdropPress={() => onClosing()} |
| Error |
Row 66, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 66 |
onSwipeComplete={() => onClosing()} |
| Error |
Row 67, Column 1: "Replace `············swipeDirection='down'` with `······swipeDirection="down"`"
prettier/prettier
|
| Warning |
Row 67, Column 28: "Unexpected usage of singlequote."
jsx-quotes
|
| 67 |
swipeDirection='down' |
| Error |
Row 68, Column 1: "Replace `············style={{·margin:·0,·` with `······style={{margin:·0`"
prettier/prettier
|
| Warning |
Row 68, Column 20: "Inline style: { margin: 0 }"
react-native/no-inline-styles
|
| Warning |
Row 68, Column 31: "Unexpected trailing comma."
comma-dangle
|
| 68 |
style={{ margin: 0, }}> |
| Error |
Row 69, Column 1: "Delete `······`"
prettier/prettier
|
| 69 |
<View style={styles.CONTAINER}> |
| Error |
Row 70, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 70 |
<Medium label={'Forgot Password?'} style={styles.FORGOT_TXT} /> |
| Error |
Row 71, Column 1: "Delete `········`"
prettier/prettier
|
| 71 |
<View style={styles.SUB_CONTAINER}> |
| Error |
Row 72, Column 11: "Delete `··········`"
prettier/prettier
|
| 72 |
<TAKE_TO_INPUT_FIELD.CustomInput |
| Error |
Row 73, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 73 |
divider |
| Error |
Row 74, Column 1: "Delete `············`"
prettier/prettier
|
| 74 |
value={forgotPayload.email} |
| Error |
Row 75, Column 1: "Replace `························onChangeText={(t)=>setForgotPayload({...forgotPayload,email:` with `············onChangeText={t·=>·setForgotPayload({...forgotPayload,·email:·`"
prettier/prettier
|
| 75 |
onChangeText={(t)=>setForgotPayload({...forgotPayload,email:t})} |
| Error |
Row 76, Column 1: "Replace `························returnKeyType='next'` with `············returnKeyType="next"`"
prettier/prettier
|
| Warning |
Row 76, Column 39: "Unexpected usage of singlequote."
jsx-quotes
|
| 76 |
returnKeyType='next' |
| Error |
Row 77, Column 1: "Replace `························labelStyle={{·color:·colors.typeHeader·` with `············labelStyle={{color:·colors.typeHeader`"
prettier/prettier
|
| 77 |
labelStyle={{ color: colors.typeHeader }} |
| Error |
Row 78, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 78 |
label={'Registered Email'} |
| Error |
Row 79, Column 1: "Replace `························placeholder={'Email·address'}·/>` with `············placeholder={'Email·address'}`"
prettier/prettier
|
| 79 |
placeholder={'Email address'} /> |
| Error |
Row 80, Column 11: "Insert `/>⏎`"
prettier/prettier
|
| 80 |
<View style={styles.BUTTON_CONTAINER}> |
| Error |
Row 81, Column 13: "Delete `············`"
prettier/prettier
|
| 81 |
<Buttons.ButtonPrimary |
| Error |
Row 82, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 82 |
loading={loading} |
| Error |
Row 83, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 83 |
loaderColor={colors.white} |
| Error |
Row 84, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 84 |
disabled={loading} |
| Error |
Row 85, Column 1: "Replace `····························onClick={onReset}·style={styles.RESET}·title={'Reset'}·/>` with `··············onClick={onReset}⏎··············style={styles.RESET}⏎··············title={'Reset'}`"
prettier/prettier
|
| 85 |
onClick={onReset} style={styles.RESET} title={'Reset'} /> |
| Error |
Row 86, Column 13: "Replace `·············onClosing()}·style={styles.RESET}·title={'Cancel'}·/>` with `/>⏎·············onClosing()}⏎··············style={styles.RESET}⏎··············title={'Cancel'}`"
prettier/prettier
|
| 86 |
<Buttons.ButtonSecondaryOutline onClick={() => onClosing()} style={styles.RESET} title={'Cancel'} /> |
| Error |
Row 87, Column 13: "Insert `/>⏎··`"
prettier/prettier
|
| 87 |
</View> |
| Error |
Row 88, Column 9: "Delete `········`"
prettier/prettier
|
| 88 |
</View> |
| Error |
Row 89, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 89 |
</View> |
| 90 |
|
| Error |
Row 91, Column 1: "Replace `············⏎····` with `······⏎`"
prettier/prettier
|
| 91 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 92 |
</ReactNativeModal> |
| Error |
Row 93, Column 3: "Delete `··`"
prettier/prettier
|
| 93 |
); |
| 94 |
}; |
| 95 |
|
| 96 |
export default ResetPasswordModal; |
| 97 |
|
| 98 |
const styles = StyleSheet.create({ |
| Error |
Row 99, Column 3: "Delete `··`"
prettier/prettier
|
| 99 |
CONTAINER: { |
| Error |
Row 100, Column 1: "Delete `····`"
prettier/prettier
|
| 100 |
position: 'absolute', |
| Error |
Row 101, Column 1: "Delete `····`"
prettier/prettier
|
| 101 |
width: '100%', |
| Error |
Row 102, Column 5: "Delete `····`"
prettier/prettier
|
| 102 |
bottom: 0, |
| Error |
Row 103, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 103 |
borderTopLeftRadius: mvs(20), |
| Error |
Row 104, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 104 |
borderTopRightRadius: mvs(20), |
| Error |
Row 105, Column 1: "Replace `········backgroundColor:·colors.primary` with `····backgroundColor:·colors.primary,`"
prettier/prettier
|
| Warning |
Row 105, Column 40: "Missing trailing comma."
comma-dangle
|
| 105 |
backgroundColor: colors.primary |
| Error |
Row 106, Column 1: "Delete `··`"
prettier/prettier
|
| 106 |
}, |
| Error |
Row 107, Column 3: "Delete `··`"
prettier/prettier
|
| 107 |
FORGOT_TXT: { |
| Error |
Row 108, Column 1: "Delete `····`"
prettier/prettier
|
| 108 |
fontSize: mvs(15), |
| Error |
Row 109, Column 5: "Delete `····`"
prettier/prettier
|
| 109 |
color: colors.white, |
| Error |
Row 110, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 110 |
alignSelf: 'center', |
| Error |
Row 111, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 111 |
marginTop: mvs(13), |
| Error |
Row 112, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 112 |
marginBottom: mvs(16), |
| Error |
Row 113, Column 3: "Delete `··`"
prettier/prettier
|
| 113 |
}, |
| Error |
Row 114, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 114 |
SUB_CONTAINER: { |
| Error |
Row 115, Column 5: "Delete `····`"
prettier/prettier
|
| 115 |
flexGrow: 1, |
| Error |
Row 116, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 116 |
backgroundColor: colors.white, |
| Error |
Row 117, Column 1: "Delete `····`"
prettier/prettier
|
| 117 |
paddingHorizontal: mvs(22), |
| Error |
Row 118, Column 5: "Delete `····`"
prettier/prettier
|
| 118 |
paddingVertical: mvs(17), |
| Error |
Row 119, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 119 |
borderTopLeftRadius: mvs(20), |
| Error |
Row 120, Column 1: "Delete `····`"
prettier/prettier
|
| 120 |
borderTopRightRadius: mvs(20), |
| Error |
Row 121, Column 3: "Delete `··`"
prettier/prettier
|
| 121 |
}, |
| Error |
Row 122, Column 1: "Delete `··`"
prettier/prettier
|
| 122 |
RESET: { |
| Error |
Row 123, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 123 |
width: '49%', |
| Error |
Row 124, Column 3: "Delete `··`"
prettier/prettier
|
| 124 |
}, |
| Error |
Row 125, Column 1: "Delete `··`"
prettier/prettier
|
| 125 |
BUTTON_CONTAINER: { |
| Error |
Row 126, Column 5: "Delete `····`"
prettier/prettier
|
| 126 |
marginTop: mvs(13), |
| Error |
Row 127, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 127 |
flexDirection: 'row', |
| Error |
Row 128, Column 1: "Delete `····`"
prettier/prettier
|
| 128 |
justifyContent: 'space-between', |
| Error |
Row 129, Column 3: "Replace `··}⏎⏎` with `},`"
prettier/prettier
|
| Warning |
Row 129, Column 6: "Missing trailing comma."
comma-dangle
|
| 129 |
} |
| 130 |
|
| 131 |
|
| Warning |
Row 132, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 132, Column 4: "Insert `⏎`"
prettier/prettier
|
| 132 |
}); |
|
|
|
/src/components/molecules/modals/reward-accepted-modal.js
|
75 problems (38 errors, 37 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| Error |
Row 7, Column 9: "Replace `·mvs,·ms·` with `mvs,·ms`"
prettier/prettier
|
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 10, Column 10: "'TAKE_TO_INPUT_FIELD' is defined but never used."
no-unused-vars
|
| Warning |
Row 12, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| Warning |
Row 13, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| Warning |
Row 15, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| Warning |
Row 16, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 17, Column 31: "Replace `·visible,·onClose,·name·=·"Ralph·Wakim",·onSendButton,·onBackButton` with `⏎··visible,⏎··onClose,⏎··name·=·'Ralph·Wakim',⏎··onSendButton,⏎··onBackButton,⏎`"
prettier/prettier
|
| Warning |
Row 17, Column 57: "Strings must use singlequote."
quotes
|
| Warning |
Row 18, Column 10: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 18, Column 19: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 19, Column 76: "Insert `,`"
prettier/prettier
|
| Warning |
Row 19, Column 76: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 29, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 29, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| Warning |
Row 34, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 34, Column 20: "Replace `·⏎··········content={'Congratulations·'}·⏎··········highlightText={name}·` with `⏎············content={'Congratulations·'}⏎············highlightText={name}`"
prettier/prettier
|
| Warning |
Row 35, Column 39: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 36, Column 31: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 37, Column 1: "Replace `··········highlightTextStyle={{fontSize·` with `············highlightTextStyle={{fontSize`"
prettier/prettier
|
| Error |
Row 38, Column 1: "Replace `··········style·=·` with `············style=`"
prettier/prettier
|
| Warning |
Row 38, Column 20: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 39, Column 1: "Replace `············fontSize:·mvs(14.5),·⏎············color:·colors.typeHeader,·⏎············alignSelf:·'center',·⏎············textAlign:·'center',·⏎` with `··············fontSize:·mvs(14.5),⏎··············color:·colors.typeHeader,⏎··············alignSelf:·'center',⏎··············textAlign:·'center',⏎··`"
prettier/prettier
|
| Warning |
Row 39, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 40, Column 38: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 41, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 42, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 44, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 45, Column 1: "Insert `····`"
prettier/prettier
|
| Warning |
Row 45, Column 20: "Strings must use singlequote."
quotes
|
| Error |
Row 46, Column 11: "Replace `highlightText·=·` with `····highlightText=`"
prettier/prettier
|
| Warning |
Row 46, Column 28: "Strings must use singlequote."
quotes
|
| Error |
Row 47, Column 1: "Replace `··········highlightTextStyle·=·{{fontSize·:·mvs(15),·color·` with `··············highlightTextStyle={{fontSize:·mvs(15),·color`"
prettier/prettier
|
| Error |
Row 48, Column 1: "Replace `··········style·=·` with `··············style=`"
prettier/prettier
|
| Warning |
Row 48, Column 20: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 49, Column 1: "Replace `············fontSize:·mvs(14.5),·` with `················fontSize:·mvs(14.5),`"
prettier/prettier
|
| Warning |
Row 49, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 50, Column 1: "Replace `············color:·colors.typeHeader,·⏎············alignSelf:·'center',·⏎············textAlign:·'center',·` with `················color:·colors.typeHeader,⏎················alignSelf:·'center',⏎················textAlign:·'center',`"
prettier/prettier
|
| Warning |
Row 50, Column 38: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 51, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 52, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 53, Column 11: "Replace `}}⏎··········>⏎············` with `····}}>⏎··············prettier/prettier
|
| Warning |
Row 55, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 56, Column 21: "Strings must use singlequote."
quotes
|
| Warning |
Row 56, Column 83: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 57, Column 11: "Replace `··` with `····/>`"
prettier/prettier
|
| Warning |
Row 57, Column 22: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 58, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 58, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 66, Column 1: "Replace `⏎` with `··`"
prettier/prettier
|
| Error |
Row 68, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 69, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 70, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 70, Column 20: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 71, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 72, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 73, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 74, Column 1: "Replace `············textStyle={{·color:·colors.white,·marginLeft:·mvs(13)·` with `··············textStyle={{color:·colors.white,·marginLeft:·mvs(13)`"
prettier/prettier
|
| Error |
Row 75, Column 1: "Replace `············iconStyle={{·height:·mvs(20),·width:·mvs(20)·` with `··············iconStyle={{height:·mvs(20),·width:·mvs(20)`"
prettier/prettier
|
| Error |
Row 76, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 79, Column 23: "Replace `·...styles.BUTTON,·marginTop:·mvs(10),·` with `...styles.BUTTON,·marginTop:·mvs(10)`"
prettier/prettier
|
| Warning |
Row 79, Column 60: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 80, Column 33: "Insert `·`"
prettier/prettier
|
| Error |
Row 94, Column 15: "Insert `·`"
prettier/prettier
|
| Error |
Row 97, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(20),` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(20),⏎·`"
prettier/prettier
|
| Warning |
Row 97, Column 118: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 98, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| Error |
Row 111, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| Error |
Row 189, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| 2 |
import { View, StyleSheet, ImageBackground } from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 4 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce'; |
| 5 |
import colors from '../../../config/colors'; |
| Warning |
Row 6, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| 6 |
import fonts from '../../../config/fonts'; |
| Error |
Row 7, Column 9: "Replace `·mvs,·ms·` with `mvs,·ms`"
prettier/prettier
|
| 7 |
import { mvs, ms } from '../../../config/metrices'; |
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| 8 |
import Medium from '../../../presentation/typography/medium-text'; |
| 9 |
import Regular from '../../../presentation/typography/regular-text'; |
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 10, Column 10: "'TAKE_TO_INPUT_FIELD' is defined but never used."
no-unused-vars
|
| 10 |
import { TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| 11 |
import Buttons from '../../atoms/Button'; |
| Warning |
Row 12, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| 12 |
import CustomRadio from '../../atoms/RadioButton'; |
| Warning |
Row 13, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| 13 |
import CustomSwitch from '../../atoms/Switch'; |
| 14 |
import DualText from '../dual-text/dual-text'; |
| Warning |
Row 15, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| 15 |
import SettingCard from '../setting_card/setting-card'; |
| Warning |
Row 16, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| 16 |
const list = [true, false, false, true]; |
| Error |
Row 17, Column 31: "Replace `·visible,·onClose,·name·=·"Ralph·Wakim",·onSendButton,·onBackButton` with `⏎··visible,⏎··onClose,⏎··name·=·'Ralph·Wakim',⏎··onSendButton,⏎··onBackButton,⏎`"
prettier/prettier
|
| Warning |
Row 17, Column 57: "Strings must use singlequote."
quotes
|
| 17 |
const RewardAcceptedModal = ({ visible, onClose, name = "Ralph Wakim", onSendButton, onBackButton}) => { |
| Warning |
Row 18, Column 10: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 18, Column 19: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| 18 |
const [payload, setPayload] = React.useState({ |
| Error |
Row 19, Column 76: "Insert `,`"
prettier/prettier
|
| Warning |
Row 19, Column 76: "Missing trailing comma."
comma-dangle
|
| 19 |
reason: 'Deliverer not responding to my messages after several trials.' |
| 20 |
}); |
| 21 |
|
| 22 |
return ( |
| 23 |
<ReactNativeModal |
| 24 |
propagateSwipe |
| 25 |
isVisible={visible} |
| 26 |
// avoidKeyboard |
| 27 |
onBackdropPress={() => onClose(f => !f)} |
| 28 |
onBackButtonPress={() => onClose(f => !f)} |
| Warning |
Row 29, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 29, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| 29 |
style={{ margin: 0, padding: 0 }}> |
| 30 |
<View style={styles.CONTAINER}> |
| 31 |
<View style={styles.SUB_CONTAINER}> |
| 32 |
<Regular label={'Reward Accepted'} style={styles.HEADING_TXT} /> |
| 33 |
|
| Warning |
Row 34, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 34, Column 20: "Replace `·⏎··········content={'Congratulations·'}·⏎··········highlightText={name}·` with `⏎············content={'Congratulations·'}⏎············highlightText={name}`"
prettier/prettier
|
| 34 |
<DualText |
| Warning |
Row 35, Column 39: "Trailing spaces not allowed."
no-trailing-spaces
|
| 35 |
content={'Congratulations '} |
| Warning |
Row 36, Column 31: "Trailing spaces not allowed."
no-trailing-spaces
|
| 36 |
highlightText={name} |
| Error |
Row 37, Column 1: "Replace `··········highlightTextStyle={{fontSize·` with `············highlightTextStyle={{fontSize`"
prettier/prettier
|
| 37 |
highlightTextStyle={{fontSize : mvs(15)}} |
| Error |
Row 38, Column 1: "Replace `··········style·=·` with `············style=`"
prettier/prettier
|
| Warning |
Row 38, Column 20: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| 38 |
style = {{ |
| Error |
Row 39, Column 1: "Replace `············fontSize:·mvs(14.5),·⏎············color:·colors.typeHeader,·⏎············alignSelf:·'center',·⏎············textAlign:·'center',·⏎` with `··············fontSize:·mvs(14.5),⏎··············color:·colors.typeHeader,⏎··············alignSelf:·'center',⏎··············textAlign:·'center',⏎··`"
prettier/prettier
|
| Warning |
Row 39, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| 39 |
fontSize: mvs(14.5), |
| Warning |
Row 40, Column 38: "Trailing spaces not allowed."
no-trailing-spaces
|
| 40 |
color: colors.typeHeader, |
| Warning |
Row 41, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| 41 |
alignSelf: 'center', |
| Warning |
Row 42, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| 42 |
textAlign: 'center', |
| 43 |
}}> |
| Error |
Row 44, Column 11: "Insert `··`"
prettier/prettier
|
| 44 |
<DualText |
| Error |
Row 45, Column 1: "Insert `····`"
prettier/prettier
|
| Warning |
Row 45, Column 20: "Strings must use singlequote."
quotes
|
| 45 |
content={`,\nthe buyer has accepted your`} |
| Error |
Row 46, Column 11: "Replace `highlightText·=·` with `····highlightText=`"
prettier/prettier
|
| Warning |
Row 46, Column 28: "Strings must use singlequote."
quotes
|
| 46 |
highlightText = {`\nUS$ 90 reward.`} |
| Error |
Row 47, Column 1: "Replace `··········highlightTextStyle·=·{{fontSize·:·mvs(15),·color·` with `··············highlightTextStyle={{fontSize:·mvs(15),·color`"
prettier/prettier
|
| 47 |
highlightTextStyle = {{fontSize : mvs(15), color : colors.green}} |
| Error |
Row 48, Column 1: "Replace `··········style·=·` with `··············style=`"
prettier/prettier
|
| Warning |
Row 48, Column 20: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| 48 |
style = {{ |
| Error |
Row 49, Column 1: "Replace `············fontSize:·mvs(14.5),·` with `················fontSize:·mvs(14.5),`"
prettier/prettier
|
| Warning |
Row 49, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| 49 |
fontSize: mvs(14.5), |
| Error |
Row 50, Column 1: "Replace `············color:·colors.typeHeader,·⏎············alignSelf:·'center',·⏎············textAlign:·'center',·` with `················color:·colors.typeHeader,⏎················alignSelf:·'center',⏎················textAlign:·'center',`"
prettier/prettier
|
| Warning |
Row 50, Column 38: "Trailing spaces not allowed."
no-trailing-spaces
|
| 50 |
color: colors.typeHeader, |
| Warning |
Row 51, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| 51 |
alignSelf: 'center', |
| Warning |
Row 52, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| 52 |
textAlign: 'center', |
| Error |
Row 53, Column 11: "Replace `}}⏎··········>⏎············` with `····}}>⏎··············prettier/prettier
|
| 53 |
}} |
| 54 |
> |
| Warning |
Row 55, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| 55 |
<Regular |
| Warning |
Row 56, Column 21: "Strings must use singlequote."
quotes
|
| Warning |
Row 56, Column 83: "Trailing spaces not allowed."
no-trailing-spaces
|
| 56 |
label = {`\n\nPlease proceed to sending the buyer a\nproduct proof.`}/> |
| Error |
Row 57, Column 11: "Replace `··` with `····/>`"
prettier/prettier
|
| Warning |
Row 57, Column 22: "Trailing spaces not allowed."
no-trailing-spaces
|
| 57 |
</DualText> |
| Warning |
Row 58, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 58, Column 11: "Insert `··`"
prettier/prettier
|
| 58 |
|
| 59 |
</DualText> |
| 60 |
|
| 61 |
{/* <SettingCard style={{ paddingTop: mvs(13), paddingBottom: mvs(7), marginTop : mvs(43) }} headingStyle={{ alignSelf: 'center', fontSize: mvs(14) }} heading={'Make sure your notifications are on'}> |
| 62 |
<CustomSwitch style={{ marginTop: 0 }} textStyle={{ color: colors.primary }} label={'Email'} /> |
| 63 |
<CustomSwitch style={{ marginTop: mvs(10) }} textStyle={{ color: colors.primary }} label={'SMS'} /> |
| 64 |
</SettingCard> */} |
| 65 |
<View style={styles.BUTTON_CONTAINER}> |
| Error |
Row 66, Column 1: "Replace `⏎` with `··`"
prettier/prettier
|
| 66 |
|
| 67 |
<Buttons.ButtonPrimary |
| Error |
Row 68, Column 13: "Insert `··`"
prettier/prettier
|
| 68 |
onClick={onSendButton} |
| Error |
Row 69, Column 1: "Insert `··`"
prettier/prettier
|
| 69 |
title={'Send a Product picture'} |
| Error |
Row 70, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 70, Column 20: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| 70 |
style={{ |
| Error |
Row 71, Column 1: "Insert `··`"
prettier/prettier
|
| 71 |
justifyContent: 'center', |
| Error |
Row 72, Column 1: "Insert `··`"
prettier/prettier
|
| 72 |
// marginTop:orderType==='normal'? mvs(15):mvs(129), |
| Error |
Row 73, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 73 |
}} |
| Error |
Row 74, Column 1: "Replace `············textStyle={{·color:·colors.white,·marginLeft:·mvs(13)·` with `··············textStyle={{color:·colors.white,·marginLeft:·mvs(13)`"
prettier/prettier
|
| 74 |
textStyle={{ color: colors.white, marginLeft: mvs(13) }} |
| Error |
Row 75, Column 1: "Replace `············iconStyle={{·height:·mvs(20),·width:·mvs(20)·` with `··············iconStyle={{height:·mvs(20),·width:·mvs(20)`"
prettier/prettier
|
| 75 |
iconStyle={{ height: mvs(20), width: mvs(20) }} |
| Error |
Row 76, Column 1: "Insert `··`"
prettier/prettier
|
| 76 |
/> |
| 77 |
<Buttons.ButtonSecondaryOutline |
| 78 |
onClick={onClose} |
| Error |
Row 79, Column 23: "Replace `·...styles.BUTTON,·marginTop:·mvs(10),·` with `...styles.BUTTON,·marginTop:·mvs(10)`"
prettier/prettier
|
| Warning |
Row 79, Column 60: "Unexpected trailing comma."
comma-dangle
|
| 79 |
style={{ ...styles.BUTTON, marginTop: mvs(10), }} |
| Error |
Row 80, Column 33: "Insert `·`"
prettier/prettier
|
| 80 |
textStyle={{color:colors.typeHeader}} |
| 81 |
title={'Back'} |
| 82 |
/> |
| 83 |
</View> |
| 84 |
</View> |
| 85 |
</View> |
| 86 |
</ReactNativeModal> |
| 87 |
); |
| 88 |
}; |
| 89 |
export default RewardAcceptedModal; |
| 90 |
|
| 91 |
const styles = StyleSheet.create({ |
| 92 |
CONTAINER: { |
| 93 |
width: ms(332), |
| Error |
Row 94, Column 15: "Insert `·`"
prettier/prettier
|
| 94 |
alignSelf:'center', |
| 95 |
borderRadius: mvs(20), |
| 96 |
}, |
| Error |
Row 97, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(20),` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(20),⏎·`"
prettier/prettier
|
| Warning |
Row 97, Column 118: "Unexpected trailing comma."
comma-dangle
|
| 97 |
REFUND_CONATINER: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', marginTop: mvs(20), }, |
| Error |
Row 98, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| 98 |
TEXT: { textAlign: 'center', marginTop: mvs(30), fontSize: mvs(14), color: colors.primary }, |
| 99 |
HEADING_TXT: { |
| 100 |
fontSize: mvs(19.5), |
| 101 |
color: colors.green, |
| 102 |
alignSelf: 'center', |
| 103 |
marginBottom: mvs(8.5), |
| 104 |
}, |
| 105 |
SUB_CONTAINER: { |
| 106 |
backgroundColor: colors.white, |
| 107 |
// paddingTop: mvs(20), |
| 108 |
paddingVertical: mvs(20), |
| 109 |
borderRadius: mvs(20), |
| 110 |
paddingHorizontal: mvs(10), |
| Error |
Row 111, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| 111 |
backgroundColor: colors.white, |
| 112 |
}, |
| 113 |
DESTINATION_CONTAINER: { |
| 114 |
alignItems: 'center', |
| 115 |
flexDirection: 'row', |
| 116 |
justifyContent: 'space-between', |
| 117 |
}, |
| 118 |
FLAG_BUTTON: { |
| 119 |
width: mvs(161), |
| 120 |
height: mvs(38), |
| 121 |
flexDirection: 'row-reverse', |
| 122 |
backgroundColor: colors.secondary, |
| 123 |
}, |
| 124 |
SEARCH_MAP: { |
| 125 |
marginTop: mvs(15), |
| 126 |
alignSelf: 'flex-end', |
| 127 |
width: mvs(161), |
| 128 |
height: mvs(38), |
| 129 |
flexDirection: 'row', |
| 130 |
backgroundColor: colors.primary, |
| 131 |
paddingHorizontal: mvs(23), |
| 132 |
}, |
| 133 |
MAP_ICON: { |
| 134 |
height: mvs(18), |
| 135 |
width: mvs(14), |
| 136 |
}, |
| 137 |
NO_DELIVERY_CONTAINER: { |
| 138 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 139 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 140 |
flexDirection: 'row', |
| 141 |
alignItems: 'center', |
| 142 |
paddingVertical: mvs(14), |
| 143 |
marginTop: mvs(15), |
| 144 |
borderColor: colors.filter_divider, |
| 145 |
}, |
| 146 |
NoDelivery: { |
| 147 |
fontSize: mvs(15), |
| 148 |
color: colors.headerTitle, |
| 149 |
}, |
| 150 |
PRICES_CONTAINER: { |
| 151 |
marginTop: mvs(13), |
| 152 |
flexDirection: 'row', |
| 153 |
justifyContent: 'space-between', |
| 154 |
}, |
| 155 |
PRICE_HEADING: { |
| 156 |
fontSize: mvs(15), |
| 157 |
color: colors.primary, |
| 158 |
marginBottom: mvs(10), |
| 159 |
}, |
| 160 |
MAX_MIN_PRICE: { |
| 161 |
width: mvs(161), |
| 162 |
}, |
| 163 |
DIV: { |
| 164 |
marginTop: mvs(14), |
| 165 |
marginBottom: mvs(13), |
| 166 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 167 |
borderColor: colors.filter_divider, |
| 168 |
}, |
| 169 |
DEL_TIME: { |
| 170 |
color: colors.primary, |
| 171 |
fontSize: mvs(15), |
| 172 |
marginBottom: mvs(8), |
| 173 |
}, |
| 174 |
RADIO_CONTAINER: { |
| 175 |
marginBottom: mvs(30), |
| 176 |
}, |
| 177 |
RADIO_LABEL: { |
| 178 |
color: colors.headerTitle, |
| 179 |
fontSize: mvs(15), |
| 180 |
}, |
| 181 |
BUTTON_CONTAINER: { |
| 182 |
// flexDirection: 'row', |
| 183 |
// justifyContent: 'space-between', |
| 184 |
marginTop: mvs(29), |
| 185 |
}, |
| 186 |
BUTTON: { |
| 187 |
width: '100%', |
| 188 |
}, |
| Error |
Row 189, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| 189 |
BACK: { position: 'absolute', left: mvs(23), top: mvs(17) }, |
| 190 |
}); |
| 191 |
|
|
|
|
/src/components/molecules/modals/reward-amount-modal.js
|
117 problems (73 errors, 44 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| Error |
Row 7, Column 9: "Replace `·mvs,·ms·` with `mvs,·ms`"
prettier/prettier
|
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 12, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| Warning |
Row 13, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| Warning |
Row 14, Column 8: "'DualText' is defined but never used."
no-unused-vars
|
| Warning |
Row 15, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| Warning |
Row 16, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 17, Column 29: "Replace `·visible,·onClose,·onConfirm,title,·titleStyle,·buttonTitle,·name·=·"Zenab·Thaqi",·fromApprove·=·false,·endButton·=·false,·endButtonTitle,·mainButton·=·false,·endButtonStyle,·deliveryConfirmed·=·false,·amountTitle·=·"Reward",·lost·=·false,·amount·=·"US$·1,049"` with `⏎··visible,⏎··onClose,⏎··onConfirm,⏎··title,⏎··titleStyle,⏎··buttonTitle,⏎··name·=·'Zenab·Thaqi',⏎··fromApprove·=·false,⏎··endButton·=·false,⏎··endButtonTitle,⏎··mainButton·=·false,⏎··endButtonStyle,⏎··deliveryConfirmed·=·false,⏎··amountTitle·=·'Reward',⏎··lost·=·false,⏎··amount·=·'US$·1,049',⏎`"
prettier/prettier
|
| Warning |
Row 17, Column 97: "Strings must use singlequote."
quotes
|
| Warning |
Row 17, Column 245: "Strings must use singlequote."
quotes
|
| Warning |
Row 17, Column 278: "Strings must use singlequote."
quotes
|
| Error |
Row 19, Column 76: "Insert `,`"
prettier/prettier
|
| Warning |
Row 19, Column 76: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 29, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 29, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| Warning |
Row 32, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 32, Column 19: "Replace `·⏎··········label={title}·` with `⏎············label={title}`"
prettier/prettier
|
| Warning |
Row 33, Column 24: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 34, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Warning |
Row 35, Column 37: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 35, Column 37: "Delete `·`"
prettier/prettier
|
| Error |
Row 37, Column 20: "Delete `·`"
prettier/prettier
|
| Error |
Row 38, Column 1: "Replace `··············}}` with `············}}⏎·········`"
prettier/prettier
|
| Error |
Row 40, Column 1: "Replace `···········{!deliveryConfirmed·&&·` with `··········{!deliveryConfirmed·&&·(⏎············⏎··············`"
prettier/prettier
|
| Error |
Row 41, Column 1: "Replace `············containerStyle={{·` with `················containerStyle={{`"
prettier/prettier
|
| Error |
Row 42, Column 1: "Replace `············label='Dispute·Reason'` with `················label="Dispute·Reason"`"
prettier/prettier
|
| Warning |
Row 42, Column 19: "Unexpected usage of singlequote."
jsx-quotes
|
| Error |
Row 43, Column 1: "Replace `············` with `················`"
prettier/prettier
|
| Error |
Row 44, Column 13: "Replace `style={{·` with `····style={{`"
prettier/prettier
|
| Warning |
Row 44, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 45, Column 13: "Replace `onChangeText={text·=>·setPayload({·...payload,·reason:·text·` with `····onChangeText={text·=>·setPayload({...payload,·reason:·text`"
prettier/prettier
|
| Error |
Row 46, Column 1: "Replace `···········/>}` with `··············/>⏎············`"
prettier/prettier
|
| Error |
Row 47, Column 1: "Insert `··········)}`"
prettier/prettier
|
| Error |
Row 49, Column 33: "Replace `prettier/prettier
|
| Warning |
Row 49, Column 41: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 50, Column 1: "Replace `··········label·=·` with `··············label=`"
prettier/prettier
|
| Warning |
Row 50, Column 20: "Strings must use singlequote."
quotes
|
| Error |
Row 51, Column 11: "Replace `style·=·{{color·:·colors.typeHeader,·marginTop·:·mvs(10),·textAlign·:·'center',·alignSelf·:·'center'` with `····style={{⏎················color:·colors.typeHeader,⏎················marginTop:·mvs(10),⏎················textAlign:·'center',⏎················alignSelf:·'center',⏎··············`"
prettier/prettier
|
| Warning |
Row 51, Column 20: "Inline style: { textAlign: 'center', alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 52, Column 11: "Replace `/>}` with `··/>`"
prettier/prettier
|
| Warning |
Row 53, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 53, Column 2: "Insert `·········)}`"
prettier/prettier
|
| Error |
Row 55, Column 33: "Replace `·<>⏎··············prettier/prettier
|
| Warning |
Row 55, Column 44: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 56, Column 20: "Strings must use singlequote."
quotes
|
| Error |
Row 57, Column 1: "Replace `··········style·=·{{color·:lost?·colors.pink·:·colors.green,·marginTop·:·mvs(30),·textAlign·:·'center',·alignSelf·:·'center'` with `················style={{⏎··················color:·lost·?·colors.pink·:·colors.green,⏎··················marginTop:·mvs(30),⏎··················textAlign:·'center',⏎··················alignSelf:·'center',⏎················`"
prettier/prettier
|
| Warning |
Row 57, Column 20: "Inline style: { textAlign: 'center', alignSelf: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 57, Column 32: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 58, Column 1: "Replace `··········/>··⏎··········⏎··············prettier/prettier
|
| Warning |
Row 58, Column 13: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 59, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 60, Column 20: "Strings must use singlequote."
quotes
|
| Error |
Row 61, Column 11: "Replace `style·=·{{color·:·colors.typeHeader,·marginTop·:·mvs(22),·textAlign·:·'center',·alignSelf·:·'center'` with `······style={{⏎··················color:·colors.typeHeader,⏎··················marginTop:·mvs(22),⏎··················textAlign:·'center',⏎··················alignSelf:·'center',⏎················`"
prettier/prettier
|
| Warning |
Row 61, Column 20: "Inline style: { textAlign: 'center', alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 62, Column 1: "Replace `··········/>>}·⏎` with `··············/>⏎············>⏎··········)}`"
prettier/prettier
|
| Warning |
Row 62, Column 17: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 65, Column 16: "Replace `·style·=·` with `⏎············style=`"
prettier/prettier
|
| Warning |
Row 65, Column 26: "Inline style: {
width: '100%',
alignItems: 'center',
justifyContent: 'space-between',
flexDirection: 'row'
}"
react-native/no-inline-styles
|
| Error |
Row 66, Column 21: "Delete `·`"
prettier/prettier
|
| Error |
Row 67, Column 20: "Replace `·:·"100%"` with `:·'100%'`"
prettier/prettier
|
| Warning |
Row 67, Column 23: "Strings must use singlequote."
quotes
|
| Error |
Row 68, Column 24: "Delete `·`"
prettier/prettier
|
| Error |
Row 69, Column 25: "Delete `·`"
prettier/prettier
|
| Error |
Row 70, Column 29: "Delete `·`"
prettier/prettier
|
| Error |
Row 71, Column 28: "Replace `·:·'row'` with `:·'row',`"
prettier/prettier
|
| Warning |
Row 71, Column 36: "Missing trailing comma."
comma-dangle
|
| Error |
Row 72, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 73, Column 1: "Replace `··············` with `············`"
prettier/prettier
|
| Warning |
Row 76, Column 16: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 77, Column 1: "Delete `·`"
prettier/prettier
|
| Error |
Row 78, Column 14: "Replace `style·=·` with `·style=`"
prettier/prettier
|
| Warning |
Row 78, Column 23: "Inline style: {
height: '100%',
width: '49%',
justifyContent: 'center',
alignItems: 'center'
}"
react-native/no-inline-styles
|
| Error |
Row 79, Column 17: "Replace `·height·:·'100%',·` with `height:·'100%',`"
prettier/prettier
|
| Warning |
Row 79, Column 34: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 80, Column 1: "Replace `·················width·` with `················width`"
prettier/prettier
|
| Error |
Row 81, Column 1: "Replace `·················backgroundColor·` with `················backgroundColor`"
prettier/prettier
|
| Error |
Row 82, Column 17: "Replace `·justifyContent·` with `justifyContent`"
prettier/prettier
|
| Error |
Row 83, Column 1: "Replace `·················alignItems·` with `················alignItems`"
prettier/prettier
|
| Error |
Row 84, Column 1: "Replace `·················borderRadius·:·mvs(10)` with `················borderRadius:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 84, Column 40: "Missing trailing comma."
comma-dangle
|
| Error |
Row 85, Column 1: "Replace `················}}⏎·············` with `··············}}`"
prettier/prettier
|
| Error |
Row 87, Column 1: "Delete `·`"
prettier/prettier
|
| Error |
Row 88, Column 16: "Replace `label·=·` with `·label=`"
prettier/prettier
|
| Error |
Row 89, Column 16: "Replace `style·=·{{fontSize·:·mvs(21),·color·:lost?·colors.pink·:·colors.green` with `·style={{⏎··················fontSize:·mvs(21),⏎··················color:·lost·?·colors.pink·:·colors.green,⏎················`"
prettier/prettier
|
| Warning |
Row 89, Column 57: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 90, Column 15: "Replace `·/>··` with `/>`"
prettier/prettier
|
| Warning |
Row 90, Column 18: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 91, Column 1: "Delete `·`"
prettier/prettier
|
| Warning |
Row 92, Column 18: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 92, Column 18: "Delete `·`"
prettier/prettier
|
| Error |
Row 99, Column 26: "Insert `(⏎············`"
prettier/prettier
|
| Error |
Row 100, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 101, Column 1: "Replace `··············onClick·=·` with `················onClick=`"
prettier/prettier
|
| Error |
Row 102, Column 1: "Replace `··············style·=·` with `················style=`"
prettier/prettier
|
| Error |
Row 103, Column 1: "Replace `··············title·=·` with `················title=`"
prettier/prettier
|
| Error |
Row 104, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 105, Column 1: "Replace `··········` with `············⏎··········)`"
prettier/prettier
|
| Error |
Row 107, Column 25: "Insert `(⏎············`"
prettier/prettier
|
| Error |
Row 108, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 109, Column 15: "Replace `onClick·=·` with `··onClick=`"
prettier/prettier
|
| Error |
Row 110, Column 15: "Replace `style·=·` with `··style=`"
prettier/prettier
|
| Error |
Row 111, Column 15: "Replace `title·=·` with `··title=`"
prettier/prettier
|
| Error |
Row 112, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 113, Column 1: "Replace `··········` with `············⏎··········)`"
prettier/prettier
|
| Error |
Row 126, Column 14: "Replace `·:·'center'` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 126, Column 25: "Missing trailing comma."
comma-dangle
|
| Error |
Row 129, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(20),` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(20),⏎·`"
prettier/prettier
|
| Warning |
Row 129, Column 118: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 130, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| Error |
Row 143, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| Error |
Row 221, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| 2 |
import { View, StyleSheet, ImageBackground } from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 4 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce'; |
| 5 |
import colors from '../../../config/colors'; |
| Warning |
Row 6, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| 6 |
import fonts from '../../../config/fonts'; |
| Error |
Row 7, Column 9: "Replace `·mvs,·ms·` with `mvs,·ms`"
prettier/prettier
|
| 7 |
import { mvs, ms } from '../../../config/metrices'; |
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| 8 |
import Medium from '../../../presentation/typography/medium-text'; |
| 9 |
import Regular from '../../../presentation/typography/regular-text'; |
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 10 |
import { TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| 11 |
import Buttons from '../../atoms/Button'; |
| Warning |
Row 12, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| 12 |
import CustomRadio from '../../atoms/RadioButton'; |
| Warning |
Row 13, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| 13 |
import CustomSwitch from '../../atoms/Switch'; |
| Warning |
Row 14, Column 8: "'DualText' is defined but never used."
no-unused-vars
|
| 14 |
import DualText from '../dual-text/dual-text'; |
| Warning |
Row 15, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| 15 |
import SettingCard from '../setting_card/setting-card'; |
| Warning |
Row 16, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| 16 |
const list = [true, false, false, true]; |
| Error |
Row 17, Column 29: "Replace `·visible,·onClose,·onConfirm,title,·titleStyle,·buttonTitle,·name·=·"Zenab·Thaqi",·fromApprove·=·false,·endButton·=·false,·endButtonTitle,·mainButton·=·false,·endButtonStyle,·deliveryConfirmed·=·false,·amountTitle·=·"Reward",·lost·=·false,·amount·=·"US$·1,049"` with `⏎··visible,⏎··onClose,⏎··onConfirm,⏎··title,⏎··titleStyle,⏎··buttonTitle,⏎··name·=·'Zenab·Thaqi',⏎··fromApprove·=·false,⏎··endButton·=·false,⏎··endButtonTitle,⏎··mainButton·=·false,⏎··endButtonStyle,⏎··deliveryConfirmed·=·false,⏎··amountTitle·=·'Reward',⏎··lost·=·false,⏎··amount·=·'US$·1,049',⏎`"
prettier/prettier
|
| Warning |
Row 17, Column 97: "Strings must use singlequote."
quotes
|
| Warning |
Row 17, Column 245: "Strings must use singlequote."
quotes
|
| Warning |
Row 17, Column 278: "Strings must use singlequote."
quotes
|
| 17 |
const RewardAmountModal = ({ visible, onClose, onConfirm,title, titleStyle, buttonTitle, name = "Zenab Thaqi", fromApprove = false, endButton = false, endButtonTitle, mainButton = false, endButtonStyle, deliveryConfirmed = false, amountTitle = "Reward", lost = false, amount = "US$ 1,049"}) => { |
| 18 |
const [payload, setPayload] = React.useState({ |
| Error |
Row 19, Column 76: "Insert `,`"
prettier/prettier
|
| Warning |
Row 19, Column 76: "Missing trailing comma."
comma-dangle
|
| 19 |
reason: 'Deliverer not responding to my messages after several trials.' |
| 20 |
}); |
| 21 |
|
| 22 |
return ( |
| 23 |
<ReactNativeModal |
| 24 |
propagateSwipe |
| 25 |
isVisible={visible} |
| 26 |
// avoidKeyboard |
| 27 |
onBackdropPress={() => onClose(f => !f)} |
| 28 |
onBackButtonPress={() => onClose(f => !f)} |
| Warning |
Row 29, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 29, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| 29 |
style={{ margin: 0, padding: 0 }}> |
| 30 |
<View style={styles.CONTAINER}> |
| 31 |
<View style={styles.SUB_CONTAINER}> |
| Warning |
Row 32, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 32, Column 19: "Replace `·⏎··········label={title}·` with `⏎············label={title}`"
prettier/prettier
|
| 32 |
<Regular |
| Warning |
Row 33, Column 24: "Trailing spaces not allowed."
no-trailing-spaces
|
| 33 |
label={title} |
| Error |
Row 34, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 34 |
style={{ |
| Warning |
Row 35, Column 37: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 35, Column 37: "Delete `·`"
prettier/prettier
|
| 35 |
...styles.HEADING_TXT, |
| 36 |
...titleStyle, |
| Error |
Row 37, Column 20: "Delete `·`"
prettier/prettier
|
| 37 |
color : colors.primary, |
| Error |
Row 38, Column 1: "Replace `··············}}` with `············}}⏎·········`"
prettier/prettier
|
| 38 |
}} /> |
| 39 |
|
| Error |
Row 40, Column 1: "Replace `···········{!deliveryConfirmed·&&·` with `··········{!deliveryConfirmed·&&·(⏎············⏎··············`"
prettier/prettier
|
| 40 |
{!deliveryConfirmed && <View style = {{marginTop:mvs(10)}}><TAKE_TO_INPUT_FIELD.ReviewInput |
| Error |
Row 41, Column 1: "Replace `············containerStyle={{·` with `················containerStyle={{`"
prettier/prettier
|
| 41 |
containerStyle={{ maxHeight: mvs(81)}} |
| Error |
Row 42, Column 1: "Replace `············label='Dispute·Reason'` with `················label="Dispute·Reason"`"
prettier/prettier
|
| Warning |
Row 42, Column 19: "Unexpected usage of singlequote."
jsx-quotes
|
| 42 |
label='Dispute Reason' |
| Error |
Row 43, Column 1: "Replace `············` with `················`"
prettier/prettier
|
| 43 |
value={payload.reason} |
| Error |
Row 44, Column 13: "Replace `style={{·` with `····style={{`"
prettier/prettier
|
| Warning |
Row 44, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 44 |
style={{ textAlign: 'center', fontSize: mvs(13)}} |
| Error |
Row 45, Column 13: "Replace `onChangeText={text·=>·setPayload({·...payload,·reason:·text·` with `····onChangeText={text·=>·setPayload({...payload,·reason:·text`"
prettier/prettier
|
| 45 |
onChangeText={text => setPayload({ ...payload, reason: text })} |
| Error |
Row 46, Column 1: "Replace `···········/>}` with `··············/>⏎············`"
prettier/prettier
|
| 46 |
/></View>} |
| Error |
Row 47, Column 1: "Insert `··········)}`"
prettier/prettier
|
| 47 |
|
| 48 |
|
| Error |
Row 49, Column 33: "Replace `prettier/prettier
|
| Warning |
Row 49, Column 41: "Trailing spaces not allowed."
no-trailing-spaces
|
| 49 |
{deliveryConfirmed && <Regular |
| Error |
Row 50, Column 1: "Replace `··········label·=·` with `··············label=`"
prettier/prettier
|
| Warning |
Row 50, Column 20: "Strings must use singlequote."
quotes
|
| 50 |
label = {`The order was successfully delivered.\nRate the buyer to receive your reward.`} |
| Error |
Row 51, Column 11: "Replace `style·=·{{color·:·colors.typeHeader,·marginTop·:·mvs(10),·textAlign·:·'center',·alignSelf·:·'center'` with `····style={{⏎················color:·colors.typeHeader,⏎················marginTop:·mvs(10),⏎················textAlign:·'center',⏎················alignSelf:·'center',⏎··············`"
prettier/prettier
|
| Warning |
Row 51, Column 20: "Inline style: { textAlign: 'center', alignSelf: 'center' }"
react-native/no-inline-styles
|
| 51 |
style = {{color : colors.typeHeader, marginTop : mvs(10), textAlign : 'center', alignSelf : 'center'}} |
| Error |
Row 52, Column 11: "Replace `/>}` with `··/>`"
prettier/prettier
|
| 52 |
/>} |
| Warning |
Row 53, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 53, Column 2: "Insert `·········)}`"
prettier/prettier
|
| 53 |
|
| 54 |
|
| Error |
Row 55, Column 33: "Replace `·<>⏎··············prettier/prettier
|
| Warning |
Row 55, Column 44: "Trailing spaces not allowed."
no-trailing-spaces
|
| 55 |
{!deliveryConfirmed && <><Regular |
| Warning |
Row 56, Column 20: "Strings must use singlequote."
quotes
|
| 56 |
label = {`We are glad to inform you that the\ninvestigation result was in your favor.`} |
| Error |
Row 57, Column 1: "Replace `··········style·=·{{color·:lost?·colors.pink·:·colors.green,·marginTop·:·mvs(30),·textAlign·:·'center',·alignSelf·:·'center'` with `················style={{⏎··················color:·lost·?·colors.pink·:·colors.green,⏎··················marginTop:·mvs(30),⏎··················textAlign:·'center',⏎··················alignSelf:·'center',⏎················`"
prettier/prettier
|
| Warning |
Row 57, Column 20: "Inline style: { textAlign: 'center', alignSelf: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 57, Column 32: "Operator '?' must be spaced."
space-infix-ops
|
| 57 |
style = {{color :lost? colors.pink : colors.green, marginTop : mvs(30), textAlign : 'center', alignSelf : 'center'}} |
| Error |
Row 58, Column 1: "Replace `··········/>··⏎··········⏎··············prettier/prettier
|
| Warning |
Row 58, Column 13: "Trailing spaces not allowed."
no-trailing-spaces
|
| 58 |
/> |
| Warning |
Row 59, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| 59 |
<Regular |
| Warning |
Row 60, Column 20: "Strings must use singlequote."
quotes
|
| 60 |
label = {`The Held amount will be released to your\naccount. Thank you`} |
| Error |
Row 61, Column 11: "Replace `style·=·{{color·:·colors.typeHeader,·marginTop·:·mvs(22),·textAlign·:·'center',·alignSelf·:·'center'` with `······style={{⏎··················color:·colors.typeHeader,⏎··················marginTop:·mvs(22),⏎··················textAlign:·'center',⏎··················alignSelf:·'center',⏎················`"
prettier/prettier
|
| Warning |
Row 61, Column 20: "Inline style: { textAlign: 'center', alignSelf: 'center' }"
react-native/no-inline-styles
|
| 61 |
style = {{color : colors.typeHeader, marginTop : mvs(22), textAlign : 'center', alignSelf : 'center'}} |
| Error |
Row 62, Column 1: "Replace `··········/>>}·⏎` with `··············/>⏎············>⏎··········)}`"
prettier/prettier
|
| Warning |
Row 62, Column 17: "Trailing spaces not allowed."
no-trailing-spaces
|
| 62 |
/></>} |
| 63 |
|
| 64 |
|
| Error |
Row 65, Column 16: "Replace `·style·=·` with `⏎············style=`"
prettier/prettier
|
| Warning |
Row 65, Column 26: "Inline style: {
width: '100%',
alignItems: 'center',
justifyContent: 'space-between',
flexDirection: 'row'
}"
react-native/no-inline-styles
|
| 65 |
<View style = {{ |
| Error |
Row 66, Column 21: "Delete `·`"
prettier/prettier
|
| 66 |
height : mvs(49), |
| Error |
Row 67, Column 20: "Replace `·:·"100%"` with `:·'100%'`"
prettier/prettier
|
| Warning |
Row 67, Column 23: "Strings must use singlequote."
quotes
|
| 67 |
width : "100%", |
| Error |
Row 68, Column 24: "Delete `·`"
prettier/prettier
|
| 68 |
marginTop : mvs(33), |
| Error |
Row 69, Column 25: "Delete `·`"
prettier/prettier
|
| 69 |
alignItems : 'center', |
| Error |
Row 70, Column 29: "Delete `·`"
prettier/prettier
|
| 70 |
justifyContent : 'space-between', |
| Error |
Row 71, Column 28: "Replace `·:·'row'` with `:·'row',`"
prettier/prettier
|
| Warning |
Row 71, Column 36: "Missing trailing comma."
comma-dangle
|
| 71 |
flexDirection : 'row' |
| Error |
Row 72, Column 11: "Insert `··`"
prettier/prettier
|
| 72 |
}}> |
| Error |
Row 73, Column 1: "Replace `··············` with `············`"
prettier/prettier
|
| 73 |
<Regular |
| 74 |
label = {amountTitle} |
| 75 |
style = {{color : colors.typeHeader}} |
| Warning |
Row 76, Column 16: "Trailing spaces not allowed."
no-trailing-spaces
|
| 76 |
/> |
| Error |
Row 77, Column 1: "Delete `·`"
prettier/prettier
|
| 77 |
<View |
| Error |
Row 78, Column 14: "Replace `style·=·` with `·style=`"
prettier/prettier
|
| Warning |
Row 78, Column 23: "Inline style: {
height: '100%',
width: '49%',
justifyContent: 'center',
alignItems: 'center'
}"
react-native/no-inline-styles
|
| 78 |
style = {{ |
| Error |
Row 79, Column 17: "Replace `·height·:·'100%',·` with `height:·'100%',`"
prettier/prettier
|
| Warning |
Row 79, Column 34: "Trailing spaces not allowed."
no-trailing-spaces
|
| 79 |
height : '100%', |
| Error |
Row 80, Column 1: "Replace `·················width·` with `················width`"
prettier/prettier
|
| 80 |
width : '49%', |
| Error |
Row 81, Column 1: "Replace `·················backgroundColor·` with `················backgroundColor`"
prettier/prettier
|
| 81 |
backgroundColor : colors.secondary, |
| Error |
Row 82, Column 17: "Replace `·justifyContent·` with `justifyContent`"
prettier/prettier
|
| 82 |
justifyContent : 'center', |
| Error |
Row 83, Column 1: "Replace `·················alignItems·` with `················alignItems`"
prettier/prettier
|
| 83 |
alignItems : 'center', |
| Error |
Row 84, Column 1: "Replace `·················borderRadius·:·mvs(10)` with `················borderRadius:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 84, Column 40: "Missing trailing comma."
comma-dangle
|
| 84 |
borderRadius : mvs(10) |
| Error |
Row 85, Column 1: "Replace `················}}⏎·············` with `··············}}`"
prettier/prettier
|
| 85 |
}} |
| 86 |
> |
| Error |
Row 87, Column 1: "Delete `·`"
prettier/prettier
|
| 87 |
<Regular |
| Error |
Row 88, Column 16: "Replace `label·=·` with `·label=`"
prettier/prettier
|
| 88 |
label = {amount} |
| Error |
Row 89, Column 16: "Replace `style·=·{{fontSize·:·mvs(21),·color·:lost?·colors.pink·:·colors.green` with `·style={{⏎··················fontSize:·mvs(21),⏎··················color:·lost·?·colors.pink·:·colors.green,⏎················`"
prettier/prettier
|
| Warning |
Row 89, Column 57: "Operator '?' must be spaced."
space-infix-ops
|
| 89 |
style = {{fontSize : mvs(21), color :lost? colors.pink : colors.green}} |
| Error |
Row 90, Column 15: "Replace `·/>··` with `/>`"
prettier/prettier
|
| Warning |
Row 90, Column 18: "Trailing spaces not allowed."
no-trailing-spaces
|
| 90 |
/> |
| Error |
Row 91, Column 1: "Delete `·`"
prettier/prettier
|
| 91 |
</View> |
| Warning |
Row 92, Column 18: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 92, Column 18: "Delete `·`"
prettier/prettier
|
| 92 |
</View> |
| 93 |
|
| 94 |
{/* {deliveryConfirmed && <SettingCard style={{paddingTop:mvs(13),paddingBottom:mvs(7), marginTop : mvs(43)}} headingStyle={{ alignSelf: 'center', fontSize: mvs(14) }} heading={'Make sure your notifications are on'}> |
| 95 |
<CustomSwitch style={{marginTop:0}} textStyle={{color:colors.primary}} label={'Email'} /> |
| 96 |
<CustomSwitch style={{marginTop:mvs(10)}} textStyle={{color:colors.primary}} label={'SMS'} /> |
| 97 |
</SettingCard>} */} |
| 98 |
|
| Error |
Row 99, Column 26: "Insert `(⏎············`"
prettier/prettier
|
| 99 |
{mainButton && <View style={styles.BUTTON_CONTAINER}> |
| Error |
Row 100, Column 13: "Insert `··`"
prettier/prettier
|
| 100 |
<Buttons.ButtonPrimary |
| Error |
Row 101, Column 1: "Replace `··············onClick·=·` with `················onClick=`"
prettier/prettier
|
| 101 |
onClick = {onConfirm} |
| Error |
Row 102, Column 1: "Replace `··············style·=·` with `················style=`"
prettier/prettier
|
| 102 |
style = {styles.BUTTON} |
| Error |
Row 103, Column 1: "Replace `··············title·=·` with `················title=`"
prettier/prettier
|
| 103 |
title = {buttonTitle} |
| Error |
Row 104, Column 13: "Insert `··`"
prettier/prettier
|
| 104 |
/> |
| Error |
Row 105, Column 1: "Replace `··········` with `············⏎··········)`"
prettier/prettier
|
| 105 |
</View>} |
| 106 |
|
| Error |
Row 107, Column 25: "Insert `(⏎············`"
prettier/prettier
|
| 107 |
{endButton && <View style={{...styles.BUTTON_CONTAINER, ...endButtonStyle}}> |
| Error |
Row 108, Column 1: "Insert `··`"
prettier/prettier
|
| 108 |
<Buttons.ButtonSecondaryOutline |
| Error |
Row 109, Column 15: "Replace `onClick·=·` with `··onClick=`"
prettier/prettier
|
| 109 |
onClick = {onClose} |
| Error |
Row 110, Column 15: "Replace `style·=·` with `··style=`"
prettier/prettier
|
| 110 |
style = {{...styles.BUTTON}} |
| Error |
Row 111, Column 15: "Replace `title·=·` with `··title=`"
prettier/prettier
|
| 111 |
title = {endButtonTitle} |
| Error |
Row 112, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 112 |
/> |
| Error |
Row 113, Column 1: "Replace `··········` with `············⏎··········)`"
prettier/prettier
|
| 113 |
</View>} |
| 114 |
</View> |
| 115 |
</View> |
| 116 |
</ReactNativeModal> |
| 117 |
); |
| 118 |
}; |
| 119 |
export default RewardAmountModal; |
| 120 |
const styles = StyleSheet.create({ |
| 121 |
CONTAINER: { |
| 122 |
// position: 'absolute', |
| 123 |
// bottom: 0, |
| 124 |
width: ms(332), |
| 125 |
borderRadius: mvs(20), |
| Error |
Row 126, Column 14: "Replace `·:·'center'` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 126, Column 25: "Missing trailing comma."
comma-dangle
|
| 126 |
alignSelf : 'center' |
| 127 |
//paddingHorizontal: mvs(22), |
| 128 |
}, |
| Error |
Row 129, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(20),` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(20),⏎·`"
prettier/prettier
|
| Warning |
Row 129, Column 118: "Unexpected trailing comma."
comma-dangle
|
| 129 |
REFUND_CONATINER: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', marginTop: mvs(20), }, |
| Error |
Row 130, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| 130 |
TEXT: { textAlign: 'center', marginTop: mvs(30), fontSize: mvs(14), color: colors.primary }, |
| 131 |
HEADING_TXT: { |
| 132 |
fontSize: mvs(19.5), |
| 133 |
color: colors.green, |
| 134 |
alignSelf: 'center', |
| 135 |
//marginBottom: mvs(9.5), |
| 136 |
}, |
| 137 |
SUB_CONTAINER: { |
| 138 |
backgroundColor: colors.white, |
| 139 |
// paddingTop: mvs(20), |
| 140 |
paddingVertical: mvs(20), |
| 141 |
borderRadius: mvs(20), |
| 142 |
paddingHorizontal: mvs(10), |
| Error |
Row 143, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| 143 |
backgroundColor: colors.white, |
| 144 |
}, |
| 145 |
DESTINATION_CONTAINER: { |
| 146 |
alignItems: 'center', |
| 147 |
flexDirection: 'row', |
| 148 |
justifyContent: 'space-between', |
| 149 |
}, |
| 150 |
FLAG_BUTTON: { |
| 151 |
width: mvs(161), |
| 152 |
height: mvs(38), |
| 153 |
flexDirection: 'row-reverse', |
| 154 |
backgroundColor: colors.secondary, |
| 155 |
}, |
| 156 |
SEARCH_MAP: { |
| 157 |
marginTop: mvs(15), |
| 158 |
alignSelf: 'flex-end', |
| 159 |
width: mvs(161), |
| 160 |
height: mvs(38), |
| 161 |
flexDirection: 'row', |
| 162 |
backgroundColor: colors.primary, |
| 163 |
paddingHorizontal: mvs(23), |
| 164 |
}, |
| 165 |
MAP_ICON: { |
| 166 |
height: mvs(18), |
| 167 |
width: mvs(14), |
| 168 |
}, |
| 169 |
NO_DELIVERY_CONTAINER: { |
| 170 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 171 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 172 |
flexDirection: 'row', |
| 173 |
alignItems: 'center', |
| 174 |
paddingVertical: mvs(14), |
| 175 |
marginTop: mvs(15), |
| 176 |
borderColor: colors.filter_divider, |
| 177 |
}, |
| 178 |
NoDelivery: { |
| 179 |
fontSize: mvs(15), |
| 180 |
color: colors.headerTitle, |
| 181 |
}, |
| 182 |
PRICES_CONTAINER: { |
| 183 |
marginTop: mvs(13), |
| 184 |
flexDirection: 'row', |
| 185 |
justifyContent: 'space-between', |
| 186 |
}, |
| 187 |
PRICE_HEADING: { |
| 188 |
fontSize: mvs(15), |
| 189 |
color: colors.primary, |
| 190 |
marginBottom: mvs(10), |
| 191 |
}, |
| 192 |
MAX_MIN_PRICE: { |
| 193 |
width: mvs(161), |
| 194 |
}, |
| 195 |
DIV: { |
| 196 |
marginTop: mvs(14), |
| 197 |
marginBottom: mvs(13), |
| 198 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 199 |
borderColor: colors.filter_divider, |
| 200 |
}, |
| 201 |
DEL_TIME: { |
| 202 |
color: colors.primary, |
| 203 |
fontSize: mvs(15), |
| 204 |
marginBottom: mvs(8), |
| 205 |
}, |
| 206 |
RADIO_CONTAINER: { |
| 207 |
marginBottom: mvs(30), |
| 208 |
}, |
| 209 |
RADIO_LABEL: { |
| 210 |
color: colors.headerTitle, |
| 211 |
fontSize: mvs(15), |
| 212 |
}, |
| 213 |
BUTTON_CONTAINER: { |
| 214 |
flexDirection: 'row', |
| 215 |
justifyContent: 'space-between', |
| 216 |
marginTop: mvs(29), |
| 217 |
}, |
| 218 |
BUTTON: { |
| 219 |
width: '100%', |
| 220 |
}, |
| Error |
Row 221, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| 221 |
BACK: { position: 'absolute', left: mvs(23), top: mvs(17) }, |
| 222 |
}); |
| 223 |
|
|
|
|
/src/components/molecules/modals/search-location-modal/searchlocation-modal.js
|
62 problems (53 errors, 9 warnings)
|
| Severity |
Rule |
| Error |
Row 3, Column 9: "Replace `·View,·Text·` with `View,·Text`"
prettier/prettier
|
| Warning |
Row 3, Column 16: "'Text' is defined but never used."
no-unused-vars
|
| Error |
Row 7, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 9, Column 31: "Replace `·visible,·setVisible,·setLocation,·country_short_name·` with `⏎··visible,⏎··setVisible,⏎··setLocation,⏎··country_short_name,⏎`"
prettier/prettier
|
| Error |
Row 10, Column 1: "Delete `⏎⏎··`"
prettier/prettier
|
| Error |
Row 13, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 15, Column 5: "Replace `····Geocoder.from(details?.geometry?.location?.lat,·details?.geometry?.location?.lng)` with `Geocoder.from(⏎······details?.geometry?.location?.lat,⏎······details?.geometry?.location?.lng,`"
prettier/prettier
|
| Error |
Row 16, Column 5: "Replace `········` with `)⏎······`"
prettier/prettier
|
| Error |
Row 17, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 18, Column 1: "Replace `··················console.log("addressComponent·::·",JSON.stringify(json))` with `········console.log('addressComponent·::·',·JSON.stringify(json));`"
prettier/prettier
|
| Warning |
Row 18, Column 31: "Strings must use singlequote."
quotes
|
| Warning |
Row 18, Column 75: "Missing semicolon."
semi
|
| Error |
Row 19, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 20, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 21, Column 7: "Replace `······})` with `})⏎······`"
prettier/prettier
|
| Error |
Row 22, Column 1: "Replace `················alert(UI_API._returnError(error))` with `········alert(UI_API._returnError(error));`"
prettier/prettier
|
| Warning |
Row 22, Column 17: "Unexpected alert."
no-alert
|
| Warning |
Row 22, Column 50: "Missing semicolon."
semi
|
| Error |
Row 23, Column 1: "Replace `············})` with `······});`"
prettier/prettier
|
| Warning |
Row 23, Column 15: "Missing semicolon."
semi
|
| Error |
Row 24, Column 1: "Replace `····}` with `··};`"
prettier/prettier
|
| Warning |
Row 24, Column 6: "Missing semicolon."
semi
|
| Error |
Row 25, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 26, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 27, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 28, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 29, Column 1: "Replace `············onBackButtonPress={()·=>·setVisible(false)}⏎········` with `······onBackButtonPress={()·=>·setVisible(false)}`"
prettier/prettier
|
| Error |
Row 31, Column 1: "Replace `············prettier/prettier
|
| Error |
Row 32, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 33, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 34, Column 1: "Replace `····················textInputContainer={{·paddingRight:·0·` with `··········textInputContainer={{paddingRight:·0`"
prettier/prettier
|
| Error |
Row 35, Column 1: "Replace `····················countrySlug={(country_short_name·!==·undefined·&&·country_short_name)·?·country_short_name?.toLowerCase()·:·null}` with `··········countrySlug={⏎············country_short_name·!==·undefined·&&·country_short_name⏎··············?·country_short_name?.toLowerCase()⏎··············:·null`"
prettier/prettier
|
| Error |
Row 36, Column 11: "Insert `}⏎`"
prettier/prettier
|
| Error |
Row 37, Column 1: "Replace `····················containerStyle={{·marginTop:·mvs(30),·` with `··········containerStyle={{marginTop:·mvs(30)`"
prettier/prettier
|
| Warning |
Row 37, Column 57: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 38, Column 1: "Replace `····················inputStyle={{·backgroundColor:·colors.secondary,·paddingLeft:·mvs(10),·color·:·colors.typeHeader·}}` with `··········inputStyle={{⏎············backgroundColor:·colors.secondary,⏎············paddingLeft:·mvs(10),⏎············color:·colors.typeHeader,`"
prettier/prettier
|
| Error |
Row 39, Column 11: "Insert `}}⏎`"
prettier/prettier
|
| Error |
Row 40, Column 1: "Delete `··········`"
prettier/prettier
|
| Error |
Row 41, Column 1: "Replace `····················style={{·backgroundColor:·colors.white,·paddingHorizontal:·mvs(10)·` with `··········style={{backgroundColor:·colors.white,·paddingHorizontal:·mvs(10)`"
prettier/prettier
|
| Error |
Row 42, Column 1: "Replace `····················onClick={()·=>·{·` with `··········onClick={()·=>·{`"
prettier/prettier
|
| Error |
Row 43, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 44, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 45, Column 11: "Delete `······`"
prettier/prettier
|
| Error |
Row 46, Column 1: "Replace `················` with `··········`"
prettier/prettier
|
| Error |
Row 47, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 48, Column 1: "Replace `················` with `··········`"
prettier/prettier
|
| Error |
Row 49, Column 11: "Delete `······`"
prettier/prettier
|
| Error |
Row 50, Column 1: "Replace `················` with `··········`"
prettier/prettier
|
| Error |
Row 51, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 52, Column 11: "Delete `······`"
prettier/prettier
|
| Error |
Row 53, Column 1: "Replace `················` with `··········`"
prettier/prettier
|
| Error |
Row 54, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 55, Column 1: "Replace `················` with `··········`"
prettier/prettier
|
| Error |
Row 56, Column 11: "Delete `······`"
prettier/prettier
|
| Error |
Row 57, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 58, Column 11: "Delete `······`"
prettier/prettier
|
| Error |
Row 59, Column 1: "Replace `⏎················` with `········`"
prettier/prettier
|
| Error |
Row 61, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 62, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 63, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 65, Column 36: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 65, Column 36: "Insert `⏎`"
prettier/prettier
|
| Line |
Source |
| 1 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 2 |
import React from 'react'; |
| Error |
Row 3, Column 9: "Replace `·View,·Text·` with `View,·Text`"
prettier/prettier
|
| Warning |
Row 3, Column 16: "'Text' is defined but never used."
no-unused-vars
|
| 3 |
import { View, Text } from 'react-native'; |
| 4 |
import Geocoder from 'react-native-geocoding'; |
| 5 |
import ReactNativeModal from 'react-native-modal'; |
| 6 |
import colors from '../../../../config/colors'; |
| Error |
Row 7, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 7 |
import { mvs } from '../../../../config/metrices'; |
| 8 |
import GoogleSearchBar from '../../google-search-bar'; |
| Error |
Row 9, Column 31: "Replace `·visible,·setVisible,·setLocation,·country_short_name·` with `⏎··visible,⏎··setVisible,⏎··setLocation,⏎··country_short_name,⏎`"
prettier/prettier
|
| 9 |
const SearchLocationModal = ({ visible, setVisible, setLocation, country_short_name }) => { |
| Error |
Row 10, Column 1: "Delete `⏎⏎··`"
prettier/prettier
|
| 10 |
|
| 11 |
|
| 12 |
const selectAddressHandler = (data, details = null) => { |
| Error |
Row 13, Column 5: "Delete `····`"
prettier/prettier
|
| 13 |
console.log('data::', data); |
| 14 |
|
| Error |
Row 15, Column 5: "Replace `····Geocoder.from(details?.geometry?.location?.lat,·details?.geometry?.location?.lng)` with `Geocoder.from(⏎······details?.geometry?.location?.lat,⏎······details?.geometry?.location?.lng,`"
prettier/prettier
|
| 15 |
Geocoder.from(details?.geometry?.location?.lat, details?.geometry?.location?.lng) |
| Error |
Row 16, Column 5: "Replace `········` with `)⏎······`"
prettier/prettier
|
| 16 |
.then(json => { |
| Error |
Row 17, Column 1: "Delete `········`"
prettier/prettier
|
| 17 |
var addressComponent = UI_API._returnAddress(json); |
| Error |
Row 18, Column 1: "Replace `··················console.log("addressComponent·::·",JSON.stringify(json))` with `········console.log('addressComponent·::·',·JSON.stringify(json));`"
prettier/prettier
|
| Warning |
Row 18, Column 31: "Strings must use singlequote."
quotes
|
| Warning |
Row 18, Column 75: "Missing semicolon."
semi
|
| 18 |
console.log("addressComponent :: ",JSON.stringify(json)) |
| Error |
Row 19, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 19 |
setLocation(addressComponent); |
| Error |
Row 20, Column 9: "Delete `········`"
prettier/prettier
|
| 20 |
setVisible(false); |
| Error |
Row 21, Column 7: "Replace `······})` with `})⏎······`"
prettier/prettier
|
| 21 |
}).catch(error => { |
| Error |
Row 22, Column 1: "Replace `················alert(UI_API._returnError(error))` with `········alert(UI_API._returnError(error));`"
prettier/prettier
|
| Warning |
Row 22, Column 17: "Unexpected alert."
no-alert
|
| Warning |
Row 22, Column 50: "Missing semicolon."
semi
|
| 22 |
alert(UI_API._returnError(error)) |
| Error |
Row 23, Column 1: "Replace `············})` with `······});`"
prettier/prettier
|
| Warning |
Row 23, Column 15: "Missing semicolon."
semi
|
| 23 |
}) |
| Error |
Row 24, Column 1: "Replace `····}` with `··};`"
prettier/prettier
|
| Warning |
Row 24, Column 6: "Missing semicolon."
semi
|
| 24 |
} |
| Error |
Row 25, Column 1: "Delete `··`"
prettier/prettier
|
| 25 |
return ( |
| Error |
Row 26, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 26 |
<ReactNativeModal |
| Error |
Row 27, Column 1: "Delete `······`"
prettier/prettier
|
| 27 |
onBackdropPress={() => setVisible(false)} |
| Error |
Row 28, Column 7: "Delete `······`"
prettier/prettier
|
| 28 |
isVisible={visible} |
| Error |
Row 29, Column 1: "Replace `············onBackButtonPress={()·=>·setVisible(false)}⏎········` with `······onBackButtonPress={()·=>·setVisible(false)}`"
prettier/prettier
|
| 29 |
onBackButtonPress={() => setVisible(false)} |
| 30 |
> |
| Error |
Row 31, Column 1: "Replace `············prettier/prettier
|
| 31 |
<View style={{ minHeight: mvs(370) }}> |
| Error |
Row 32, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 32 |
{/* <View style={styles.barContainer}> */} |
| Error |
Row 33, Column 9: "Delete `········`"
prettier/prettier
|
| 33 |
<GoogleSearchBar |
| Error |
Row 34, Column 1: "Replace `····················textInputContainer={{·paddingRight:·0·` with `··········textInputContainer={{paddingRight:·0`"
prettier/prettier
|
| 34 |
textInputContainer={{ paddingRight: 0 }} |
| Error |
Row 35, Column 1: "Replace `····················countrySlug={(country_short_name·!==·undefined·&&·country_short_name)·?·country_short_name?.toLowerCase()·:·null}` with `··········countrySlug={⏎············country_short_name·!==·undefined·&&·country_short_name⏎··············?·country_short_name?.toLowerCase()⏎··············:·null`"
prettier/prettier
|
| 35 |
countrySlug={(country_short_name !== undefined && country_short_name) ? country_short_name?.toLowerCase() : null} |
| Error |
Row 36, Column 11: "Insert `}⏎`"
prettier/prettier
|
| 36 |
cross |
| Error |
Row 37, Column 1: "Replace `····················containerStyle={{·marginTop:·mvs(30),·` with `··········containerStyle={{marginTop:·mvs(30)`"
prettier/prettier
|
| Warning |
Row 37, Column 57: "Unexpected trailing comma."
comma-dangle
|
| 37 |
containerStyle={{ marginTop: mvs(30), }} |
| Error |
Row 38, Column 1: "Replace `····················inputStyle={{·backgroundColor:·colors.secondary,·paddingLeft:·mvs(10),·color·:·colors.typeHeader·}}` with `··········inputStyle={{⏎············backgroundColor:·colors.secondary,⏎············paddingLeft:·mvs(10),⏎············color:·colors.typeHeader,`"
prettier/prettier
|
| 38 |
inputStyle={{ backgroundColor: colors.secondary, paddingLeft: mvs(10), color : colors.typeHeader }} |
| Error |
Row 39, Column 11: "Insert `}}⏎`"
prettier/prettier
|
| 39 |
leftArrow={false} |
| Error |
Row 40, Column 1: "Delete `··········`"
prettier/prettier
|
| 40 |
placeholder="Enter an address" |
| Error |
Row 41, Column 1: "Replace `····················style={{·backgroundColor:·colors.white,·paddingHorizontal:·mvs(10)·` with `··········style={{backgroundColor:·colors.white,·paddingHorizontal:·mvs(10)`"
prettier/prettier
|
| 41 |
style={{ backgroundColor: colors.white, paddingHorizontal: mvs(10) }} |
| Error |
Row 42, Column 1: "Replace `····················onClick={()·=>·{·` with `··········onClick={()·=>·{`"
prettier/prettier
|
| 42 |
onClick={() => { }} |
| Error |
Row 43, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 43 |
onPress={selectAddressHandler} |
| Error |
Row 44, Column 1: "Delete `······`"
prettier/prettier
|
| 44 |
// setRegion({ |
| Error |
Row 45, Column 11: "Delete `······`"
prettier/prettier
|
| 45 |
// latitude: details?.geometry?.location?.lat, |
| Error |
Row 46, Column 1: "Replace `················` with `··········`"
prettier/prettier
|
| 46 |
// latitudeDelta: 0.015, |
| Error |
Row 47, Column 1: "Delete `······`"
prettier/prettier
|
| 47 |
// longitude: details?.geometry?.location?.lng, |
| Error |
Row 48, Column 1: "Replace `················` with `··········`"
prettier/prettier
|
| 48 |
// longitudeDelta: 0.0121, |
| Error |
Row 49, Column 11: "Delete `······`"
prettier/prettier
|
| 49 |
// }); |
| Error |
Row 50, Column 1: "Replace `················` with `··········`"
prettier/prettier
|
| 50 |
// ref?.current?.animateToRegion( |
| Error |
Row 51, Column 1: "Delete `······`"
prettier/prettier
|
| 51 |
// { |
| Error |
Row 52, Column 11: "Delete `······`"
prettier/prettier
|
| 52 |
// latitude: details?.geometry?.location?.lat, |
| Error |
Row 53, Column 1: "Replace `················` with `··········`"
prettier/prettier
|
| 53 |
// latitudeDelta: 0.015, |
| Error |
Row 54, Column 1: "Delete `······`"
prettier/prettier
|
| 54 |
// longitude: details?.geometry?.location?.lng, |
| Error |
Row 55, Column 1: "Replace `················` with `··········`"
prettier/prettier
|
| 55 |
// longitudeDelta: 0.0121, |
| Error |
Row 56, Column 11: "Delete `······`"
prettier/prettier
|
| 56 |
// }, |
| Error |
Row 57, Column 1: "Delete `······`"
prettier/prettier
|
| 57 |
// 1000, |
| Error |
Row 58, Column 11: "Delete `······`"
prettier/prettier
|
| 58 |
// ); |
| Error |
Row 59, Column 1: "Replace `⏎················` with `········`"
prettier/prettier
|
| 59 |
|
| 60 |
/> |
| Error |
Row 61, Column 1: "Delete `······`"
prettier/prettier
|
| 61 |
</View> |
| Error |
Row 62, Column 5: "Delete `····`"
prettier/prettier
|
| 62 |
</ReactNativeModal> |
| Error |
Row 63, Column 1: "Delete `··`"
prettier/prettier
|
| 63 |
); |
| 64 |
}; |
| Warning |
Row 65, Column 36: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 65, Column 36: "Insert `⏎`"
prettier/prettier
|
| 65 |
export default SearchLocationModal; |
|
|
|
/src/components/molecules/modals/setting-modals/email-verification-modal.js
|
62 problems (45 errors, 17 warnings)
|
| Severity |
Rule |
| Error |
Row 5, Column 9: "Replace `·View,·Text,·StyleSheet·` with `View,·Text,·StyleSheet`"
prettier/prettier
|
| Warning |
Row 5, Column 16: "'Text' is defined but never used."
no-unused-vars
|
| Error |
Row 9, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 11, Column 8: "'Regular' is defined but never used."
no-unused-vars
|
| Warning |
Row 13, Column 8: "'ModalWrapper' is defined but never used."
no-unused-vars
|
| Error |
Row 14, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Error |
Row 26, Column 15: "Insert `,`"
prettier/prettier
|
| Warning |
Row 26, Column 15: "Missing trailing comma."
comma-dangle
|
| Error |
Row 27, Column 8: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 37, Column 24: "Insert `;`"
prettier/prettier
|
| Warning |
Row 37, Column 24: "Missing semicolon."
semi
|
| Error |
Row 39, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 39, Column 4: "Missing semicolon."
semi
|
| Error |
Row 42, Column 58: "Replace `·email:·forgotPayload?.email` with `⏎········email:·forgotPayload?.email,⏎·····`"
prettier/prettier
|
| Error |
Row 47, Column 20: "Replace `·...forgotPayload,·otp:·res?.data?.data?.otp·` with `...forgotPayload,·otp:·res?.data?.data?.otp`"
prettier/prettier
|
| Error |
Row 55, Column 40: "Replace `⏎··········'error',⏎··········'Error',⏎··········response.message,⏎········` with `'error',·'Error',·response.message`"
prettier/prettier
|
| Error |
Row 60, Column 8: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 68, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 72, Column 4: "Replace `⏎⏎⏎` with `;`"
prettier/prettier
|
| Warning |
Row 72, Column 4: "Missing semicolon."
semi
|
| Error |
Row 85, Column 22: "Replace `'down'` with `"down"`"
prettier/prettier
|
| Warning |
Row 85, Column 22: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 86, Column 14: "Inline style: { margin: 0 }"
react-native/no-inline-styles
|
| Error |
Row 86, Column 15: "Replace `·margin:·0,·` with `margin:·0`"
prettier/prettier
|
| Warning |
Row 86, Column 25: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 88, Column 16: "Replace `·label={isChangePassword·?·'Verify·Otp'·:·type·===·'email'·?·`Verify·Email·Address`·:·'Verify·Phone·Number'}·style={styles.FORGOT_TXT}` with `⏎··········label={⏎············isChangePassword⏎··············?·'Verify·Otp'⏎··············:·type·===·'email'⏎··············?·`Verify·Email·Address`⏎··············:·'Verify·Phone·Number'⏎··········}⏎··········style={styles.FORGOT_TXT}⏎·······`"
prettier/prettier
|
| Warning |
Row 88, Column 77: "Strings must use singlequote."
quotes
|
| Error |
Row 95, Column 22: "Replace `isChangePassword·?·onReset·:·async` with `⏎··············isChangePassword⏎················?·onReset⏎················:·async·`"
prettier/prettier
|
| Error |
Row 96, Column 1: "Replace `··············` with `····················`"
prettier/prettier
|
| Error |
Row 97, Column 1: "Insert `······`"
prettier/prettier
|
| Error |
Row 98, Column 1: "Insert `······`"
prettier/prettier
|
| Error |
Row 99, Column 19: "Insert `······`"
prettier/prettier
|
| Error |
Row 100, Column 21: "Insert `······`"
prettier/prettier
|
| Error |
Row 101, Column 1: "Replace `····················` with `··························`"
prettier/prettier
|
| Error |
Row 102, Column 1: "Insert `······`"
prettier/prettier
|
| Error |
Row 103, Column 19: "Replace `)` with `······);`"
prettier/prettier
|
| Warning |
Row 103, Column 20: "Missing semicolon."
semi
|
| Error |
Row 104, Column 1: "Replace `················` with `······················`"
prettier/prettier
|
| Error |
Row 105, Column 1: "Insert `······`"
prettier/prettier
|
| Error |
Row 106, Column 1: "Replace `····················` with `··························`"
prettier/prettier
|
| Error |
Row 107, Column 1: "Insert `······`"
prettier/prettier
|
| Error |
Row 108, Column 21: "Insert `······`"
prettier/prettier
|
| Error |
Row 109, Column 1: "Replace `··················` with `························`"
prettier/prettier
|
| Error |
Row 110, Column 1: "Insert `······`"
prettier/prettier
|
| Error |
Row 111, Column 15: "Insert `······`"
prettier/prettier
|
| Error |
Row 112, Column 1: "Replace `··············` with `····················`"
prettier/prettier
|
| Error |
Row 113, Column 13: "Replace `}` with `······}⏎············`"
prettier/prettier
|
| Error |
Row 116, Column 21: "Replace `·marginTop:·mvs(40)·` with `marginTop:·mvs(40)`"
prettier/prettier
|
| Error |
Row 119, Column 42: "Insert `·`"
prettier/prettier
|
| Warning |
Row 127, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 127, Column 17: "Delete `⏎················`"
prettier/prettier
|
| Error |
Row 129, Column 56: "Replace `(error)=>` with `·error·=>·`"
prettier/prettier
|
| Error |
Row 130, Column 50: "Replace `⏎····················'error',⏎····················'Error',⏎····················error,⏎··················` with `'error',·'Error',·error`"
prettier/prettier
|
| Warning |
Row 140, Column 37: "Expected '!==' and instead saw '!='."
eqeqeq
|
| Error |
Row 151, Column 21: "Replace `·marginTop:·mvs(10)·` with `marginTop:·mvs(10)`"
prettier/prettier
|
| Error |
Row 156, Column 21: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎········translucent⏎········activeStatusBarStyle={'light-content'}⏎········inactiveStatusBarBackgroundColor={colors.primary}⏎········ref={alertRef}⏎·····`"
prettier/prettier
|
| Error |
Row 169, Column 36: "Insert `,`"
prettier/prettier
|
| Warning |
Row 169, Column 36: "Missing trailing comma."
comma-dangle
|
| Error |
Row 193, Column 4: "Replace `⏎⏎` with `,`"
prettier/prettier
|
| Warning |
Row 193, Column 4: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 196, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 196, Column 4: "Insert `⏎`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_2_API from '@khan_ahmad786/common/api/API'; |
| 2 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 3 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 4 |
import React from 'react'; |
| Error |
Row 5, Column 9: "Replace `·View,·Text,·StyleSheet·` with `View,·Text,·StyleSheet`"
prettier/prettier
|
| Warning |
Row 5, Column 16: "'Text' is defined but never used."
no-unused-vars
|
| 5 |
import { View, Text, StyleSheet } from 'react-native'; |
| 6 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 7 |
import ReactNativeModal from 'react-native-modal'; |
| 8 |
import colors from '../../../../config/colors'; |
| Error |
Row 9, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 9 |
import { mvs } from '../../../../config/metrices'; |
| 10 |
import Medium from '../../../../presentation/typography/medium-text'; |
| Warning |
Row 11, Column 8: "'Regular' is defined but never used."
no-unused-vars
|
| 11 |
import Regular from '../../../../presentation/typography/regular-text'; |
| 12 |
import Buttons from '../../../atoms/Button'; |
| Warning |
Row 13, Column 8: "'ModalWrapper' is defined but never used."
no-unused-vars
|
| 13 |
import ModalWrapper from '../../modal-wrapper/modal-wrapper'; |
| Error |
Row 14, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 14 |
import { TAKE_TO_INPUT_FIELD } from './../../../atoms/Input'; |
| 15 |
const EmailVerificationModal = ({ |
| 16 |
type = 'email', |
| 17 |
isChangePassword = false, |
| 18 |
visible, |
| 19 |
onOkResult, |
| 20 |
forgotPayload, |
| 21 |
setForgotPayload, |
| 22 |
onClose, |
| 23 |
//for email otp verify and onResend |
| 24 |
verify, |
| 25 |
onResendCode, |
| Error |
Row 26, Column 15: "Insert `,`"
prettier/prettier
|
| Warning |
Row 26, Column 15: "Missing trailing comma."
comma-dangle
|
| 26 |
resendLoader |
| Error |
Row 27, Column 8: "Delete `⏎`"
prettier/prettier
|
| 27 |
}) => { |
| 28 |
|
| 29 |
const [enteredOtp, setEnteredOtp] = React.useState(''); |
| 30 |
const [loading, setLoading] = React.useState(false); |
| 31 |
const [verifyloading, setVerifyloading] = React.useState(false); |
| 32 |
const alertRef = React.useRef(); |
| 33 |
|
| 34 |
const onClosing = () => { |
| 35 |
if (!loading) { |
| 36 |
onClose(); |
| Error |
Row 37, Column 24: "Insert `;`"
prettier/prettier
|
| Warning |
Row 37, Column 24: "Missing semicolon."
semi
|
| 37 |
setEnteredOtp('') |
| 38 |
} |
| Error |
Row 39, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 39, Column 4: "Missing semicolon."
semi
|
| 39 |
} |
| 40 |
const onReset = async () => { |
| 41 |
try { |
| Error |
Row 42, Column 58: "Replace `·email:·forgotPayload?.email` with `⏎········email:·forgotPayload?.email,⏎·····`"
prettier/prettier
|
| 42 |
const response = TAKE_TO_CONSTANT.resetValidation({ email: forgotPayload?.email }); |
| 43 |
if (response.status) { |
| 44 |
setLoading(true); |
| 45 |
const res = await TAKE_2_API?.forgotPassword(forgotPayload?.email); |
| 46 |
console.log('res in onrest::', res); |
| Error |
Row 47, Column 20: "Replace `·...forgotPayload,·otp:·res?.data?.data?.otp·` with `...forgotPayload,·otp:·res?.data?.data?.otp`"
prettier/prettier
|
| 47 |
let obj = { ...forgotPayload, otp: res?.data?.data?.otp }; |
| 48 |
setForgotPayload(obj); |
| 49 |
alertRef.current.alertWithType( |
| 50 |
'success', |
| 51 |
'Email OTP', |
| 52 |
'OTP sent on your provided email successfully', |
| 53 |
); |
| 54 |
} else { |
| Error |
Row 55, Column 40: "Replace `⏎··········'error',⏎··········'Error',⏎··········response.message,⏎········` with `'error',·'Error',·response.message`"
prettier/prettier
|
| 55 |
alertRef.current.alertWithType( |
| 56 |
'error', |
| 57 |
'Error', |
| 58 |
response.message, |
| 59 |
); |
| Error |
Row 60, Column 8: "Delete `⏎`"
prettier/prettier
|
| 60 |
} |
| 61 |
|
| 62 |
} catch (error) { |
| 63 |
alertRef.current.alertWithType( |
| 64 |
'error', |
| 65 |
'Error', |
| 66 |
UI_API._returnError(error), |
| 67 |
); |
| Error |
Row 68, Column 1: "Delete `⏎`"
prettier/prettier
|
| 68 |
|
| 69 |
} finally { |
| 70 |
setLoading(false); |
| 71 |
} |
| Error |
Row 72, Column 4: "Replace `⏎⏎⏎` with `;`"
prettier/prettier
|
| Warning |
Row 72, Column 4: "Missing semicolon."
semi
|
| 72 |
} |
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
return ( |
| 78 |
<ReactNativeModal |
| 79 |
propagateSwipe |
| 80 |
isVisible={visible} |
| 81 |
avoidKeyboard |
| 82 |
onBackButtonPress={() => onClosing()} |
| 83 |
onBackdropPress={() => onClosing()} |
| 84 |
onSwipeComplete={() => onClosing()} |
| Error |
Row 85, Column 22: "Replace `'down'` with `"down"`"
prettier/prettier
|
| Warning |
Row 85, Column 22: "Unexpected usage of singlequote."
jsx-quotes
|
| 85 |
swipeDirection='down' |
| Warning |
Row 86, Column 14: "Inline style: { margin: 0 }"
react-native/no-inline-styles
|
| Error |
Row 86, Column 15: "Replace `·margin:·0,·` with `margin:·0`"
prettier/prettier
|
| Warning |
Row 86, Column 25: "Unexpected trailing comma."
comma-dangle
|
| 86 |
style={{ margin: 0, }}> |
| 87 |
<View style={styles.CONTAINER}> |
| Error |
Row 88, Column 16: "Replace `·label={isChangePassword·?·'Verify·Otp'·:·type·===·'email'·?·`Verify·Email·Address`·:·'Verify·Phone·Number'}·style={styles.FORGOT_TXT}` with `⏎··········label={⏎············isChangePassword⏎··············?·'Verify·Otp'⏎··············:·type·===·'email'⏎··············?·`Verify·Email·Address`⏎··············:·'Verify·Phone·Number'⏎··········}⏎··········style={styles.FORGOT_TXT}⏎·······`"
prettier/prettier
|
| Warning |
Row 88, Column 77: "Strings must use singlequote."
quotes
|
| 88 |
<Medium label={isChangePassword ? 'Verify Otp' : type === 'email' ? `Verify Email Address` : 'Verify Phone Number'} style={styles.FORGOT_TXT} /> |
| 89 |
<View style={styles.SUB_CONTAINER}> |
| 90 |
<TAKE_TO_INPUT_FIELD.CustomOtpInput |
| 91 |
value={enteredOtp} |
| 92 |
setValue={setEnteredOtp} |
| 93 |
/> |
| 94 |
<Buttons.ButtonSecondaryOutline |
| Error |
Row 95, Column 22: "Replace `isChangePassword·?·onReset·:·async` with `⏎··············isChangePassword⏎················?·onReset⏎················:·async·`"
prettier/prettier
|
| 95 |
onClick={isChangePassword ? onReset : async() => { |
| Error |
Row 96, Column 1: "Replace `··············` with `····················`"
prettier/prettier
|
| 96 |
setLoading(true); |
| Error |
Row 97, Column 1: "Insert `······`"
prettier/prettier
|
| 97 |
await onResendCode('email', (error, success, message) => { |
| Error |
Row 98, Column 1: "Insert `······`"
prettier/prettier
|
| 98 |
if (error) { |
| Error |
Row 99, Column 19: "Insert `······`"
prettier/prettier
|
| 99 |
alertRef.current.alertWithType( |
| Error |
Row 100, Column 21: "Insert `······`"
prettier/prettier
|
| 100 |
'error', |
| Error |
Row 101, Column 1: "Replace `····················` with `··························`"
prettier/prettier
|
| 101 |
'Error', |
| Error |
Row 102, Column 1: "Insert `······`"
prettier/prettier
|
| 102 |
message, |
| Error |
Row 103, Column 19: "Replace `)` with `······);`"
prettier/prettier
|
| Warning |
Row 103, Column 20: "Missing semicolon."
semi
|
| 103 |
) |
| Error |
Row 104, Column 1: "Replace `················` with `······················`"
prettier/prettier
|
| 104 |
} else if (success) { |
| Error |
Row 105, Column 1: "Insert `······`"
prettier/prettier
|
| 105 |
alertRef.current.alertWithType( |
| Error |
Row 106, Column 1: "Replace `····················` with `··························`"
prettier/prettier
|
| 106 |
'success', |
| Error |
Row 107, Column 1: "Insert `······`"
prettier/prettier
|
| 107 |
'Email OTP', |
| Error |
Row 108, Column 21: "Insert `······`"
prettier/prettier
|
| 108 |
message, |
| Error |
Row 109, Column 1: "Replace `··················` with `························`"
prettier/prettier
|
| 109 |
); |
| Error |
Row 110, Column 1: "Insert `······`"
prettier/prettier
|
| 110 |
} |
| Error |
Row 111, Column 15: "Insert `······`"
prettier/prettier
|
| 111 |
}); |
| Error |
Row 112, Column 1: "Replace `··············` with `····················`"
prettier/prettier
|
| 112 |
setLoading(false); |
| Error |
Row 113, Column 13: "Replace `}` with `······}⏎············`"
prettier/prettier
|
| 113 |
}} |
| 114 |
loading={loading} |
| 115 |
disabled={loading} |
| Error |
Row 116, Column 21: "Replace `·marginTop:·mvs(40)·` with `marginTop:·mvs(40)`"
prettier/prettier
|
| 116 |
style={{ marginTop: mvs(40) }} |
| 117 |
title={`Resend code by ${type}`} |
| 118 |
/> |
| Error |
Row 119, Column 42: "Insert `·`"
prettier/prettier
|
| 119 |
{console.log('forgotPayload::',forgotPayload)} |
| 120 |
<Buttons.ButtonPrimary |
| 121 |
loaderColor={colors.white} |
| 122 |
disabled={verifyloading} |
| 123 |
loading={verifyloading} |
| 124 |
onClick={async () => { |
| 125 |
console.log('enteredOtp:::', enteredOtp); |
| 126 |
if (!isChangePassword) { |
| Warning |
Row 127, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 127, Column 17: "Delete `⏎················`"
prettier/prettier
|
| 127 |
|
| 128 |
setVerifyloading(true); |
| Error |
Row 129, Column 56: "Replace `(error)=>` with `·error·=>·`"
prettier/prettier
|
| 129 |
await verify(enteredOtp, setEnteredOtp,(error)=>{ |
| Error |
Row 130, Column 50: "Replace `⏎····················'error',⏎····················'Error',⏎····················error,⏎··················` with `'error',·'Error',·error`"
prettier/prettier
|
| 130 |
alertRef.current.alertWithType( |
| 131 |
'error', |
| 132 |
'Error', |
| 133 |
error, |
| 134 |
); |
| 135 |
}); |
| 136 |
setVerifyloading(false); |
| 137 |
// setEnteredOtp('') |
| 138 |
return; |
| 139 |
} |
| Warning |
Row 140, Column 37: "Expected '!==' and instead saw '!='."
eqeqeq
|
| 140 |
if (forgotPayload.otp != enteredOtp) { |
| 141 |
alertRef.current.alertWithType( |
| 142 |
'error', |
| 143 |
'Otp', |
| 144 |
'Oops! It seems that you entered invalid otp', |
| 145 |
); |
| 146 |
} else { |
| 147 |
onOkResult(); |
| 148 |
setEnteredOtp(''); |
| 149 |
} |
| 150 |
}} |
| Error |
Row 151, Column 21: "Replace `·marginTop:·mvs(10)·` with `marginTop:·mvs(10)`"
prettier/prettier
|
| 151 |
style={{ marginTop: mvs(10) }} |
| 152 |
title={'Verify'} |
| 153 |
/> |
| 154 |
</View> |
| 155 |
</View> |
| Error |
Row 156, Column 21: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎········translucent⏎········activeStatusBarStyle={'light-content'}⏎········inactiveStatusBarBackgroundColor={colors.primary}⏎········ref={alertRef}⏎·····`"
prettier/prettier
|
| 156 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 157 |
</ReactNativeModal> |
| 158 |
); |
| 159 |
}; |
| 160 |
export default EmailVerificationModal; |
| 161 |
|
| 162 |
const styles = StyleSheet.create({ |
| 163 |
CONTAINER: { |
| 164 |
position: 'absolute', |
| 165 |
width: '100%', |
| 166 |
bottom: 0, |
| 167 |
borderTopLeftRadius: mvs(20), |
| 168 |
borderTopRightRadius: mvs(20), |
| Error |
Row 169, Column 36: "Insert `,`"
prettier/prettier
|
| Warning |
Row 169, Column 36: "Missing trailing comma."
comma-dangle
|
| 169 |
backgroundColor: colors.primary |
| 170 |
}, |
| 171 |
FORGOT_TXT: { |
| 172 |
fontSize: mvs(15), |
| 173 |
color: colors.white, |
| 174 |
alignSelf: 'center', |
| 175 |
marginTop: mvs(13), |
| 176 |
marginBottom: mvs(16), |
| 177 |
}, |
| 178 |
SUB_CONTAINER: { |
| 179 |
flexGrow: 1, |
| 180 |
backgroundColor: colors.white, |
| 181 |
paddingHorizontal: mvs(22), |
| 182 |
paddingVertical: mvs(17), |
| 183 |
borderTopLeftRadius: mvs(20), |
| 184 |
borderTopRightRadius: mvs(20), |
| 185 |
}, |
| 186 |
RESET: { |
| 187 |
width: '49%', |
| 188 |
}, |
| 189 |
BUTTON_CONTAINER: { |
| 190 |
marginTop: mvs(13), |
| 191 |
flexDirection: 'row', |
| 192 |
justifyContent: 'space-between', |
| Error |
Row 193, Column 4: "Replace `⏎⏎` with `,`"
prettier/prettier
|
| Warning |
Row 193, Column 4: "Missing trailing comma."
comma-dangle
|
| 193 |
} |
| 194 |
|
| 195 |
|
| Warning |
Row 196, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 196, Column 4: "Insert `⏎`"
prettier/prettier
|
| 196 |
}); |
|
|
|
/src/components/molecules/modals/setting-modals/identity-verification-modal.js
|
29 problems (20 errors, 9 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·View,·Text·` with `View,·Text`"
prettier/prettier
|
| Warning |
Row 2, Column 16: "'Text' is defined but never used."
no-unused-vars
|
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 7, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 7, Column 10: "'TAKE_TO_INPUT_FIELD' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 38: "Replace `=false,` with `·=·false,·`"
prettier/prettier
|
| Warning |
Row 10, Column 38: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 11, Column 3: "Replace `··const·[payload,setPayload]=` with `const·[payload,·setPayload]·=·`"
prettier/prettier
|
| Warning |
Row 11, Column 12: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 11, Column 20: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 11, Column 31: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 12, Column 1: "Replace `········email:` with `····email:·`"
prettier/prettier
|
| Error |
Row 13, Column 1: "Replace `········otpCode:` with `····otpCode:·`"
prettier/prettier
|
| Error |
Row 14, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 15, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 16, Column 1: "Replace `·······prettier/prettier
|
| Error |
Row 17, Column 1: "Replace `·············prettier/prettier
|
| Warning |
Row 17, Column 27: "Inline style: { alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 18, Column 9: "Replace `·········` with `prettier/prettier
|
| Error |
Row 19, Column 9: "Replace `·········` with `/>⏎········prettier/prettier
|
| Warning |
Row 19, Column 31: "Inline style: { alignItems: 'center', justifyContent: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 20, Column 11: "Replace `·········⏎··········prettier/prettier
|
| Error |
Row 21, Column 1: "Replace `·················` with `········`"
prettier/prettier
|
| Error |
Row 22, Column 1: "Replace `·············` with `······`"
prettier/prettier
|
| Error |
Row 23, Column 1: "Replace `············{}}·style={{marginTop:mvs(10)}}·title={'Upload'}/>` with `·······{}}⏎········style={{marginTop:·mvs(10)}}⏎········title={'Upload'}`"
prettier/prettier
|
| Error |
Row 24, Column 7: "Insert `/>⏎···`"
prettier/prettier
|
| Error |
Row 25, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 27, Column 36: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 27, Column 36: "Insert `⏎`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·Text·` with `View,·Text`"
prettier/prettier
|
| Warning |
Row 2, Column 16: "'Text' is defined but never used."
no-unused-vars
|
| 2 |
import { View, Text } from 'react-native'; |
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 3 |
import { mvs } from '../../../../config/metrices'; |
| 4 |
import Regular from '../../../../presentation/typography/regular-text'; |
| 5 |
import Buttons from '../../../atoms/Button'; |
| 6 |
import ModalWrapper from '../../modal-wrapper/modal-wrapper'; |
| Error |
Row 7, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 7, Column 10: "'TAKE_TO_INPUT_FIELD' is defined but never used."
no-unused-vars
|
| 7 |
import { TAKE_TO_INPUT_FIELD } from '../../../atoms/Input'; |
| 8 |
import Camera from './../../../../../resource/assets/headers-icons/camera.svg'; |
| 9 |
import colors from './../../../../config/colors'; |
| Error |
Row 10, Column 38: "Replace `=false,` with `·=·false,·`"
prettier/prettier
|
| Warning |
Row 10, Column 38: "Operator '=' must be spaced."
space-infix-ops
|
| 10 |
const IdVerificationModal = ({visible=false,onCLose}) => { |
| Error |
Row 11, Column 3: "Replace `··const·[payload,setPayload]=` with `const·[payload,·setPayload]·=·`"
prettier/prettier
|
| Warning |
Row 11, Column 12: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 11, Column 20: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 11, Column 31: "Operator '=' must be spaced."
space-infix-ops
|
| 11 |
const [payload,setPayload]=React.useState({ |
| Error |
Row 12, Column 1: "Replace `········email:` with `····email:·`"
prettier/prettier
|
| 12 |
email:'', |
| Error |
Row 13, Column 1: "Replace `········otpCode:` with `····otpCode:·`"
prettier/prettier
|
| 13 |
otpCode:'', |
| Error |
Row 14, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 14 |
}); |
| Error |
Row 15, Column 1: "Delete `··`"
prettier/prettier
|
| 15 |
return ( |
| Error |
Row 16, Column 1: "Replace `·······prettier/prettier
|
| 16 |
<ModalWrapper onClose={onCLose} title={'Verify Your Identity'} isBack={true} visible={visible}> |
| Error |
Row 17, Column 1: "Replace `·············prettier/prettier
|
| Warning |
Row 17, Column 27: "Inline style: { alignItems: 'center' }"
react-native/no-inline-styles
|
| 17 |
<View style={{alignItems:'center',paddingBottom:mvs(40)}}> |
| Error |
Row 18, Column 9: "Replace `·········` with `prettier/prettier
|
| 18 |
<Regular label={'Upload Civil ID picture'} style={{marginBottom:mvs(30)}}/> |
| Error |
Row 19, Column 9: "Replace `·········` with `/>⏎········prettier/prettier
|
| Warning |
Row 19, Column 31: "Inline style: { alignItems: 'center', justifyContent: 'center' }"
react-native/no-inline-styles
|
| 19 |
<View style={{height:mvs(130),width:mvs(130),backgroundColor:colors.secondary,alignItems:'center',justifyContent:'center',borderRadius:mvs(20)}}> |
| Error |
Row 20, Column 11: "Replace `·········⏎··········prettier/prettier
|
| 20 |
<Camera/> |
| Error |
Row 21, Column 1: "Replace `·················` with `········`"
prettier/prettier
|
| 21 |
</View> |
| Error |
Row 22, Column 1: "Replace `·············` with `······`"
prettier/prettier
|
| 22 |
</View> |
| Error |
Row 23, Column 1: "Replace `············{}}·style={{marginTop:mvs(10)}}·title={'Upload'}/>` with `·······{}}⏎········style={{marginTop:·mvs(10)}}⏎········title={'Upload'}`"
prettier/prettier
|
| 23 |
<Buttons.ButtonPrimary onClick={()=>{}} style={{marginTop:mvs(10)}} title={'Upload'}/> |
| Error |
Row 24, Column 7: "Insert `/>⏎···`"
prettier/prettier
|
| 24 |
</ModalWrapper> |
| Error |
Row 25, Column 1: "Delete `··`"
prettier/prettier
|
| 25 |
); |
| 26 |
}; |
| Warning |
Row 27, Column 36: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 27, Column 36: "Insert `⏎`"
prettier/prettier
|
| 27 |
export default IdVerificationModal; |
|
|
|
/src/components/molecules/modals/setting-modals/phone-verification-modal.js
|
5 problems (2 errors, 3 warnings)
|
| Severity |
Rule |
| Warning |
Row 2, Column 9: "'View' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 15: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 4, Column 8: "'Regular' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 34: "Replace `visible·=·false,·onCLose,·onVerify,·onSend` with `⏎··visible·=·false,⏎··onCLose,⏎··onVerify,⏎··onSend,⏎`"
prettier/prettier
|
| Error |
Row 60, Column 20: "Replace `=>onVerify(payload?.otpCode,` with `·=>·onVerify(payload?.otpCode,·`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Warning |
Row 2, Column 9: "'View' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 15: "'Text' is defined but never used."
no-unused-vars
|
| 2 |
import {View, Text} from 'react-native'; |
| 3 |
import {mvs} from '../../../../config/metrices'; |
| Warning |
Row 4, Column 8: "'Regular' is defined but never used."
no-unused-vars
|
| 4 |
import Regular from '../../../../presentation/typography/regular-text'; |
| 5 |
import Buttons from '../../../atoms/Button'; |
| 6 |
import ModalWrapper from '../../modal-wrapper/modal-wrapper'; |
| 7 |
import {TAKE_TO_INPUT_FIELD} from '../../../atoms/Input'; |
| 8 |
import CustomPhoneInput from './../../phone-input/phone-input'; |
| 9 |
import colors from './../../../../config/colors'; |
| Error |
Row 10, Column 34: "Replace `visible·=·false,·onCLose,·onVerify,·onSend` with `⏎··visible·=·false,⏎··onCLose,⏎··onVerify,⏎··onSend,⏎`"
prettier/prettier
|
| 10 |
const PhoneVerificationModal = ({visible = false, onCLose, onVerify, onSend}) => { |
| 11 |
const [payload, setPayload] = React.useState({ |
| 12 |
phone: '', |
| 13 |
otpCode: '', |
| 14 |
}); |
| 15 |
return ( |
| 16 |
<ModalWrapper |
| 17 |
onClose={onCLose} |
| 18 |
title={'Add phone number'} |
| 19 |
isBack={true} |
| 20 |
visible={visible}> |
| 21 |
<CustomPhoneInput |
| 22 |
label="Phone Number" |
| 23 |
setPhone={t => setPayload({...payload, phone: t})} |
| 24 |
phone={payload.phone} |
| 25 |
/> |
| 26 |
<Buttons.ButtonPrimary |
| 27 |
textStyle={{color: payload.phone ? colors.doted : colors.white}} |
| 28 |
//disabled={!payload.phone} |
| 29 |
onClick={onSend} |
| 30 |
style={{ |
| 31 |
marginTop: mvs(10), |
| 32 |
backgroundColor: payload.phone ? colors.secondary : colors.primary, |
| 33 |
}} |
| 34 |
title={'Send Code'} |
| 35 |
/> |
| 36 |
<TAKE_TO_INPUT_FIELD.CustomOtpInput |
| 37 |
value={payload.otpCode} |
| 38 |
setValue={c => setPayload({...payload, otpCode: c})} |
| 39 |
/> |
| 40 |
{payload.phone ? ( |
| 41 |
<> |
| 42 |
<Buttons.ButtonSecondaryOutline |
| 43 |
style={{marginTop: mvs(40)}} |
| 44 |
onClick={() => {}} |
| 45 |
title={'Resend code'} |
| 46 |
/> |
| 47 |
<Buttons.ButtonSecondaryOutline |
| 48 |
style={{marginTop: mvs(10)}} |
| 49 |
onClick={() => {}} |
| 50 |
title={'Verify via Voice Call'} |
| 51 |
/> |
| 52 |
</> |
| 53 |
) : null} |
| 54 |
<Buttons.ButtonPrimary |
| 55 |
textStyle={{color: payload.phone ? colors.white : colors.doted}} |
| 56 |
style={{ |
| 57 |
backgroundColor: payload.phone ? colors.primary : colors.secondary, |
| 58 |
marginTop: mvs(payload.phone ? 10 : 164), |
| 59 |
}} |
| Error |
Row 60, Column 20: "Replace `=>onVerify(payload?.otpCode,` with `·=>·onVerify(payload?.otpCode,·`"
prettier/prettier
|
| 60 |
onClick={()=>onVerify(payload?.otpCode,'mobile')} |
| 61 |
title={'Verify'} |
| 62 |
/> |
| 63 |
</ModalWrapper> |
| 64 |
); |
| 65 |
}; |
| 66 |
export default PhoneVerificationModal; |
| 67 |
|
|
|
|
/src/components/molecules/modals/status-modal.js
|
140 problems (85 errors, 55 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·View·` with `StyleSheet,·View`"
prettier/prettier
|
| Error |
Row 5, Column 9: "Replace `·ms,·mvs·` with `ms,·mvs`"
prettier/prettier
|
| Warning |
Row 8, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| Warning |
Row 10, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| Warning |
Row 11, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 12, Column 23: "Replace `·btnColor,visible,·onClose,·onConfirm,·title,·titleStyle,·buttonTitle,·name·=·"Zenab·Thaqi",·fromApprove·=·false,·endButton·=·false,·endButtonTitle,·mainButton·=·false,·endButtonStyle,·product·=·false·` with `⏎··btnColor,⏎··visible,⏎··onClose,⏎··onConfirm,⏎··title,⏎··titleStyle,⏎··buttonTitle,⏎··name·=·'Zenab·Thaqi',⏎··fromApprove·=·false,⏎··endButton·=·false,⏎··endButtonTitle,⏎··mainButton·=·false,⏎··endButtonStyle,⏎··product·=·false,⏎`"
prettier/prettier
|
| Warning |
Row 12, Column 101: "Strings must use singlequote."
quotes
|
| Warning |
Row 13, Column 10: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 13, Column 19: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 14, Column 76: "Insert `,`"
prettier/prettier
|
| Warning |
Row 14, Column 76: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 24, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 24, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| Error |
Row 32, Column 37: "Replace `"Sent")·?·colors.primary·:⏎················title.includes("Accepted")·||·title.includes("Approve")·?·colors.green` with `'Sent')⏎················?·colors.primary⏎················:·title.includes('Accepted')·||·title.includes('Approve')⏎················?·colors.green⏎···············`"
prettier/prettier
|
| Warning |
Row 32, Column 37: "Strings must use singlequote."
quotes
|
| Warning |
Row 33, Column 32: "Strings must use singlequote."
quotes
|
| Warning |
Row 33, Column 62: "Strings must use singlequote."
quotes
|
| Error |
Row 34, Column 15: "Insert `⏎·········`"
prettier/prettier
|
| Warning |
Row 36, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 36, Column 21: "Replace `"Receipt·Sent"·&&·` with `'Receipt·Sent'·&&·(⏎············`"
prettier/prettier
|
| Warning |
Row 36, Column 21: "Strings must use singlequote."
quotes
|
| Error |
Row 37, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 38, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 38, Column 20: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 39, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 40, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 41, Column 15: "Replace `alignSelf:·'center'` with `··alignSelf:·'center',`"
prettier/prettier
|
| Warning |
Row 41, Column 34: "Missing trailing comma."
comma-dangle
|
| Error |
Row 42, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 43, Column 11: "Replace `/>}⏎⏎` with `··/>⏎··········)}`"
prettier/prettier
|
| Warning |
Row 47, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 47, Column 21: "Replace `"Product·Sent"·&&·` with `'Product·Sent'·&&·(⏎············`"
prettier/prettier
|
| Warning |
Row 47, Column 21: "Strings must use singlequote."
quotes
|
| Error |
Row 48, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 49, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 49, Column 20: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 50, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 51, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 52, Column 15: "Replace `alignSelf:·'center'` with `··alignSelf:·'center',`"
prettier/prettier
|
| Warning |
Row 52, Column 34: "Missing trailing comma."
comma-dangle
|
| Error |
Row 53, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 54, Column 11: "Replace `/>` with `··/>⏎··········)`"
prettier/prettier
|
| Warning |
Row 56, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 56, Column 21: "Replace `"Receipt·Accepted"·&&·!fromApprove·&&·` with `'Receipt·Accepted'·&&·!fromApprove·&&·(⏎············`"
prettier/prettier
|
| Warning |
Row 56, Column 21: "Strings must use singlequote."
quotes
|
| Error |
Row 57, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 58, Column 13: "Replace `highlightTextStyle={{·color:·colors.primary,·fontSize:·mvs(15)·` with `··highlightTextStyle={{color:·colors.primary,·fontSize:·mvs(15)`"
prettier/prettier
|
| Error |
Row 59, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 60, Column 13: "Replace `style={{·color:·colors.typeHeader,·fontSize:·mvs(15),·marginTop:·mvs(10),·textAlign:·'center'·}}` with `··style={{⏎················color:·colors.typeHeader,⏎················fontSize:·mvs(15),⏎················marginTop:·mvs(10),⏎················textAlign:·'center',`"
prettier/prettier
|
| Warning |
Row 60, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 61, Column 11: "Insert `····}}`"
prettier/prettier
|
| Error |
Row 62, Column 1: "Replace `············prettier/prettier
|
| Warning |
Row 62, Column 29: "Strings must use singlequote."
quotes
|
| Error |
Row 63, Column 11: "Replace `` with `··⏎··········)`"
prettier/prettier
|
| Warning |
Row 65, Column 19: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 65, Column 22: "Replace `"Receipt·Accepted"·||·title·==·"Approve·Receipt")·&&·fromApprove·&&·` with `'Receipt·Accepted'·||·title·==·'Approve·Receipt')·&&⏎············fromApprove·&&·(⏎··············`"
prettier/prettier
|
| Warning |
Row 65, Column 22: "Strings must use singlequote."
quotes
|
| Warning |
Row 65, Column 50: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 65, Column 53: "Strings must use singlequote."
quotes
|
| Error |
Row 66, Column 1: "Replace `············style={{·marginTop:·mvs(10),·textAlign:·'center'·` with `················style={{marginTop:·mvs(10),·textAlign:·'center'`"
prettier/prettier
|
| Warning |
Row 66, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 67, Column 1: "Replace `············` with `················`"
prettier/prettier
|
| Error |
Row 68, Column 1: "Replace `············highlightTextStyle={{·fontSize:·mvs(15)·}}` with `················highlightTextStyle={{fontSize:·mvs(15)}}>`"
prettier/prettier
|
| Error |
Row 69, Column 11: "Replace `>⏎············prettier/prettier
|
| Error |
Row 71, Column 1: "Replace `··············label={`·will·be·notified.`}` with `··················label={`·will·be·notified.`}⏎···············`"
prettier/prettier
|
| Warning |
Row 71, Column 22: "Strings must use singlequote."
quotes
|
| Error |
Row 72, Column 1: "Replace `··········}⏎` with `··············⏎············)}`"
prettier/prettier
|
| Warning |
Row 75, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 75, Column 21: "Replace `"Deal·Rejected"·&&·` with `'Deal·Rejected'·&&·(⏎············`"
prettier/prettier
|
| Warning |
Row 75, Column 21: "Strings must use singlequote."
quotes
|
| Warning |
Row 75, Column 40: "Empty components are self-closing"
react/self-closing-comp
|
| Error |
Row 76, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 76, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 77, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 78, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 79, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 80, Column 1: "Replace `··············color:·colors.typeHeader` with `················color:·colors.typeHeader,`"
prettier/prettier
|
| Warning |
Row 80, Column 39: "Missing trailing comma."
comma-dangle
|
| Error |
Row 81, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 82, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 83, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 83, Column 28: "Strings must use singlequote."
quotes
|
| Error |
Row 84, Column 13: "Replace `highlightTextStyle={{·fontSize:·mvs(15),·textAlign:·'center'·}}⏎··········>}⏎` with `··highlightTextStyle={{⏎················fontSize:·mvs(15),⏎················textAlign:·'center',⏎··············}}>⏎··········)}`"
prettier/prettier
|
| Warning |
Row 84, Column 33: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 88, Column 19: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 88, Column 22: "Replace `"Product·Accepted"·||·title·==·"Approve·Reward"·||·title·==·"Approve·Product")·&&·` with `'Product·Accepted'·||⏎············title·==·'Approve·Reward'·||⏎············title·==·'Approve·Product')·&&·(⏎············`"
prettier/prettier
|
| Warning |
Row 88, Column 22: "Strings must use singlequote."
quotes
|
| Warning |
Row 88, Column 50: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 88, Column 53: "Strings must use singlequote."
quotes
|
| Warning |
Row 88, Column 79: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 88, Column 82: "Strings must use singlequote."
quotes
|
| Error |
Row 89, Column 13: "Replace `style={{·marginTop:·mvs(10),·textAlign:·'center'·` with `··style={{marginTop:·mvs(10),·textAlign:·'center'`"
prettier/prettier
|
| Warning |
Row 89, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 90, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 91, Column 1: "Replace `············highlightTextStyle={{·fontSize:·mvs(15)·}}` with `··············highlightTextStyle={{fontSize:·mvs(15)}}>`"
prettier/prettier
|
| Error |
Row 92, Column 1: "Replace `··········>` with `··············prettier/prettier
|
| Error |
Row 93, Column 13: "Replace `prettier/prettier
|
| Warning |
Row 93, Column 133: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 94, Column 1: "Replace `··············label={`·is·notified·to·proceed·confirming·your·${product·?·'Product'·:·'Receipt'}.`}` with `················label={`·is·notified·to·proceed·confirming·your·${⏎··················product·?·'Product'·:·'Receipt'⏎················}.`}⏎·············`"
prettier/prettier
|
| Error |
Row 95, Column 1: "Replace `··········` with `············⏎··········)`"
prettier/prettier
|
| Error |
Row 97, Column 12: "Replace `(title·==·"Reject·Offer")·&&·` with `title·==·'Reject·Offer'·&&·(⏎············`"
prettier/prettier
|
| Warning |
Row 97, Column 19: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 97, Column 22: "Strings must use singlequote."
quotes
|
| Error |
Row 98, Column 1: "Replace `············style={{·marginTop:·mvs(10),·textAlign:·'center'·` with `··············style={{marginTop:·mvs(10),·textAlign:·'center'`"
prettier/prettier
|
| Warning |
Row 98, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 99, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 100, Column 1: "Replace `············highlightTextStyle={{·fontSize:·mvs(15)·}}` with `··············highlightTextStyle={{fontSize:·mvs(15)}}>`"
prettier/prettier
|
| Error |
Row 101, Column 1: "Replace `··········>` with `··············prettier/prettier
|
| Error |
Row 102, Column 13: "Replace `prettier/prettier
|
| Error |
Row 103, Column 15: "Replace `label={`·will·be·notified·that·the·offer·is·rejected.`}` with `··label={`·will·be·notified·that·the·offer·is·rejected.`}⏎·············`"
prettier/prettier
|
| Warning |
Row 103, Column 22: "Strings must use singlequote."
quotes
|
| Error |
Row 104, Column 1: "Replace `··········` with `············⏎··········)`"
prettier/prettier
|
| Warning |
Row 106, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 106, Column 21: "Replace `"Reward·Accepted"·&&·` with `'Reward·Accepted'·&&·(⏎············`"
prettier/prettier
|
| Warning |
Row 106, Column 21: "Strings must use singlequote."
quotes
|
| Error |
Row 107, Column 13: "Replace `style={{·marginTop:·mvs(10),·textAlign:·'center'·` with `··style={{marginTop:·mvs(10),·textAlign:·'center'`"
prettier/prettier
|
| Warning |
Row 107, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 108, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 109, Column 1: "Replace `············highlightTextStyle={{·fontSize:·mvs(15)·}}` with `··············highlightTextStyle={{fontSize:·mvs(15)}}>`"
prettier/prettier
|
| Error |
Row 110, Column 11: "Replace `>` with `····prettier/prettier
|
| Error |
Row 111, Column 13: "Replace `prettier/prettier
|
| Error |
Row 112, Column 1: "Replace `··············label={`·is·notified·to·proceed·confirming\nyour·Product.`}` with `················label={`·is·notified·to·proceed·confirming\nyour·Product.`}⏎·············`"
prettier/prettier
|
| Warning |
Row 112, Column 22: "Strings must use singlequote."
quotes
|
| Error |
Row 113, Column 1: "Replace `··········}` with `············`"
prettier/prettier
|
| Error |
Row 114, Column 1: "Insert `··········)}`"
prettier/prettier
|
| Error |
Row 121, Column 25: "Insert `·(`"
prettier/prettier
|
| Error |
Row 124, Column 23: "Replace `·...styles.BUTTON,·marginTop:·mvs(29)·` with `...styles.BUTTON,·marginTop:·mvs(29)`"
prettier/prettier
|
| Error |
Row 126, Column 15: "Insert `⏎··········)`"
prettier/prettier
|
| Error |
Row 128, Column 24: "Insert `·(`"
prettier/prettier
|
| Error |
Row 131, Column 23: "Replace `·...styles.BUTTON,·marginTop:·mvs(12),backgroundColor:btnColor` with `⏎················...styles.BUTTON,⏎················marginTop:·mvs(12),⏎················backgroundColor:·btnColor,⏎·············`"
prettier/prettier
|
| Error |
Row 133, Column 34: "Replace `?{color:colors.white}:` with `·?·{color:·colors.white}·:·`"
prettier/prettier
|
| Warning |
Row 133, Column 34: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 134, Column 15: "Insert `⏎··········)`"
prettier/prettier
|
| Error |
Row 147, Column 24: "Insert `,`"
prettier/prettier
|
| Warning |
Row 147, Column 24: "Missing trailing comma."
comma-dangle
|
| Error |
Row 150, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(20),` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(20),⏎·`"
prettier/prettier
|
| Warning |
Row 150, Column 118: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 151, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| Error |
Row 164, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| Error |
Row 242, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·View·` with `StyleSheet,·View`"
prettier/prettier
|
| 2 |
import { StyleSheet, View } from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| 4 |
import colors from '../../../config/colors'; |
| Error |
Row 5, Column 9: "Replace `·ms,·mvs·` with `ms,·mvs`"
prettier/prettier
|
| 5 |
import { ms, mvs } from '../../../config/metrices'; |
| 6 |
import Regular from '../../../presentation/typography/regular-text'; |
| 7 |
import Buttons from '../../atoms/Button'; |
| Warning |
Row 8, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| 8 |
import CustomSwitch from '../../atoms/Switch'; |
| 9 |
import DualText from '../dual-text/dual-text'; |
| Warning |
Row 10, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| 10 |
import SettingCard from '../setting_card/setting-card'; |
| Warning |
Row 11, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| 11 |
const list = [true, false, false, true]; |
| Error |
Row 12, Column 23: "Replace `·btnColor,visible,·onClose,·onConfirm,·title,·titleStyle,·buttonTitle,·name·=·"Zenab·Thaqi",·fromApprove·=·false,·endButton·=·false,·endButtonTitle,·mainButton·=·false,·endButtonStyle,·product·=·false·` with `⏎··btnColor,⏎··visible,⏎··onClose,⏎··onConfirm,⏎··title,⏎··titleStyle,⏎··buttonTitle,⏎··name·=·'Zenab·Thaqi',⏎··fromApprove·=·false,⏎··endButton·=·false,⏎··endButtonTitle,⏎··mainButton·=·false,⏎··endButtonStyle,⏎··product·=·false,⏎`"
prettier/prettier
|
| Warning |
Row 12, Column 101: "Strings must use singlequote."
quotes
|
| 12 |
const StatusModal = ({ btnColor,visible, onClose, onConfirm, title, titleStyle, buttonTitle, name = "Zenab Thaqi", fromApprove = false, endButton = false, endButtonTitle, mainButton = false, endButtonStyle, product = false }) => { |
| Warning |
Row 13, Column 10: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 13, Column 19: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| 13 |
const [payload, setPayload] = React.useState({ |
| Error |
Row 14, Column 76: "Insert `,`"
prettier/prettier
|
| Warning |
Row 14, Column 76: "Missing trailing comma."
comma-dangle
|
| 14 |
reason: 'Deliverer not responding to my messages after several trials.' |
| 15 |
}); |
| 16 |
|
| 17 |
return ( |
| 18 |
<ReactNativeModal |
| 19 |
propagateSwipe |
| 20 |
isVisible={visible} |
| 21 |
// avoidKeyboard |
| 22 |
onBackdropPress={() => onClose(f => !f)} |
| 23 |
onBackButtonPress={() => onClose(f => !f)} |
| Warning |
Row 24, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 24, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| 24 |
style={{ margin: 0, padding: 0 }}> |
| 25 |
<View style={styles.CONTAINER}> |
| 26 |
<View style={styles.SUB_CONTAINER}> |
| 27 |
<Regular |
| 28 |
label={title} |
| 29 |
style={{ |
| 30 |
...styles.HEADING_TXT, |
| 31 |
...titleStyle, |
| Error |
Row 32, Column 37: "Replace `"Sent")·?·colors.primary·:⏎················title.includes("Accepted")·||·title.includes("Approve")·?·colors.green` with `'Sent')⏎················?·colors.primary⏎················:·title.includes('Accepted')·||·title.includes('Approve')⏎················?·colors.green⏎···············`"
prettier/prettier
|
| Warning |
Row 32, Column 37: "Strings must use singlequote."
quotes
|
| 32 |
color: title.includes("Sent") ? colors.primary : |
| Warning |
Row 33, Column 32: "Strings must use singlequote."
quotes
|
| Warning |
Row 33, Column 62: "Strings must use singlequote."
quotes
|
| 33 |
title.includes("Accepted") || title.includes("Approve") ? colors.green : colors.pink, |
| Error |
Row 34, Column 15: "Insert `⏎·········`"
prettier/prettier
|
| 34 |
}} /> |
| 35 |
|
| Warning |
Row 36, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 36, Column 21: "Replace `"Receipt·Sent"·&&·` with `'Receipt·Sent'·&&·(⏎············`"
prettier/prettier
|
| Warning |
Row 36, Column 21: "Strings must use singlequote."
quotes
|
| 36 |
{title == "Receipt Sent" && <Regular |
| Error |
Row 37, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 37 |
label="Receipt was sent for Buyer approval." |
| Error |
Row 38, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 38, Column 20: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| 38 |
style={{ |
| Error |
Row 39, Column 1: "Insert `··`"
prettier/prettier
|
| 39 |
color: colors.typeHeader, |
| Error |
Row 40, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 40 |
marginTop: mvs(10), |
| Error |
Row 41, Column 15: "Replace `alignSelf:·'center'` with `··alignSelf:·'center',`"
prettier/prettier
|
| Warning |
Row 41, Column 34: "Missing trailing comma."
comma-dangle
|
| 41 |
alignSelf: 'center' |
| Error |
Row 42, Column 1: "Insert `··`"
prettier/prettier
|
| 42 |
}} |
| Error |
Row 43, Column 11: "Replace `/>}⏎⏎` with `··/>⏎··········)}`"
prettier/prettier
|
| 43 |
/>} |
| 44 |
|
| 45 |
|
| 46 |
|
| Warning |
Row 47, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 47, Column 21: "Replace `"Product·Sent"·&&·` with `'Product·Sent'·&&·(⏎············`"
prettier/prettier
|
| Warning |
Row 47, Column 21: "Strings must use singlequote."
quotes
|
| 47 |
{title == "Product Sent" && <Regular |
| Error |
Row 48, Column 1: "Insert `··`"
prettier/prettier
|
| 48 |
label="Product was sent for Buyer approval." |
| Error |
Row 49, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 49, Column 20: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| 49 |
style={{ |
| Error |
Row 50, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 50 |
color: colors.typeHeader, |
| Error |
Row 51, Column 1: "Insert `··`"
prettier/prettier
|
| 51 |
marginTop: mvs(10), |
| Error |
Row 52, Column 15: "Replace `alignSelf:·'center'` with `··alignSelf:·'center',`"
prettier/prettier
|
| Warning |
Row 52, Column 34: "Missing trailing comma."
comma-dangle
|
| 52 |
alignSelf: 'center' |
| Error |
Row 53, Column 13: "Insert `··`"
prettier/prettier
|
| 53 |
}} |
| Error |
Row 54, Column 11: "Replace `/>` with `··/>⏎··········)`"
prettier/prettier
|
| 54 |
/>} |
| 55 |
|
| Warning |
Row 56, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 56, Column 21: "Replace `"Receipt·Accepted"·&&·!fromApprove·&&·` with `'Receipt·Accepted'·&&·!fromApprove·&&·(⏎············`"
prettier/prettier
|
| Warning |
Row 56, Column 21: "Strings must use singlequote."
quotes
|
| 56 |
{title == "Receipt Accepted" && !fromApprove && <DualText |
| Error |
Row 57, Column 1: "Insert `··`"
prettier/prettier
|
| 57 |
highlightText="Ralph Wakim" |
| Error |
Row 58, Column 13: "Replace `highlightTextStyle={{·color:·colors.primary,·fontSize:·mvs(15)·` with `··highlightTextStyle={{color:·colors.primary,·fontSize:·mvs(15)`"
prettier/prettier
|
| 58 |
highlightTextStyle={{ color: colors.primary, fontSize: mvs(15) }} |
| Error |
Row 59, Column 1: "Insert `··`"
prettier/prettier
|
| 59 |
content="Congratulations " |
| Error |
Row 60, Column 13: "Replace `style={{·color:·colors.typeHeader,·fontSize:·mvs(15),·marginTop:·mvs(10),·textAlign:·'center'·}}` with `··style={{⏎················color:·colors.typeHeader,⏎················fontSize:·mvs(15),⏎················marginTop:·mvs(10),⏎················textAlign:·'center',`"
prettier/prettier
|
| Warning |
Row 60, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 60 |
style={{ color: colors.typeHeader, fontSize: mvs(15), marginTop: mvs(10), textAlign: 'center' }} |
| Error |
Row 61, Column 11: "Insert `····}}`"
prettier/prettier
|
| 61 |
> |
| Error |
Row 62, Column 1: "Replace `············prettier/prettier
|
| Warning |
Row 62, Column 29: "Strings must use singlequote."
quotes
|
| 62 |
<Regular label={`,\n the buyer has accepted the Receipt.`} style={{ color: colors.typeHeader }} /> |
| Error |
Row 63, Column 11: "Replace `` with `··⏎··········)`"
prettier/prettier
|
| 63 |
</DualText>} |
| 64 |
|
| Warning |
Row 65, Column 19: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 65, Column 22: "Replace `"Receipt·Accepted"·||·title·==·"Approve·Receipt")·&&·fromApprove·&&·` with `'Receipt·Accepted'·||·title·==·'Approve·Receipt')·&&⏎············fromApprove·&&·(⏎··············`"
prettier/prettier
|
| Warning |
Row 65, Column 22: "Strings must use singlequote."
quotes
|
| Warning |
Row 65, Column 50: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 65, Column 53: "Strings must use singlequote."
quotes
|
| 65 |
{(title == "Receipt Accepted" || title == "Approve Receipt") && fromApprove && <DualText |
| Error |
Row 66, Column 1: "Replace `············style={{·marginTop:·mvs(10),·textAlign:·'center'·` with `················style={{marginTop:·mvs(10),·textAlign:·'center'`"
prettier/prettier
|
| Warning |
Row 66, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 66 |
style={{ marginTop: mvs(10), textAlign: 'center' }} |
| Error |
Row 67, Column 1: "Replace `············` with `················`"
prettier/prettier
|
| 67 |
highlightText={name} |
| Error |
Row 68, Column 1: "Replace `············highlightTextStyle={{·fontSize:·mvs(15)·}}` with `················highlightTextStyle={{fontSize:·mvs(15)}}>`"
prettier/prettier
|
| 68 |
highlightTextStyle={{ fontSize: mvs(15) }} |
| Error |
Row 69, Column 11: "Replace `>⏎············prettier/prettier
|
| 69 |
> |
| 70 |
<Regular style={{ ...styles.TEXT, fontSize: mvs(15), color: colors.typeHeader }} |
| Error |
Row 71, Column 1: "Replace `··············label={`·will·be·notified.`}` with `··················label={`·will·be·notified.`}⏎···············`"
prettier/prettier
|
| Warning |
Row 71, Column 22: "Strings must use singlequote."
quotes
|
| 71 |
label={` will be notified.`} /> |
| Error |
Row 72, Column 1: "Replace `··········}⏎` with `··············⏎············)}`"
prettier/prettier
|
| 72 |
</DualText>} |
| 73 |
|
| 74 |
|
| Warning |
Row 75, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 75, Column 21: "Replace `"Deal·Rejected"·&&·` with `'Deal·Rejected'·&&·(⏎············`"
prettier/prettier
|
| Warning |
Row 75, Column 21: "Strings must use singlequote."
quotes
|
| Warning |
Row 75, Column 40: "Empty components are self-closing"
react/self-closing-comp
|
| 75 |
{title == "Deal Rejected" && <DualText |
| Error |
Row 76, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 76, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 76 |
style={{ |
| Error |
Row 77, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 77 |
marginTop: mvs(10), |
| Error |
Row 78, Column 1: "Insert `··`"
prettier/prettier
|
| 78 |
textAlign: 'center', |
| Error |
Row 79, Column 15: "Insert `··`"
prettier/prettier
|
| 79 |
fontSize: mvs(15), |
| Error |
Row 80, Column 1: "Replace `··············color:·colors.typeHeader` with `················color:·colors.typeHeader,`"
prettier/prettier
|
| Warning |
Row 80, Column 39: "Missing trailing comma."
comma-dangle
|
| 80 |
color: colors.typeHeader |
| Error |
Row 81, Column 1: "Insert `··`"
prettier/prettier
|
| 81 |
}} |
| Error |
Row 82, Column 1: "Insert `··`"
prettier/prettier
|
| 82 |
content="Unfortunately, the buyer has rejected the deal." |
| Error |
Row 83, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 83, Column 28: "Strings must use singlequote."
quotes
|
| 83 |
highlightText={`\nSorry for the inconvenience.`} |
| Error |
Row 84, Column 13: "Replace `highlightTextStyle={{·fontSize:·mvs(15),·textAlign:·'center'·}}⏎··········>}⏎` with `··highlightTextStyle={{⏎················fontSize:·mvs(15),⏎················textAlign:·'center',⏎··············}}>⏎··········)}`"
prettier/prettier
|
| Warning |
Row 84, Column 33: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 84 |
highlightTextStyle={{ fontSize: mvs(15), textAlign: 'center' }} |
| 85 |
></DualText>} |
| 86 |
|
| 87 |
|
| Warning |
Row 88, Column 19: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 88, Column 22: "Replace `"Product·Accepted"·||·title·==·"Approve·Reward"·||·title·==·"Approve·Product")·&&·` with `'Product·Accepted'·||⏎············title·==·'Approve·Reward'·||⏎············title·==·'Approve·Product')·&&·(⏎············`"
prettier/prettier
|
| Warning |
Row 88, Column 22: "Strings must use singlequote."
quotes
|
| Warning |
Row 88, Column 50: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 88, Column 53: "Strings must use singlequote."
quotes
|
| Warning |
Row 88, Column 79: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 88, Column 82: "Strings must use singlequote."
quotes
|
| 88 |
{(title == "Product Accepted" || title == "Approve Reward" || title == "Approve Product") && <DualText |
| Error |
Row 89, Column 13: "Replace `style={{·marginTop:·mvs(10),·textAlign:·'center'·` with `··style={{marginTop:·mvs(10),·textAlign:·'center'`"
prettier/prettier
|
| Warning |
Row 89, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 89 |
style={{ marginTop: mvs(10), textAlign: 'center' }} |
| Error |
Row 90, Column 1: "Insert `··`"
prettier/prettier
|
| 90 |
highlightText={name} |
| Error |
Row 91, Column 1: "Replace `············highlightTextStyle={{·fontSize:·mvs(15)·}}` with `··············highlightTextStyle={{fontSize:·mvs(15)}}>`"
prettier/prettier
|
| 91 |
highlightTextStyle={{ fontSize: mvs(15) }} |
| Error |
Row 92, Column 1: "Replace `··········>` with `··············prettier/prettier
|
| 92 |
> |
| Error |
Row 93, Column 13: "Replace `prettier/prettier
|
| Warning |
Row 93, Column 133: "Unexpected trailing comma."
comma-dangle
|
| 93 |
<Regular style={{ ...styles.TEXT, fontSize: mvs(15), color: colors.typeHeader, marginTop: mvs(27), marginBottom: mvs(27), }} |
| Error |
Row 94, Column 1: "Replace `··············label={`·is·notified·to·proceed·confirming·your·${product·?·'Product'·:·'Receipt'}.`}` with `················label={`·is·notified·to·proceed·confirming·your·${⏎··················product·?·'Product'·:·'Receipt'⏎················}.`}⏎·············`"
prettier/prettier
|
| 94 |
label={` is notified to proceed confirming your ${product ? 'Product' : 'Receipt'}.`} /> |
| Error |
Row 95, Column 1: "Replace `··········` with `············⏎··········)`"
prettier/prettier
|
| 95 |
</DualText>} |
| 96 |
|
| Error |
Row 97, Column 12: "Replace `(title·==·"Reject·Offer")·&&·` with `title·==·'Reject·Offer'·&&·(⏎············`"
prettier/prettier
|
| Warning |
Row 97, Column 19: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 97, Column 22: "Strings must use singlequote."
quotes
|
| 97 |
{(title == "Reject Offer") && <DualText |
| Error |
Row 98, Column 1: "Replace `············style={{·marginTop:·mvs(10),·textAlign:·'center'·` with `··············style={{marginTop:·mvs(10),·textAlign:·'center'`"
prettier/prettier
|
| Warning |
Row 98, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 98 |
style={{ marginTop: mvs(10), textAlign: 'center' }} |
| Error |
Row 99, Column 1: "Insert `··`"
prettier/prettier
|
| 99 |
highlightText={name} |
| Error |
Row 100, Column 1: "Replace `············highlightTextStyle={{·fontSize:·mvs(15)·}}` with `··············highlightTextStyle={{fontSize:·mvs(15)}}>`"
prettier/prettier
|
| 100 |
highlightTextStyle={{ fontSize: mvs(15) }} |
| Error |
Row 101, Column 1: "Replace `··········>` with `··············prettier/prettier
|
| 101 |
> |
| Error |
Row 102, Column 13: "Replace `prettier/prettier
|
| 102 |
<Regular style={{ ...styles.TEXT, fontSize: mvs(15), color: colors.typeHeader, marginTop: mvs(27), marginBottom: mvs(27) }} |
| Error |
Row 103, Column 15: "Replace `label={`·will·be·notified·that·the·offer·is·rejected.`}` with `··label={`·will·be·notified·that·the·offer·is·rejected.`}⏎·············`"
prettier/prettier
|
| Warning |
Row 103, Column 22: "Strings must use singlequote."
quotes
|
| 103 |
label={` will be notified that the offer is rejected.`} /> |
| Error |
Row 104, Column 1: "Replace `··········` with `············⏎··········)`"
prettier/prettier
|
| 104 |
</DualText>} |
| 105 |
|
| Warning |
Row 106, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 106, Column 21: "Replace `"Reward·Accepted"·&&·` with `'Reward·Accepted'·&&·(⏎············`"
prettier/prettier
|
| Warning |
Row 106, Column 21: "Strings must use singlequote."
quotes
|
| 106 |
{title == "Reward Accepted" && <DualText |
| Error |
Row 107, Column 13: "Replace `style={{·marginTop:·mvs(10),·textAlign:·'center'·` with `··style={{marginTop:·mvs(10),·textAlign:·'center'`"
prettier/prettier
|
| Warning |
Row 107, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 107 |
style={{ marginTop: mvs(10), textAlign: 'center' }} |
| Error |
Row 108, Column 13: "Insert `··`"
prettier/prettier
|
| 108 |
highlightText={name} |
| Error |
Row 109, Column 1: "Replace `············highlightTextStyle={{·fontSize:·mvs(15)·}}` with `··············highlightTextStyle={{fontSize:·mvs(15)}}>`"
prettier/prettier
|
| 109 |
highlightTextStyle={{ fontSize: mvs(15) }} |
| Error |
Row 110, Column 11: "Replace `>` with `····prettier/prettier
|
| 110 |
> |
| Error |
Row 111, Column 13: "Replace `prettier/prettier
|
| 111 |
<Regular style={{ ...styles.TEXT, fontSize: mvs(15), color: colors.typeHeader, marginTop: mvs(27), marginBottom: mvs(27) }} |
| Error |
Row 112, Column 1: "Replace `··············label={`·is·notified·to·proceed·confirming\nyour·Product.`}` with `················label={`·is·notified·to·proceed·confirming\nyour·Product.`}⏎·············`"
prettier/prettier
|
| Warning |
Row 112, Column 22: "Strings must use singlequote."
quotes
|
| 112 |
label={` is notified to proceed confirming\nyour Product.`} /> |
| Error |
Row 113, Column 1: "Replace `··········}` with `············`"
prettier/prettier
|
| 113 |
</DualText>} |
| Error |
Row 114, Column 1: "Insert `··········)}`"
prettier/prettier
|
| 114 |
|
| 115 |
|
| 116 |
{/* <SettingCard style={{ paddingTop: mvs(13), paddingBottom: mvs(7), marginTop: mvs(43) }} headingStyle={{ alignSelf: 'center', fontSize: mvs(14) }} heading={'Make sure your notifications are on'}> |
| 117 |
<CustomSwitch style={{ marginTop: 0 }} textStyle={{ color: colors.primary }} label={'Email'} /> |
| 118 |
<CustomSwitch style={{ marginTop: mvs(10) }} textStyle={{ color: colors.primary }} label={'SMS'} /> |
| 119 |
</SettingCard> */} |
| 120 |
|
| Error |
Row 121, Column 25: "Insert `·(`"
prettier/prettier
|
| 121 |
{mainButton && |
| 122 |
<Buttons.ButtonPrimary |
| 123 |
onClick={onConfirm} |
| Error |
Row 124, Column 23: "Replace `·...styles.BUTTON,·marginTop:·mvs(29)·` with `...styles.BUTTON,·marginTop:·mvs(29)`"
prettier/prettier
|
| 124 |
style={{ ...styles.BUTTON, marginTop: mvs(29) }} |
| 125 |
title={buttonTitle} |
| Error |
Row 126, Column 15: "Insert `⏎··········)`"
prettier/prettier
|
| 126 |
/>} |
| 127 |
|
| Error |
Row 128, Column 24: "Insert `·(`"
prettier/prettier
|
| 128 |
{endButton && |
| 129 |
<Buttons.ButtonSecondaryOutline |
| 130 |
onClick={onClose} |
| Error |
Row 131, Column 23: "Replace `·...styles.BUTTON,·marginTop:·mvs(12),backgroundColor:btnColor` with `⏎················...styles.BUTTON,⏎················marginTop:·mvs(12),⏎················backgroundColor:·btnColor,⏎·············`"
prettier/prettier
|
| 131 |
style={{ ...styles.BUTTON, marginTop: mvs(12),backgroundColor:btnColor }} |
| 132 |
title={endButtonTitle} |
| Error |
Row 133, Column 34: "Replace `?{color:colors.white}:` with `·?·{color:·colors.white}·:·`"
prettier/prettier
|
| Warning |
Row 133, Column 34: "Operator '?' must be spaced."
space-infix-ops
|
| 133 |
textStyle={btnColor?{color:colors.white}:{}} |
| Error |
Row 134, Column 15: "Insert `⏎··········)`"
prettier/prettier
|
| 134 |
/>} |
| 135 |
</View> |
| 136 |
</View> |
| 137 |
</ReactNativeModal> |
| 138 |
); |
| 139 |
}; |
| 140 |
export default StatusModal; |
| 141 |
const styles = StyleSheet.create({ |
| 142 |
CONTAINER: { |
| 143 |
// position: 'absolute', |
| 144 |
// bottom: 0, |
| 145 |
width: ms(332), |
| 146 |
borderRadius: mvs(20), |
| Error |
Row 147, Column 24: "Insert `,`"
prettier/prettier
|
| Warning |
Row 147, Column 24: "Missing trailing comma."
comma-dangle
|
| 147 |
alignSelf: 'center' |
| 148 |
//paddingHorizontal: mvs(22), |
| 149 |
}, |
| Error |
Row 150, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(20),` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(20),⏎·`"
prettier/prettier
|
| Warning |
Row 150, Column 118: "Unexpected trailing comma."
comma-dangle
|
| 150 |
REFUND_CONATINER: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', marginTop: mvs(20), }, |
| Error |
Row 151, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| 151 |
TEXT: { textAlign: 'center', marginTop: mvs(30), fontSize: mvs(14), color: colors.primary }, |
| 152 |
HEADING_TXT: { |
| 153 |
fontSize: mvs(19.5), |
| 154 |
color: colors.green, |
| 155 |
alignSelf: 'center', |
| 156 |
//marginBottom: mvs(9.5), |
| 157 |
}, |
| 158 |
SUB_CONTAINER: { |
| 159 |
backgroundColor: colors.white, |
| 160 |
// paddingTop: mvs(20), |
| 161 |
paddingVertical: mvs(20), |
| 162 |
borderRadius: mvs(20), |
| 163 |
paddingHorizontal: mvs(10), |
| Error |
Row 164, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| 164 |
backgroundColor: colors.white, |
| 165 |
}, |
| 166 |
DESTINATION_CONTAINER: { |
| 167 |
alignItems: 'center', |
| 168 |
flexDirection: 'row', |
| 169 |
justifyContent: 'space-between', |
| 170 |
}, |
| 171 |
FLAG_BUTTON: { |
| 172 |
width: mvs(161), |
| 173 |
height: mvs(38), |
| 174 |
flexDirection: 'row-reverse', |
| 175 |
backgroundColor: colors.secondary, |
| 176 |
}, |
| 177 |
SEARCH_MAP: { |
| 178 |
marginTop: mvs(15), |
| 179 |
alignSelf: 'flex-end', |
| 180 |
width: mvs(161), |
| 181 |
height: mvs(38), |
| 182 |
flexDirection: 'row', |
| 183 |
backgroundColor: colors.primary, |
| 184 |
paddingHorizontal: mvs(23), |
| 185 |
}, |
| 186 |
MAP_ICON: { |
| 187 |
height: mvs(18), |
| 188 |
width: mvs(14), |
| 189 |
}, |
| 190 |
NO_DELIVERY_CONTAINER: { |
| 191 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 192 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 193 |
flexDirection: 'row', |
| 194 |
alignItems: 'center', |
| 195 |
paddingVertical: mvs(14), |
| 196 |
marginTop: mvs(15), |
| 197 |
borderColor: colors.filter_divider, |
| 198 |
}, |
| 199 |
NoDelivery: { |
| 200 |
fontSize: mvs(15), |
| 201 |
color: colors.headerTitle, |
| 202 |
}, |
| 203 |
PRICES_CONTAINER: { |
| 204 |
marginTop: mvs(13), |
| 205 |
flexDirection: 'row', |
| 206 |
justifyContent: 'space-between', |
| 207 |
}, |
| 208 |
PRICE_HEADING: { |
| 209 |
fontSize: mvs(15), |
| 210 |
color: colors.primary, |
| 211 |
marginBottom: mvs(10), |
| 212 |
}, |
| 213 |
MAX_MIN_PRICE: { |
| 214 |
width: mvs(161), |
| 215 |
}, |
| 216 |
DIV: { |
| 217 |
marginTop: mvs(14), |
| 218 |
marginBottom: mvs(13), |
| 219 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 220 |
borderColor: colors.filter_divider, |
| 221 |
}, |
| 222 |
DEL_TIME: { |
| 223 |
color: colors.primary, |
| 224 |
fontSize: mvs(15), |
| 225 |
marginBottom: mvs(8), |
| 226 |
}, |
| 227 |
RADIO_CONTAINER: { |
| 228 |
marginBottom: mvs(30), |
| 229 |
}, |
| 230 |
RADIO_LABEL: { |
| 231 |
color: colors.headerTitle, |
| 232 |
fontSize: mvs(15), |
| 233 |
}, |
| 234 |
BUTTON_CONTAINER: { |
| 235 |
flexDirection: 'row', |
| 236 |
justifyContent: 'space-between', |
| 237 |
marginTop: mvs(29), |
| 238 |
}, |
| 239 |
BUTTON: { |
| 240 |
width: '100%', |
| 241 |
}, |
| Error |
Row 242, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| 242 |
BACK: { position: 'absolute', left: mvs(23), top: mvs(17) }, |
| 243 |
}); |
| 244 |
|
|
|
|
/src/components/molecules/modals/status-with-reason-modal.js
|
44 problems (26 errors, 18 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| Error |
Row 7, Column 9: "Replace `·mvs,·ms·` with `mvs,·ms`"
prettier/prettier
|
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 12, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| Warning |
Row 16, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 17, Column 33: "Replace `·visible,·onClose·` with `visible,·onClose`"
prettier/prettier
|
| Error |
Row 19, Column 76: "Insert `,`"
prettier/prettier
|
| Warning |
Row 19, Column 76: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 29, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 29, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| Error |
Row 33, Column 20: "Replace `·content={'Unfortunately·'}·highlightText={'Ralph·Wakim'}·style={{·fontSize:·mvs(14.5),·color:·colors.typeHeader,·alignSelf:·'center',·textAlign:·'center'` with `⏎············content={'Unfortunately·'}⏎············highlightText={'Ralph·Wakim'}⏎············style={{⏎··············fontSize:·mvs(14.5),⏎··············color:·colors.typeHeader,⏎··············alignSelf:·'center',⏎··············textAlign:·'center',⏎···········`"
prettier/prettier
|
| Warning |
Row 33, Column 85: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 34, Column 21: "Replace `·label={',\nthe·buyer·has·Disputed·the·Delivery.'}·style={{·fontSize:·mvs(14.5),·color:·colors.typeHeader,·alignSelf:·'center',·}}` with `⏎··············label={',\nthe·buyer·has·Disputed·the·Delivery.'}⏎··············style={{⏎················fontSize:·mvs(14.5),⏎················color:·colors.typeHeader,⏎················alignSelf:·'center',⏎··············}}⏎···········`"
prettier/prettier
|
| Warning |
Row 34, Column 79: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 34, Column 147: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 36, Column 35: "Insert `·`"
prettier/prettier
|
| Error |
Row 38, Column 32: "Replace `·maxHeight:·mvs(81)·` with `maxHeight:·mvs(81)`"
prettier/prettier
|
| Error |
Row 39, Column 21: "Replace `'Dispute·Reason'` with `"Dispute·Reason"`"
prettier/prettier
|
| Warning |
Row 39, Column 21: "Unexpected usage of singlequote."
jsx-quotes
|
| Error |
Row 40, Column 27: "Replace `''` with `""`"
prettier/prettier
|
| Warning |
Row 40, Column 27: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 42, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 42, Column 23: "Replace `·textAlign:·'center',·fontSize:·mvs(13),color:colors.typeHeader` with `⏎················textAlign:·'center',⏎················fontSize:·mvs(13),⏎················color:·colors.typeHeader,⏎·············`"
prettier/prettier
|
| Error |
Row 43, Column 49: "Replace `·...payload,·reason:·text·` with `...payload,·reason:·text`"
prettier/prettier
|
| Error |
Row 46, Column 19: "Replace `·style={{·...styles.TEXT,fontSize:mvs(14),·color:·colors.typeHeader,·marginTop:·mvs(27),·marginBottom:·mvs(27)` with `⏎············style={{⏎··············...styles.TEXT,⏎··············fontSize:·mvs(14),⏎··············color:·colors.typeHeader,⏎··············marginTop:·mvs(27),⏎··············marginBottom:·mvs(27),⏎···········`"
prettier/prettier
|
| Error |
Row 47, Column 1: "Replace `···········label={'We·will·investigate·the·dispute·and·get·back·to·you·as·soon·as·possible.'}` with `············label={⏎··············'We·will·investigate·the·dispute·and·get·back·to·you·as·soon·as·possible.'⏎············}⏎·········`"
prettier/prettier
|
| Error |
Row 48, Column 23: "Replace `·style={{paddingTop:mvs(13),paddingBottom:mvs(7)}}·headingStyle={{·alignSelf:·'center',·fontSize:·mvs(14)·}}` with `⏎············style={{paddingTop:·mvs(13),·paddingBottom:·mvs(7)}}⏎············headingStyle={{alignSelf:·'center',·fontSize:·mvs(14)}}⏎···········`"
prettier/prettier
|
| Warning |
Row 48, Column 88: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 49, Column 26: "Replace `·style={{marginTop:0}}·textStyle={{color:colors.primary}}·label={'Email'}` with `⏎··············style={{marginTop:·0}}⏎··············textStyle={{color:·colors.primary}}⏎··············label={'Email'}⏎···········`"
prettier/prettier
|
| Warning |
Row 49, Column 34: "Inline style: { marginTop: 0 }"
react-native/no-inline-styles
|
| Error |
Row 50, Column 26: "Replace `·style={{marginTop:mvs(10)}}·textStyle={{color:colors.primary}}·label={'SMS'}` with `⏎··············style={{marginTop:·mvs(10)}}⏎··············textStyle={{color:·colors.primary}}⏎··············label={'SMS'}⏎···········`"
prettier/prettier
|
| Error |
Row 54, Column 31: "Delete `·`"
prettier/prettier
|
| Error |
Row 71, Column 14: "Replace `·:·'center'` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 71, Column 25: "Missing trailing comma."
comma-dangle
|
| Error |
Row 74, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(20),` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(20),⏎·`"
prettier/prettier
|
| Warning |
Row 74, Column 118: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 75, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| Error |
Row 88, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| Error |
Row 166, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ImageBackground·` with `View,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'ImageBackground' is defined but never used."
no-unused-vars
|
| 2 |
import { View, StyleSheet, ImageBackground } from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 4 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce'; |
| 5 |
import colors from '../../../config/colors'; |
| Warning |
Row 6, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| 6 |
import fonts from '../../../config/fonts'; |
| Error |
Row 7, Column 9: "Replace `·mvs,·ms·` with `mvs,·ms`"
prettier/prettier
|
| 7 |
import { mvs, ms } from '../../../config/metrices'; |
| Warning |
Row 8, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| 8 |
import Medium from '../../../presentation/typography/medium-text'; |
| 9 |
import Regular from '../../../presentation/typography/regular-text'; |
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 10 |
import { TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| 11 |
import Buttons from '../../atoms/Button'; |
| Warning |
Row 12, Column 8: "'CustomRadio' is defined but never used."
no-unused-vars
|
| 12 |
import CustomRadio from '../../atoms/RadioButton'; |
| 13 |
import CustomSwitch from '../../atoms/Switch'; |
| 14 |
import DualText from '../dual-text/dual-text'; |
| 15 |
import SettingCard from '../setting_card/setting-card'; |
| Warning |
Row 16, Column 7: "'list' is assigned a value but never used."
no-unused-vars
|
| 16 |
const list = [true, false, false, true]; |
| Error |
Row 17, Column 33: "Replace `·visible,·onClose·` with `visible,·onClose`"
prettier/prettier
|
| 17 |
const StatusWithReasonModal = ({ visible, onClose }) => { |
| 18 |
const [payload, setPayload] = React.useState({ |
| Error |
Row 19, Column 76: "Insert `,`"
prettier/prettier
|
| Warning |
Row 19, Column 76: "Missing trailing comma."
comma-dangle
|
| 19 |
reason: 'Deliverer not responding to my messages after several trials.' |
| 20 |
}); |
| 21 |
|
| 22 |
return ( |
| 23 |
<ReactNativeModal |
| 24 |
propagateSwipe |
| 25 |
isVisible={visible} |
| 26 |
// avoidKeyboard |
| 27 |
onBackdropPress={() => onClose(f => !f)} |
| 28 |
onBackButtonPress={() => onClose(f => !f)} |
| Warning |
Row 29, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 29, Column 15: "Replace `·margin:·0,·padding:·0·` with `margin:·0,·padding:·0`"
prettier/prettier
|
| 29 |
style={{ margin: 0, padding: 0 }}> |
| 30 |
<View style={styles.CONTAINER}> |
| 31 |
<View style={styles.SUB_CONTAINER}> |
| 32 |
<Regular label={'Delivery Disputed'} style={styles.HEADING_TXT} /> |
| Error |
Row 33, Column 20: "Replace `·content={'Unfortunately·'}·highlightText={'Ralph·Wakim'}·style={{·fontSize:·mvs(14.5),·color:·colors.typeHeader,·alignSelf:·'center',·textAlign:·'center'` with `⏎············content={'Unfortunately·'}⏎············highlightText={'Ralph·Wakim'}⏎············style={{⏎··············fontSize:·mvs(14.5),⏎··············color:·colors.typeHeader,⏎··············alignSelf:·'center',⏎··············textAlign:·'center',⏎···········`"
prettier/prettier
|
| Warning |
Row 33, Column 85: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| 33 |
<DualText content={'Unfortunately '} highlightText={'Ralph Wakim'} style={{ fontSize: mvs(14.5), color: colors.typeHeader, alignSelf: 'center', textAlign: 'center' }}> |
| Error |
Row 34, Column 21: "Replace `·label={',\nthe·buyer·has·Disputed·the·Delivery.'}·style={{·fontSize:·mvs(14.5),·color:·colors.typeHeader,·alignSelf:·'center',·}}` with `⏎··············label={',\nthe·buyer·has·Disputed·the·Delivery.'}⏎··············style={{⏎················fontSize:·mvs(14.5),⏎················color:·colors.typeHeader,⏎················alignSelf:·'center',⏎··············}}⏎···········`"
prettier/prettier
|
| Warning |
Row 34, Column 79: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 34, Column 147: "Unexpected trailing comma."
comma-dangle
|
| 34 |
<Regular label={',\nthe buyer has Disputed the Delivery.'} style={{ fontSize: mvs(14.5), color: colors.typeHeader, alignSelf: 'center', }} /> |
| 35 |
</DualText> |
| Error |
Row 36, Column 35: "Insert `·`"
prettier/prettier
|
| 36 |
<View style={{marginTop:mvs(16)}}> |
| 37 |
<TAKE_TO_INPUT_FIELD.ReviewInput |
| Error |
Row 38, Column 32: "Replace `·maxHeight:·mvs(81)·` with `maxHeight:·mvs(81)`"
prettier/prettier
|
| 38 |
containerStyle={{ maxHeight: mvs(81) }} |
| Error |
Row 39, Column 21: "Replace `'Dispute·Reason'` with `"Dispute·Reason"`"
prettier/prettier
|
| Warning |
Row 39, Column 21: "Unexpected usage of singlequote."
jsx-quotes
|
| 39 |
label='Dispute Reason' |
| Error |
Row 40, Column 27: "Replace `''` with `""`"
prettier/prettier
|
| Warning |
Row 40, Column 27: "Unexpected usage of singlequote."
jsx-quotes
|
| 40 |
placeholder='' |
| 41 |
value={payload.reason} |
| Warning |
Row 42, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 42, Column 23: "Replace `·textAlign:·'center',·fontSize:·mvs(13),color:colors.typeHeader` with `⏎················textAlign:·'center',⏎················fontSize:·mvs(13),⏎················color:·colors.typeHeader,⏎·············`"
prettier/prettier
|
| 42 |
style={{ textAlign: 'center', fontSize: mvs(13),color:colors.typeHeader }} |
| Error |
Row 43, Column 49: "Replace `·...payload,·reason:·text·` with `...payload,·reason:·text`"
prettier/prettier
|
| 43 |
onChangeText={text => setPayload({ ...payload, reason: text })} |
| 44 |
/> |
| 45 |
</View> |
| Error |
Row 46, Column 19: "Replace `·style={{·...styles.TEXT,fontSize:mvs(14),·color:·colors.typeHeader,·marginTop:·mvs(27),·marginBottom:·mvs(27)` with `⏎············style={{⏎··············...styles.TEXT,⏎··············fontSize:·mvs(14),⏎··············color:·colors.typeHeader,⏎··············marginTop:·mvs(27),⏎··············marginBottom:·mvs(27),⏎···········`"
prettier/prettier
|
| 46 |
<Regular style={{ ...styles.TEXT,fontSize:mvs(14), color: colors.typeHeader, marginTop: mvs(27), marginBottom: mvs(27) }} |
| Error |
Row 47, Column 1: "Replace `···········label={'We·will·investigate·the·dispute·and·get·back·to·you·as·soon·as·possible.'}` with `············label={⏎··············'We·will·investigate·the·dispute·and·get·back·to·you·as·soon·as·possible.'⏎············}⏎·········`"
prettier/prettier
|
| 47 |
label={'We will investigate the dispute and get back to you as soon as possible.'} /> |
| Error |
Row 48, Column 23: "Replace `·style={{paddingTop:mvs(13),paddingBottom:mvs(7)}}·headingStyle={{·alignSelf:·'center',·fontSize:·mvs(14)·}}` with `⏎············style={{paddingTop:·mvs(13),·paddingBottom:·mvs(7)}}⏎············headingStyle={{alignSelf:·'center',·fontSize:·mvs(14)}}⏎···········`"
prettier/prettier
|
| Warning |
Row 48, Column 88: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| 48 |
<SettingCard style={{paddingTop:mvs(13),paddingBottom:mvs(7)}} headingStyle={{ alignSelf: 'center', fontSize: mvs(14) }} heading={'Make sure your notifications are on'}> |
| Error |
Row 49, Column 26: "Replace `·style={{marginTop:0}}·textStyle={{color:colors.primary}}·label={'Email'}` with `⏎··············style={{marginTop:·0}}⏎··············textStyle={{color:·colors.primary}}⏎··············label={'Email'}⏎···········`"
prettier/prettier
|
| Warning |
Row 49, Column 34: "Inline style: { marginTop: 0 }"
react-native/no-inline-styles
|
| 49 |
<CustomSwitch style={{marginTop:0}} textStyle={{color:colors.primary}} label={'Email'} /> |
| Error |
Row 50, Column 26: "Replace `·style={{marginTop:mvs(10)}}·textStyle={{color:colors.primary}}·label={'SMS'}` with `⏎··············style={{marginTop:·mvs(10)}}⏎··············textStyle={{color:·colors.primary}}⏎··············label={'SMS'}⏎···········`"
prettier/prettier
|
| 50 |
<CustomSwitch style={{marginTop:mvs(10)}} textStyle={{color:colors.primary}} label={'SMS'} /> |
| 51 |
</SettingCard> |
| 52 |
<View style={styles.BUTTON_CONTAINER}> |
| 53 |
<Buttons.ButtonPrimary |
| Error |
Row 54, Column 31: "Delete `·`"
prettier/prettier
|
| 54 |
onClick={() => { }} |
| 55 |
style={styles.BUTTON} |
| 56 |
title={'Back to Notifications'} |
| 57 |
/> |
| 58 |
</View> |
| 59 |
</View> |
| 60 |
</View> |
| 61 |
</ReactNativeModal> |
| 62 |
); |
| 63 |
}; |
| 64 |
export default StatusWithReasonModal; |
| 65 |
const styles = StyleSheet.create({ |
| 66 |
CONTAINER: { |
| 67 |
// position: 'absolute', |
| 68 |
// bottom: 0, |
| 69 |
width: ms(332), |
| 70 |
borderRadius: mvs(20), |
| Error |
Row 71, Column 14: "Replace `·:·'center'` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 71, Column 25: "Missing trailing comma."
comma-dangle
|
| 71 |
alignSelf : 'center' |
| 72 |
//paddingHorizontal: mvs(22), |
| 73 |
}, |
| Error |
Row 74, Column 22: "Replace `·flexDirection:·'row',·justifyContent:·'space-between',·alignItems:·'center',·marginTop:·mvs(20),` with `⏎····flexDirection:·'row',⏎····justifyContent:·'space-between',⏎····alignItems:·'center',⏎····marginTop:·mvs(20),⏎·`"
prettier/prettier
|
| Warning |
Row 74, Column 118: "Unexpected trailing comma."
comma-dangle
|
| 74 |
REFUND_CONATINER: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', marginTop: mvs(20), }, |
| Error |
Row 75, Column 10: "Replace `·textAlign:·'center',·marginTop:·mvs(30),·fontSize:·mvs(14),·color:·colors.primary` with `⏎····textAlign:·'center',⏎····marginTop:·mvs(30),⏎····fontSize:·mvs(14),⏎····color:·colors.primary,⏎·`"
prettier/prettier
|
| 75 |
TEXT: { textAlign: 'center', marginTop: mvs(30), fontSize: mvs(14), color: colors.primary }, |
| 76 |
HEADING_TXT: { |
| 77 |
fontSize: mvs(19.5), |
| 78 |
color: colors.disputes, |
| 79 |
alignSelf: 'center', |
| 80 |
marginBottom: mvs(8.5), |
| 81 |
}, |
| 82 |
SUB_CONTAINER: { |
| 83 |
backgroundColor: colors.white, |
| 84 |
// paddingTop: mvs(20), |
| 85 |
paddingVertical: mvs(20), |
| 86 |
borderRadius: mvs(20), |
| 87 |
paddingHorizontal: mvs(10), |
| Error |
Row 88, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| 88 |
backgroundColor: colors.white, |
| 89 |
}, |
| 90 |
DESTINATION_CONTAINER: { |
| 91 |
alignItems: 'center', |
| 92 |
flexDirection: 'row', |
| 93 |
justifyContent: 'space-between', |
| 94 |
}, |
| 95 |
FLAG_BUTTON: { |
| 96 |
width: mvs(161), |
| 97 |
height: mvs(38), |
| 98 |
flexDirection: 'row-reverse', |
| 99 |
backgroundColor: colors.secondary, |
| 100 |
}, |
| 101 |
SEARCH_MAP: { |
| 102 |
marginTop: mvs(15), |
| 103 |
alignSelf: 'flex-end', |
| 104 |
width: mvs(161), |
| 105 |
height: mvs(38), |
| 106 |
flexDirection: 'row', |
| 107 |
backgroundColor: colors.primary, |
| 108 |
paddingHorizontal: mvs(23), |
| 109 |
}, |
| 110 |
MAP_ICON: { |
| 111 |
height: mvs(18), |
| 112 |
width: mvs(14), |
| 113 |
}, |
| 114 |
NO_DELIVERY_CONTAINER: { |
| 115 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 116 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 117 |
flexDirection: 'row', |
| 118 |
alignItems: 'center', |
| 119 |
paddingVertical: mvs(14), |
| 120 |
marginTop: mvs(15), |
| 121 |
borderColor: colors.filter_divider, |
| 122 |
}, |
| 123 |
NoDelivery: { |
| 124 |
fontSize: mvs(15), |
| 125 |
color: colors.headerTitle, |
| 126 |
}, |
| 127 |
PRICES_CONTAINER: { |
| 128 |
marginTop: mvs(13), |
| 129 |
flexDirection: 'row', |
| 130 |
justifyContent: 'space-between', |
| 131 |
}, |
| 132 |
PRICE_HEADING: { |
| 133 |
fontSize: mvs(15), |
| 134 |
color: colors.primary, |
| 135 |
marginBottom: mvs(10), |
| 136 |
}, |
| 137 |
MAX_MIN_PRICE: { |
| 138 |
width: mvs(161), |
| 139 |
}, |
| 140 |
DIV: { |
| 141 |
marginTop: mvs(14), |
| 142 |
marginBottom: mvs(13), |
| 143 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 144 |
borderColor: colors.filter_divider, |
| 145 |
}, |
| 146 |
DEL_TIME: { |
| 147 |
color: colors.primary, |
| 148 |
fontSize: mvs(15), |
| 149 |
marginBottom: mvs(8), |
| 150 |
}, |
| 151 |
RADIO_CONTAINER: { |
| 152 |
marginBottom: mvs(30), |
| 153 |
}, |
| 154 |
RADIO_LABEL: { |
| 155 |
color: colors.headerTitle, |
| 156 |
fontSize: mvs(15), |
| 157 |
}, |
| 158 |
BUTTON_CONTAINER: { |
| 159 |
flexDirection: 'row', |
| 160 |
justifyContent: 'space-between', |
| 161 |
marginTop: mvs(29), |
| 162 |
}, |
| 163 |
BUTTON: { |
| 164 |
width: '100%', |
| 165 |
}, |
| Error |
Row 166, Column 10: "Replace `·position:·'absolute',·left:·mvs(23),·top:·mvs(17)·` with `position:·'absolute',·left:·mvs(23),·top:·mvs(17)`"
prettier/prettier
|
| 166 |
BACK: { position: 'absolute', left: mvs(23), top: mvs(17) }, |
| 167 |
}); |
| 168 |
|
|
|
|
/src/components/molecules/modals/video-player.js
|
68 problems (39 errors, 29 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 16: "Replace `·useRef,·useState·` with `useRef,·useState`"
prettier/prettier
|
| Warning |
Row 6, Column 8: "'Regular' is defined but never used."
no-unused-vars
|
| Warning |
Row 7, Column 8: "'Buttons' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 7: "Replace `⏎··MediaControls,·{PLAYER_STATES}⏎` with `·MediaControls,·{PLAYER_STATES}·`"
prettier/prettier
|
| Error |
Row 14, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 16, Column 1: "Replace `⏎··const·videoPlayer·=·useRef()` with `··const·videoPlayer·=·useRef();`"
prettier/prettier
|
| Warning |
Row 17, Column 31: "Missing semicolon."
semi
|
| Error |
Row 24, Column 10: "Replace `⏎····playerState,·setPlayerState⏎··` with `playerState,·setPlayerState`"
prettier/prettier
|
| Warning |
Row 25, Column 32: "Missing trailing comma."
comma-dangle
|
| Error |
Row 29, Column 18: "Replace `(seek)` with `seek`"
prettier/prettier
|
| Error |
Row 34, Column 20: "Replace `(playerState)` with `playerState`"
prettier/prettier
|
| Warning |
Row 34, Column 21: "'playerState' is already declared in the upper scope."
no-shadow
|
| Error |
Row 46, Column 22: "Replace `(data)` with `data`"
prettier/prettier
|
| Error |
Row 53, Column 18: "Replace `(data)` with `data`"
prettier/prettier
|
| Error |
Row 58, Column 23: "Replace `(data)` with `data`"
prettier/prettier
|
| Warning |
Row 62, Column 25: "Unexpected alert."
no-alert
|
| Error |
Row 62, Column 39: "'error' is not defined."
no-undef
|
| Warning |
Row 64, Column 9: "'exitFullScreen' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 65, Column 5: "Unexpected alert."
no-alert
|
| Warning |
Row 68, Column 9: "'enterFullScreen' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 70, Column 9: "'onFullScreen' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 72, Column 5: "Expected { after 'if' condition."
curly
|
| Warning |
Row 72, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 73, Column 5: "Expected { after 'else'."
curly
|
| Warning |
Row 76, Column 9: "'renderToolbar' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 82, Column 21: "Replace `(currentTime)·=>·setCurrentTime(currentTime);⏎` with `currentTime·=>·setCurrentTime(currentTime);`"
prettier/prettier
|
| Warning |
Row 82, Column 22: "'currentTime' is already declared in the upper scope."
no-shadow
|
| Warning |
Row 92, Column 14: "Inline style: { margin: 0 }"
react-native/no-inline-styles
|
| Warning |
Row 94, Column 16: "Inline style: {
height: '100%',
alignSelf: 'center',
width: '100%',
position: 'absolute',
bottom: 0
}"
react-native/no-inline-styles
|
| Error |
Row 95, Column 17: "Replace `·:·'100%',··` with `:·'100%',`"
prettier/prettier
|
| Warning |
Row 95, Column 27: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 101, Column 12: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 103, Column 9: "Replace `···{prettier/prettier
|
| Warning |
Row 103, Column 18: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 104, Column 20: "Inline style: { height: '100%', width: '100%', position: 'absolute' }"
react-native/no-inline-styles
|
| Warning |
Row 104, Column 21: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 104, Column 21: "Delete `·`"
prettier/prettier
|
| Error |
Row 105, Column 21: "Delete `·`"
prettier/prettier
|
| Error |
Row 106, Column 20: "Delete `·`"
prettier/prettier
|
| Error |
Row 107, Column 23: "Replace `·:·'absolute'` with `:·'absolute',`"
prettier/prettier
|
| Warning |
Row 107, Column 36: "Missing trailing comma."
comma-dangle
|
| Error |
Row 108, Column 15: "Delete `⏎············`"
prettier/prettier
|
| Error |
Row 119, Column 1: "Insert `·`"
prettier/prettier
|
| Error |
Row 121, Column 27: "Delete `·`"
prettier/prettier
|
| Error |
Row 136, Column 14: "Insert `·`"
prettier/prettier
|
| Error |
Row 139, Column 29: "Replace `·=·{{backgroundColor:null}}⏎` with `={{backgroundColor:·null}}`"
prettier/prettier
|
| Warning |
Row 139, Column 33: "Inline style: { backgroundColor: null }"
react-native/no-inline-styles
|
| Error |
Row 142, Column 18: "Replace `}··⏎··········` with `⏎········}⏎········`"
prettier/prettier
|
| Warning |
Row 142, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 144, Column 18: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 145, Column 16: "Replace `·=·` with `=`"
prettier/prettier
|
| Warning |
Row 145, Column 20: "Inline style: {
position: 'absolute',
zIndex: 1000,
elevation: 10,
justifyContent: 'center',
alignItems: 'center'
}"
react-native/no-inline-styles
|
| Error |
Row 146, Column 21: "Delete `·`"
prettier/prettier
|
| Error |
Row 147, Column 18: "Delete `·`"
prettier/prettier
|
| Error |
Row 148, Column 16: "Delete `·`"
prettier/prettier
|
| Error |
Row 149, Column 19: "Delete `·`"
prettier/prettier
|
| Error |
Row 150, Column 22: "Delete `·`"
prettier/prettier
|
| Error |
Row 151, Column 28: "Insert `·`"
prettier/prettier
|
| Error |
Row 152, Column 24: "Insert `·`"
prettier/prettier
|
| Error |
Row 153, Column 20: "Delete `·`"
prettier/prettier
|
| Error |
Row 154, Column 11: "Replace `··}}⏎··········` with `}}`"
prettier/prettier
|
| Warning |
Row 156, Column 16: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 156, Column 16: "Replace `·⏎··········onPress·=·` with `⏎············onPress=`"
prettier/prettier
|
| Error |
Row 158, Column 1: "Replace `··········name="close"·size={·mvs(30)·}·⏎··········color={colors.white}·` with `············name="close"⏎············size={mvs(30)}⏎············color={colors.white}`"
prettier/prettier
|
| Warning |
Row 158, Column 40: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 159, Column 31: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 161, Column 1: "Replace `··············` with `········`"
prettier/prettier
|
| Warning |
Row 161, Column 30: "Trailing spaces not allowed."
no-trailing-spaces
|
| Line |
Source |
| Error |
Row 1, Column 16: "Replace `·useRef,·useState·` with `useRef,·useState`"
prettier/prettier
|
| 1 |
import React, { useRef, useState } from 'react'; |
| 2 |
import {View, Text, StyleSheet, TouchableOpacity} from 'react-native'; |
| 3 |
import ReactNativeModal from 'react-native-modal'; |
| 4 |
import colors from '../../../config/colors'; |
| 5 |
import {mvs} from '../../../config/metrices'; |
| Warning |
Row 6, Column 8: "'Regular' is defined but never used."
no-unused-vars
|
| 6 |
import Regular from '../../../presentation/typography/regular-text'; |
| Warning |
Row 7, Column 8: "'Buttons' is defined but never used."
no-unused-vars
|
| 7 |
import Buttons from '../../atoms/Button'; |
| 8 |
import Video from 'react-native-video'; |
| 9 |
import Icon from 'react-native-vector-icons/Ionicons'; |
| Error |
Row 10, Column 7: "Replace `⏎··MediaControls,·{PLAYER_STATES}⏎` with `·MediaControls,·{PLAYER_STATES}·`"
prettier/prettier
|
| 10 |
import |
| 11 |
MediaControls, {PLAYER_STATES} |
| 12 |
from 'react-native-media-controls'; |
| 13 |
|
| Error |
Row 14, Column 1: "Delete `⏎`"
prettier/prettier
|
| 14 |
|
| 15 |
const VideoPlayer = ({visible, onClose, video, onPress}) => { |
| Error |
Row 16, Column 1: "Replace `⏎··const·videoPlayer·=·useRef()` with `··const·videoPlayer·=·useRef();`"
prettier/prettier
|
| 16 |
|
| Warning |
Row 17, Column 31: "Missing semicolon."
semi
|
| 17 |
const videoPlayer = useRef() |
| 18 |
|
| 19 |
const [currentTime, setCurrentTime] = useState(0); |
| 20 |
const [duration, setDuration] = useState(0); |
| 21 |
const [isFullScreen, setIsFullScreen] = useState(true); |
| 22 |
const [isLoading, setIsLoading] = useState(true); |
| 23 |
const [paused, setPaused] = useState(false); |
| Error |
Row 24, Column 10: "Replace `⏎····playerState,·setPlayerState⏎··` with `playerState,·setPlayerState`"
prettier/prettier
|
| 24 |
const [ |
| Warning |
Row 25, Column 32: "Missing trailing comma."
comma-dangle
|
| 25 |
playerState, setPlayerState |
| 26 |
] = useState(PLAYER_STATES.PLAYING); |
| 27 |
const [screenType, setScreenType] = useState('content'); |
| 28 |
|
| Error |
Row 29, Column 18: "Replace `(seek)` with `seek`"
prettier/prettier
|
| 29 |
const onSeek = (seek) => { |
| 30 |
//Handler for change in seekbar |
| 31 |
videoPlayer.current.seek(seek); |
| 32 |
}; |
| 33 |
|
| Error |
Row 34, Column 20: "Replace `(playerState)` with `playerState`"
prettier/prettier
|
| Warning |
Row 34, Column 21: "'playerState' is already declared in the upper scope."
no-shadow
|
| 34 |
const onPaused = (playerState) => { |
| 35 |
//Handler for Video Pause |
| 36 |
setPaused(!paused); |
| 37 |
setPlayerState(playerState); |
| 38 |
}; |
| 39 |
|
| 40 |
const onReplay = () => { |
| 41 |
//Handler for Replay |
| 42 |
setPlayerState(PLAYER_STATES.PLAYING); |
| 43 |
videoPlayer.current.seek(0); |
| 44 |
}; |
| 45 |
|
| Error |
Row 46, Column 22: "Replace `(data)` with `data`"
prettier/prettier
|
| 46 |
const onProgress = (data) => { |
| 47 |
// Video Player will progress continue even if it ends |
| 48 |
if (!isLoading && playerState !== PLAYER_STATES.ENDED) { |
| 49 |
setCurrentTime(data.currentTime); |
| 50 |
} |
| 51 |
}; |
| 52 |
|
| Error |
Row 53, Column 18: "Replace `(data)` with `data`"
prettier/prettier
|
| 53 |
const onLoad = (data) => { |
| 54 |
setDuration(data.duration); |
| 55 |
setIsLoading(false); |
| 56 |
}; |
| 57 |
|
| Error |
Row 58, Column 23: "Replace `(data)` with `data`"
prettier/prettier
|
| 58 |
const onLoadStart = (data) => setIsLoading(true); |
| 59 |
|
| 60 |
const onEnd = () => setPlayerState(PLAYER_STATES.ENDED); |
| 61 |
|
| Warning |
Row 62, Column 25: "Unexpected alert."
no-alert
|
| Error |
Row 62, Column 39: "'error' is not defined."
no-undef
|
| 62 |
const onError = () => alert('Oh! ', error); |
| 63 |
|
| Warning |
Row 64, Column 9: "'exitFullScreen' is assigned a value but never used."
no-unused-vars
|
| 64 |
const exitFullScreen = () => { |
| Warning |
Row 65, Column 5: "Unexpected alert."
no-alert
|
| 65 |
alert('Exit full screen'); |
| 66 |
}; |
| 67 |
|
| Warning |
Row 68, Column 9: "'enterFullScreen' is assigned a value but never used."
no-unused-vars
|
| 68 |
const enterFullScreen = () => {}; |
| 69 |
|
| Warning |
Row 70, Column 9: "'onFullScreen' is assigned a value but never used."
no-unused-vars
|
| 70 |
const onFullScreen = () => { |
| 71 |
setIsFullScreen(isFullScreen); |
| Warning |
Row 72, Column 5: "Expected { after 'if' condition."
curly
|
| Warning |
Row 72, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| 72 |
if (screenType == 'content') setScreenType('cover'); |
| Warning |
Row 73, Column 5: "Expected { after 'else'."
curly
|
| 73 |
else setScreenType('content'); |
| 74 |
}; |
| 75 |
|
| Warning |
Row 76, Column 9: "'renderToolbar' is assigned a value but never used."
no-unused-vars
|
| 76 |
const renderToolbar = () => ( |
| 77 |
<View> |
| 78 |
<Text style={styles.toolbar}> toolbar </Text> |
| 79 |
</View> |
| 80 |
); |
| 81 |
|
| Error |
Row 82, Column 21: "Replace `(currentTime)·=>·setCurrentTime(currentTime);⏎` with `currentTime·=>·setCurrentTime(currentTime);`"
prettier/prettier
|
| Warning |
Row 82, Column 22: "'currentTime' is already declared in the upper scope."
no-shadow
|
| 82 |
const onSeeking = (currentTime) => setCurrentTime(currentTime); |
| 83 |
|
| 84 |
|
| 85 |
return ( |
| 86 |
<ReactNativeModal |
| 87 |
propagateSwipe |
| 88 |
isVisible={visible} |
| 89 |
onBackdropPress={onClose} |
| 90 |
onSwipeComplete={onClose} |
| 91 |
swipeDirection="up" |
| Warning |
Row 92, Column 14: "Inline style: { margin: 0 }"
react-native/no-inline-styles
|
| 92 |
style={{margin: 0}}> |
| 93 |
<View |
| Warning |
Row 94, Column 16: "Inline style: {
height: '100%',
alignSelf: 'center',
width: '100%',
position: 'absolute',
bottom: 0
}"
react-native/no-inline-styles
|
| 94 |
style={{ |
| Error |
Row 95, Column 17: "Replace `·:·'100%',··` with `:·'100%',`"
prettier/prettier
|
| Warning |
Row 95, Column 27: "Trailing spaces not allowed."
no-trailing-spaces
|
| 95 |
height : '100%', |
| 96 |
alignSelf: 'center', |
| 97 |
backgroundColor: colors.white, |
| 98 |
width: '100%', |
| 99 |
position: 'absolute', |
| 100 |
bottom: 0, |
| Error |
Row 101, Column 12: "Delete `⏎`"
prettier/prettier
|
| 101 |
}}> |
| 102 |
|
| Error |
Row 103, Column 9: "Replace `···{prettier/prettier
|
| Warning |
Row 103, Column 18: "Trailing spaces not allowed."
no-trailing-spaces
|
| 103 |
{<View |
| Warning |
Row 104, Column 20: "Inline style: { height: '100%', width: '100%', position: 'absolute' }"
react-native/no-inline-styles
|
| Warning |
Row 104, Column 21: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 104, Column 21: "Delete `·`"
prettier/prettier
|
| 104 |
style={{ |
| Error |
Row 105, Column 21: "Delete `·`"
prettier/prettier
|
| 105 |
height : '100%', |
| Error |
Row 106, Column 20: "Delete `·`"
prettier/prettier
|
| 106 |
width : '100%', |
| Error |
Row 107, Column 23: "Replace `·:·'absolute'` with `:·'absolute',`"
prettier/prettier
|
| Warning |
Row 107, Column 36: "Missing trailing comma."
comma-dangle
|
| 107 |
position : 'absolute' |
| Error |
Row 108, Column 15: "Delete `⏎············`"
prettier/prettier
|
| 108 |
}} |
| 109 |
> |
| 110 |
<Video |
| 111 |
onError={onError} |
| 112 |
onEnd={onEnd} |
| 113 |
onLoad={onLoad} |
| 114 |
onLoadStart={onLoadStart} |
| 115 |
onProgress={onProgress} |
| 116 |
paused={paused} |
| 117 |
ref={videoPlayer} |
| 118 |
resizeMode={'contain'} |
| Error |
Row 119, Column 1: "Insert `·`"
prettier/prettier
|
| 119 |
// onFullScreen={isFullScreen} |
| 120 |
//source={{uri: "https://api.taketo.exodevs.com/storage/threads/9572b823-f1d3-424a-8ea2-83d4786e4bc3/videos/pexels-david-gallie-10275544_1643359915.mp4"}} |
| Error |
Row 121, Column 27: "Delete `·`"
prettier/prettier
|
| 121 |
source={{uri : video}} |
| 122 |
style={styles.mediaPlayer} |
| 123 |
volume={10} |
| 124 |
/> |
| 125 |
<MediaControls |
| 126 |
duration={duration} |
| 127 |
isLoading={isLoading} |
| 128 |
mainColor="#333" |
| 129 |
//onFullScreen={onFullScreen} |
| 130 |
onPaused={onPaused} |
| 131 |
onReplay={onReplay} |
| 132 |
onSeek={onSeek} |
| 133 |
onSeeking={onSeeking} |
| 134 |
playerState={playerState} |
| 135 |
progress={currentTime} |
| Error |
Row 136, Column 14: "Insert `·`"
prettier/prettier
|
| 136 |
// toolbar={renderToolbar()} |
| 137 |
// toolbarStyle = {{backgroundColor:'red'}} |
| 138 |
// sliderStyle = {{bottom:0}} |
| Error |
Row 139, Column 29: "Replace `·=·{{backgroundColor:null}}⏎` with `={{backgroundColor:·null}}`"
prettier/prettier
|
| Warning |
Row 139, Column 33: "Inline style: { backgroundColor: null }"
react-native/no-inline-styles
|
| 139 |
containerStyle = {{backgroundColor:null}} |
| 140 |
|
| 141 |
/> |
| Error |
Row 142, Column 18: "Replace `}··⏎··········` with `⏎········}⏎········`"
prettier/prettier
|
| Warning |
Row 142, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| 142 |
</View>} |
| 143 |
<TouchableOpacity |
| Error |
Row 144, Column 18: "Replace `·=·` with `=`"
prettier/prettier
|
| 144 |
onPress = {onClose} |
| Error |
Row 145, Column 16: "Replace `·=·` with `=`"
prettier/prettier
|
| Warning |
Row 145, Column 20: "Inline style: {
position: 'absolute',
zIndex: 1000,
elevation: 10,
justifyContent: 'center',
alignItems: 'center'
}"
react-native/no-inline-styles
|
| 145 |
style = {{ |
| Error |
Row 146, Column 21: "Delete `·`"
prettier/prettier
|
| 146 |
position : 'absolute', |
| Error |
Row 147, Column 18: "Delete `·`"
prettier/prettier
|
| 147 |
right : mvs(22), |
| Error |
Row 148, Column 16: "Delete `·`"
prettier/prettier
|
| 148 |
top : mvs(30), |
| Error |
Row 149, Column 19: "Delete `·`"
prettier/prettier
|
| 149 |
zIndex : 1000, |
| Error |
Row 150, Column 22: "Delete `·`"
prettier/prettier
|
| 150 |
elevation : 10, |
| Error |
Row 151, Column 28: "Insert `·`"
prettier/prettier
|
| 151 |
justifyContent:'center', |
| Error |
Row 152, Column 24: "Insert `·`"
prettier/prettier
|
| 152 |
alignItems:'center', |
| Error |
Row 153, Column 20: "Delete `·`"
prettier/prettier
|
| 153 |
padding : mvs(10), |
| Error |
Row 154, Column 11: "Replace `··}}⏎··········` with `}}`"
prettier/prettier
|
| 154 |
}} |
| 155 |
> |
| Warning |
Row 156, Column 16: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 156, Column 16: "Replace `·⏎··········onPress·=·` with `⏎············onPress=`"
prettier/prettier
|
| 156 |
<Icon |
| 157 |
onPress = {onClose} |
| Error |
Row 158, Column 1: "Replace `··········name="close"·size={·mvs(30)·}·⏎··········color={colors.white}·` with `············name="close"⏎············size={mvs(30)}⏎············color={colors.white}`"
prettier/prettier
|
| Warning |
Row 158, Column 40: "Trailing spaces not allowed."
no-trailing-spaces
|
| 158 |
name="close" size={ mvs(30) } |
| Warning |
Row 159, Column 31: "Trailing spaces not allowed."
no-trailing-spaces
|
| 159 |
color={colors.white} |
| 160 |
/> |
| Error |
Row 161, Column 1: "Replace `··············` with `········`"
prettier/prettier
|
| Warning |
Row 161, Column 30: "Trailing spaces not allowed."
no-trailing-spaces
|
| 161 |
</TouchableOpacity> |
| 162 |
</View> |
| 163 |
</ReactNativeModal> |
| 164 |
); |
| 165 |
}; |
| 166 |
export default VideoPlayer; |
| 167 |
const styles = StyleSheet.create({ |
| 168 |
item: { |
| 169 |
paddingVertical: mvs(12), |
| 170 |
flexDirection: 'row', |
| 171 |
alignItems: 'center', |
| 172 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 173 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 174 |
borderColor: colors.doted, |
| 175 |
}, |
| 176 |
container: { |
| 177 |
flex: 1, |
| 178 |
}, |
| 179 |
// toolbar: { |
| 180 |
// marginTop: 30, |
| 181 |
// backgroundColor: 'white', |
| 182 |
// padding: 10, |
| 183 |
// borderRadius: 5, |
| 184 |
// }, |
| 185 |
mediaPlayer: { |
| 186 |
position: 'absolute', |
| 187 |
top: 0, |
| 188 |
left: 0, |
| 189 |
bottom: 0, |
| 190 |
right: 0, |
| 191 |
backgroundColor: 'black', |
| 192 |
justifyContent: 'center', |
| 193 |
}, |
| 194 |
}); |
| 195 |
|
|
|
|
/src/components/molecules/modals/widthdraw.js
|
44 problems (23 errors, 21 warnings)
|
| Severity |
Rule |
| Warning |
Row 1, Column 9: "'placeholder' is defined but never used."
no-unused-vars
|
| Warning |
Row 3, Column 21: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 3, Column 33: "'TouchableOpacity' is defined but never used."
no-unused-vars
|
| Warning |
Row 13, Column 9: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Error |
Row 15, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 24, Column 10: "Replace `=` with `·=·`"
prettier/prettier
|
| Warning |
Row 24, Column 10: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 40, Column 26: "["aeroplane"] is better written in dot notation."
dot-notation
|
| Warning |
Row 41, Column 20: "["car"] is better written in dot notation."
dot-notation
|
| Error |
Row 41, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 41, Column 26: "Missing semicolon."
semi
|
| Warning |
Row 42, Column 25: "["location"] is better written in dot notation."
dot-notation
|
| Warning |
Row 51, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| Warning |
Row 59, Column 29: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 81, Column 30: "Replace `?·` with `·?`"
prettier/prettier
|
| Warning |
Row 81, Column 30: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 84, Column 29: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 87, Column 22: "Replace `·=·{{uri·` with `={{uri`"
prettier/prettier
|
| Error |
Row 88, Column 20: "Replace `·=·{{uri·` with `={{uri`"
prettier/prettier
|
| Warning |
Row 90, Column 20: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Warning |
Row 98, Column 24: "Inline style: { width: '100%', justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 121, Column 24: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 122, Column 24: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 123, Column 25: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 124, Column 28: "Replace `·=·` with `=`"
prettier/prettier
|
| Warning |
Row 129, Column 24: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Warning |
Row 140, Column 24: "Inline style: { alignItems: 'flex-start' }"
react-native/no-inline-styles
|
| Warning |
Row 151, Column 26: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| Error |
Row 160, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 161, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 162, Column 17: "Insert `··`"
prettier/prettier
|
| Error |
Row 163, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| Error |
Row 164, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 165, Column 1: "Replace `··············loading·=·` with `················loading=`"
prettier/prettier
|
| Error |
Row 166, Column 15: "Replace `disabled·=·` with `··disabled=`"
prettier/prettier
|
| Error |
Row 167, Column 1: "Replace `··············loaderColor·=·` with `················loaderColor=`"
prettier/prettier
|
| Error |
Row 168, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 169, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 191, Column 22: "Replace `=state=>` with `·=·state·=>·`"
prettier/prettier
|
| Warning |
Row 191, Column 22: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 193, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 193, Column 3: "Missing semicolon."
semi
|
| Error |
Row 194, Column 40: "Insert `·`"
prettier/prettier
|
| Error |
Row 203, Column 5: "Duplicate key 'alignSelf'."
no-dupe-keys
|
| Line |
Source |
| Warning |
Row 1, Column 9: "'placeholder' is defined but never used."
no-unused-vars
|
| 1 |
import {placeholder} from '@babel/types'; |
| 2 |
import React from 'react'; |
| Warning |
Row 3, Column 21: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 3, Column 33: "'TouchableOpacity' is defined but never used."
no-unused-vars
|
| 3 |
import {StyleSheet, Text, View, TouchableOpacity} from 'react-native'; |
| 4 |
import ReactNativeModal from 'react-native-modal'; |
| 5 |
import colors from '../../../config/colors'; |
| 6 |
import {mvs, ms} from '../../../config/metrices'; |
| 7 |
import Medium from '../../../presentation/typography/medium-text'; |
| 8 |
import Regular from '../../../presentation/typography/regular-text'; |
| 9 |
import OrderDestination from '../../atoms/OrderDestination'; |
| 10 |
import OrderDestinationAddress from '../../atoms/OrderDestinationAddress'; |
| 11 |
import ImagePlaceholder from '../../atoms/Placeholder'; |
| 12 |
import * as SVGS from '../../../../resource/assets/order-car-icons'; |
| Warning |
Row 13, Column 9: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 13 |
import {TAKE_TO_IMAGES} from '../../../../resource/assets/image_resouce'; |
| 14 |
import Buttons from '../../atoms/Button'; |
| Error |
Row 15, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 15 |
import { connect } from 'react-redux'; |
| 16 |
|
| 17 |
const Widthdraw = ({ |
| 18 |
visible, |
| 19 |
onClose, |
| 20 |
title, |
| 21 |
requestedReward = true, |
| 22 |
subtitle = 'Are you sure you want to withdraw your offer?', |
| 23 |
image, |
| Error |
Row 24, Column 10: "Replace `=` with `·=·`"
prettier/prettier
|
| Warning |
Row 24, Column 10: "Operator '=' must be spaced."
space-infix-ops
|
| 24 |
loading=false, |
| 25 |
name, |
| 26 |
site, |
| 27 |
price, |
| 28 |
reward, |
| 29 |
onConfirm, |
| 30 |
requested = false, |
| 31 |
isLocal, |
| 32 |
flagFrom, |
| 33 |
flagTo, |
| 34 |
from, |
| 35 |
to, |
| 36 |
offer_reward, |
| 37 |
profileData, |
| 38 |
...props |
| 39 |
}) => { |
| Warning |
Row 40, Column 26: "["aeroplane"] is better written in dot notation."
dot-notation
|
| 40 |
const Aeroplane = SVGS['aeroplane']; |
| Warning |
Row 41, Column 20: "["car"] is better written in dot notation."
dot-notation
|
| Error |
Row 41, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 41, Column 26: "Missing semicolon."
semi
|
| 41 |
const Car = SVGS['car'] |
| Warning |
Row 42, Column 25: "["location"] is better written in dot notation."
dot-notation
|
| 42 |
const Location = SVGS['location']; |
| 43 |
|
| 44 |
return ( |
| 45 |
<ReactNativeModal |
| 46 |
propagateSwipe |
| 47 |
isVisible={visible} |
| 48 |
avoidKeyboard |
| 49 |
onBackdropPress={() => onClose(f => !f)} |
| 50 |
onBackButtonPress={() => onClose(f => !f)} |
| Warning |
Row 51, Column 14: "Inline style: { margin: 0, padding: 0 }"
react-native/no-inline-styles
|
| 51 |
style={{margin: 0, padding: 0}}> |
| 52 |
<View style={styles.mainContainer}> |
| 53 |
<Regular label={title} style={styles.header} /> |
| 54 |
<Regular label={subtitle} style={styles.heading} /> |
| 55 |
|
| 56 |
<View style={styles.productMainContainer}> |
| 57 |
<ImagePlaceholder |
| 58 |
bg_img={image} |
| Warning |
Row 59, Column 29: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 59 |
containerStyle={{ |
| 60 |
width: '49%', |
| 61 |
height: mvs(151), |
| 62 |
borderRadius: mvs(20), |
| 63 |
}} |
| 64 |
/> |
| 65 |
<View style={styles.productInfoContainer}> |
| 66 |
<Regular numberOfLines={2} label={name} style={styles.name} /> |
| 67 |
<Regular label={site} style={styles.site} /> |
| 68 |
<View style={styles.priceContainer}> |
| 69 |
<Regular label="Price" style={styles.price} /> |
| 70 |
<Medium label={price} style={styles.price} /> |
| 71 |
</View> |
| 72 |
<View style={styles.rewardContainer}> |
| 73 |
<Regular label="Reward" style={styles.rewardTitle} /> |
| 74 |
<Medium label={reward} style={styles.reward} /> |
| 75 |
</View> |
| 76 |
</View> |
| 77 |
</View> |
| 78 |
|
| 79 |
<View style={styles.routeMainContainer}> |
| 80 |
<OrderDestination |
| Error |
Row 81, Column 30: "Replace `?·` with `·?`"
prettier/prettier
|
| Warning |
Row 81, Column 30: "Operator '?' must be spaced."
space-infix-ops
|
| 81 |
SVGFirst={isLocal? Car : Aeroplane} |
| 82 |
SVGSecond={Location} |
| 83 |
value={0} |
| Warning |
Row 84, Column 29: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 84 |
containerStyle={{width: '49%'}} |
| 85 |
/> |
| 86 |
<OrderDestinationAddress |
| Error |
Row 87, Column 22: "Replace `·=·{{uri·` with `={{uri`"
prettier/prettier
|
| 87 |
imageFrom = {{uri : flagFrom}} |
| Error |
Row 88, Column 20: "Replace `·=·{{uri·` with `={{uri`"
prettier/prettier
|
| 88 |
imageTo = {{uri : flagTo}} |
| 89 |
label={`${from} - ${to}`} |
| Warning |
Row 90, Column 20: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 90 |
style={{width: '49%'}} |
| 91 |
/> |
| 92 |
</View> |
| 93 |
|
| 94 |
{requested && ( |
| 95 |
<> |
| 96 |
{requestedReward && ( |
| 97 |
<View |
| Warning |
Row 98, Column 24: "Inline style: { width: '100%', justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 98 |
style={{ |
| 99 |
height: mvs(52), |
| 100 |
width: '100%', |
| 101 |
borderRadius: mvs(10), |
| 102 |
borderWidth: mvs(0.5), |
| 103 |
borderColor: colors.doted, |
| 104 |
marginTop: mvs(20), |
| 105 |
justifyContent: 'center', |
| 106 |
alignItems: 'center', |
| 107 |
}}> |
| 108 |
<Regular |
| 109 |
label={`Requested Reward ${offer_reward} ${profileData?.currency?.currency_code}`} |
| 110 |
style={{color: colors.typeHeader}} |
| 111 |
/> |
| 112 |
</View> |
| 113 |
)} |
| 114 |
<View |
| 115 |
style={{ |
| 116 |
...styles.buttonsContainer, |
| 117 |
marginTop: requestedReward ? mvs(10) : mvs(30), |
| 118 |
}}> |
| 119 |
<Buttons.ButtonPrimary |
| 120 |
title="Confirm" |
| Warning |
Row 121, Column 24: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 121 |
style={{width: '49%'}} |
| Error |
Row 122, Column 24: "Replace `·=·` with `=`"
prettier/prettier
|
| 122 |
loading = {loading} |
| Error |
Row 123, Column 25: "Replace `·=·` with `=`"
prettier/prettier
|
| 123 |
disabled = {loading} |
| Error |
Row 124, Column 28: "Replace `·=·` with `=`"
prettier/prettier
|
| 124 |
loaderColor = {colors.white} |
| 125 |
onClick={onConfirm} |
| 126 |
/> |
| 127 |
<Buttons.ButtonSecondaryOutline |
| 128 |
title="Cancel" |
| Warning |
Row 129, Column 24: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 129 |
style={{width: '49%'}} |
| 130 |
onClick={onClose} |
| 131 |
/> |
| 132 |
</View> |
| 133 |
</> |
| 134 |
)} |
| 135 |
|
| 136 |
{!requested && ( |
| 137 |
<> |
| 138 |
<View style={styles.rewardMainContainer}> |
| 139 |
<View |
| Warning |
Row 140, Column 24: "Inline style: { alignItems: 'flex-start' }"
react-native/no-inline-styles
|
| 140 |
style={{ |
| 141 |
...styles.rewardContainer1, |
| 142 |
alignItems: 'flex-start', |
| 143 |
paddingLeft: mvs(11), |
| 144 |
}}> |
| 145 |
<Medium |
| 146 |
label="90" |
| 147 |
style={{color: colors.pink, fontSize: mvs(23)}} |
| 148 |
/> |
| 149 |
<Regular |
| 150 |
label="US$" |
| Warning |
Row 151, Column 26: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| 151 |
style={{ |
| 152 |
color: colors.typeHeader, |
| 153 |
fontSize: mvs(23), |
| 154 |
position: 'absolute', |
| 155 |
right: mvs(11), |
| 156 |
}} |
| 157 |
/> |
| 158 |
</View> |
| 159 |
<Buttons.ButtonPrimary |
| Error |
Row 160, Column 15: "Insert `··`"
prettier/prettier
|
| 160 |
title="Confirm" |
| Error |
Row 161, Column 1: "Insert `··`"
prettier/prettier
|
| 161 |
style={{ |
| Error |
Row 162, Column 17: "Insert `··`"
prettier/prettier
|
| 162 |
...styles.rewardContainer1, |
| Error |
Row 163, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| 163 |
backgroundColor: colors.primary, |
| Error |
Row 164, Column 15: "Insert `··`"
prettier/prettier
|
| 164 |
}} |
| Error |
Row 165, Column 1: "Replace `··············loading·=·` with `················loading=`"
prettier/prettier
|
| 165 |
loading = {loading} |
| Error |
Row 166, Column 15: "Replace `disabled·=·` with `··disabled=`"
prettier/prettier
|
| 166 |
disabled = {loading} |
| Error |
Row 167, Column 1: "Replace `··············loaderColor·=·` with `················loaderColor=`"
prettier/prettier
|
| 167 |
loaderColor = {colors.white} |
| Error |
Row 168, Column 15: "Insert `··`"
prettier/prettier
|
| 168 |
onClick={onConfirm} |
| Error |
Row 169, Column 1: "Insert `··`"
prettier/prettier
|
| 169 |
/> |
| 170 |
{/* <TouchableOpacity |
| 171 |
onPress={onConfirm} |
| 172 |
style={{ |
| 173 |
...styles.rewardContainer1, |
| 174 |
backgroundColor: colors.primary, |
| 175 |
}}> |
| 176 |
<Regular label="Confirm" style={{color: colors.white}} /> |
| 177 |
</TouchableOpacity> */} |
| 178 |
</View> |
| 179 |
<Buttons.ButtonSecondaryOutline |
| 180 |
title="Cancel" |
| 181 |
style={{marginTop: mvs(10)}} |
| 182 |
onClick={onClose} |
| 183 |
/> |
| 184 |
</> |
| 185 |
)} |
| 186 |
</View> |
| 187 |
</ReactNativeModal> |
| 188 |
); |
| 189 |
}; |
| 190 |
|
| Error |
Row 191, Column 22: "Replace `=state=>` with `·=·state·=>·`"
prettier/prettier
|
| Warning |
Row 191, Column 22: "Operator '=' must be spaced."
space-infix-ops
|
| 191 |
const mapStateToProps=state=>({ |
| 192 |
profileData: state.auth.userInfo?.profile || {}, |
| Error |
Row 193, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 193, Column 3: "Missing semicolon."
semi
|
| 193 |
}) |
| Error |
Row 194, Column 40: "Insert `·`"
prettier/prettier
|
| 194 |
export default connect(mapStateToProps,{})(Widthdraw); |
| 195 |
|
| 196 |
const styles = StyleSheet.create({ |
| 197 |
mainContainer: { |
| 198 |
//height : mvs(400), |
| 199 |
width: ms(332), |
| 200 |
alignSelf: 'center', |
| 201 |
backgroundColor: colors.white, |
| 202 |
borderRadius: mvs(20), |
| Error |
Row 203, Column 5: "Duplicate key 'alignSelf'."
no-dupe-keys
|
| 203 |
alignSelf: 'center', |
| 204 |
paddingTop: mvs(23), |
| 205 |
paddingBottom: mvs(20), |
| 206 |
paddingHorizontal: mvs(10), |
| 207 |
}, |
| 208 |
header: { |
| 209 |
fontSize: mvs(18), |
| 210 |
color: colors.pink, |
| 211 |
alignSelf: 'center', |
| 212 |
}, |
| 213 |
heading: { |
| 214 |
fontSize: mvs(12), |
| 215 |
color: colors.lightgrey2, |
| 216 |
alignSelf: 'center', |
| 217 |
marginTop: mvs(5), |
| 218 |
}, |
| 219 |
productMainContainer: { |
| 220 |
width: '100%', |
| 221 |
flexDirection: 'row', |
| 222 |
//borderWidth : 1, |
| 223 |
//height : mvs(210), |
| 224 |
marginTop: mvs(23), |
| 225 |
justifyContent: 'space-between', |
| 226 |
}, |
| 227 |
productInfoContainer: { |
| 228 |
width: '49%', |
| 229 |
//borderWidth : 1, |
| 230 |
//paddingLeft : mvs(9) |
| 231 |
}, |
| 232 |
name: { |
| 233 |
fontSize: mvs(12), |
| 234 |
color: colors.typeHeader, |
| 235 |
marginTop: mvs(28), |
| 236 |
}, |
| 237 |
site: { |
| 238 |
fontSize: mvs(12), |
| 239 |
color: colors.primary, |
| 240 |
marginTop: mvs(9), |
| 241 |
}, |
| 242 |
priceContainer: { |
| 243 |
height: mvs(25), |
| 244 |
width: '100%', |
| 245 |
borderTopWidth: mvs(0.5), |
| 246 |
borderBottomWidth: mvs(0.5), |
| 247 |
borderColor: colors.horizontalLine, |
| 248 |
marginTop: mvs(10), |
| 249 |
flexDirection: 'row', |
| 250 |
justifyContent: 'space-between', |
| 251 |
alignItems: 'center', |
| 252 |
}, |
| 253 |
price: { |
| 254 |
fontSize: mvs(12), |
| 255 |
color: colors.typeHeader, |
| 256 |
}, |
| 257 |
rewardContainer: { |
| 258 |
//height : mvs(25), |
| 259 |
width: '100%', |
| 260 |
marginTop: mvs(13), |
| 261 |
flexDirection: 'row', |
| 262 |
justifyContent: 'space-between', |
| 263 |
alignItems: 'flex-end', |
| 264 |
}, |
| 265 |
rewardTitle: { |
| 266 |
fontSize: mvs(12), |
| 267 |
color: colors.primary, |
| 268 |
}, |
| 269 |
reward: { |
| 270 |
fontSize: mvs(18), |
| 271 |
color: colors.primary, |
| 272 |
}, |
| 273 |
routeMainContainer: { |
| 274 |
//borderWidth : 1, |
| 275 |
width: '100%', |
| 276 |
marginTop: mvs(15), |
| 277 |
//minHeight : mvs(54), |
| 278 |
flexDirection: 'row', |
| 279 |
alignItems: 'center', |
| 280 |
justifyContent: 'space-between', |
| 281 |
}, |
| 282 |
buttonsContainer: { |
| 283 |
width: '100%', |
| 284 |
marginTop: mvs(10), |
| 285 |
//borderWidth : 1, |
| 286 |
flexDirection: 'row', |
| 287 |
justifyContent: 'space-between', |
| 288 |
}, |
| 289 |
button: { |
| 290 |
height: mvs(52), |
| 291 |
width: '49%', |
| 292 |
//borderWidth : 1 |
| 293 |
}, |
| 294 |
rewardMainContainer: { |
| 295 |
height: mvs(58), |
| 296 |
width: '100%', |
| 297 |
justifyContent: 'space-between', |
| 298 |
flexDirection: 'row', |
| 299 |
alignItems: 'center', |
| 300 |
backgroundColor: colors.white, |
| 301 |
borderRadius: mvs(10), |
| 302 |
marginTop: mvs(15), |
| 303 |
//paddingHorizontal: mvs(10), |
| 304 |
//borderWidth:0.3, |
| 305 |
borderColor: colors.lightgrey2, |
| 306 |
}, |
| 307 |
rewardContainer1: { |
| 308 |
width: '49%', |
| 309 |
height: '100%', |
| 310 |
borderRadius: mvs(10), |
| 311 |
borderWidth: mvs(0.5), |
| 312 |
borderColor: colors.doted, |
| 313 |
justifyContent: 'center', |
| 314 |
alignItems: 'center', |
| 315 |
}, |
| 316 |
}); |
| 317 |
|
|
|
|
/src/components/molecules/order_card/delivery-history-card.js
|
28 problems (17 errors, 11 warnings)
|
| Severity |
Rule |
| Warning |
Row 3, Column 3: "'Image' is defined but never used."
no-unused-vars
|
| Warning |
Row 4, Column 3: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| Warning |
Row 10, Column 15: "'width' is defined but never used."
no-unused-vars
|
| Error |
Row 48, Column 19: "Replace `·...styles.CONTAINER,·...style·` with `...styles.CONTAINER,·...style`"
prettier/prettier
|
| Error |
Row 56, Column 23: "Insert `,`"
prettier/prettier
|
| Warning |
Row 56, Column 23: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 59, Column 16: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 59, Column 17: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| Warning |
Row 65, Column 20: "Inline style: { bottom: -1 }"
react-native/no-inline-styles
|
| Warning |
Row 74, Column 20: "Inline style: { flex: 1, overflow: 'hidden', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Error |
Row 87, Column 27: "Replace `·marginTop:·mvs(9)·` with `marginTop:·mvs(9)`"
prettier/prettier
|
| Error |
Row 88, Column 23: "Replace `·numberOfLines·=·{2}·label={title}·style={styles.CARD_CONTENT_LABLE}` with `⏎················numberOfLines={2}⏎················label={title}⏎················style={styles.CARD_CONTENT_LABLE}⏎·············`"
prettier/prettier
|
| Error |
Row 90, Column 27: "Replace `·marginTop:·mvs(5)·` with `marginTop:·mvs(5)`"
prettier/prettier
|
| Error |
Row 101, Column 48: "Replace `·...styles.CARD_CONTENT_LABLE·` with `...styles.CARD_CONTENT_LABLE`"
prettier/prettier
|
| Error |
Row 104, Column 25: "Replace `·...styles.CARD_CONTENT_LABLE·` with `...styles.CARD_CONTENT_LABLE`"
prettier/prettier
|
| Error |
Row 127, Column 28: "Replace `·onPress={()=>props?.navigation?.navigate('userprofile',{user_id:props?.user_id_tr,is_review:false})}` with `⏎············onPress={()·=>⏎··············props?.navigation?.navigate('userprofile',·{⏎················user_id:·props?.user_id_tr,⏎················is_review:·false,⏎··············})⏎············}⏎···········`"
prettier/prettier
|
| Error |
Row 129, Column 32: "Replace `·bg_img={user_img_tr}·containerStyle={styles.AVATAR}` with `⏎················bg_img={user_img_tr}⏎················containerStyle={styles.AVATAR}⏎·············`"
prettier/prettier
|
| Warning |
Row 133, Column 24: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 150, Column 27: "Replace `·uri:·order_from_flag·` with `uri:·order_from_flag`"
prettier/prettier
|
| Error |
Row 151, Column 25: "Replace `·uri:·order_to_flag·` with `uri:·order_to_flag`"
prettier/prettier
|
| Error |
Row 155, Column 28: "Replace `·onPress={()=>props?.navigation?.navigate('userprofile',{user_id:props?.user_id,is_review:false})}` with `⏎············onPress={()·=>⏎··············props?.navigation?.navigate('userprofile',·{⏎················user_id:·props?.user_id,⏎················is_review:·false,⏎··············})⏎············}⏎···········`"
prettier/prettier
|
| Error |
Row 157, Column 32: "Replace `·bg_img={user_img}·containerStyle={styles.AVATAR}` with `⏎················bg_img={user_img}⏎················containerStyle={styles.AVATAR}⏎·············`"
prettier/prettier
|
| Warning |
Row 161, Column 24: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 179, Column 12: "Replace `"45%"` with `'45%'`"
prettier/prettier
|
| Warning |
Row 179, Column 12: "Strings must use singlequote."
quotes
|
| Error |
Row 232, Column 18: "Insert `,`"
prettier/prettier
|
| Warning |
Row 232, Column 18: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| 1 |
import React from 'react'; |
| 2 |
import { |
| Warning |
Row 3, Column 3: "'Image' is defined but never used."
no-unused-vars
|
| 3 |
Image, |
| Warning |
Row 4, Column 3: "'ImageBackground' is defined but never used."
no-unused-vars
|
| 4 |
ImageBackground, |
| 5 |
StyleSheet, |
| 6 |
TouchableOpacity, |
| 7 |
View, |
| 8 |
} from 'react-native'; |
| 9 |
import colors from '../../../config/colors'; |
| Error |
Row 10, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| Warning |
Row 10, Column 15: "'width' is defined but never used."
no-unused-vars
|
| 10 |
import { mvs, width } from '../../../config/metrices'; |
| 11 |
import Medium from '../../../presentation/typography/medium-text'; |
| 12 |
import Regular from '../../../presentation/typography/regular-text'; |
| 13 |
import OrderDestination from '../../atoms/OrderDestination'; |
| 14 |
import OrderDestinationAddress from '../../atoms/OrderDestinationAddress'; |
| 15 |
import ImagePlaceholder from '../../atoms/Placeholder'; |
| 16 |
import AeroplaneActive from './../../../../resource/assets/order-car-icons/aeroplane-active.svg'; |
| 17 |
import CarActive from './../../../../resource/assets/order-car-icons/car-active.svg'; |
| 18 |
import Location from './../../../../resource/assets/order-car-icons/location-active.svg'; |
| 19 |
const DeliveredOrderCard = ({ |
| 20 |
order_img, |
| 21 |
time, |
| 22 |
title, |
| 23 |
//order_site, |
| 24 |
shopName, |
| 25 |
price, |
| 26 |
reward, |
| 27 |
store_img, |
| 28 |
order_from, |
| 29 |
order_to, |
| 30 |
order_from_flag, |
| 31 |
order_to_flag, |
| 32 |
urgent_delivery = false, |
| 33 |
user_name, |
| 34 |
user_img, |
| 35 |
user_name_tr, |
| 36 |
user_img_tr, |
| 37 |
offer_by = {}, |
| 38 |
local = true, |
| 39 |
headingTitle, |
| 40 |
style, |
| 41 |
detinationWidth = null, |
| 42 |
order_id = null, |
| 43 |
onclick, |
| 44 |
order_data, |
| 45 |
...props |
| 46 |
}) => { |
| 47 |
return ( |
| Error |
Row 48, Column 19: "Replace `·...styles.CONTAINER,·...style·` with `...styles.CONTAINER,·...style`"
prettier/prettier
|
| 48 |
<View style={{ ...styles.CONTAINER, ...style }}> |
| 49 |
<TouchableOpacity |
| 50 |
activeOpacity={1} |
| 51 |
onPress={() => { |
| 52 |
props.navigation.navigate('orderdetails', { |
| 53 |
isLocalOrder: local, |
| 54 |
orderType: 'delivered', |
| 55 |
order_id, |
| Error |
Row 56, Column 23: "Insert `,`"
prettier/prettier
|
| Warning |
Row 56, Column 23: "Missing trailing comma."
comma-dangle
|
| 56 |
order_data |
| 57 |
}); |
| 58 |
}} |
| Warning |
Row 59, Column 16: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 59, Column 17: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| 59 |
style={{ flex: 1 }}> |
| 60 |
{headingTitle && ( |
| 61 |
<Regular label={headingTitle} style={styles.PROCESSING_LABEL} /> |
| 62 |
)} |
| 63 |
<View style={styles.CARD_WRAPPER}> |
| 64 |
<ImagePlaceholder |
| Warning |
Row 65, Column 20: "Inline style: { bottom: -1 }"
react-native/no-inline-styles
|
| 65 |
style={{bottom: -1}} |
| 66 |
bg_img={store_img} |
| 67 |
containerStyle={styles.STORE_IMG_CONTAINER}> |
| 68 |
{urgent_delivery && ( |
| 69 |
<Regular label={'Urgent delivery'} style={styles.URGENT_LABEL} /> |
| 70 |
)} |
| 71 |
</ImagePlaceholder> |
| 72 |
|
| 73 |
<View |
| Warning |
Row 74, Column 20: "Inline style: { flex: 1, overflow: 'hidden', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| 74 |
style={{ |
| 75 |
flex: 1, |
| 76 |
paddingLeft: mvs(9), |
| 77 |
overflow: 'hidden', |
| 78 |
justifyContent: 'space-between', |
| 79 |
}}> |
| 80 |
<Regular |
| 81 |
label={time} |
| 82 |
style={{ |
| 83 |
...styles.CARD_CONTENT_LABLE, |
| 84 |
color: colors.timeAgo, |
| 85 |
}} |
| 86 |
/> |
| Error |
Row 87, Column 27: "Replace `·marginTop:·mvs(9)·` with `marginTop:·mvs(9)`"
prettier/prettier
|
| 87 |
<View style={{ marginTop: mvs(9) }}> |
| Error |
Row 88, Column 23: "Replace `·numberOfLines·=·{2}·label={title}·style={styles.CARD_CONTENT_LABLE}` with `⏎················numberOfLines={2}⏎················label={title}⏎················style={styles.CARD_CONTENT_LABLE}⏎·············`"
prettier/prettier
|
| 88 |
<Regular numberOfLines = {2} label={title} style={styles.CARD_CONTENT_LABLE} /> |
| 89 |
</View> |
| Error |
Row 90, Column 27: "Replace `·marginTop:·mvs(5)·` with `marginTop:·mvs(5)`"
prettier/prettier
|
| 90 |
<View style={{ marginTop: mvs(5) }}> |
| 91 |
<Regular |
| 92 |
numberOfLines={1} |
| 93 |
label={order_data?.order_site || shopName} |
| 94 |
style={{ |
| 95 |
...styles.CARD_CONTENT_LABLE, |
| 96 |
color: colors.primary, |
| 97 |
}} |
| 98 |
/> |
| 99 |
</View> |
| 100 |
<View style={styles.PRICE_CONTAINER}> |
| Error |
Row 101, Column 48: "Replace `·...styles.CARD_CONTENT_LABLE·` with `...styles.CARD_CONTENT_LABLE`"
prettier/prettier
|
| 101 |
<Regular label={'Price'} style={{ ...styles.CARD_CONTENT_LABLE }} /> |
| 102 |
<Medium |
| 103 |
label={`${price}`} |
| Error |
Row 104, Column 25: "Replace `·...styles.CARD_CONTENT_LABLE·` with `...styles.CARD_CONTENT_LABLE`"
prettier/prettier
|
| 104 |
style={{ ...styles.CARD_CONTENT_LABLE }} |
| 105 |
/> |
| 106 |
</View> |
| 107 |
<View style={styles.REWARD_CONTAINER}> |
| 108 |
<Regular |
| 109 |
label={'Reward'} |
| 110 |
style={{ |
| 111 |
...styles.CARD_CONTENT_LABLE, |
| 112 |
color: colors.primary, |
| 113 |
}} |
| 114 |
/> |
| 115 |
<Medium |
| 116 |
label={`${reward}`} |
| 117 |
style={{ |
| 118 |
...styles.CARD_CONTENT_LABLE, |
| 119 |
fontSize: mvs(18), |
| 120 |
color: colors.primary, |
| 121 |
}} |
| 122 |
/> |
| 123 |
</View> |
| 124 |
</View> |
| 125 |
</View> |
| 126 |
<View style={styles.DESTINATION_WRAPPER}> |
| Error |
Row 127, Column 28: "Replace `·onPress={()=>props?.navigation?.navigate('userprofile',{user_id:props?.user_id_tr,is_review:false})}` with `⏎············onPress={()·=>⏎··············props?.navigation?.navigate('userprofile',·{⏎················user_id:·props?.user_id_tr,⏎················is_review:·false,⏎··············})⏎············}⏎···········`"
prettier/prettier
|
| 127 |
<TouchableOpacity onPress={()=>props?.navigation?.navigate('userprofile',{user_id:props?.user_id_tr,is_review:false})} style={styles.AVATAR_WRAPPER}> |
| 128 |
<View style={styles.AVATAR_CONTAINER}> |
| Error |
Row 129, Column 32: "Replace `·bg_img={user_img_tr}·containerStyle={styles.AVATAR}` with `⏎················bg_img={user_img_tr}⏎················containerStyle={styles.AVATAR}⏎·············`"
prettier/prettier
|
| 129 |
<ImagePlaceholder bg_img={user_img_tr} containerStyle={styles.AVATAR} /> |
| 130 |
<Regular |
| 131 |
numberOfLines={1} |
| 132 |
label={user_name_tr} |
| Warning |
Row 133, Column 24: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 133 |
style={{ |
| 134 |
...styles.CARD_CONTENT_LABLE, |
| 135 |
textAlign: 'center', |
| 136 |
fontSize: mvs(10), |
| 137 |
}} |
| 138 |
/> |
| 139 |
</View> |
| 140 |
</TouchableOpacity> |
| 141 |
<View style={styles.DESTINATION_CONTAINER}> |
| 142 |
<OrderDestination |
| 143 |
width={detinationWidth} |
| 144 |
value={2} |
| 145 |
SVGFirst={local ? CarActive : AeroplaneActive} |
| 146 |
SVGSecond={Location} |
| 147 |
/> |
| 148 |
<OrderDestinationAddress |
| 149 |
numberOfLines={3} |
| Error |
Row 150, Column 27: "Replace `·uri:·order_from_flag·` with `uri:·order_from_flag`"
prettier/prettier
|
| 150 |
imageFrom={{ uri: order_from_flag }} |
| Error |
Row 151, Column 25: "Replace `·uri:·order_to_flag·` with `uri:·order_to_flag`"
prettier/prettier
|
| 151 |
imageTo={{ uri: order_to_flag }} |
| 152 |
label={`${order_from} - ${order_to}`} |
| 153 |
/> |
| 154 |
</View> |
| Error |
Row 155, Column 28: "Replace `·onPress={()=>props?.navigation?.navigate('userprofile',{user_id:props?.user_id,is_review:false})}` with `⏎············onPress={()·=>⏎··············props?.navigation?.navigate('userprofile',·{⏎················user_id:·props?.user_id,⏎················is_review:·false,⏎··············})⏎············}⏎···········`"
prettier/prettier
|
| 155 |
<TouchableOpacity onPress={()=>props?.navigation?.navigate('userprofile',{user_id:props?.user_id,is_review:false})} style={styles.AVATAR_WRAPPER}> |
| 156 |
<View style={styles.AVATAR_CONTAINER}> |
| Error |
Row 157, Column 32: "Replace `·bg_img={user_img}·containerStyle={styles.AVATAR}` with `⏎················bg_img={user_img}⏎················containerStyle={styles.AVATAR}⏎·············`"
prettier/prettier
|
| 157 |
<ImagePlaceholder bg_img={user_img} containerStyle={styles.AVATAR} /> |
| 158 |
<Regular |
| 159 |
numberOfLines={1} |
| 160 |
label={user_name} |
| Warning |
Row 161, Column 24: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 161 |
style={{ |
| 162 |
...styles.CARD_CONTENT_LABLE, |
| 163 |
textAlign: 'center', |
| 164 |
fontSize: mvs(10), |
| 165 |
}} |
| 166 |
/> |
| 167 |
</View> |
| 168 |
</TouchableOpacity> |
| 169 |
</View> |
| 170 |
</TouchableOpacity> |
| 171 |
</View> |
| 172 |
); |
| 173 |
}; |
| 174 |
|
| 175 |
export default DeliveredOrderCard; |
| 176 |
|
| 177 |
const styles = StyleSheet.create({ |
| 178 |
STORE_IMG_CONTAINER: { |
| Error |
Row 179, Column 12: "Replace `"45%"` with `'45%'`"
prettier/prettier
|
| Warning |
Row 179, Column 12: "Strings must use singlequote."
quotes
|
| 179 |
width: "45%", |
| 180 |
borderRadius: mvs(20), |
| 181 |
overflow: 'hidden', |
| 182 |
alignItems: 'center', |
| 183 |
justifyContent: 'flex-end', |
| 184 |
}, |
| 185 |
CONTAINER: { |
| 186 |
// ...colors.shadow, |
| 187 |
// marginTop: 2, |
| 188 |
height: mvs(240), |
| 189 |
// flexGrow:1, |
| 190 |
marginBottom: mvs(20), |
| 191 |
// width: width - mvs(22) * 2, |
| 192 |
paddingHorizontal: mvs(10), |
| 193 |
paddingVertical: mvs(15), |
| 194 |
backgroundColor: colors.secondary, |
| 195 |
borderRadius: mvs(20), |
| 196 |
}, |
| 197 |
PRICE_CONTAINER: { |
| 198 |
marginTop: mvs(10), |
| 199 |
flexDirection: 'row', |
| 200 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 201 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 202 |
borderColor: colors.horizontalLine, |
| 203 |
height: mvs(25), |
| 204 |
justifyContent: 'space-between', |
| 205 |
alignItems: 'center', |
| 206 |
}, |
| 207 |
REWARD_CONTAINER: { |
| 208 |
marginTop: mvs(10), |
| 209 |
flexDirection: 'row', |
| 210 |
height: mvs(21), |
| 211 |
justifyContent: 'space-between', |
| 212 |
alignItems: 'center', |
| 213 |
}, |
| 214 |
PROCESSING_LABEL: { |
| 215 |
marginBottom: mvs(10), |
| 216 |
color: colors.green, |
| 217 |
fontSize: 12, |
| 218 |
}, |
| 219 |
DESTINATION_WRAPPER: { |
| 220 |
flex: 1, |
| 221 |
marginTop: mvs(10), |
| 222 |
justifyContent: 'space-between', |
| 223 |
alignItems: 'center', |
| 224 |
flexDirection: 'row', |
| 225 |
}, |
| 226 |
DESTINATION_CONTAINER: { |
| 227 |
flex: 1, |
| 228 |
justifyContent: 'space-between', |
| 229 |
alignItems: 'center', |
| 230 |
// width: '90%', |
| 231 |
paddingHorizontal: mvs(10), |
| Error |
Row 232, Column 18: "Insert `,`"
prettier/prettier
|
| Warning |
Row 232, Column 18: "Missing trailing comma."
comma-dangle
|
| 232 |
height: '90%' |
| 233 |
}, |
| 234 |
CARD_WRAPPER: { |
| 235 |
flexDirection: 'row', |
| 236 |
justifyContent: 'space-between', |
| 237 |
height: mvs(141), |
| 238 |
}, |
| 239 |
CARD_CONTENT_LABLE: { |
| 240 |
fontSize: mvs(12), |
| 241 |
color: colors.headerTitle, |
| 242 |
}, |
| 243 |
AVATAR_CONTAINER: { |
| 244 |
flex: 1, |
| 245 |
justifyContent: 'space-around', |
| 246 |
alignItems: 'center', |
| 247 |
}, |
| 248 |
AVATAR: { |
| 249 |
height: mvs(37), |
| 250 |
width: mvs(37), |
| 251 |
overflow: 'hidden', |
| 252 |
borderRadius: mvs(10), |
| 253 |
backgroundColor: colors.secondary, |
| 254 |
}, |
| 255 |
AVATAR_WRAPPER: { |
| 256 |
height: '100%', |
| 257 |
width: mvs(54), |
| 258 |
borderRadius: mvs(10), |
| 259 |
}, |
| 260 |
URGENT_LABEL: { |
| 261 |
fontSize: mvs(12), |
| 262 |
color: colors.pink, |
| 263 |
paddingHorizontal: mvs(15), |
| 264 |
paddingVertical: mvs(3), |
| 265 |
// marginTop:mvs(10), |
| 266 |
backgroundColor: colors.white, |
| 267 |
borderTopLeftRadius: mvs(6), |
| 268 |
borderTopRightRadius: mvs(6), |
| 269 |
}, |
| 270 |
}); |
| 271 |
|
|
|
|
/src/components/molecules/order_card/history-offer-card.js
|
42 problems (24 errors, 18 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·Image,·StyleSheet,·TouchableOpacity,·View·` with `Image,·StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| Warning |
Row 2, Column 10: "'Image' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 29: "'TouchableOpacity' is defined but never used."
no-unused-vars
|
| Error |
Row 3, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 3, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 48, Column 19: "Replace `·...styles.CONTAINER,·...style·` with `...styles.CONTAINER,·...style`"
prettier/prettier
|
| Warning |
Row 49, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 49, Column 21: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| Warning |
Row 56, Column 29: "Inline style: { width: '45%' }"
react-native/no-inline-styles
|
| Error |
Row 57, Column 22: "Replace `"45%"` with `'45%'`"
prettier/prettier
|
| Warning |
Row 57, Column 22: "Strings must use singlequote."
quotes
|
| Error |
Row 60, Column 15: "Delete `⏎··········`"
prettier/prettier
|
| Error |
Row 63, Column 23: "Replace `⏎················label={'Urgent·delivery'}⏎················style={styles.URGENT_LABEL}⏎·············` with `·label={'Urgent·delivery'}·style={styles.URGENT_LABEL}`"
prettier/prettier
|
| Warning |
Row 71, Column 20: "Inline style: { justifyContent: 'space-between', width: '53%' }"
react-native/no-inline-styles
|
| Error |
Row 85, Column 27: "Replace `·marginTop:·mvs(9)·` with `marginTop:·mvs(9)`"
prettier/prettier
|
| Error |
Row 86, Column 23: "Replace `·numberOfLines={2}·label={title}·style={styles.CARD_CONTENT_LABLE}` with `⏎················numberOfLines={2}⏎················label={title}⏎················style={styles.CARD_CONTENT_LABLE}⏎·············`"
prettier/prettier
|
| Error |
Row 88, Column 27: "Replace `·marginTop:·mvs(5)·` with `marginTop:·mvs(5)`"
prettier/prettier
|
| Error |
Row 99, Column 23: "Replace `⏎················label={'Price'}⏎················style={{·...styles.CARD_CONTENT_LABLE·}}⏎·············` with `·label={'Price'}·style={{...styles.CARD_CONTENT_LABLE}}`"
prettier/prettier
|
| Error |
Row 105, Column 25: "Replace `·...styles.CARD_CONTENT_LABLE·` with `...styles.CARD_CONTENT_LABLE`"
prettier/prettier
|
| Warning |
Row 109, Column 28: "Inline style: { justifyContent: 'flex-end' }"
react-native/no-inline-styles
|
| Error |
Row 109, Column 36: "Replace `mvs(30),justifyContent:'flex-end',}}·` with `·mvs(30),·justifyContent:·'flex-end'}}`"
prettier/prettier
|
| Warning |
Row 109, Column 69: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 112, Column 26: "Replace `(status&&type)?`${status}\n${type}`:status?`${status}`:`${type}`` with `⏎····················status·&&·type⏎······················?·`${status}\n${type}`⏎······················:·status⏎······················?·`${status}`⏎······················:·`${type}`⏎··················`"
prettier/prettier
|
| Warning |
Row 112, Column 33: "Operator '&&' must be spaced."
space-infix-ops
|
| Warning |
Row 112, Column 40: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 112, Column 68: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 138, Column 24: "Inline style: { width: '45%' }"
react-native/no-inline-styles
|
| Error |
Row 138, Column 25: "Replace `·width:·'45%'·` with `width:·'45%'`"
prettier/prettier
|
| Error |
Row 141, Column 34: "Replace `?2:` with `·?·2·:·`"
prettier/prettier
|
| Warning |
Row 141, Column 34: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 142, Column 37: "Replace `?colors.pink:` with `·?·colors.pink·:·`"
prettier/prettier
|
| Warning |
Row 142, Column 37: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 148, Column 29: "Replace `·uri:·order_from_flag·` with `uri:·order_from_flag`"
prettier/prettier
|
| Error |
Row 149, Column 27: "Replace `·uri:·order_to_flag·` with `uri:·order_to_flag`"
prettier/prettier
|
| Error |
Row 151, Column 25: "Replace `·marginTop:·mvs(11.1)·` with `marginTop:·mvs(11.1)`"
prettier/prettier
|
| Warning |
Row 160, Column 26: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 160, Column 27: "Replace `·fontSize:·mvs(15),·textAlign:·"center"·` with `fontSize:·mvs(15),·textAlign:·'center'`"
prettier/prettier
|
| Warning |
Row 160, Column 58: "Strings must use singlequote."
quotes
|
| Error |
Row 162, Column 23: "Replace `·backgroundColor:·color,·...styleButton·` with `backgroundColor:·color,·...styleButton`"
prettier/prettier
|
| Error |
Row 268, Column 20: "Insert `,`"
prettier/prettier
|
| Warning |
Row 268, Column 20: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·Image,·StyleSheet,·TouchableOpacity,·View·` with `Image,·StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| Warning |
Row 2, Column 10: "'Image' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 29: "'TouchableOpacity' is defined but never used."
no-unused-vars
|
| 2 |
import { Image, StyleSheet, TouchableOpacity, View } from 'react-native'; |
| Error |
Row 3, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 3, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 3 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce'; |
| 4 |
import colors from '../../../config/colors'; |
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 5 |
import { mvs } from '../../../config/metrices'; |
| 6 |
import Medium from '../../../presentation/typography/medium-text'; |
| 7 |
import Regular from '../../../presentation/typography/regular-text'; |
| 8 |
import Buttons from '../../atoms/Button'; |
| 9 |
import OrderDestination from '../../atoms/OrderDestination'; |
| 10 |
import OrderDestinationAddress from '../../atoms/OrderDestinationAddress'; |
| 11 |
import Aeroplane from './../../../../resource/assets/order-car-icons/aeroplane.svg'; |
| 12 |
import Car from './../../../../resource/assets/order-car-icons/car.svg'; |
| 13 |
import Location from './../../../../resource/assets/order-car-icons/location.svg'; |
| 14 |
import ImagePlaceholder from '../../atoms/Placeholder'; |
| 15 |
const HistoryOrderCard = ({ |
| 16 |
store_img, |
| 17 |
time = '', |
| 18 |
showTime = false, |
| 19 |
title, |
| 20 |
order_site, |
| 21 |
price, |
| 22 |
reward, |
| 23 |
user_name, |
| 24 |
user_img, |
| 25 |
local = true, |
| 26 |
headingTitle, |
| 27 |
buttonLabel, |
| 28 |
buttonLabel1, |
| 29 |
status, |
| 30 |
type, |
| 31 |
color, |
| 32 |
onClick, |
| 33 |
order_from, |
| 34 |
order_to, |
| 35 |
order_from_flag, |
| 36 |
order_to_flag, |
| 37 |
style, |
| 38 |
textStyle1, |
| 39 |
styleButton, |
| 40 |
shopName, |
| 41 |
urgent_delivery, |
| 42 |
lineStatus, |
| 43 |
...props |
| 44 |
}) => { |
| 45 |
// console.log(status,type) |
| 46 |
return ( |
| 47 |
// <Shadow distance={mvs(5)} viewStyle={styles.CONTAINER}> |
| Error |
Row 48, Column 19: "Replace `·...styles.CONTAINER,·...style·` with `...styles.CONTAINER,·...style`"
prettier/prettier
|
| 48 |
<View style={{ ...styles.CONTAINER, ...style }}> |
| Warning |
Row 49, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 49, Column 21: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| 49 |
<View style={{ flex: 1 }}> |
| 50 |
{headingTitle && ( |
| 51 |
<Regular label={headingTitle} style={styles.PROCESSING_LABEL} /> |
| 52 |
)} |
| 53 |
<View style={styles.CARD_WRAPPER}> |
| 54 |
<ImagePlaceholder |
| 55 |
bg_img={store_img} |
| Warning |
Row 56, Column 29: "Inline style: { width: '45%' }"
react-native/no-inline-styles
|
| 56 |
containerStyle={{ |
| Error |
Row 57, Column 22: "Replace `"45%"` with `'45%'`"
prettier/prettier
|
| Warning |
Row 57, Column 22: "Strings must use singlequote."
quotes
|
| 57 |
width: "45%", |
| 58 |
height: mvs(141), |
| 59 |
borderRadius: mvs(20), |
| Error |
Row 60, Column 15: "Delete `⏎··········`"
prettier/prettier
|
| 60 |
}} |
| 61 |
> |
| 62 |
{urgent_delivery && ( |
| Error |
Row 63, Column 23: "Replace `⏎················label={'Urgent·delivery'}⏎················style={styles.URGENT_LABEL}⏎·············` with `·label={'Urgent·delivery'}·style={styles.URGENT_LABEL}`"
prettier/prettier
|
| 63 |
<Regular |
| 64 |
label={'Urgent delivery'} |
| 65 |
style={styles.URGENT_LABEL} |
| 66 |
/> |
| 67 |
)} |
| 68 |
</ImagePlaceholder> |
| 69 |
|
| 70 |
<View |
| Warning |
Row 71, Column 20: "Inline style: { justifyContent: 'space-between', width: '53%' }"
react-native/no-inline-styles
|
| 71 |
style={{ |
| 72 |
//flex: 1, |
| 73 |
//paddingLeft: mvs(9), |
| 74 |
justifyContent: 'space-between', |
| 75 |
width: '53%', |
| 76 |
}}> |
| 77 |
<Regular |
| 78 |
label={time} |
| 79 |
style={{ |
| 80 |
...styles.CARD_CONTENT_LABLE, |
| 81 |
color: colors.timeAgo, |
| 82 |
// marginLeft: mvs(9) |
| 83 |
}} |
| 84 |
/> |
| Error |
Row 85, Column 27: "Replace `·marginTop:·mvs(9)·` with `marginTop:·mvs(9)`"
prettier/prettier
|
| 85 |
<View style={{ marginTop: mvs(9) }}> |
| Error |
Row 86, Column 23: "Replace `·numberOfLines={2}·label={title}·style={styles.CARD_CONTENT_LABLE}` with `⏎················numberOfLines={2}⏎················label={title}⏎················style={styles.CARD_CONTENT_LABLE}⏎·············`"
prettier/prettier
|
| 86 |
<Regular numberOfLines={2} label={title} style={styles.CARD_CONTENT_LABLE} /> |
| 87 |
</View> |
| Error |
Row 88, Column 27: "Replace `·marginTop:·mvs(5)·` with `marginTop:·mvs(5)`"
prettier/prettier
|
| 88 |
<View style={{ marginTop: mvs(5) }}> |
| 89 |
<Regular |
| 90 |
label={order_site || shopName} |
| 91 |
numberOfLines={1} |
| 92 |
style={{ |
| 93 |
...styles.CARD_CONTENT_LABLE, |
| 94 |
color: colors.primary, |
| 95 |
}} |
| 96 |
/> |
| 97 |
</View> |
| 98 |
<View style={styles.PRICE_CONTAINER}> |
| Error |
Row 99, Column 23: "Replace `⏎················label={'Price'}⏎················style={{·...styles.CARD_CONTENT_LABLE·}}⏎·············` with `·label={'Price'}·style={{...styles.CARD_CONTENT_LABLE}}`"
prettier/prettier
|
| 99 |
<Regular |
| 100 |
label={'Price'} |
| 101 |
style={{ ...styles.CARD_CONTENT_LABLE }} |
| 102 |
/> |
| 103 |
<Medium |
| 104 |
label={`${price}`} |
| Error |
Row 105, Column 25: "Replace `·...styles.CARD_CONTENT_LABLE·` with `...styles.CARD_CONTENT_LABLE`"
prettier/prettier
|
| 105 |
style={{ ...styles.CARD_CONTENT_LABLE }} |
| 106 |
/> |
| 107 |
</View> |
| 108 |
<View style={styles.REWARD_CONTAINER}> |
| Warning |
Row 109, Column 28: "Inline style: { justifyContent: 'flex-end' }"
react-native/no-inline-styles
|
| Error |
Row 109, Column 36: "Replace `mvs(30),justifyContent:'flex-end',}}·` with `·mvs(30),·justifyContent:·'flex-end'}}`"
prettier/prettier
|
| Warning |
Row 109, Column 69: "Unexpected trailing comma."
comma-dangle
|
| 109 |
<View style={{height:mvs(30),justifyContent:'flex-end',}} > |
| 110 |
{console.log(`${status} \n ${type}`.trim())} |
| 111 |
<Regular |
| Error |
Row 112, Column 26: "Replace `(status&&type)?`${status}\n${type}`:status?`${status}`:`${type}`` with `⏎····················status·&&·type⏎······················?·`${status}\n${type}`⏎······················:·status⏎······················?·`${status}`⏎······················:·`${type}`⏎··················`"
prettier/prettier
|
| Warning |
Row 112, Column 33: "Operator '&&' must be spaced."
space-infix-ops
|
| Warning |
Row 112, Column 40: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 112, Column 68: "Operator '?' must be spaced."
space-infix-ops
|
| 112 |
label={(status&&type)?`${status}\n${type}`:status?`${status}`:`${type}`} |
| 113 |
style={{ |
| 114 |
...styles.CARD_CONTENT_LABLE, |
| 115 |
color: colors.primary, |
| 116 |
}} |
| 117 |
/> |
| 118 |
{/* <Regular |
| 119 |
label={type} |
| 120 |
style={{ |
| 121 |
...styles.CARD_CONTENT_LABLE, |
| 122 |
color: colors.primary, |
| 123 |
}} |
| 124 |
/> */} |
| 125 |
</View> |
| 126 |
<Medium |
| 127 |
label={`${reward}`} |
| 128 |
style={{ |
| 129 |
...styles.CARD_CONTENT_LABLE, |
| 130 |
fontSize: mvs(17), |
| 131 |
color: colors.primary, |
| 132 |
}} |
| 133 |
/> |
| 134 |
</View> |
| 135 |
</View> |
| 136 |
</View> |
| 137 |
<View style={styles.DESTINATION_WRAPPER}> |
| Warning |
Row 138, Column 24: "Inline style: { width: '45%' }"
react-native/no-inline-styles
|
| Error |
Row 138, Column 25: "Replace `·width:·'45%'·` with `width:·'45%'`"
prettier/prettier
|
| 138 |
<View style={{ width: '45%' }}> |
| 139 |
<View style={styles.DESTINATION_CONTAINER}> |
| 140 |
<OrderDestination |
| Error |
Row 141, Column 34: "Replace `?2:` with `·?·2·:·`"
prettier/prettier
|
| Warning |
Row 141, Column 34: "Operator '?' must be spaced."
space-infix-ops
|
| 141 |
value={lineStatus?2:0} |
| Error |
Row 142, Column 37: "Replace `?colors.pink:` with `·?·colors.pink·:·`"
prettier/prettier
|
| Warning |
Row 142, Column 37: "Operator '?' must be spaced."
space-infix-ops
|
| 142 |
dotColor={lineStatus?colors.pink:colors.primary} |
| 143 |
label={' - - - - - - - - - - - - - - - - - '} |
| 144 |
SVGFirst={local ? Car : Aeroplane} |
| 145 |
SVGSecond={Location} |
| 146 |
/> |
| 147 |
<OrderDestinationAddress |
| Error |
Row 148, Column 29: "Replace `·uri:·order_from_flag·` with `uri:·order_from_flag`"
prettier/prettier
|
| 148 |
imageFrom={{ uri: order_from_flag }} |
| Error |
Row 149, Column 27: "Replace `·uri:·order_to_flag·` with `uri:·order_to_flag`"
prettier/prettier
|
| 149 |
imageTo={{ uri: order_to_flag }} |
| 150 |
fontSize={9} |
| Error |
Row 151, Column 25: "Replace `·marginTop:·mvs(11.1)·` with `marginTop:·mvs(11.1)`"
prettier/prettier
|
| 151 |
style={{ marginTop: mvs(11.1) }} |
| 152 |
label={`${order_from} - ${order_to}`} |
| 153 |
/> |
| 154 |
</View> |
| 155 |
</View> |
| 156 |
<View style={styles.button}> |
| 157 |
<Buttons.ButtonPrimaryCard |
| 158 |
title={buttonLabel} |
| 159 |
//title1={buttonLabel1} |
| Warning |
Row 160, Column 26: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 160, Column 27: "Replace `·fontSize:·mvs(15),·textAlign:·"center"·` with `fontSize:·mvs(15),·textAlign:·'center'`"
prettier/prettier
|
| Warning |
Row 160, Column 58: "Strings must use singlequote."
quotes
|
| 160 |
textStyle={{ fontSize: mvs(15), textAlign: "center" }} |
| 161 |
//textStyle1={textStyle1} |
| Error |
Row 162, Column 23: "Replace `·backgroundColor:·color,·...styleButton·` with `backgroundColor:·color,·...styleButton`"
prettier/prettier
|
| 162 |
style={{ backgroundColor: color, ...styleButton }} |
| 163 |
onClick={onClick} |
| 164 |
/> |
| 165 |
{/* <Buttons.ButtonPrimaryCard onClick={()=>{}} title = {buttonLabel} title1 = {buttonLabel1} textStyle = {{fontSize : mvs(12)}}/> */} |
| 166 |
</View> |
| 167 |
</View> |
| 168 |
</View> |
| 169 |
</View> |
| 170 |
// </Shadow> |
| 171 |
); |
| 172 |
}; |
| 173 |
|
| 174 |
export default HistoryOrderCard; |
| 175 |
|
| 176 |
const styles = StyleSheet.create({ |
| 177 |
CONTAINER: { |
| 178 |
// ...colors.shadow, |
| 179 |
//marginBottom: mvs(20), |
| 180 |
paddingHorizontal: mvs(10), |
| 181 |
paddingVertical: mvs(15), |
| 182 |
backgroundColor: '#fff', |
| 183 |
borderRadius: mvs(20), |
| 184 |
// height:420, |
| 185 |
width: '100%', |
| 186 |
//borderWidth : 1 |
| 187 |
// borderWidth : 0.2 |
| 188 |
}, |
| 189 |
PRICE_CONTAINER: { |
| 190 |
marginTop: mvs(10), |
| 191 |
flexDirection: 'row', |
| 192 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 193 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 194 |
borderColor: colors.horizontalLine, |
| 195 |
height: mvs(25), |
| 196 |
justifyContent: 'space-between', |
| 197 |
alignItems: 'center', |
| 198 |
}, |
| 199 |
REWARD_CONTAINER: { |
| 200 |
marginTop: mvs(8), |
| 201 |
flexDirection: 'row', |
| 202 |
height: mvs(27), |
| 203 |
justifyContent: 'space-between', |
| 204 |
alignItems: 'flex-end', |
| 205 |
//borderWidth : 1 |
| 206 |
}, |
| 207 |
PROCESSING_LABEL: { |
| 208 |
marginBottom: mvs(10), |
| 209 |
color: colors.primary, |
| 210 |
fontSize: 12, |
| 211 |
}, |
| 212 |
DESTINATION_WRAPPER: { |
| 213 |
flex: 1, |
| 214 |
justifyContent: 'space-between', |
| 215 |
alignItems: 'flex-end', |
| 216 |
flexDirection: 'row', |
| 217 |
marginTop: mvs(15), |
| 218 |
//height : mvs(57) |
| 219 |
//borderWidth : 1 |
| 220 |
}, |
| 221 |
DESTINATION_CONTAINER: { |
| 222 |
flex: 1, |
| 223 |
justifyContent: 'space-between', |
| 224 |
alignItems: 'flex-start', |
| 225 |
width: '100%', |
| 226 |
//borderWidth:1 |
| 227 |
//paddingHorizontal: mvs(20), |
| 228 |
}, |
| 229 |
CARD_WRAPPER: { |
| 230 |
flexDirection: 'row', |
| 231 |
justifyContent: 'space-between', |
| 232 |
//height: mvs(141), |
| 233 |
//borderWidth : 1 |
| 234 |
}, |
| 235 |
CARD_CONTENT_LABLE: { |
| 236 |
fontSize: mvs(12), |
| 237 |
color: colors.typeHeader, |
| 238 |
}, |
| 239 |
AVATAR_CONTAINER: { |
| 240 |
flex: 1, |
| 241 |
justifyContent: 'space-between', |
| 242 |
alignItems: 'center', |
| 243 |
}, |
| 244 |
AVATAR: { |
| 245 |
height: mvs(37), |
| 246 |
width: mvs(37), |
| 247 |
borderRadius: mvs(10), |
| 248 |
backgroundColor: colors.secondary, |
| 249 |
}, |
| 250 |
AVATAR_WRAPPER: { |
| 251 |
height: '100%', |
| 252 |
width: mvs(54), |
| 253 |
borderRadius: mvs(10), |
| 254 |
}, |
| 255 |
button: { |
| 256 |
flex: 1, |
| 257 |
marginLeft: mvs(8.5), |
| 258 |
}, |
| 259 |
URGENT_LABEL: { |
| 260 |
fontSize: mvs(12), |
| 261 |
color: colors.pink, |
| 262 |
paddingHorizontal: mvs(12), |
| 263 |
paddingVertical: mvs(3), |
| 264 |
backgroundColor: colors.white, |
| 265 |
borderTopLeftRadius: mvs(6), |
| 266 |
borderTopRightRadius: mvs(6), |
| 267 |
overflow: 'hidden', |
| Error |
Row 268, Column 20: "Insert `,`"
prettier/prettier
|
| Warning |
Row 268, Column 20: "Missing trailing comma."
comma-dangle
|
| 268 |
bottom: mvs(-7) |
| 269 |
}, |
| 270 |
}); |
| 271 |
|
|
|
|
/src/components/molecules/order_card/input-box.js
|
57 problems (40 errors, 17 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 1, Column 26: "Missing semicolon."
semi
|
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·Text,·View,·TextInput·}·from·'react-native'` with `StyleSheet,·Text,·View,·TextInput}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 2, Column 22: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 65: "Missing semicolon."
semi
|
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 4, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 4, Column 44: "Missing semicolon."
semi
|
| Error |
Row 5, Column 42: "Insert `;`"
prettier/prettier
|
| Warning |
Row 5, Column 42: "Missing semicolon."
semi
|
| Error |
Row 6, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 6, Column 68: "Missing semicolon."
semi
|
| Error |
Row 8, Column 20: "Replace `title,·style,·inputStyle,·placeholder·=·"Enter·your·note·here",...props` with `⏎··title,⏎··style,⏎··inputStyle,⏎··placeholder·=·'Enter·your·note·here',⏎··...props⏎`"
prettier/prettier
|
| Warning |
Row 8, Column 60: "Strings must use singlequote."
quotes
|
| Error |
Row 9, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 10, Column 1: "Replace `········prettier/prettier
|
| Error |
Row 11, Column 1: "Replace `·············` with `······`"
prettier/prettier
|
| Warning |
Row 11, Column 62: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 12, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 13, Column 1: "Replace `············style·=·` with `········style=`"
prettier/prettier
|
| Error |
Row 14, Column 9: "Replace `····multiline·=·` with `multiline=`"
prettier/prettier
|
| Error |
Row 15, Column 1: "Replace `············placeholder·=·` with `········placeholder=`"
prettier/prettier
|
| Error |
Row 16, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 17, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 18, Column 1: "Replace `····)` with `··);`"
prettier/prettier
|
| Warning |
Row 18, Column 6: "Missing semicolon."
semi
|
| Error |
Row 19, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 19, Column 2: "Missing semicolon."
semi
|
| Error |
Row 21, Column 24: "Insert `;`"
prettier/prettier
|
| Warning |
Row 21, Column 24: "Missing semicolon."
semi
|
| Error |
Row 24, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 25, Column 5: "Replace `····width·` with `width`"
prettier/prettier
|
| Error |
Row 26, Column 1: "Replace `········borderRadius·` with `····borderRadius`"
prettier/prettier
|
| Error |
Row 27, Column 1: "Replace `········backgroundColor·` with `····backgroundColor`"
prettier/prettier
|
| Error |
Row 28, Column 1: "Replace `········paddingHorizontal·` with `····paddingHorizontal`"
prettier/prettier
|
| Error |
Row 29, Column 1: "Replace `········paddingVertical·:·mvs(13)·` with `····paddingVertical:·mvs(13),`"
prettier/prettier
|
| Warning |
Row 29, Column 34: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 29, Column 34: "Missing trailing comma."
comma-dangle
|
| Error |
Row 30, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 31, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 32, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| Error |
Row 33, Column 1: "Replace `········fontFamily·` with `····fontFamily`"
prettier/prettier
|
| Error |
Row 34, Column 1: "Replace `········color·` with `····color`"
prettier/prettier
|
| Error |
Row 35, Column 5: "Replace `····padding·` with `padding`"
prettier/prettier
|
| Error |
Row 36, Column 5: "Replace `····minHeight·` with `minHeight`"
prettier/prettier
|
| Error |
Row 37, Column 5: "Replace `····textAlignVertical·` with `textAlignVertical`"
prettier/prettier
|
| Error |
Row 38, Column 1: "Replace `········marginTop·:·mvs(6)` with `····marginTop:·mvs(6),`"
prettier/prettier
|
| Warning |
Row 38, Column 27: "Missing trailing comma."
comma-dangle
|
| Error |
Row 39, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 40, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 41, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| Error |
Row 42, Column 1: "Replace `········color·:·colors.headerTitle··` with `····color:·colors.headerTitle,`"
prettier/prettier
|
| Warning |
Row 42, Column 35: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 42, Column 35: "Missing trailing comma."
comma-dangle
|
| Error |
Row 43, Column 3: "Delete `····`"
prettier/prettier
|
| Error |
Row 44, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 44, Column 3: "Missing semicolon."
semi
|
| Line |
Source |
| Error |
Row 1, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 1, Column 26: "Missing semicolon."
semi
|
| 1 |
import React from 'react' |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·Text,·View,·TextInput·}·from·'react-native'` with `StyleSheet,·Text,·View,·TextInput}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 2, Column 22: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 65: "Missing semicolon."
semi
|
| 2 |
import { StyleSheet, Text, View, TextInput } from 'react-native' |
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 3 |
import { mvs } from '../../../config/metrices'; |
| Error |
Row 4, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 4, Column 44: "Missing semicolon."
semi
|
| 4 |
import colors from '../../../config/colors' |
| Error |
Row 5, Column 42: "Insert `;`"
prettier/prettier
|
| Warning |
Row 5, Column 42: "Missing semicolon."
semi
|
| 5 |
import fonts from '../../../config/fonts' |
| Error |
Row 6, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 6, Column 68: "Missing semicolon."
semi
|
| 6 |
import Regular from '../../../presentation/typography/regular-text' |
| 7 |
|
| Error |
Row 8, Column 20: "Replace `title,·style,·inputStyle,·placeholder·=·"Enter·your·note·here",...props` with `⏎··title,⏎··style,⏎··inputStyle,⏎··placeholder·=·'Enter·your·note·here',⏎··...props⏎`"
prettier/prettier
|
| Warning |
Row 8, Column 60: "Strings must use singlequote."
quotes
|
| 8 |
const InputBox = ({title, style, inputStyle, placeholder = "Enter your note here",...props}) => { |
| Error |
Row 9, Column 3: "Delete `··`"
prettier/prettier
|
| 9 |
return ( |
| Error |
Row 10, Column 1: "Replace `········prettier/prettier
|
| 10 |
<View style = {{...styles.inputbox,...style }}> |
| Error |
Row 11, Column 1: "Replace `·············` with `······`"
prettier/prettier
|
| Warning |
Row 11, Column 62: "Trailing spaces not allowed."
no-trailing-spaces
|
| 11 |
<Regular label = {title} style = {styles.value}/> |
| Error |
Row 12, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 12 |
<TextInput |
| Error |
Row 13, Column 1: "Replace `············style·=·` with `········style=`"
prettier/prettier
|
| 13 |
style = {{...styles.input, ...inputStyle}} |
| Error |
Row 14, Column 9: "Replace `····multiline·=·` with `multiline=`"
prettier/prettier
|
| 14 |
multiline = {true} |
| Error |
Row 15, Column 1: "Replace `············placeholder·=·` with `········placeholder=`"
prettier/prettier
|
| 15 |
placeholder = {placeholder} |
| Error |
Row 16, Column 1: "Delete `······`"
prettier/prettier
|
| 16 |
/> |
| Error |
Row 17, Column 5: "Delete `····`"
prettier/prettier
|
| 17 |
</View> |
| Error |
Row 18, Column 1: "Replace `····)` with `··);`"
prettier/prettier
|
| Warning |
Row 18, Column 6: "Missing semicolon."
semi
|
| 18 |
) |
| Error |
Row 19, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 19, Column 2: "Missing semicolon."
semi
|
| 19 |
} |
| 20 |
|
| Error |
Row 21, Column 24: "Insert `;`"
prettier/prettier
|
| Warning |
Row 21, Column 24: "Missing semicolon."
semi
|
| 21 |
export default InputBox |
| 22 |
|
| 23 |
const styles = StyleSheet.create({ |
| Error |
Row 24, Column 1: "Delete `··`"
prettier/prettier
|
| 24 |
inputbox: { |
| Error |
Row 25, Column 5: "Replace `····width·` with `width`"
prettier/prettier
|
| 25 |
width : '100%', |
| Error |
Row 26, Column 1: "Replace `········borderRadius·` with `····borderRadius`"
prettier/prettier
|
| 26 |
borderRadius : mvs(10), |
| Error |
Row 27, Column 1: "Replace `········backgroundColor·` with `····backgroundColor`"
prettier/prettier
|
| 27 |
backgroundColor : colors.white, |
| Error |
Row 28, Column 1: "Replace `········paddingHorizontal·` with `····paddingHorizontal`"
prettier/prettier
|
| 28 |
paddingHorizontal : mvs(13), |
| Error |
Row 29, Column 1: "Replace `········paddingVertical·:·mvs(13)·` with `····paddingVertical:·mvs(13),`"
prettier/prettier
|
| Warning |
Row 29, Column 34: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 29, Column 34: "Missing trailing comma."
comma-dangle
|
| 29 |
paddingVertical : mvs(13) |
| Error |
Row 30, Column 1: "Delete `··`"
prettier/prettier
|
| 30 |
}, |
| Error |
Row 31, Column 3: "Delete `··`"
prettier/prettier
|
| 31 |
input: { |
| Error |
Row 32, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| 32 |
fontSize : mvs(15), |
| Error |
Row 33, Column 1: "Replace `········fontFamily·` with `····fontFamily`"
prettier/prettier
|
| 33 |
fontFamily : fonts.carosSoftRegular, |
| Error |
Row 34, Column 1: "Replace `········color·` with `····color`"
prettier/prettier
|
| 34 |
color : colors.headerTitle, |
| Error |
Row 35, Column 5: "Replace `····padding·` with `padding`"
prettier/prettier
|
| 35 |
padding : 0, |
| Error |
Row 36, Column 5: "Replace `····minHeight·` with `minHeight`"
prettier/prettier
|
| 36 |
minHeight : mvs(60), |
| Error |
Row 37, Column 5: "Replace `····textAlignVertical·` with `textAlignVertical`"
prettier/prettier
|
| 37 |
textAlignVertical : 'top', |
| Error |
Row 38, Column 1: "Replace `········marginTop·:·mvs(6)` with `····marginTop:·mvs(6),`"
prettier/prettier
|
| Warning |
Row 38, Column 27: "Missing trailing comma."
comma-dangle
|
| 38 |
marginTop : mvs(6) |
| Error |
Row 39, Column 3: "Delete `··`"
prettier/prettier
|
| 39 |
}, |
| Error |
Row 40, Column 1: "Delete `··`"
prettier/prettier
|
| 40 |
value: { |
| Error |
Row 41, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| 41 |
fontSize : mvs(15), |
| Error |
Row 42, Column 1: "Replace `········color·:·colors.headerTitle··` with `····color:·colors.headerTitle,`"
prettier/prettier
|
| Warning |
Row 42, Column 35: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 42, Column 35: "Missing trailing comma."
comma-dangle
|
| 42 |
color : colors.headerTitle |
| Error |
Row 43, Column 3: "Delete `····`"
prettier/prettier
|
| 43 |
}, |
| Error |
Row 44, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 44, Column 3: "Missing semicolon."
semi
|
| 44 |
}) |
| 45 |
|
|
|
|
/src/components/molecules/order_card/make-offer-card.js
|
26 problems (10 errors, 16 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `⏎··StyleSheet,⏎··TouchableOpacity,⏎··View⏎` with `StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| Warning |
Row 5, Column 7: "Missing trailing comma."
comma-dangle
|
| Error |
Row 7, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 9, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 52, Column 6: "Replace `activeOpacity·=·` with `·activeOpacity=`"
prettier/prettier
|
| Warning |
Row 60, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Warning |
Row 62, Column 18: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Warning |
Row 67, Column 24: "Inline style: { width: '45%' }"
react-native/no-inline-styles
|
| Warning |
Row 80, Column 22: "Inline style: { justifyContent: 'space-between', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 101, Column 20: "Inline style: {
flex: 1,
overflow: 'hidden',
width: '45%',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| Warning |
Row 135, Column 24: "Inline style: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center'
}"
react-native/no-inline-styles
|
| Warning |
Row 155, Column 24: "Inline style: {
width: '100%',
flexDirection: 'row',
position: 'absolute',
bottom: 0,
justifyContent: 'space-between',
alignItems: 'center'
}"
react-native/no-inline-styles
|
| Error |
Row 186, Column 29: "Insert `,`"
prettier/prettier
|
| Warning |
Row 186, Column 29: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 190, Column 22: "Inline style: { justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 202, Column 9: "Empty components are self-closing"
react/self-closing-comp
|
| Warning |
Row 203, Column 18: "Inline style: {
flex: 1,
justifyContent: 'space-between',
alignItems: 'center',
flexDirection: 'row'
}"
react-native/no-inline-styles
|
| Error |
Row 214, Column 22: "Replace `=state=>` with `·=·state·=>·`"
prettier/prettier
|
| Warning |
Row 214, Column 22: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 215, Column 3: "Expected space(s) after "return"."
keyword-spacing
|
| Error |
Row 215, Column 9: "Insert `·`"
prettier/prettier
|
| Error |
Row 217, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 217, Column 4: "Missing semicolon."
semi
|
| Error |
Row 218, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 218, Column 2: "Missing semicolon."
semi
|
| Error |
Row 219, Column 40: "Insert `·`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `⏎··StyleSheet,⏎··TouchableOpacity,⏎··View⏎` with `StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| 2 |
import { |
| 3 |
StyleSheet, |
| 4 |
TouchableOpacity, |
| Warning |
Row 5, Column 7: "Missing trailing comma."
comma-dangle
|
| 5 |
View |
| 6 |
} from 'react-native'; |
| Error |
Row 7, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 7 |
import { connect } from 'react-redux'; |
| 8 |
import colors from '../../../config/colors'; |
| Error |
Row 9, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 9 |
import { mvs } from '../../../config/metrices'; |
| 10 |
import Medium from '../../../presentation/typography/medium-text'; |
| 11 |
import Regular from '../../../presentation/typography/regular-text'; |
| 12 |
import Buttons from '../../atoms/Button'; |
| 13 |
import OrderDestination from '../../atoms/OrderDestination'; |
| 14 |
import OrderDestinationAddress from '../../atoms/OrderDestinationAddress'; |
| 15 |
import Aeroplane from './../../../../resource/assets/order-car-icons/aeroplane.svg'; |
| 16 |
import Car from './../../../../resource/assets/order-car-icons/car.svg'; |
| 17 |
import Location from './../../../../resource/assets/order-car-icons/location.svg'; |
| 18 |
import ImagePlaceholder from './../../atoms/Placeholder'; |
| 19 |
|
| 20 |
const MakeOfferOrderCard = ({ |
| 21 |
order_img, |
| 22 |
time, |
| 23 |
title, |
| 24 |
// order_site, |
| 25 |
price, |
| 26 |
reward, |
| 27 |
shopName, |
| 28 |
user_name, |
| 29 |
user_name_tr, |
| 30 |
user_img, |
| 31 |
user_img_tr, |
| 32 |
user_id, |
| 33 |
user_id_tr, |
| 34 |
store_img, |
| 35 |
local = false, |
| 36 |
onPress, |
| 37 |
urgent_delivery = false, |
| 38 |
style, |
| 39 |
dottedLine = ' - - - - - - - - - - - - - - ', |
| 40 |
detinationWidth = null, |
| 41 |
order_from, |
| 42 |
order_to, |
| 43 |
order_from_flag, |
| 44 |
order_to_flag, |
| 45 |
order_id = null, |
| 46 |
order_data, |
| 47 |
countriesList, |
| 48 |
...props |
| 49 |
}) => { |
| 50 |
return ( |
| 51 |
<TouchableOpacity |
| Error |
Row 52, Column 6: "Replace `activeOpacity·=·` with `·activeOpacity=`"
prettier/prettier
|
| 52 |
activeOpacity = {1} |
| 53 |
// onPress={() => |
| 54 |
// props.navigation.navigate('orderdetails', { |
| 55 |
// isLocalOrder: local, |
| 56 |
// orderType: 'normal', |
| 57 |
// }) |
| 58 |
// } |
| 59 |
style={{...styles.CARD_CONTAINER, ...style}}> |
| Warning |
Row 60, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 60 |
<View style={{flex: 1}}> |
| 61 |
<View |
| Warning |
Row 62, Column 18: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| 62 |
style={{ |
| 63 |
flexDirection: 'row', |
| 64 |
justifyContent: 'space-between', |
| 65 |
// height: mvs(141) |
| 66 |
}}> |
| Warning |
Row 67, Column 24: "Inline style: { width: '45%' }"
react-native/no-inline-styles
|
| 67 |
<View style={{width: '45%'}}> |
| 68 |
<ImagePlaceholder |
| 69 |
style={{bottom: mvs(-1)}} |
| 70 |
bg_img={store_img} |
| 71 |
containerStyle={styles.ORDER_IMAGE_CONTAIER}> |
| 72 |
{urgent_delivery && ( |
| 73 |
<Regular |
| 74 |
label={'Urgent delivery'} |
| 75 |
style={styles.URGENT_LABEL} |
| 76 |
/> |
| 77 |
)} |
| 78 |
</ImagePlaceholder> |
| 79 |
<View |
| Warning |
Row 80, Column 22: "Inline style: { justifyContent: 'space-between', alignItems: 'center' }"
react-native/no-inline-styles
|
| 80 |
style={{ |
| 81 |
justifyContent: 'space-between', |
| 82 |
alignItems: 'center', |
| 83 |
marginTop: mvs(10), |
| 84 |
height: mvs(55), |
| 85 |
}}> |
| 86 |
<OrderDestination |
| 87 |
width={detinationWidth} |
| 88 |
value={0} |
| 89 |
label={dottedLine} |
| 90 |
SVGFirst={local ? Car : Aeroplane} |
| 91 |
SVGSecond={Location} |
| 92 |
/> |
| 93 |
<OrderDestinationAddress |
| 94 |
imageFrom={{uri: order_from_flag}} |
| 95 |
imageTo={{uri: order_to_flag}} |
| 96 |
label={`${order_from} - ${order_to}`} |
| 97 |
/> |
| 98 |
</View> |
| 99 |
</View> |
| 100 |
<View |
| Warning |
Row 101, Column 20: "Inline style: {
flex: 1,
overflow: 'hidden',
width: '45%',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| 101 |
style={{ |
| 102 |
flex: 1, |
| 103 |
overflow: 'hidden', |
| 104 |
width: '45%', |
| 105 |
paddingLeft: mvs(9), |
| 106 |
justifyContent: 'space-between', |
| 107 |
}}> |
| 108 |
<View style={{height: mvs(141)}}> |
| 109 |
<Regular |
| 110 |
label={time} |
| 111 |
style={{ |
| 112 |
...styles.CARD_CONTENT_LABLE, |
| 113 |
//marginLeft: mvs(12), |
| 114 |
color: colors.label, |
| 115 |
}} |
| 116 |
/> |
| 117 |
<View style={{marginTop: mvs(9)}}> |
| 118 |
<Regular |
| 119 |
label={title} |
| 120 |
numberOfLines={2} |
| 121 |
style={styles.CARD_CONTENT_LABLE} |
| 122 |
/> |
| 123 |
</View> |
| 124 |
<View style={{marginTop: mvs(5)}}> |
| 125 |
<Regular |
| 126 |
numberOfLines={1} |
| 127 |
label={order_data?.order_site || shopName} |
| 128 |
style={{ |
| 129 |
...styles.CARD_CONTENT_LABLE, |
| 130 |
color: colors.primary, |
| 131 |
}} |
| 132 |
/> |
| 133 |
</View> |
| 134 |
<View |
| Warning |
Row 135, Column 24: "Inline style: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center'
}"
react-native/no-inline-styles
|
| 135 |
style={{ |
| 136 |
marginTop: mvs(11), |
| 137 |
flexDirection: 'row', |
| 138 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 139 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 140 |
borderColor: colors.horizontalLine, |
| 141 |
height: mvs(25), |
| 142 |
justifyContent: 'space-between', |
| 143 |
alignItems: 'center', |
| 144 |
}}> |
| 145 |
<Regular |
| 146 |
label={'Price'} |
| 147 |
style={{...styles.CARD_CONTENT_LABLE}} |
| 148 |
/> |
| 149 |
<Medium |
| 150 |
label={`${price}`} |
| 151 |
style={{...styles.CARD_CONTENT_LABLE}} |
| 152 |
/> |
| 153 |
</View> |
| 154 |
<View |
| Warning |
Row 155, Column 24: "Inline style: {
width: '100%',
flexDirection: 'row',
position: 'absolute',
bottom: 0,
justifyContent: 'space-between',
alignItems: 'center'
}"
react-native/no-inline-styles
|
| 155 |
style={{ |
| 156 |
width: '100%', |
| 157 |
flexDirection: 'row', |
| 158 |
position: 'absolute', |
| 159 |
bottom: 0, |
| 160 |
justifyContent: 'space-between', |
| 161 |
alignItems: 'center', |
| 162 |
}}> |
| 163 |
<Regular |
| 164 |
label={'Reward'} |
| 165 |
style={{ |
| 166 |
...styles.CARD_CONTENT_LABLE, |
| 167 |
color: colors.primary, |
| 168 |
}} |
| 169 |
/> |
| 170 |
<Medium |
| 171 |
label={`${reward}`} |
| 172 |
style={{ |
| 173 |
...styles.CARD_CONTENT_LABLE, |
| 174 |
fontSize: mvs(18), |
| 175 |
color: colors.primary, |
| 176 |
}} |
| 177 |
/> |
| 178 |
</View> |
| 179 |
</View> |
| 180 |
<Buttons.ButtonPrimary |
| 181 |
onClick={() => { |
| 182 |
props.navigation.navigate('orderdetails', { |
| 183 |
isLocalOrder: local, |
| 184 |
orderType: 'normal', |
| 185 |
order_id, |
| Error |
Row 186, Column 29: "Insert `,`"
prettier/prettier
|
| Warning |
Row 186, Column 29: "Missing trailing comma."
comma-dangle
|
| 186 |
order_data |
| 187 |
}); |
| 188 |
}} |
| 189 |
title={'Make Offer'} |
| Warning |
Row 190, Column 22: "Inline style: { justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 190 |
style={{ |
| 191 |
// width: null, |
| 192 |
|
| 193 |
paddingHorizontal: mvs(15), |
| 194 |
borderRadius: mvs(10), |
| 195 |
backgroundColor: colors.primary, |
| 196 |
justifyContent: 'center', |
| 197 |
alignItems: 'center', |
| 198 |
}} |
| 199 |
/> |
| 200 |
</View> |
| 201 |
</View> |
| Warning |
Row 202, Column 9: "Empty components are self-closing"
react/self-closing-comp
|
| 202 |
<View |
| Warning |
Row 203, Column 18: "Inline style: {
flex: 1,
justifyContent: 'space-between',
alignItems: 'center',
flexDirection: 'row'
}"
react-native/no-inline-styles
|
| 203 |
style={{ |
| 204 |
flex: 1, |
| 205 |
marginTop: mvs(10), |
| 206 |
justifyContent: 'space-between', |
| 207 |
alignItems: 'center', |
| 208 |
flexDirection: 'row', |
| 209 |
}}></View> |
| 210 |
</View> |
| 211 |
</TouchableOpacity> |
| 212 |
); |
| 213 |
}; |
| Error |
Row 214, Column 22: "Replace `=state=>` with `·=·state·=>·`"
prettier/prettier
|
| Warning |
Row 214, Column 22: "Operator '=' must be spaced."
space-infix-ops
|
| 214 |
const mapStateToProps=state=>{ |
| Warning |
Row 215, Column 3: "Expected space(s) after "return"."
keyword-spacing
|
| Error |
Row 215, Column 9: "Insert `·`"
prettier/prettier
|
| 215 |
return{ |
| 216 |
countriesList: state.common.countriesList, |
| Error |
Row 217, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 217, Column 4: "Missing semicolon."
semi
|
| 217 |
} |
| Error |
Row 218, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 218, Column 2: "Missing semicolon."
semi
|
| 218 |
} |
| Error |
Row 219, Column 40: "Insert `·`"
prettier/prettier
|
| 219 |
export default connect(mapStateToProps,{})(MakeOfferOrderCard); |
| 220 |
|
| 221 |
const styles = StyleSheet.create({ |
| 222 |
CARD_CONTAINER: { |
| 223 |
height: mvs(240), |
| 224 |
// marginBottom: mvs(15), |
| 225 |
paddingHorizontal: mvs(10), |
| 226 |
paddingVertical: mvs(15), |
| 227 |
backgroundColor: colors.secondary, |
| 228 |
borderRadius: mvs(20), |
| 229 |
}, |
| 230 |
AVATAR_CONTAINER: { |
| 231 |
flex: 1, |
| 232 |
justifyContent: 'space-around', |
| 233 |
alignItems: 'center', |
| 234 |
}, |
| 235 |
AVATAR: { |
| 236 |
height: mvs(37), |
| 237 |
overflow: 'hidden', |
| 238 |
width: mvs(37), |
| 239 |
borderRadius: mvs(10), |
| 240 |
backgroundColor: colors.secondary, |
| 241 |
}, |
| 242 |
AVATAR_WRAPPER: { |
| 243 |
height: '100%', |
| 244 |
width: mvs(54), |
| 245 |
borderRadius: mvs(10), |
| 246 |
}, |
| 247 |
CARD_CONTENT_LABLE: { |
| 248 |
fontSize: mvs(12), |
| 249 |
color: colors.headerTitle, |
| 250 |
}, |
| 251 |
URGENT_LABEL: { |
| 252 |
fontSize: mvs(12), |
| 253 |
color: colors.pink, |
| 254 |
paddingHorizontal: mvs(12), |
| 255 |
paddingVertical: mvs(3), |
| 256 |
backgroundColor: colors.white, |
| 257 |
borderTopLeftRadius: mvs(6), |
| 258 |
borderTopRightRadius: mvs(6), |
| 259 |
}, |
| 260 |
ORDER_IMAGE_CONTAIER: { |
| 261 |
height: mvs(141), |
| 262 |
|
| 263 |
width: '100%', |
| 264 |
borderRadius: mvs(20), |
| 265 |
overflow: 'hidden', |
| 266 |
alignItems: 'center', |
| 267 |
justifyContent: 'flex-end', |
| 268 |
}, |
| 269 |
}); |
| 270 |
|
|
|
|
/src/components/molecules/order_card/map-search/map-search-make-offer-card.js
|
111 problems (97 errors, 14 warnings)
|
| Severity |
Rule |
| Warning |
Row 2, Column 8: "'moment' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·View,·Text,·StyleSheet,·ImageBackground·` with `View,·Text,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 4, Column 16: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 4, Column 34: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Error |
Row 5, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 5, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Error |
Row 7, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| Error |
Row 11, Column 46: "Insert `·`"
prettier/prettier
|
| Error |
Row 12, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 13, Column 1: "Replace `····let·days·=·UI_API._returnUrgencyTitle(⏎········item?.order_deliver_before,⏎······` with `··let·days·=·UI_API._returnUrgencyTitle(item?.order_deliver_before`"
prettier/prettier
|
| Error |
Row 16, Column 3: "Replace `····if(days?.includes('Deliver'))` with `if·(days?.includes('Deliver'))·`"
prettier/prettier
|
| Warning |
Row 16, Column 7: "Expected space(s) after "if"."
keyword-spacing
|
| Error |
Row 17, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 18, Column 1: "Delete `····`"
prettier/prettier
|
| Warning |
Row 19, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 19, Column 1: "Delete `···`"
prettier/prettier
|
| Error |
Row 20, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 21, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 22, Column 7: "Replace `······` with `prettier/prettier
|
| Error |
Row 23, Column 7: "Insert `/>⏎`"
prettier/prettier
|
| Error |
Row 24, Column 9: "Replace `········` with `prettier/prettier
|
| Error |
Row 25, Column 9: "Replace `········` with `/>⏎········prettier/prettier
|
| Error |
Row 26, Column 9: "Insert `/>⏎`"
prettier/prettier
|
| Error |
Row 27, Column 1: "Replace `····················prettier/prettier
|
| Warning |
Row 27, Column 54: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 28, Column 1: "Replace `····················prettier/prettier
|
| Warning |
Row 28, Column 54: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 29, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 30, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 31, Column 11: "Replace `··········` with `prettier/prettier
|
| Error |
Row 32, Column 11: "Replace `··········` with `/>⏎··········prettier/prettier
|
| Error |
Row 33, Column 10: "Replace `·······` with `·/>⏎········`"
prettier/prettier
|
| Error |
Row 34, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 35, Column 1: "Replace `····················prettier/prettier
|
| Error |
Row 36, Column 1: "Replace `····················prettier/prettier
|
| Error |
Row 37, Column 15: "Delete `·······`"
prettier/prettier
|
| Error |
Row 38, Column 17: "Delete `········`"
prettier/prettier
|
| Error |
Row 39, Column 1: "Replace `························` with `················`"
prettier/prettier
|
| Error |
Row 40, Column 1: "Replace `························order_id:` with `················order_id:·`"
prettier/prettier
|
| Error |
Row 41, Column 1: "Replace `························order_data:item` with `················order_data:·item,`"
prettier/prettier
|
| Warning |
Row 41, Column 40: "Missing trailing comma."
comma-dangle
|
| Error |
Row 42, Column 15: "Replace `········})⏎····················}·textStyle={{·fontSize:·10,·}}·title={'Make·offer'}·style={styles.MAKE_OFFER}·/>` with `})⏎············}⏎············textStyle={{fontSize:·10}}⏎············title={'Make·offer'}⏎············style={styles.MAKE_OFFER}`"
prettier/prettier
|
| Warning |
Row 43, Column 34: "Inline style: { fontSize: 10 }"
react-native/no-inline-styles
|
| Warning |
Row 43, Column 48: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 44, Column 11: "Insert `/>⏎··`"
prettier/prettier
|
| Error |
Row 45, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 46, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 47, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 50, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 51, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 52, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 53, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 54, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 55, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 56, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 57, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 58, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 59, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 60, Column 1: "Delete `⏎··`"
prettier/prettier
|
| Error |
Row 62, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 63, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 64, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 65, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 66, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 67, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 68, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 69, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 70, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 71, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 72, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 73, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 74, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 75, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 76, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 77, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 78, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 79, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 80, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 81, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 82, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 83, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 84, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 85, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 86, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 87, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 88, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 89, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 90, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 91, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 92, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 93, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 94, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 95, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 96, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 97, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 98, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 99, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 100, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 101, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 102, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 103, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 104, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 105, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 106, Column 1: "Replace `········backgroundColor:·colors.primary` with `····backgroundColor:·colors.primary,`"
prettier/prettier
|
| Warning |
Row 106, Column 40: "Missing trailing comma."
comma-dangle
|
| Error |
Row 107, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 108, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 109, Column 3: "Replace `··}` with `},`"
prettier/prettier
|
| Warning |
Row 109, Column 6: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 110, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 110, Column 4: "Insert `⏎`"
prettier/prettier
|
| Line |
Source |
| 1 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| Warning |
Row 2, Column 8: "'moment' is defined but never used."
no-unused-vars
|
| 2 |
import moment from 'moment'; |
| 3 |
import React from 'react'; |
| Error |
Row 4, Column 9: "Replace `·View,·Text,·StyleSheet,·ImageBackground·` with `View,·Text,·StyleSheet,·ImageBackground`"
prettier/prettier
|
| Warning |
Row 4, Column 16: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 4, Column 34: "'ImageBackground' is defined but never used."
no-unused-vars
|
| 4 |
import { View, Text, StyleSheet, ImageBackground } from 'react-native'; |
| Error |
Row 5, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 5, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 5 |
import { TAKE_TO_IMAGES } from '../../../../../resource/assets/image_resouce'; |
| 6 |
import colors from '../../../../config/colors'; |
| Error |
Row 7, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| 7 |
import { mvs, width } from '../../../../config/metrices'; |
| 8 |
import Regular from '../../../../presentation/typography/regular-text'; |
| 9 |
import Buttons from '../../../atoms/Button'; |
| 10 |
import ImagePlaceholder from '../../../atoms/Placeholder'; |
| Error |
Row 11, Column 46: "Insert `·`"
prettier/prettier
|
| 11 |
export const MapSearchMakeOfferCard = ({item,...props}) => { |
| Error |
Row 12, Column 1: "Delete `··`"
prettier/prettier
|
| 12 |
let dateColor = colors.pink; |
| Error |
Row 13, Column 1: "Replace `····let·days·=·UI_API._returnUrgencyTitle(⏎········item?.order_deliver_before,⏎······` with `··let·days·=·UI_API._returnUrgencyTitle(item?.order_deliver_before`"
prettier/prettier
|
| 13 |
let days = UI_API._returnUrgencyTitle( |
| 14 |
item?.order_deliver_before, |
| 15 |
); |
| Error |
Row 16, Column 3: "Replace `····if(days?.includes('Deliver'))` with `if·(days?.includes('Deliver'))·`"
prettier/prettier
|
| Warning |
Row 16, Column 7: "Expected space(s) after "if"."
keyword-spacing
|
| 16 |
if(days?.includes('Deliver')){ |
| Error |
Row 17, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 17 |
dateColor = colors.primary; |
| Error |
Row 18, Column 1: "Delete `····`"
prettier/prettier
|
| 18 |
} |
| Warning |
Row 19, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 19, Column 1: "Delete `···`"
prettier/prettier
|
| 19 |
|
| Error |
Row 20, Column 1: "Delete `··`"
prettier/prettier
|
| 20 |
return ( |
| Error |
Row 21, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 21 |
<View style={styles.CONTAINER}> |
| Error |
Row 22, Column 7: "Replace `······` with `prettier/prettier
|
| 22 |
<ImagePlaceholder containerStyle={styles.IMAGE_CONTAINER} bg_img={item?.order_image} /> |
| Error |
Row 23, Column 7: "Insert `/>⏎`"
prettier/prettier
|
| 23 |
<View style={styles.DESCRIPTION_CONTAINER}> |
| Error |
Row 24, Column 9: "Replace `········` with `prettier/prettier
|
| 24 |
<Regular numberOfLines={2} style={styles.TITLE} label={item?.order_title} /> |
| Error |
Row 25, Column 9: "Replace `········` with `/>⏎········prettier/prettier
|
| 25 |
<Regular style={{ ...styles.TITLE, color: colors.primary }} label={item?.order_site || item?.order_shop_name} /> |
| Error |
Row 26, Column 9: "Insert `/>⏎`"
prettier/prettier
|
| 26 |
<View style={styles.PRICE_CONTAINER}> |
| Error |
Row 27, Column 1: "Replace `····················prettier/prettier
|
| Warning |
Row 27, Column 54: "Unexpected trailing comma."
comma-dangle
|
| 27 |
<Regular style={{ ...styles.TITLE, }} label={'Price'} /> |
| Error |
Row 28, Column 1: "Replace `····················prettier/prettier
|
| Warning |
Row 28, Column 54: "Unexpected trailing comma."
comma-dangle
|
| 28 |
<Regular style={{ ...styles.TITLE, }} label={`${item?.order_price}`} /> |
| Error |
Row 29, Column 9: "Delete `········`"
prettier/prettier
|
| 29 |
</View> |
| Error |
Row 30, Column 1: "Delete `········`"
prettier/prettier
|
| 30 |
<View style={styles.PENDING_REWARD_CONTAINER}> |
| Error |
Row 31, Column 11: "Replace `··········` with `prettier/prettier
|
| 31 |
<Regular style={{ ...styles.TITLE, color: colors.primary }} label={'Pending Reward'} /> |
| Error |
Row 32, Column 11: "Replace `··········` with `/>⏎··········prettier/prettier
|
| 32 |
<Regular style={{ ...styles.TITLE, color: colors.primary }} label={`${item?.order_reward_price}`} /> |
| Error |
Row 33, Column 10: "Replace `·······` with `·/>⏎········`"
prettier/prettier
|
| 33 |
</View> |
| Error |
Row 34, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 34 |
<View style={styles.BUTTON_CONTAINER}> |
| Error |
Row 35, Column 1: "Replace `····················prettier/prettier
|
| 35 |
<Regular style={{ ...styles.TODAY, color: dateColor }} label={days} /> |
| Error |
Row 36, Column 1: "Replace `····················prettier/prettier
|
| 36 |
<Buttons.ButtonPrimary onClick={()=> |
| Error |
Row 37, Column 15: "Delete `·······`"
prettier/prettier
|
| 37 |
props.navigation.navigate('orderdetails', { |
| Error |
Row 38, Column 17: "Delete `········`"
prettier/prettier
|
| 38 |
isLocalOrder: !item?.is_international, |
| Error |
Row 39, Column 1: "Replace `························` with `················`"
prettier/prettier
|
| 39 |
orderType: 'normal', |
| Error |
Row 40, Column 1: "Replace `························order_id:` with `················order_id:·`"
prettier/prettier
|
| 40 |
order_id:item?.order_id, |
| Error |
Row 41, Column 1: "Replace `························order_data:item` with `················order_data:·item,`"
prettier/prettier
|
| Warning |
Row 41, Column 40: "Missing trailing comma."
comma-dangle
|
| 41 |
order_data:item |
| Error |
Row 42, Column 15: "Replace `········})⏎····················}·textStyle={{·fontSize:·10,·}}·title={'Make·offer'}·style={styles.MAKE_OFFER}·/>` with `})⏎············}⏎············textStyle={{fontSize:·10}}⏎············title={'Make·offer'}⏎············style={styles.MAKE_OFFER}`"
prettier/prettier
|
| 42 |
}) |
| Warning |
Row 43, Column 34: "Inline style: { fontSize: 10 }"
react-native/no-inline-styles
|
| Warning |
Row 43, Column 48: "Unexpected trailing comma."
comma-dangle
|
| 43 |
} textStyle={{ fontSize: 10, }} title={'Make offer'} style={styles.MAKE_OFFER} /> |
| Error |
Row 44, Column 11: "Insert `/>⏎··`"
prettier/prettier
|
| 44 |
</View> |
| Error |
Row 45, Column 1: "Delete `······`"
prettier/prettier
|
| 45 |
</View> |
| Error |
Row 46, Column 5: "Delete `····`"
prettier/prettier
|
| 46 |
</View> |
| Error |
Row 47, Column 1: "Delete `··`"
prettier/prettier
|
| 47 |
); |
| 48 |
}; |
| 49 |
const styles = StyleSheet.create({ |
| Error |
Row 50, Column 3: "Delete `··`"
prettier/prettier
|
| 50 |
CONTAINER: { |
| Error |
Row 51, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 51 |
// flex: 1, |
| Error |
Row 52, Column 1: "Delete `····`"
prettier/prettier
|
| 52 |
width: width - mvs(40), |
| Error |
Row 53, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 53 |
marginHorizontal: mvs(20), |
| Error |
Row 54, Column 1: "Delete `····`"
prettier/prettier
|
| 54 |
flexDirection: 'row', |
| Error |
Row 55, Column 5: "Delete `····`"
prettier/prettier
|
| 55 |
// marginRight: mvs(10), |
| Error |
Row 56, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 56 |
// marginLeft: mvs(10), |
| Error |
Row 57, Column 1: "Delete `····`"
prettier/prettier
|
| 57 |
backgroundColor: colors.map_search_make_offer_card_bg, |
| Error |
Row 58, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 58 |
padding: mvs(10), |
| Error |
Row 59, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 59 |
borderRadius: mvs(13), |
| Error |
Row 60, Column 1: "Delete `⏎··`"
prettier/prettier
|
| 60 |
|
| 61 |
}, |
| Error |
Row 62, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 62 |
IMAGE_CONTAINER: { |
| Error |
Row 63, Column 1: "Delete `····`"
prettier/prettier
|
| 63 |
borderRadius: mvs(10), |
| Error |
Row 64, Column 1: "Delete `····`"
prettier/prettier
|
| 64 |
height: mvs(127), |
| Error |
Row 65, Column 5: "Delete `····`"
prettier/prettier
|
| 65 |
width: mvs(112), |
| Error |
Row 66, Column 1: "Delete `····`"
prettier/prettier
|
| 66 |
backgroundColor: colors.black, |
| Error |
Row 67, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 67 |
overflow: 'hidden', |
| Error |
Row 68, Column 3: "Delete `··`"
prettier/prettier
|
| 68 |
}, |
| Error |
Row 69, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 69 |
TITLE: { |
| Error |
Row 70, Column 1: "Delete `····`"
prettier/prettier
|
| 70 |
fontSize: mvs(10), |
| Error |
Row 71, Column 5: "Delete `····`"
prettier/prettier
|
| 71 |
color: colors.black, |
| Error |
Row 72, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 72 |
}, |
| Error |
Row 73, Column 1: "Delete `··`"
prettier/prettier
|
| 73 |
DESCRIPTION_CONTAINER: { |
| Error |
Row 74, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 74 |
marginLeft: mvs(18), |
| Error |
Row 75, Column 5: "Delete `····`"
prettier/prettier
|
| 75 |
flex: 1, |
| Error |
Row 76, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 76 |
// width:mvs(146), |
| Error |
Row 77, Column 3: "Delete `··`"
prettier/prettier
|
| 77 |
}, |
| Error |
Row 78, Column 1: "Delete `··`"
prettier/prettier
|
| 78 |
PRICE_CONTAINER: { |
| Error |
Row 79, Column 5: "Delete `····`"
prettier/prettier
|
| 79 |
borderColor: colors.price_border, |
| Error |
Row 80, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 80 |
borderTopWidth: 1, |
| Error |
Row 81, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 81 |
borderBottomWidth: 1, |
| Error |
Row 82, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 82 |
flexDirection: 'row', |
| Error |
Row 83, Column 5: "Delete `····`"
prettier/prettier
|
| 83 |
// height:21, |
| Error |
Row 84, Column 1: "Delete `····`"
prettier/prettier
|
| 84 |
justifyContent: 'space-between', |
| Error |
Row 85, Column 5: "Delete `····`"
prettier/prettier
|
| 85 |
paddingVertical: mvs(4), |
| Error |
Row 86, Column 5: "Delete `····`"
prettier/prettier
|
| 86 |
marginTop: mvs(4), |
| Error |
Row 87, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 87 |
}, |
| Error |
Row 88, Column 1: "Delete `··`"
prettier/prettier
|
| 88 |
PENDING_REWARD_CONTAINER: { |
| Error |
Row 89, Column 5: "Delete `····`"
prettier/prettier
|
| 89 |
marginTop: mvs(4), |
| Error |
Row 90, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 90 |
flexDirection: 'row', |
| Error |
Row 91, Column 1: "Delete `····`"
prettier/prettier
|
| 91 |
justifyContent: 'space-between', |
| Error |
Row 92, Column 3: "Delete `··`"
prettier/prettier
|
| 92 |
}, |
| Error |
Row 93, Column 1: "Delete `··`"
prettier/prettier
|
| 93 |
BUTTON_CONTAINER: { |
| Error |
Row 94, Column 5: "Delete `····`"
prettier/prettier
|
| 94 |
marginTop: mvs(11), |
| Error |
Row 95, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 95 |
alignItems: 'center', |
| Error |
Row 96, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 96 |
flexDirection: 'row', |
| Error |
Row 97, Column 1: "Delete `····`"
prettier/prettier
|
| 97 |
justifyContent: 'space-between', |
| Error |
Row 98, Column 3: "Delete `··`"
prettier/prettier
|
| 98 |
}, |
| Error |
Row 99, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 99 |
TODAY: { |
| Error |
Row 100, Column 1: "Delete `····`"
prettier/prettier
|
| 100 |
fontSize: mvs(10), |
| Error |
Row 101, Column 5: "Delete `····`"
prettier/prettier
|
| 101 |
color: colors.pink, |
| Error |
Row 102, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 102 |
}, |
| Error |
Row 103, Column 1: "Delete `··`"
prettier/prettier
|
| 103 |
MAKE_OFFER: { |
| Error |
Row 104, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 104 |
width: mvs(73), |
| Error |
Row 105, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 105 |
height: mvs(31), |
| Error |
Row 106, Column 1: "Replace `········backgroundColor:·colors.primary` with `····backgroundColor:·colors.primary,`"
prettier/prettier
|
| Warning |
Row 106, Column 40: "Missing trailing comma."
comma-dangle
|
| 106 |
backgroundColor: colors.primary |
| Error |
Row 107, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 107 |
// paddingHorizontal:mvs(12.5), |
| Error |
Row 108, Column 1: "Delete `····`"
prettier/prettier
|
| 108 |
// paddingVertical:mvs(8.5), |
| Error |
Row 109, Column 3: "Replace `··}` with `},`"
prettier/prettier
|
| Warning |
Row 109, Column 6: "Missing trailing comma."
comma-dangle
|
| 109 |
} |
| Warning |
Row 110, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 110, Column 4: "Insert `⏎`"
prettier/prettier
|
| 110 |
}); |
|
|
|
/src/components/molecules/order_card/offer-card.js
|
22 problems (11 errors, 11 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·TouchableOpacity,·View·` with `StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 20, Column 24: "["check"] is better written in dot notation."
dot-notation
|
| Warning |
Row 21, Column 30: "["cross_yellow"] is better written in dot notation."
dot-notation
|
| Warning |
Row 22, Column 28: "["cross_pink"] is better written in dot notation."
dot-notation
|
| Error |
Row 23, Column 20: "Insert `;`"
prettier/prettier
|
| Warning |
Row 23, Column 20: "Missing semicolon."
semi
|
| Error |
Row 27, Column 15: "Replace `·...styles.mainContainer,·...style·` with `...styles.mainContainer,·...style`"
prettier/prettier
|
| Warning |
Row 29, Column 15: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 31, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 33, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 48, Column 21: "Replace `·label={deliveryOn}·style={{·...styles.title1,·color:·colors.typeHeader·}}` with `⏎··············label={deliveryOn}⏎··············style={{...styles.title1,·color:·colors.typeHeader}}⏎···········`"
prettier/prettier
|
| Warning |
Row 53, Column 18: "Inline style: { height: null, justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Error |
Row 60, Column 20: "Replace `"Status"` with `'Status'`"
prettier/prettier
|
| Warning |
Row 60, Column 20: "Strings must use singlequote."
quotes
|
| Error |
Row 69, Column 20: "Replace `type·===·'rejected'·?·"Rejected"·:·type·===·'Disputed'·?·'Disputed'·:·type·===·'accepted'·?·'Accepted'·:·'Open'` with `⏎··············type·===·'rejected'⏎················?·'Rejected'⏎················:·type·===·'Disputed'⏎················?·'Disputed'⏎················:·type·===·'accepted'⏎················?·'Accepted'⏎················:·'Open'⏎············`"
prettier/prettier
|
| Warning |
Row 69, Column 42: "Strings must use singlequote."
quotes
|
| Error |
Row 71, Column 32: "Insert `⏎·············`"
prettier/prettier
|
| Error |
Row 72, Column 36: "Replace `·?·colors.pink·:·type·===·'Disputed'·?·colors.disputes·:·type·===·'accepted'·?·colors.green·:·colors.primary` with `⏎··················?·colors.pink⏎··················:·type·===·'Disputed'⏎··················?·colors.disputes⏎··················:·type·===·'accepted'⏎··················?·colors.green⏎··················:·colors.primary,`"
prettier/prettier
|
| Warning |
Row 72, Column 144: "Missing trailing comma."
comma-dangle
|
| Error |
Row 98, Column 43: "Insert `·`"
prettier/prettier
|
| Error |
Row 103, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·TouchableOpacity,·View·` with `StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| 2 |
import { StyleSheet, TouchableOpacity, View } from 'react-native'; |
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 3 |
import { mvs } from '../../../config/metrices'; |
| 4 |
import * as Images from '../../../../resource/assets/bank-info-icons'; |
| 5 |
import colors from '../../../config/colors'; |
| 6 |
import Regular from '../../../presentation/typography/regular-text'; |
| 7 |
import ImagePlaceholder from '../../atoms/Placeholder'; |
| 8 |
|
| 9 |
const OfferCard = ({ |
| 10 |
image, |
| 11 |
name, |
| 12 |
price, |
| 13 |
deliveryOn, |
| 14 |
deliveryBefore, |
| 15 |
type, |
| 16 |
style, |
| 17 |
onClick, |
| 18 |
...props |
| 19 |
}) => { |
| Warning |
Row 20, Column 24: "["check"] is better written in dot notation."
dot-notation
|
| 20 |
const Check = Images['check']; |
| Warning |
Row 21, Column 30: "["cross_yellow"] is better written in dot notation."
dot-notation
|
| 21 |
const CrossYellow = Images['cross_yellow']; |
| Warning |
Row 22, Column 28: "["cross_pink"] is better written in dot notation."
dot-notation
|
| 22 |
const CrossPink = Images['cross_pink']; |
| Error |
Row 23, Column 20: "Insert `;`"
prettier/prettier
|
| Warning |
Row 23, Column 20: "Missing semicolon."
semi
|
| 23 |
console.log(type) |
| 24 |
return ( |
| 25 |
<TouchableOpacity |
| 26 |
onPress={onClick} |
| Error |
Row 27, Column 15: "Replace `·...styles.mainContainer,·...style·` with `...styles.mainContainer,·...style`"
prettier/prettier
|
| 27 |
style={{ ...styles.mainContainer, ...style }}> |
| 28 |
<View style={styles.statusContainer}> |
| Warning |
Row 29, Column 15: "Expected '===' and instead saw '=='."
eqeqeq
|
| 29 |
{type == 'rejected' ? ( |
| 30 |
<CrossPink /> |
| Warning |
Row 31, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| 31 |
) : type == 'Disputed' ? ( |
| 32 |
<CrossYellow /> |
| Warning |
Row 33, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| 33 |
) : type == 'accepted' ? ( |
| 34 |
<Check /> |
| 35 |
) : ( |
| 36 |
<></> |
| 37 |
)} |
| 38 |
</View> |
| 39 |
<View style={styles.offerMainContainer}> |
| 40 |
<View style={styles.userInfoContainer}> |
| 41 |
<ImagePlaceholder bg_img={image} containerStyle={styles.image} /> |
| 42 |
<View style={styles.midContainer}> |
| 43 |
<Regular label={name} style={styles.name} /> |
| 44 |
<Regular label="Delivery on" style={styles.title1} /> |
| 45 |
</View> |
| 46 |
<View style={styles.endContainer}> |
| 47 |
<Regular label={price} style={styles.price} /> |
| Error |
Row 48, Column 21: "Replace `·label={deliveryOn}·style={{·...styles.title1,·color:·colors.typeHeader·}}` with `⏎··············label={deliveryOn}⏎··············style={{...styles.title1,·color:·colors.typeHeader}}⏎···········`"
prettier/prettier
|
| 48 |
<Regular label={deliveryOn} style={{ ...styles.title1, color: colors.typeHeader }} /> |
| 49 |
</View> |
| 50 |
</View> |
| 51 |
|
| 52 |
<View |
| Warning |
Row 53, Column 18: "Inline style: { height: null, justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| 53 |
style={{ |
| 54 |
...styles.userInfoContainer, |
| 55 |
height: null, |
| 56 |
marginTop: mvs(4), |
| 57 |
justifyContent: 'space-between', |
| 58 |
}}> |
| 59 |
<Regular |
| Error |
Row 60, Column 20: "Replace `"Status"` with `'Status'`"
prettier/prettier
|
| Warning |
Row 60, Column 20: "Strings must use singlequote."
quotes
|
| 60 |
label={"Status"} |
| 61 |
style={{ |
| 62 |
...styles.title1, |
| 63 |
color: colors.lightgrey2, |
| 64 |
marginLeft: mvs(37 + 10), |
| 65 |
}} |
| 66 |
/> |
| 67 |
{/* {type != 'rejected' && type != 'Disputed' && ( */} |
| 68 |
<Regular |
| Error |
Row 69, Column 20: "Replace `type·===·'rejected'·?·"Rejected"·:·type·===·'Disputed'·?·'Disputed'·:·type·===·'accepted'·?·'Accepted'·:·'Open'` with `⏎··············type·===·'rejected'⏎················?·'Rejected'⏎················:·type·===·'Disputed'⏎················?·'Disputed'⏎················:·type·===·'accepted'⏎················?·'Accepted'⏎················:·'Open'⏎············`"
prettier/prettier
|
| Warning |
Row 69, Column 42: "Strings must use singlequote."
quotes
|
| 69 |
label={type === 'rejected' ? "Rejected" : type === 'Disputed' ? 'Disputed' : type === 'accepted' ? 'Accepted' : 'Open'} |
| 70 |
style={{ |
| Error |
Row 71, Column 32: "Insert `⏎·············`"
prettier/prettier
|
| 71 |
...styles.title1, color: |
| Error |
Row 72, Column 36: "Replace `·?·colors.pink·:·type·===·'Disputed'·?·colors.disputes·:·type·===·'accepted'·?·colors.green·:·colors.primary` with `⏎··················?·colors.pink⏎··················:·type·===·'Disputed'⏎··················?·colors.disputes⏎··················:·type·===·'accepted'⏎··················?·colors.green⏎··················:·colors.primary,`"
prettier/prettier
|
| Warning |
Row 72, Column 144: "Missing trailing comma."
comma-dangle
|
| 72 |
type === 'rejected' ? colors.pink : type === 'Disputed' ? colors.disputes : type === 'accepted' ? colors.green : colors.primary |
| 73 |
}} |
| 74 |
/> |
| 75 |
{/* )} */} |
| 76 |
</View> |
| 77 |
</View> |
| 78 |
</TouchableOpacity> |
| 79 |
); |
| 80 |
}; |
| 81 |
|
| 82 |
export default OfferCard; |
| 83 |
|
| 84 |
const styles = StyleSheet.create({ |
| 85 |
mainContainer: { |
| 86 |
height: mvs(71), |
| 87 |
//borderWidth : 1, |
| 88 |
flexDirection: 'row', |
| 89 |
}, |
| 90 |
statusContainer: { |
| 91 |
height: '100%', |
| 92 |
width: mvs(24), |
| 93 |
justifyContent: 'center', |
| 94 |
//borderWidth : 1 |
| 95 |
}, |
| 96 |
offerMainContainer: { |
| 97 |
flex: 1, |
| Error |
Row 98, Column 43: "Insert `·`"
prettier/prettier
|
| 98 |
borderWidth: StyleSheet.hairlineWidth,//0.5 |
| 99 |
backgroundColor: colors.white, |
| 100 |
borderRadius: mvs(10), |
| 101 |
padding: mvs(10), |
| 102 |
borderColor: colors.price_border, |
| Error |
Row 103, Column 5: "Duplicate key 'backgroundColor'."
no-dupe-keys
|
| 103 |
backgroundColor: colors.white, |
| 104 |
}, |
| 105 |
userInfoContainer: { |
| 106 |
height: mvs(37), |
| 107 |
width: '100%', |
| 108 |
//borderWidth : 1, |
| 109 |
borderColor: 'green', |
| 110 |
flexDirection: 'row', |
| 111 |
}, |
| 112 |
image: { |
| 113 |
height: mvs(37), |
| 114 |
width: mvs(37), |
| 115 |
borderRadius: mvs(8), |
| 116 |
}, |
| 117 |
midContainer: { |
| 118 |
height: '100%', |
| 119 |
marginLeft: mvs(10), |
| 120 |
//borderWidth : 1, |
| 121 |
borderColor: 'red', |
| 122 |
justifyContent: 'space-around', |
| 123 |
}, |
| 124 |
name: { |
| 125 |
fontSize: mvs(12), |
| 126 |
color: colors.typeHeader, |
| 127 |
}, |
| 128 |
title1: { |
| 129 |
fontSize: mvs(9), |
| 130 |
color: colors.lightgrey2, |
| 131 |
}, |
| 132 |
endContainer: { |
| 133 |
height: '100%', |
| 134 |
marginLeft: mvs(2), |
| 135 |
//borderWidth : 1, |
| 136 |
borderColor: 'red', |
| 137 |
justifyContent: 'space-around', |
| 138 |
alignSelf: 'flex-end', |
| 139 |
alignItems: 'flex-end', |
| 140 |
position: 'absolute', |
| 141 |
right: 0, |
| 142 |
}, |
| 143 |
price: { |
| 144 |
fontSize: mvs(13), |
| 145 |
color: colors.primary, |
| 146 |
}, |
| 147 |
}); |
| 148 |
|
|
|
|
/src/components/molecules/order_card/order-detail-card/offer-detail-card.js
|
14 problems (3 errors, 11 warnings)
|
| Severity |
Rule |
| Warning |
Row 4, Column 3: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 3: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Warning |
Row 8, Column 3: "'TextInput' is defined but never used."
no-unused-vars
|
| Warning |
Row 9, Column 3: "'Image' is defined but never used."
no-unused-vars
|
| Warning |
Row 14, Column 8: "'Buttons' is defined but never used."
no-unused-vars
|
| Warning |
Row 17, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| Warning |
Row 18, Column 9: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 23, Column 8: "'LocationActive' is defined but never used."
no-unused-vars
|
| Warning |
Row 91, Column 30: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 97, Column 29: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 111, Column 26: "Replace `·onPress={()=>props?.navigation?.navigate('userprofile',{user_id:props?.user_id,is_review:false})}` with `⏎··········onPress={()·=>⏎············props?.navigation?.navigate('userprofile',·{⏎··············user_id:·props?.user_id,⏎··············is_review:·false,⏎············})⏎··········}⏎·········`"
prettier/prettier
|
| Error |
Row 118, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 120, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 142, Column 13: "Insert `·`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| 2 |
import { |
| 3 |
View, |
| Warning |
Row 4, Column 3: "'Text' is defined but never used."
no-unused-vars
|
| 4 |
Text, |
| 5 |
StyleSheet, |
| Warning |
Row 6, Column 3: "'ImageBackground' is defined but never used."
no-unused-vars
|
| 6 |
ImageBackground, |
| 7 |
TouchableOpacity, |
| Warning |
Row 8, Column 3: "'TextInput' is defined but never used."
no-unused-vars
|
| 8 |
TextInput, |
| Warning |
Row 9, Column 3: "'Image' is defined but never used."
no-unused-vars
|
| 9 |
Image, |
| 10 |
} from 'react-native'; |
| 11 |
import colors from '../../../../config/colors'; |
| 12 |
import {mvs} from '../../../../config/metrices'; |
| 13 |
import Regular from '../../../../presentation/typography/regular-text'; |
| Warning |
Row 14, Column 8: "'Buttons' is defined but never used."
no-unused-vars
|
| 14 |
import Buttons from '../../../atoms/Button'; |
| 15 |
import OrderDestination from '../../../atoms/OrderDestination'; |
| 16 |
import OrderDestinationAddress from '../../../atoms/OrderDestinationAddress'; |
| Warning |
Row 17, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| 17 |
import fonts from '../../../../config/fonts'; |
| Warning |
Row 18, Column 9: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 18 |
import {TAKE_TO_IMAGES} from '../../../../../resource/assets/image_resouce'; |
| 19 |
import Car from '../../../../../resource/assets/order-car-icons/car.svg'; |
| 20 |
import Location from '../../../../../resource/assets/order-car-icons/location.svg'; |
| 21 |
import Aeroplane from '../../../../../resource/assets/order-car-icons/aeroplane.svg'; |
| 22 |
import CarActive from '../../../../../resource/assets/order-car-icons/car-active.svg'; |
| Warning |
Row 23, Column 8: "'LocationActive' is defined but never used."
no-unused-vars
|
| 23 |
import LocationActive from '../../../../../resource/assets/order-car-icons/location-active.svg'; |
| 24 |
import AeroplaneActive from '../../../../../resource/assets/order-car-icons/aeroplane-active.svg'; |
| 25 |
import ImagePlaceholder from '../../../atoms/Placeholder'; |
| 26 |
|
| 27 |
export const OfferDetailCard = ({ |
| 28 |
isLocalOrder, |
| 29 |
title = 'iPhone 13 Pro 128GB Sierra blue', |
| 30 |
price = 155, |
| 31 |
reward = 25, |
| 32 |
local, |
| 33 |
user_img, |
| 34 |
user_name = 'Salmiya - Shuwaikh', |
| 35 |
order_from, |
| 36 |
order_to, |
| 37 |
order_from_flag, |
| 38 |
order_to_flag, |
| 39 |
orderType, |
| 40 |
store_img, |
| 41 |
style, |
| 42 |
...props |
| 43 |
}) => { |
| 44 |
return ( |
| 45 |
<> |
| 46 |
<View style={[styles.CONTAINER, style]}> |
| 47 |
<ImagePlaceholder |
| 48 |
bg_img={store_img} |
| 49 |
containerStyle={styles.IMAGE_CONTAINER} |
| 50 |
/> |
| 51 |
<View style={styles.DESCRIPTION_CONTAINER}> |
| 52 |
<Regular style={styles.TITLE} label={`${title}`} numberOfLines={2} /> |
| 53 |
<View style={styles.PRICE_CONTAINER}> |
| 54 |
<Regular |
| 55 |
style={{ |
| 56 |
...styles.TITLE, |
| 57 |
fontSize: mvs(15), |
| 58 |
color: colors.typeHeader, |
| 59 |
}} |
| 60 |
label={'Product Price'} |
| 61 |
/> |
| 62 |
<Regular |
| 63 |
style={{ |
| 64 |
...styles.TITLE, |
| 65 |
fontSize: mvs(15), |
| 66 |
color: colors.typeHeader, |
| 67 |
}} |
| 68 |
label={`${price}`} |
| 69 |
/> |
| 70 |
</View> |
| 71 |
<View style={styles.PENDING_REWARD_CONTAINER}> |
| 72 |
<Regular |
| 73 |
style={{ |
| 74 |
...styles.TITLE, |
| 75 |
fontSize: mvs(15), |
| 76 |
color: colors.primary, |
| 77 |
}} |
| 78 |
label={'Reward'} |
| 79 |
/> |
| 80 |
<Regular |
| 81 |
style={{...styles.TITLE, color: colors.primary}} |
| 82 |
label={`${reward}`} |
| 83 |
/> |
| 84 |
</View> |
| 85 |
</View> |
| 86 |
</View> |
| 87 |
<View style={styles.LOCATION_DESTINATION}> |
| 88 |
<View style={styles.SUB_LOCATION_DESTINATION}> |
| 89 |
<OrderDestination |
| 90 |
value={orderType} |
| Warning |
Row 91, Column 30: "Expected '===' and instead saw '=='."
eqeqeq
|
| 91 |
width={orderType == 2 ? mvs(100) : mvs(50)} |
| 92 |
SVGFirst={ |
| 93 |
isLocalOrder |
| 94 |
? orderType === 0 |
| 95 |
? Car |
| 96 |
: CarActive |
| Warning |
Row 97, Column 29: "Expected '===' and instead saw '=='."
eqeqeq
|
| 97 |
: orderType == 0 |
| 98 |
? Aeroplane |
| 99 |
: AeroplaneActive |
| 100 |
} |
| 101 |
SVGSecond={Location} |
| 102 |
/> |
| 103 |
<View style={{marginTop: mvs(8)}} /> |
| 104 |
<OrderDestinationAddress |
| 105 |
imageFrom={{uri: order_from_flag}} |
| 106 |
imageTo={{uri: order_to_flag}} |
| 107 |
label={`${order_from} - ${order_to}`} |
| 108 |
fontSize={12} |
| 109 |
/> |
| 110 |
</View> |
| Error |
Row 111, Column 26: "Replace `·onPress={()=>props?.navigation?.navigate('userprofile',{user_id:props?.user_id,is_review:false})}` with `⏎··········onPress={()·=>⏎············props?.navigation?.navigate('userprofile',·{⏎··············user_id:·props?.user_id,⏎··············is_review:·false,⏎············})⏎··········}⏎·········`"
prettier/prettier
|
| 111 |
<TouchableOpacity onPress={()=>props?.navigation?.navigate('userprofile',{user_id:props?.user_id,is_review:false})} style={styles.USER_IMAGE_CONTAINER}> |
| 112 |
<View style={styles.SUB_USER_IMAGE_CONTAINER}> |
| 113 |
<ImagePlaceholder |
| 114 |
bg_img={user_img} |
| 115 |
containerStyle={styles.USER_IMAGE} |
| 116 |
/> |
| 117 |
<Regular |
| Error |
Row 118, Column 1: "Insert `··`"
prettier/prettier
|
| 118 |
numberOfLines={1} |
| 119 |
label={user_name} |
| Warning |
Row 120, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 120 |
style={{ |
| 121 |
...styles.CARD_CONTENT_LABLE, |
| 122 |
textAlign: 'center', |
| 123 |
fontSize: mvs(10), |
| 124 |
}} |
| 125 |
/> |
| 126 |
</View> |
| 127 |
</TouchableOpacity> |
| 128 |
</View> |
| 129 |
</> |
| 130 |
); |
| 131 |
}; |
| 132 |
const styles = StyleSheet.create({ |
| 133 |
CONTAINER: { |
| 134 |
flex: 1, |
| 135 |
flexDirection: 'row', |
| 136 |
marginTop: mvs(30), |
| 137 |
}, |
| 138 |
IMAGE_CONTAINER: { |
| 139 |
borderRadius: mvs(10), |
| 140 |
height: mvs(125), |
| 141 |
width: mvs(104), |
| Error |
Row 142, Column 13: "Insert `·`"
prettier/prettier
|
| 142 |
padding:mvs(14), |
| 143 |
backgroundColor: colors.white, |
| 144 |
overflow: 'hidden', |
| 145 |
borderWidth: StyleSheet.hairlineWidth, |
| 146 |
borderColor: colors.price_border, |
| 147 |
}, |
| 148 |
IMAGE: { |
| 149 |
height: '100%', |
| 150 |
width: '100%', |
| 151 |
borderRadius: 20, |
| 152 |
}, |
| 153 |
TITLE: { |
| 154 |
fontSize: mvs(18), |
| 155 |
color: colors.typeHeader, |
| 156 |
}, |
| 157 |
DESCRIPTION_CONTAINER: { |
| 158 |
paddingTop: mvs(10), |
| 159 |
marginLeft: mvs(30), |
| 160 |
flex: 1, |
| 161 |
// backgroundColor:'red' |
| 162 |
width: mvs(146), |
| 163 |
}, |
| 164 |
CARD_CONTENT_LABLE: { |
| 165 |
fontSize: mvs(12), |
| 166 |
color: colors.headerTitle, |
| 167 |
}, |
| 168 |
PRICE_CONTAINER: { |
| 169 |
borderColor: colors.price_border, |
| 170 |
borderTopWidth: 1, |
| 171 |
borderBottomWidth: 1, |
| 172 |
flexDirection: 'row', |
| 173 |
justifyContent: 'space-between', |
| 174 |
paddingVertical: mvs(4), |
| 175 |
marginTop: mvs(9), |
| 176 |
}, |
| 177 |
PENDING_REWARD_CONTAINER: { |
| 178 |
marginTop: mvs(13), |
| 179 |
flexDirection: 'row', |
| 180 |
justifyContent: 'space-between', |
| 181 |
}, |
| 182 |
BUTTON_CONTAINER: { |
| 183 |
marginTop: mvs(11), |
| 184 |
alignItems: 'center', |
| 185 |
flexDirection: 'row', |
| 186 |
justifyContent: 'space-between', |
| 187 |
}, |
| 188 |
TODAY: { |
| 189 |
fontSize: mvs(12), |
| 190 |
color: colors.pink, |
| 191 |
}, |
| 192 |
MAKE_OFFER: { |
| 193 |
width: mvs(73), |
| 194 |
height: mvs(31), |
| 195 |
backgroundColor: colors.green, |
| 196 |
}, |
| 197 |
LOCATION_DESTINATION: { |
| 198 |
flexDirection: 'row', |
| 199 |
justifyContent: 'space-between', |
| 200 |
marginTop: mvs(17), |
| 201 |
}, |
| 202 |
SUB_LOCATION_DESTINATION: { |
| 203 |
// flex: 1, |
| 204 |
justifyContent: 'space-between', |
| 205 |
alignItems: 'center', |
| 206 |
width: mvs(196), |
| 207 |
}, |
| 208 |
USER_IMAGE_CONTAINER: { |
| 209 |
width: mvs(54), |
| 210 |
borderRadius: mvs(10), |
| 211 |
}, |
| 212 |
SUB_USER_IMAGE_CONTAINER: { |
| 213 |
height: mvs(55), |
| 214 |
justifyContent: 'space-between', |
| 215 |
alignItems: 'center', |
| 216 |
}, |
| 217 |
USER_IMAGE: { |
| 218 |
height: mvs(37), |
| 219 |
width: mvs(37), |
| 220 |
borderRadius: mvs(10), |
| 221 |
backgroundColor: colors.secondary, |
| 222 |
overflow: 'hidden', |
| 223 |
}, |
| 224 |
}); |
| 225 |
|
|
|
|
/src/components/molecules/order_card/order-details-animated.js
|
24 problems (14 errors, 10 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·useEffect,·useState,·useRef·` with `useEffect,·useState,·useRef`"
prettier/prettier
|
| Warning |
Row 4, Column 3: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 7, Column 3: "'Button' is defined but never used."
no-unused-vars
|
| Error |
Row 16, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 30, Column 27: "["location_active"] is better written in dot notation."
dot-notation
|
| Warning |
Row 31, Column 28: "["right"] is better written in dot notation."
dot-notation
|
| Warning |
Row 35, Column 10: "'mHeight' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 35, Column 19: "'setMHeight' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 36, Column 10: "'spin' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 36, Column 16: "'setSpin' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 83, Column 6: "React Hook useEffect has missing dependencies: 'collapseView' and 'expandView'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 91, Column 6: "React Hook useEffect has missing dependencies: 'Down' and 'Right'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 100, Column 14: "Inline style: { overflow: 'hidden' }"
react-native/no-inline-styles
|
| Error |
Row 107, Column 30: "Replace `·maxHeight:·animationHeight·` with `maxHeight:·animationHeight`"
prettier/prettier
|
| Error |
Row 116, Column 38: "Replace `·transform:·[{·rotate:·rotationValue·}]·` with `transform:·[{rotate:·rotationValue}]`"
prettier/prettier
|
| Error |
Row 125, Column 25: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Error |
Row 126, Column 21: "Replace `·marginTop:·mvs(23)·` with `marginTop:·mvs(23)`"
prettier/prettier
|
| Error |
Row 132, Column 25: "Replace `·...styles.infoContainer,·marginTop:·mvs(17)·` with `...styles.infoContainer,·marginTop:·mvs(17)`"
prettier/prettier
|
| Error |
Row 139, Column 25: "Replace `·...styles.infoContainer,·marginTop:·mvs(12)·` with `...styles.infoContainer,·marginTop:·mvs(12)`"
prettier/prettier
|
| Error |
Row 144, Column 25: "Replace `·...styles.infoContainer,·marginTop:·mvs(12)·` with `...styles.infoContainer,·marginTop:·mvs(12)`"
prettier/prettier
|
| Error |
Row 149, Column 25: "Replace `·...styles.infoContainer,·marginTop:·mvs(14)·` with `...styles.infoContainer,·marginTop:·mvs(14)`"
prettier/prettier
|
| Warning |
Row 185, Column 24: "Inline style: { flexDirection: 'row', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 207, Column 25: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Error |
Row 208, Column 21: "Replace `·marginTop:·mvs(17)·` with `marginTop:·mvs(17)`"
prettier/prettier
|
| Line |
Source |
| 1 |
import * as React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·useEffect,·useState,·useRef·` with `useEffect,·useState,·useRef`"
prettier/prettier
|
| 2 |
import { useEffect, useState, useRef } from 'react'; |
| 3 |
import { |
| Warning |
Row 4, Column 3: "'Text' is defined but never used."
no-unused-vars
|
| 4 |
Text, |
| 5 |
View, |
| 6 |
StyleSheet, |
| Warning |
Row 7, Column 3: "'Button' is defined but never used."
no-unused-vars
|
| 7 |
Button, |
| 8 |
Animated, |
| 9 |
TouchableOpacity, |
| 10 |
Linking, |
| 11 |
} from 'react-native'; |
| 12 |
|
| 13 |
import colors from '../../../config/colors'; |
| 14 |
import Regular from '../../../presentation/typography/regular-text'; |
| 15 |
import * as Images from '../../../../resource/assets/order-car-icons'; |
| Error |
Row 16, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 16 |
import { mvs } from '../../../config/metrices'; |
| 17 |
import InputWithTitle from '../input-with-title'; |
| 18 |
|
| 19 |
function OrderDetailsAnimated({ |
| 20 |
deliveryBefore, |
| 21 |
quantity, |
| 22 |
packaging, |
| 23 |
site, |
| 24 |
instruction, |
| 25 |
product_details, |
| 26 |
order_data, |
| 27 |
location, |
| 28 |
...props |
| 29 |
}) { |
| Warning |
Row 30, Column 27: "["location_active"] is better written in dot notation."
dot-notation
|
| 30 |
const Location = Images['location_active']; |
| Warning |
Row 31, Column 28: "["right"] is better written in dot notation."
dot-notation
|
| 31 |
const RightIcon = Images['right']; |
| 32 |
|
| 33 |
const [collapsed, setCollapsed] = useState(true); |
| 34 |
const [rotate, setRotate] = useState(true); |
| Warning |
Row 35, Column 10: "'mHeight' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 35, Column 19: "'setMHeight' is assigned a value but never used."
no-unused-vars
|
| 35 |
const [mHeight, setMHeight] = useState(58); |
| Warning |
Row 36, Column 10: "'spin' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 36, Column 16: "'setSpin' is assigned a value but never used."
no-unused-vars
|
| 36 |
const [spin, setSpin] = useState('0deg'); |
| 37 |
const animationHeight = useRef(new Animated.Value(0)).current; |
| 38 |
const rotation = useRef(new Animated.Value(0)).current; |
| 39 |
|
| 40 |
const toggleCollapsed = () => { |
| 41 |
setCollapsed(!collapsed); |
| 42 |
setRotate(!rotate); |
| 43 |
}; |
| 44 |
|
| 45 |
const collapseView = () => { |
| 46 |
Animated.timing(animationHeight, { |
| 47 |
duration: 500, |
| 48 |
toValue: mvs(58), |
| 49 |
// useNativeDriver:true |
| 50 |
}).start(); |
| 51 |
}; |
| 52 |
|
| 53 |
const expandView = () => { |
| 54 |
Animated.timing(animationHeight, { |
| 55 |
duration: 500, |
| 56 |
toValue: mvs(400), |
| 57 |
// useNativeDriver:true |
| 58 |
}).start(); |
| 59 |
}; |
| 60 |
|
| 61 |
const Down = () => { |
| 62 |
Animated.timing(rotation, { |
| 63 |
duration: 300, |
| 64 |
toValue: 1, |
| 65 |
// useNativeDriver:true |
| 66 |
}).start(); |
| 67 |
}; |
| 68 |
|
| 69 |
const Right = () => { |
| 70 |
Animated.timing(rotation, { |
| 71 |
duration: 300, |
| 72 |
toValue: 0, |
| 73 |
// useNativeDriver:true |
| 74 |
}).start(); |
| 75 |
}; |
| 76 |
|
| 77 |
useEffect(() => { |
| 78 |
if (collapsed) { |
| 79 |
collapseView(); |
| 80 |
} else { |
| 81 |
expandView(); |
| 82 |
} |
| Error |
Row 83, Column 6: "React Hook useEffect has missing dependencies: 'collapseView' and 'expandView'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| 83 |
}, [collapsed]); |
| 84 |
|
| 85 |
useEffect(() => { |
| 86 |
if (rotate) { |
| 87 |
Right(); |
| 88 |
} else { |
| 89 |
Down(); |
| 90 |
} |
| Error |
Row 91, Column 6: "React Hook useEffect has missing dependencies: 'Down' and 'Right'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| 91 |
}, [rotate]); |
| 92 |
|
| 93 |
const rotationValue = rotation.interpolate({ |
| 94 |
inputRange: [0, 1], |
| 95 |
outputRange: ['0deg', '90deg'], |
| 96 |
}); |
| 97 |
|
| 98 |
return ( |
| 99 |
<View |
| Warning |
Row 100, Column 14: "Inline style: { overflow: 'hidden' }"
react-native/no-inline-styles
|
| 100 |
style={{ |
| 101 |
overflow: 'hidden', |
| 102 |
backgroundColor: colors.white, |
| 103 |
borderRadius: mvs(10), |
| 104 |
borderWidth: StyleSheet.hairlineWidth, |
| 105 |
borderColor: colors.doted, |
| 106 |
}}> |
| Error |
Row 107, Column 30: "Replace `·maxHeight:·animationHeight·` with `maxHeight:·animationHeight`"
prettier/prettier
|
| 107 |
<Animated.View style={{ maxHeight: animationHeight }}> |
| 108 |
<View |
| 109 |
style={{ |
| 110 |
...styles.normal, |
| 111 |
//height : mvs(mHeight) |
| 112 |
}}> |
| 113 |
<View style={styles.titleContainer}> |
| 114 |
<Regular label="More Details" style={styles.title} /> |
| 115 |
<TouchableOpacity activeOpacity={1} onPress={toggleCollapsed}> |
| Error |
Row 116, Column 38: "Replace `·transform:·[{·rotate:·rotationValue·}]·` with `transform:·[{rotate:·rotationValue}]`"
prettier/prettier
|
| 116 |
<Animated.View style={{ transform: [{ rotate: rotationValue }] }}> |
| 117 |
<RightIcon /> |
| 118 |
</Animated.View> |
| 119 |
</TouchableOpacity> |
| 120 |
</View> |
| 121 |
|
| 122 |
<InputWithTitle |
| 123 |
title="Product Details" |
| 124 |
value={product_details} |
| Error |
Row 125, Column 25: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 125 |
textStyle={{ color: colors.primary }} |
| Error |
Row 126, Column 21: "Replace `·marginTop:·mvs(23)·` with `marginTop:·mvs(23)`"
prettier/prettier
|
| 126 |
style={{ marginTop: mvs(23) }} |
| 127 |
editable={false} |
| 128 |
singleInput={false} |
| 129 |
moreOrLess={true} |
| 130 |
/> |
| 131 |
|
| Error |
Row 132, Column 25: "Replace `·...styles.infoContainer,·marginTop:·mvs(17)·` with `...styles.infoContainer,·marginTop:·mvs(17)`"
prettier/prettier
|
| 132 |
<View style={{ ...styles.infoContainer, marginTop: mvs(17) }}> |
| 133 |
<Regular label="Deliver Before" style={styles.label} /> |
| 134 |
<Regular label={deliveryBefore} style={styles.value} /> |
| 135 |
</View> |
| 136 |
|
| 137 |
{/* <View style = {styles.line}></View> */} |
| 138 |
|
| Error |
Row 139, Column 25: "Replace `·...styles.infoContainer,·marginTop:·mvs(12)·` with `...styles.infoContainer,·marginTop:·mvs(12)`"
prettier/prettier
|
| 139 |
<View style={{ ...styles.infoContainer, marginTop: mvs(12) }}> |
| 140 |
<Regular label="Quantity" style={styles.label} /> |
| 141 |
<Regular label={quantity} style={styles.value} /> |
| 142 |
</View> |
| 143 |
|
| Error |
Row 144, Column 25: "Replace `·...styles.infoContainer,·marginTop:·mvs(12)·` with `...styles.infoContainer,·marginTop:·mvs(12)`"
prettier/prettier
|
| 144 |
<View style={{ ...styles.infoContainer, marginTop: mvs(12) }}> |
| 145 |
<Regular label="Packaging" style={styles.label} /> |
| 146 |
<Regular label={packaging} style={styles.value} /> |
| 147 |
</View> |
| 148 |
|
| Error |
Row 149, Column 25: "Replace `·...styles.infoContainer,·marginTop:·mvs(14)·` with `...styles.infoContainer,·marginTop:·mvs(14)`"
prettier/prettier
|
| 149 |
<View style={{ ...styles.infoContainer, marginTop: mvs(14) }}> |
| 150 |
<Regular label="Where to buy" style={styles.label} /> |
| 151 |
|
| 152 |
<Regular |
| 153 |
onPress={() => { |
| 154 |
order_data?.order_site && |
| 155 |
Linking.openURL(order_data?.order_store_url); |
| 156 |
}} |
| 157 |
label={ |
| 158 |
order_data?.order_site || |
| 159 |
(order_data?.order_shop_name?.length > 8 |
| 160 |
? `${order_data?.order_shop_name?.substring(0, 8)} ...` |
| 161 |
: order_data?.order_shop_name) |
| 162 |
} |
| 163 |
style={{ |
| 164 |
...styles.value, |
| 165 |
color: colors.primary, |
| 166 |
fontSize: mvs(12), |
| 167 |
}} |
| 168 |
/> |
| 169 |
|
| 170 |
{Object?.keys(location).length > 0 && ( |
| 171 |
<TouchableOpacity |
| 172 |
onPress={() => { |
| 173 |
console.log('order_data:', order_data?.shop_location); |
| 174 |
const region = { |
| 175 |
latitude: order_data?.shop_location?.latitude, |
| 176 |
longitude: order_data?.shop_location?.longitude, |
| 177 |
latitudeDelta: 0.015, |
| 178 |
longitudeDelta: 0.0121, |
| 179 |
}; |
| 180 |
props.navigation.navigate('storelocation', { |
| 181 |
shopRegion: region, |
| 182 |
order_data: order_data, |
| 183 |
}); |
| 184 |
}} |
| Warning |
Row 185, Column 24: "Inline style: { flexDirection: 'row', alignItems: 'center' }"
react-native/no-inline-styles
|
| 185 |
style={{ |
| 186 |
flexDirection: 'row', |
| 187 |
alignItems: 'center', |
| 188 |
marginRight: mvs(6), |
| 189 |
}}> |
| 190 |
<Location /> |
| 191 |
<Regular |
| 192 |
label="Store location" |
| 193 |
style={{ |
| 194 |
...styles.value, |
| 195 |
marginLeft: mvs(7.3), |
| 196 |
color: colors.primary, |
| 197 |
fontSize: mvs(12), |
| 198 |
}} |
| 199 |
/> |
| 200 |
</TouchableOpacity> |
| 201 |
)} |
| 202 |
</View> |
| 203 |
|
| 204 |
<InputWithTitle |
| 205 |
title="Buying Instructions" |
| 206 |
value={instruction} |
| Error |
Row 207, Column 25: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 207 |
textStyle={{ color: colors.primary }} |
| Error |
Row 208, Column 21: "Replace `·marginTop:·mvs(17)·` with `marginTop:·mvs(17)`"
prettier/prettier
|
| 208 |
style={{ marginTop: mvs(17) }} |
| 209 |
editable={false} |
| 210 |
singleInput={false} |
| 211 |
moreOrLess={true} |
| 212 |
/> |
| 213 |
</View> |
| 214 |
</Animated.View> |
| 215 |
{/* <Button title="Toggle Collapsed" /> */} |
| 216 |
</View> |
| 217 |
); |
| 218 |
} |
| 219 |
|
| 220 |
const styles = StyleSheet.create({ |
| 221 |
paragraph: { |
| 222 |
margin: 24, |
| 223 |
fontSize: 14, |
| 224 |
fontWeight: 'bold', |
| 225 |
}, |
| 226 |
normal: { |
| 227 |
//height : mvs(58), |
| 228 |
width: '100%', |
| 229 |
//borderWidth : 1, |
| 230 |
paddingHorizontal: mvs(22), |
| 231 |
paddingBottom: mvs(20), |
| 232 |
//justifyContent : 'center' |
| 233 |
}, |
| 234 |
titleContainer: { |
| 235 |
flexDirection: 'row', |
| 236 |
width: '100%', |
| 237 |
//borderWidth : 1, |
| 238 |
marginTop: mvs(20.3), |
| 239 |
justifyContent: 'space-between', |
| 240 |
}, |
| 241 |
title: { |
| 242 |
fontSize: mvs(13), |
| 243 |
color: colors.headerTitle, |
| 244 |
}, |
| 245 |
infoContainer: { |
| 246 |
width: '100%', |
| 247 |
alignItems: 'center', |
| 248 |
flexDirection: 'row', |
| 249 |
//borderWidth : 1, |
| 250 |
justifyContent: 'space-between', |
| 251 |
}, |
| 252 |
label: { |
| 253 |
fontSize: mvs(13), |
| 254 |
color: colors.lightgrey2, |
| 255 |
}, |
| 256 |
value: { |
| 257 |
fontSize: mvs(13), |
| 258 |
color: colors.typeHeader, |
| 259 |
}, |
| 260 |
line: { |
| 261 |
width: '100%', |
| 262 |
borderBottomWidth: 0.3, |
| 263 |
borderColor: colors.horizontalLine, |
| 264 |
marginTop: mvs(11), |
| 265 |
}, |
| 266 |
}); |
| 267 |
|
| 268 |
export default OrderDetailsAnimated; |
| 269 |
|
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·Text,·TouchableOpacity,·View·` with `StyleSheet,·Text,·TouchableOpacity,·View`"
prettier/prettier
|
| Warning |
Row 2, Column 22: "'Text' is defined but never used."
no-unused-vars
|
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 10, Column 27: "Replace `·title·=·'',·seeMore·=·true,·filter·=·false,isIcon=false,isLocal·=·true,·containerStyle,·style,·...props·})·=>·{⏎` with `⏎··title·=·'',⏎··seeMore·=·true,⏎··filter·=·false,⏎··isIcon·=·false,⏎··isLocal·=·true,⏎··containerStyle,⏎··style,⏎··...props⏎})·=>·{`"
prettier/prettier
|
| Warning |
Row 10, Column 77: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 14, Column 14: "Inline style: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center'
}"
react-native/no-inline-styles
|
| Warning |
Row 22, Column 20: "Inline style: { flexDirection: 'row', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 22, Column 21: "Replace `·flexDirection:·'row',·alignItems:·'center'·` with `flexDirection:·'row',·alignItems:·'center'`"
prettier/prettier
|
| Error |
Row 23, Column 1: "Replace `·······{isIcon&&` with `········{isIcon·&&·(⏎··········`"
prettier/prettier
|
| Warning |
Row 23, Column 15: "Operator '&&' must be spaced."
space-infix-ops
|
| Error |
Row 24, Column 1: "Replace `········{isLocal·?·prettier/prettier
|
| Error |
Row 25, Column 11: "Replace `:·prettier/prettier
|
| Error |
Row 26, Column 9: "Insert `····)`"
prettier/prettier
|
| Error |
Row 27, Column 9: "Replace `>` with `··>⏎········)`"
prettier/prettier
|
| Error |
Row 30, Column 19: "Replace `·fontSize:·mvs(20),·color:·colors.typeHeader,·...style·` with `fontSize:·mvs(20),·color:·colors.typeHeader,·...style`"
prettier/prettier
|
| Error |
Row 35, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 36, Column 18: "Inline style: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| Error |
Row 39, Column 28: "Insert `·`"
prettier/prettier
|
| Error |
Row 42, Column 19: "Replace `⏎············label={''}⏎············style={{·color:·colors.headerTitle}}⏎·········` with `·label={''}·style={{color:·colors.headerTitle}}`"
prettier/prettier
|
| Error |
Row 46, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 49, Column 1: "Replace `······seeMore·&&` with `········seeMore·&&·(⏎··········`"
prettier/prettier
|
| Warning |
Row 49, Column 15: "Operator '&&' must be spaced."
space-infix-ops
|
| Error |
Row 50, Column 9: "Insert `····`"
prettier/prettier
|
| Error |
Row 51, Column 1: "Insert `·····`"
prettier/prettier
|
| Error |
Row 52, Column 1: "Replace `·········style={{·fontSize:·mvs(13),·color:·colors.primary·` with `··············style={{fontSize:·mvs(13),·color:·colors.primary`"
prettier/prettier
|
| Error |
Row 53, Column 1: "Replace `·······` with `············`"
prettier/prettier
|
| Error |
Row 54, Column 1: "Replace `······` with `··········`"
prettier/prettier
|
| Error |
Row 55, Column 7: "Replace `)}·` with `··)⏎······)}`"
prettier/prettier
|
| Warning |
Row 55, Column 9: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 62, Column 7: "'styles' is assigned a value but never used."
no-unused-vars
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·Text,·TouchableOpacity,·View·` with `StyleSheet,·Text,·TouchableOpacity,·View`"
prettier/prettier
|
| Warning |
Row 2, Column 22: "'Text' is defined but never used."
no-unused-vars
|
| 2 |
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native'; |
| 3 |
import TAKE_TO_CONSTANT from '../../../../../common/utils/utils'; |
| 4 |
import colors from '../../../config/colors'; |
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 5 |
import { mvs } from '../../../config/metrices'; |
| 6 |
import Regular from '../../../presentation/typography/regular-text'; |
| 7 |
import Filter from './.././../../../resource/assets/common-icons/filter-icons.svg'; |
| 8 |
import Aeroplane from './.././../../../resource/assets/order-car-icons/aeroplane.svg'; |
| 9 |
import Car from './.././../../../resource/assets/order-car-icons/car.svg'; |
| Error |
Row 10, Column 27: "Replace `·title·=·'',·seeMore·=·true,·filter·=·false,isIcon=false,isLocal·=·true,·containerStyle,·style,·...props·})·=>·{⏎` with `⏎··title·=·'',⏎··seeMore·=·true,⏎··filter·=·false,⏎··isIcon·=·false,⏎··isLocal·=·true,⏎··containerStyle,⏎··style,⏎··...props⏎})·=>·{`"
prettier/prettier
|
| Warning |
Row 10, Column 77: "Operator '=' must be spaced."
space-infix-ops
|
| 10 |
const OrderTypeHeader = ({ title = '', seeMore = true, filter = false,isIcon=false,isLocal = true, containerStyle, style, ...props }) => { |
| 11 |
|
| 12 |
return ( |
| 13 |
<View |
| Warning |
Row 14, Column 14: "Inline style: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center'
}"
react-native/no-inline-styles
|
| 14 |
style={{ |
| 15 |
flexDirection: 'row', |
| 16 |
justifyContent: 'space-between', |
| 17 |
alignItems: 'center', |
| 18 |
// paddingTop: mvs(30), |
| 19 |
paddingBottom: mvs(20), |
| 20 |
...containerStyle, |
| 21 |
}}> |
| Warning |
Row 22, Column 20: "Inline style: { flexDirection: 'row', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 22, Column 21: "Replace `·flexDirection:·'row',·alignItems:·'center'·` with `flexDirection:·'row',·alignItems:·'center'`"
prettier/prettier
|
| 22 |
<View style={{ flexDirection: 'row', alignItems: 'center' }}> |
| Error |
Row 23, Column 1: "Replace `·······{isIcon&&` with `········{isIcon·&&·(⏎··········`"
prettier/prettier
|
| Warning |
Row 23, Column 15: "Operator '&&' must be spaced."
space-infix-ops
|
| 23 |
{isIcon&&<> |
| Error |
Row 24, Column 1: "Replace `········{isLocal·?·prettier/prettier
|
| 24 |
{isLocal ? <Car style={{ marginRight: mvs(10) }} /> |
| Error |
Row 25, Column 11: "Replace `:·prettier/prettier
|
| 25 |
: <Aeroplane style={{ marginRight: mvs(10) }} /> |
| Error |
Row 26, Column 9: "Insert `····)`"
prettier/prettier
|
| 26 |
} |
| Error |
Row 27, Column 9: "Replace `>` with `··>⏎········)`"
prettier/prettier
|
| 27 |
</>} |
| 28 |
<Regular |
| 29 |
label={TAKE_TO_CONSTANT.convertCapitalizeFirst(title)} |
| Error |
Row 30, Column 19: "Replace `·fontSize:·mvs(20),·color:·colors.typeHeader,·...style·` with `fontSize:·mvs(20),·color:·colors.typeHeader,·...style`"
prettier/prettier
|
| 30 |
style={{ fontSize: mvs(20), color: colors.typeHeader, ...style }} |
| 31 |
/> |
| 32 |
</View> |
| 33 |
{filter ? ( |
| 34 |
<TouchableOpacity |
| Error |
Row 35, Column 1: "Insert `··`"
prettier/prettier
|
| 35 |
{...props} |
| Warning |
Row 36, Column 18: "Inline style: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| 36 |
style={{ |
| 37 |
flexDirection: 'row', |
| 38 |
alignItems: 'center', |
| Error |
Row 39, Column 28: "Insert `·`"
prettier/prettier
|
| 39 |
justifyContent:'space-between', |
| 40 |
width: mvs(80), |
| 41 |
}}> |
| Error |
Row 42, Column 19: "Replace `⏎············label={''}⏎············style={{·color:·colors.headerTitle}}⏎·········` with `·label={''}·style={{color:·colors.headerTitle}}`"
prettier/prettier
|
| 42 |
<Regular |
| 43 |
label={''} |
| 44 |
style={{ color: colors.headerTitle}} |
| 45 |
/> |
| Error |
Row 46, Column 1: "Delete `··`"
prettier/prettier
|
| 46 |
<Filter /> |
| 47 |
</TouchableOpacity> |
| 48 |
) : ( |
| Error |
Row 49, Column 1: "Replace `······seeMore·&&` with `········seeMore·&&·(⏎··········`"
prettier/prettier
|
| Warning |
Row 49, Column 15: "Operator '&&' must be spaced."
space-infix-ops
|
| 49 |
seeMore &&<TouchableOpacity activeOpacity={0.5} {...props}> |
| Error |
Row 50, Column 9: "Insert `····`"
prettier/prettier
|
| 50 |
<Regular |
| Error |
Row 51, Column 1: "Insert `·····`"
prettier/prettier
|
| 51 |
label={'See more'} |
| Error |
Row 52, Column 1: "Replace `·········style={{·fontSize:·mvs(13),·color:·colors.primary·` with `··············style={{fontSize:·mvs(13),·color:·colors.primary`"
prettier/prettier
|
| 52 |
style={{ fontSize: mvs(13), color: colors.primary }} |
| Error |
Row 53, Column 1: "Replace `·······` with `············`"
prettier/prettier
|
| 53 |
/> |
| Error |
Row 54, Column 1: "Replace `······` with `··········`"
prettier/prettier
|
| 54 |
</TouchableOpacity> |
| Error |
Row 55, Column 7: "Replace `)}·` with `··)⏎······)}`"
prettier/prettier
|
| Warning |
Row 55, Column 9: "Trailing spaces not allowed."
no-trailing-spaces
|
| 55 |
)} |
| 56 |
</View> |
| 57 |
); |
| 58 |
}; |
| 59 |
|
| 60 |
export default OrderTypeHeader; |
| 61 |
|
| Warning |
Row 62, Column 7: "'styles' is assigned a value but never used."
no-unused-vars
|
| 62 |
const styles = StyleSheet.create({}); |
| 63 |
|
|
|
|
/src/components/molecules/order_card/payment-method.js
|
120 problems (92 errors, 28 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 16: "Replace `·useState·}·from·'react'` with `useState}·from·'react';`"
prettier/prettier
|
| Warning |
Row 1, Column 40: "Missing semicolon."
semi
|
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·TouchableOpacity,·View·}·from·'react-native'` with `StyleSheet,·TouchableOpacity,·View}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 2, Column 66: "Missing semicolon."
semi
|
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 4, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 4, Column 44: "Missing semicolon."
semi
|
| Error |
Row 5, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 5, Column 68: "Missing semicolon."
semi
|
| Error |
Row 8, Column 1: "Replace `····const·[radio,·setRadio]·=·useState('online')` with `··const·[radio,·setRadio]·=·useState('online');`"
prettier/prettier
|
| Warning |
Row 8, Column 49: "Missing semicolon."
semi
|
| Error |
Row 9, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 10, Column 5: "Replace `····prettier/prettier
|
| Error |
Row 11, Column 1: "Replace `············prettier/prettier
|
| Error |
Row 12, Column 1: "Replace `············prettier/prettier
|
| Warning |
Row 12, Column 13: "Empty components are self-closing"
react/self-closing-comp
|
| Error |
Row 13, Column 1: "Replace `············prettier/prettier
|
| Error |
Row 14, Column 1: "Replace `···············prettier/prettier
|
| Warning |
Row 14, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 15, Column 1: "Replace `···············onPress·=·` with `··········onPress=`"
prettier/prettier
|
| Error |
Row 16, Column 1: "Replace `···············style·=·` with `··········style=`"
prettier/prettier
|
| Error |
Row 17, Column 1: "Replace `···················{radio·==·"online"·&&·prettier/prettier
|
| Warning |
Row 17, Column 27: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 17, Column 30: "Strings must use singlequote."
quotes
|
| Warning |
Row 17, Column 42: "Empty components are self-closing"
react/self-closing-comp
|
| Error |
Row 18, Column 1: "Replace `···············` with `········`"
prettier/prettier
|
| Error |
Row 19, Column 1: "Replace `···············prettier/prettier
|
| Error |
Row 20, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 21, Column 7: "Replace `······prettier/prettier
|
| Error |
Row 22, Column 1: "Replace `···············prettier/prettier
|
| Warning |
Row 22, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 23, Column 1: "Replace `···············onPress·=·` with `··········onPress=`"
prettier/prettier
|
| Error |
Row 24, Column 11: "Replace `·····style·=·` with `style=`"
prettier/prettier
|
| Error |
Row 25, Column 1: "Replace `···················{radio·!=·"online"·&&·prettier/prettier
|
| Warning |
Row 25, Column 27: "Expected '!==' and instead saw '!='."
eqeqeq
|
| Warning |
Row 25, Column 30: "Strings must use singlequote."
quotes
|
| Warning |
Row 25, Column 42: "Empty components are self-closing"
react/self-closing-comp
|
| Error |
Row 26, Column 1: "Replace `···············` with `········`"
prettier/prettier
|
| Error |
Row 27, Column 1: "Replace `···············prettier/prettier
|
| Error |
Row 29, Column 1: "Replace `···············prettier/prettier
|
| Error |
Row 30, Column 1: "Replace `···················prettier/prettier
|
| Error |
Row 31, Column 1: "Delete `·······`"
prettier/prettier
|
| Error |
Row 32, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 33, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 34, Column 3: "Replace `··)` with `);`"
prettier/prettier
|
| Warning |
Row 34, Column 6: "Missing semicolon."
semi
|
| Error |
Row 35, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 35, Column 2: "Missing semicolon."
semi
|
| Error |
Row 37, Column 29: "Insert `;`"
prettier/prettier
|
| Warning |
Row 37, Column 29: "Missing semicolon."
semi
|
| Error |
Row 40, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 41, Column 5: "Replace `····flex·` with `flex`"
prettier/prettier
|
| Error |
Row 42, Column 5: "Replace `····backgroundColor·` with `backgroundColor`"
prettier/prettier
|
| Error |
Row 43, Column 1: "Replace `········borderRadius·` with `····borderRadius`"
prettier/prettier
|
| Error |
Row 44, Column 1: "Replace `········paddingHorizontal·` with `····paddingHorizontal`"
prettier/prettier
|
| Error |
Row 45, Column 5: "Replace `····paddingVertical·` with `paddingVertical`"
prettier/prettier
|
| Error |
Row 46, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 47, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 48, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| Error |
Row 49, Column 1: "Replace `········color·` with `····color`"
prettier/prettier
|
| Error |
Row 50, Column 1: "Replace `········alignSelf·:·'center'` with `····alignSelf:·'center',`"
prettier/prettier
|
| Warning |
Row 50, Column 29: "Missing trailing comma."
comma-dangle
|
| Error |
Row 51, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 52, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 53, Column 1: "Replace `········borderBottomWidth·` with `····borderBottomWidth`"
prettier/prettier
|
| Error |
Row 54, Column 1: "Replace `········borderColor·` with `····borderColor`"
prettier/prettier
|
| Error |
Row 55, Column 5: "Replace `····marginTop·:·mvs(11)` with `marginTop:·mvs(11),`"
prettier/prettier
|
| Warning |
Row 55, Column 28: "Missing trailing comma."
comma-dangle
|
| Error |
Row 56, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 57, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 58, Column 1: "Replace `········height·` with `····height`"
prettier/prettier
|
| Error |
Row 59, Column 1: "Replace `········width·` with `····width`"
prettier/prettier
|
| Error |
Row 60, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 61, Column 1: "Replace `········marginTop·` with `····marginTop`"
prettier/prettier
|
| Error |
Row 62, Column 1: "Replace `········flexDirection·` with `····flexDirection`"
prettier/prettier
|
| Error |
Row 63, Column 5: "Replace `····alignItems·:·'center'` with `alignItems:·'center',`"
prettier/prettier
|
| Warning |
Row 63, Column 30: "Missing trailing comma."
comma-dangle
|
| Error |
Row 64, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 65, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 66, Column 1: "Replace `········height·` with `····height`"
prettier/prettier
|
| Error |
Row 67, Column 5: "Replace `····width·` with `width`"
prettier/prettier
|
| Error |
Row 68, Column 1: "Replace `········borderRadius·:·mvs(15/` with `····borderRadius:·mvs(15·/·`"
prettier/prettier
|
| Warning |
Row 68, Column 30: "Operator '/' must be spaced."
space-infix-ops
|
| Error |
Row 69, Column 1: "Replace `········backgroundColor·` with `····backgroundColor`"
prettier/prettier
|
| Error |
Row 70, Column 1: "Replace `········justifyContent·` with `····justifyContent`"
prettier/prettier
|
| Error |
Row 71, Column 1: "Replace `········alignItems·:·'center'` with `····alignItems:·'center',`"
prettier/prettier
|
| Warning |
Row 71, Column 30: "Missing trailing comma."
comma-dangle
|
| Error |
Row 72, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 73, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 74, Column 1: "Replace `········height·` with `····height`"
prettier/prettier
|
| Error |
Row 75, Column 1: "Replace `········width·` with `····width`"
prettier/prettier
|
| Error |
Row 76, Column 1: "Replace `········borderRadius·:·mvs(9/` with `····borderRadius:·mvs(9·/·`"
prettier/prettier
|
| Warning |
Row 76, Column 29: "Operator '/' must be spaced."
space-infix-ops
|
| Error |
Row 77, Column 1: "Replace `········backgroundColor·` with `····backgroundColor`"
prettier/prettier
|
| Error |
Row 78, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 79, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 80, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| Error |
Row 81, Column 1: "Replace `········color·` with `····color`"
prettier/prettier
|
| Error |
Row 82, Column 1: "Replace `········marginLeft·:·mvs(10)` with `····marginLeft:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 82, Column 29: "Missing trailing comma."
comma-dangle
|
| Error |
Row 83, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 84, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 85, Column 1: "Replace `········height·` with `····height`"
prettier/prettier
|
| Error |
Row 86, Column 1: "Replace `········width·` with `····width`"
prettier/prettier
|
| Error |
Row 87, Column 5: "Replace `····borderRadius·` with `borderRadius`"
prettier/prettier
|
| Error |
Row 88, Column 1: "Replace `········backgroundColor·` with `····backgroundColor`"
prettier/prettier
|
| Error |
Row 89, Column 1: "Replace `········position·` with `····position`"
prettier/prettier
|
| Error |
Row 90, Column 5: "Replace `····right·` with `right`"
prettier/prettier
|
| Error |
Row 91, Column 1: "Replace `········justifyContent·` with `····justifyContent`"
prettier/prettier
|
| Error |
Row 92, Column 1: "Replace `········paddingLeft·:·mvs(10)` with `····paddingLeft:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 92, Column 30: "Missing trailing comma."
comma-dangle
|
| Error |
Row 93, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 94, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 95, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| Error |
Row 96, Column 1: "Replace `········color·:·colors.headerTitle` with `····color:·colors.headerTitle,`"
prettier/prettier
|
| Warning |
Row 96, Column 35: "Missing trailing comma."
comma-dangle
|
| Error |
Row 97, Column 1: "Replace `····}` with `··},`"
prettier/prettier
|
| Warning |
Row 97, Column 6: "Missing trailing comma."
comma-dangle
|
| Error |
Row 98, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 98, Column 3: "Missing semicolon."
semi
|
| Line |
Source |
| Error |
Row 1, Column 16: "Replace `·useState·}·from·'react'` with `useState}·from·'react';`"
prettier/prettier
|
| Warning |
Row 1, Column 40: "Missing semicolon."
semi
|
| 1 |
import React, { useState } from 'react' |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·TouchableOpacity,·View·}·from·'react-native'` with `StyleSheet,·TouchableOpacity,·View}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 2, Column 66: "Missing semicolon."
semi
|
| 2 |
import { StyleSheet, TouchableOpacity, View } from 'react-native' |
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 3 |
import { mvs } from '../../../config/metrices'; |
| Error |
Row 4, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 4, Column 44: "Missing semicolon."
semi
|
| 4 |
import colors from '../../../config/colors' |
| Error |
Row 5, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 5, Column 68: "Missing semicolon."
semi
|
| 5 |
import Regular from '../../../presentation/typography/regular-text' |
| 6 |
|
| 7 |
const PaymentMethod = () => { |
| Error |
Row 8, Column 1: "Replace `····const·[radio,·setRadio]·=·useState('online')` with `··const·[radio,·setRadio]·=·useState('online');`"
prettier/prettier
|
| Warning |
Row 8, Column 49: "Missing semicolon."
semi
|
| 8 |
const [radio, setRadio] = useState('online') |
| Error |
Row 9, Column 1: "Delete `··`"
prettier/prettier
|
| 9 |
return ( |
| Error |
Row 10, Column 5: "Replace `····prettier/prettier
|
| 10 |
<View style = {styles.mainContainer}> |
| Error |
Row 11, Column 1: "Replace `············prettier/prettier
|
| 11 |
<Regular label = "Payment Method" style = {styles.heading}/> |
| Error |
Row 12, Column 1: "Replace `············prettier/prettier
|
| Warning |
Row 12, Column 13: "Empty components are self-closing"
react/self-closing-comp
|
| 12 |
<View style = {styles.line}></View> |
| Error |
Row 13, Column 1: "Replace `············prettier/prettier
|
| 13 |
<View style = {styles.radioContainer}> |
| Error |
Row 14, Column 1: "Replace `···············prettier/prettier
|
| Warning |
Row 14, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| 14 |
<TouchableOpacity |
| Error |
Row 15, Column 1: "Replace `···············onPress·=·` with `··········onPress=`"
prettier/prettier
|
| 15 |
onPress = {() => setRadio('online')} |
| Error |
Row 16, Column 1: "Replace `···············style·=·` with `··········style=`"
prettier/prettier
|
| 16 |
style = {styles.radio}> |
| Error |
Row 17, Column 1: "Replace `···················{radio·==·"online"·&&·prettier/prettier
|
| Warning |
Row 17, Column 27: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 17, Column 30: "Strings must use singlequote."
quotes
|
| Warning |
Row 17, Column 42: "Empty components are self-closing"
react/self-closing-comp
|
| 17 |
{radio == "online" && <View style = {styles.radioInner}></View>} |
| Error |
Row 18, Column 1: "Replace `···············` with `········`"
prettier/prettier
|
| 18 |
</TouchableOpacity> |
| Error |
Row 19, Column 1: "Replace `···············prettier/prettier
|
| 19 |
<Regular label = "Online payment" style = {styles.radioTitle}/> |
| Error |
Row 20, Column 1: "Delete `······`"
prettier/prettier
|
| 20 |
</View> |
| Error |
Row 21, Column 7: "Replace `······prettier/prettier
|
| 21 |
<View style = {{...styles.radioContainer, marginTop : mvs(5)}}> |
| Error |
Row 22, Column 1: "Replace `···············prettier/prettier
|
| Warning |
Row 22, Column 33: "Trailing spaces not allowed."
no-trailing-spaces
|
| 22 |
<TouchableOpacity |
| Error |
Row 23, Column 1: "Replace `···············onPress·=·` with `··········onPress=`"
prettier/prettier
|
| 23 |
onPress = {() => setRadio('taketo')} |
| Error |
Row 24, Column 11: "Replace `·····style·=·` with `style=`"
prettier/prettier
|
| 24 |
style = {styles.radio}> |
| Error |
Row 25, Column 1: "Replace `···················{radio·!=·"online"·&&·prettier/prettier
|
| Warning |
Row 25, Column 27: "Expected '!==' and instead saw '!='."
eqeqeq
|
| Warning |
Row 25, Column 30: "Strings must use singlequote."
quotes
|
| Warning |
Row 25, Column 42: "Empty components are self-closing"
react/self-closing-comp
|
| 25 |
{radio != "online" && <View style = {styles.radioInner}></View>} |
| Error |
Row 26, Column 1: "Replace `···············` with `········`"
prettier/prettier
|
| 26 |
</TouchableOpacity> |
| Error |
Row 27, Column 1: "Replace `···············prettier/prettier
|
| 27 |
<Regular label = "Taketo Balance" style = {styles.radioTitle}/> |
| 28 |
|
| Error |
Row 29, Column 1: "Replace `···············prettier/prettier
|
| 29 |
<View style = {styles.balanceContainer}> |
| Error |
Row 30, Column 1: "Replace `···················prettier/prettier
|
| 30 |
<Regular label = "US$ 320" style = {styles.balance}/> |
| Error |
Row 31, Column 1: "Delete `·······`"
prettier/prettier
|
| 31 |
</View> |
| Error |
Row 32, Column 7: "Delete `······`"
prettier/prettier
|
| 32 |
</View> |
| Error |
Row 33, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 33 |
</View> |
| Error |
Row 34, Column 3: "Replace `··)` with `);`"
prettier/prettier
|
| Warning |
Row 34, Column 6: "Missing semicolon."
semi
|
| 34 |
) |
| Error |
Row 35, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 35, Column 2: "Missing semicolon."
semi
|
| 35 |
} |
| 36 |
|
| Error |
Row 37, Column 29: "Insert `;`"
prettier/prettier
|
| Warning |
Row 37, Column 29: "Missing semicolon."
semi
|
| 37 |
export default PaymentMethod |
| 38 |
|
| 39 |
const styles = StyleSheet.create({ |
| Error |
Row 40, Column 3: "Delete `··`"
prettier/prettier
|
| 40 |
mainContainer: { |
| Error |
Row 41, Column 5: "Replace `····flex·` with `flex`"
prettier/prettier
|
| 41 |
flex : 1, |
| Error |
Row 42, Column 5: "Replace `····backgroundColor·` with `backgroundColor`"
prettier/prettier
|
| 42 |
backgroundColor : colors.headerTitle, |
| Error |
Row 43, Column 1: "Replace `········borderRadius·` with `····borderRadius`"
prettier/prettier
|
| 43 |
borderRadius : mvs(10), |
| Error |
Row 44, Column 1: "Replace `········paddingHorizontal·` with `····paddingHorizontal`"
prettier/prettier
|
| 44 |
paddingHorizontal : mvs(10), |
| Error |
Row 45, Column 5: "Replace `····paddingVertical·` with `paddingVertical`"
prettier/prettier
|
| 45 |
paddingVertical : mvs(22), |
| Error |
Row 46, Column 1: "Delete `··`"
prettier/prettier
|
| 46 |
}, |
| Error |
Row 47, Column 3: "Delete `··`"
prettier/prettier
|
| 47 |
heading: { |
| Error |
Row 48, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| 48 |
fontSize : mvs(15), |
| Error |
Row 49, Column 1: "Replace `········color·` with `····color`"
prettier/prettier
|
| 49 |
color : colors.white, |
| Error |
Row 50, Column 1: "Replace `········alignSelf·:·'center'` with `····alignSelf:·'center',`"
prettier/prettier
|
| Warning |
Row 50, Column 29: "Missing trailing comma."
comma-dangle
|
| 50 |
alignSelf : 'center' |
| Error |
Row 51, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 51 |
}, |
| Error |
Row 52, Column 1: "Delete `··`"
prettier/prettier
|
| 52 |
line: { |
| Error |
Row 53, Column 1: "Replace `········borderBottomWidth·` with `····borderBottomWidth`"
prettier/prettier
|
| 53 |
borderBottomWidth : 0.3, |
| Error |
Row 54, Column 1: "Replace `········borderColor·` with `····borderColor`"
prettier/prettier
|
| 54 |
borderColor : colors.price_border, |
| Error |
Row 55, Column 5: "Replace `····marginTop·:·mvs(11)` with `marginTop:·mvs(11),`"
prettier/prettier
|
| Warning |
Row 55, Column 28: "Missing trailing comma."
comma-dangle
|
| 55 |
marginTop : mvs(11) |
| Error |
Row 56, Column 1: "Delete `··`"
prettier/prettier
|
| 56 |
}, |
| Error |
Row 57, Column 1: "Delete `··`"
prettier/prettier
|
| 57 |
radioContainer: { |
| Error |
Row 58, Column 1: "Replace `········height·` with `····height`"
prettier/prettier
|
| 58 |
height : mvs(31), |
| Error |
Row 59, Column 1: "Replace `········width·` with `····width`"
prettier/prettier
|
| 59 |
width : '100%', |
| Error |
Row 60, Column 5: "Delete `····`"
prettier/prettier
|
| 60 |
//borderWidth : 1, |
| Error |
Row 61, Column 1: "Replace `········marginTop·` with `····marginTop`"
prettier/prettier
|
| 61 |
marginTop : mvs(13), |
| Error |
Row 62, Column 1: "Replace `········flexDirection·` with `····flexDirection`"
prettier/prettier
|
| 62 |
flexDirection : 'row', |
| Error |
Row 63, Column 5: "Replace `····alignItems·:·'center'` with `alignItems:·'center',`"
prettier/prettier
|
| Warning |
Row 63, Column 30: "Missing trailing comma."
comma-dangle
|
| 63 |
alignItems : 'center' |
| Error |
Row 64, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 64 |
}, |
| Error |
Row 65, Column 1: "Delete `··`"
prettier/prettier
|
| 65 |
radio: { |
| Error |
Row 66, Column 1: "Replace `········height·` with `····height`"
prettier/prettier
|
| 66 |
height : mvs(15), |
| Error |
Row 67, Column 5: "Replace `····width·` with `width`"
prettier/prettier
|
| 67 |
width : mvs(15), |
| Error |
Row 68, Column 1: "Replace `········borderRadius·:·mvs(15/` with `····borderRadius:·mvs(15·/·`"
prettier/prettier
|
| Warning |
Row 68, Column 30: "Operator '/' must be spaced."
space-infix-ops
|
| 68 |
borderRadius : mvs(15/2), |
| Error |
Row 69, Column 1: "Replace `········backgroundColor·` with `····backgroundColor`"
prettier/prettier
|
| 69 |
backgroundColor : colors.white, |
| Error |
Row 70, Column 1: "Replace `········justifyContent·` with `····justifyContent`"
prettier/prettier
|
| 70 |
justifyContent : 'center', |
| Error |
Row 71, Column 1: "Replace `········alignItems·:·'center'` with `····alignItems:·'center',`"
prettier/prettier
|
| Warning |
Row 71, Column 30: "Missing trailing comma."
comma-dangle
|
| 71 |
alignItems : 'center' |
| Error |
Row 72, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 72 |
}, |
| Error |
Row 73, Column 1: "Delete `··`"
prettier/prettier
|
| 73 |
radioInner: { |
| Error |
Row 74, Column 1: "Replace `········height·` with `····height`"
prettier/prettier
|
| 74 |
height : mvs(9), |
| Error |
Row 75, Column 1: "Replace `········width·` with `····width`"
prettier/prettier
|
| 75 |
width : mvs(9), |
| Error |
Row 76, Column 1: "Replace `········borderRadius·:·mvs(9/` with `····borderRadius:·mvs(9·/·`"
prettier/prettier
|
| Warning |
Row 76, Column 29: "Operator '/' must be spaced."
space-infix-ops
|
| 76 |
borderRadius : mvs(9/2), |
| Error |
Row 77, Column 1: "Replace `········backgroundColor·` with `····backgroundColor`"
prettier/prettier
|
| 77 |
backgroundColor : colors.headerTitle, |
| Error |
Row 78, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 78 |
}, |
| Error |
Row 79, Column 1: "Delete `··`"
prettier/prettier
|
| 79 |
radioTitle: { |
| Error |
Row 80, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| 80 |
fontSize : mvs(15), |
| Error |
Row 81, Column 1: "Replace `········color·` with `····color`"
prettier/prettier
|
| 81 |
color : colors.white, |
| Error |
Row 82, Column 1: "Replace `········marginLeft·:·mvs(10)` with `····marginLeft:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 82, Column 29: "Missing trailing comma."
comma-dangle
|
| 82 |
marginLeft : mvs(10) |
| Error |
Row 83, Column 1: "Delete `··`"
prettier/prettier
|
| 83 |
}, |
| Error |
Row 84, Column 1: "Delete `··`"
prettier/prettier
|
| 84 |
balanceContainer: { |
| Error |
Row 85, Column 1: "Replace `········height·` with `····height`"
prettier/prettier
|
| 85 |
height : '100%', |
| Error |
Row 86, Column 1: "Replace `········width·` with `····width`"
prettier/prettier
|
| 86 |
width : mvs(91), |
| Error |
Row 87, Column 5: "Replace `····borderRadius·` with `borderRadius`"
prettier/prettier
|
| 87 |
borderRadius : mvs(10), |
| Error |
Row 88, Column 1: "Replace `········backgroundColor·` with `····backgroundColor`"
prettier/prettier
|
| 88 |
backgroundColor : colors.white, |
| Error |
Row 89, Column 1: "Replace `········position·` with `····position`"
prettier/prettier
|
| 89 |
position : 'absolute', |
| Error |
Row 90, Column 5: "Replace `····right·` with `right`"
prettier/prettier
|
| 90 |
right : 0, |
| Error |
Row 91, Column 1: "Replace `········justifyContent·` with `····justifyContent`"
prettier/prettier
|
| 91 |
justifyContent : 'center', |
| Error |
Row 92, Column 1: "Replace `········paddingLeft·:·mvs(10)` with `····paddingLeft:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 92, Column 30: "Missing trailing comma."
comma-dangle
|
| 92 |
paddingLeft : mvs(10) |
| Error |
Row 93, Column 1: "Delete `··`"
prettier/prettier
|
| 93 |
}, |
| Error |
Row 94, Column 3: "Delete `··`"
prettier/prettier
|
| 94 |
balance: { |
| Error |
Row 95, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| 95 |
fontSize : mvs(13), |
| Error |
Row 96, Column 1: "Replace `········color·:·colors.headerTitle` with `····color:·colors.headerTitle,`"
prettier/prettier
|
| Warning |
Row 96, Column 35: "Missing trailing comma."
comma-dangle
|
| 96 |
color : colors.headerTitle |
| Error |
Row 97, Column 1: "Replace `····}` with `··},`"
prettier/prettier
|
| Warning |
Row 97, Column 6: "Missing trailing comma."
comma-dangle
|
| 97 |
} |
| Error |
Row 98, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 98, Column 3: "Missing semicolon."
semi
|
| 98 |
}) |
| 99 |
|
|
|
|
/src/components/molecules/order_card/plus-button.js
|
45 problems (33 errors, 12 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 1, Column 26: "Missing semicolon."
semi
|
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·Text,·View,·TouchableOpacity·}·from·'react-native'` with `StyleSheet,·Text,·View,·TouchableOpacity}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 2, Column 22: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 72: "Missing semicolon."
semi
|
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 4, Column 70: "Insert `;`"
prettier/prettier
|
| Warning |
Row 4, Column 70: "Missing semicolon."
semi
|
| Error |
Row 5, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 5, Column 44: "Missing semicolon."
semi
|
| Error |
Row 7, Column 22: "Replace `·onPress,·style,·...props·` with `onPress,·style,·...props`"
prettier/prettier
|
| Error |
Row 8, Column 3: "Replace `··const·Plus·=·Images['plus']` with `const·Plus·=·Images['plus'];`"
prettier/prettier
|
| Warning |
Row 8, Column 25: "["plus"] is better written in dot notation."
dot-notation
|
| Warning |
Row 8, Column 32: "Missing semicolon."
semi
|
| Error |
Row 9, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 10, Column 5: "Replace `····prettier/prettier
|
| Error |
Row 11, Column 1: "Replace `············prettier/prettier
|
| Error |
Row 15, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 16, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 17, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 18, Column 3: "Replace `··)` with `);`"
prettier/prettier
|
| Warning |
Row 18, Column 6: "Missing semicolon."
semi
|
| Error |
Row 19, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 19, Column 2: "Missing semicolon."
semi
|
| Error |
Row 21, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 21, Column 26: "Missing semicolon."
semi
|
| Error |
Row 24, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 25, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 26, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 27, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 28, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 29, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 30, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 31, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 32, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 33, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 34, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 35, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 36, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 37, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 38, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 39, Column 3: "Replace `··}` with `},`"
prettier/prettier
|
| Warning |
Row 39, Column 6: "Missing trailing comma."
comma-dangle
|
| Error |
Row 40, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 40, Column 3: "Missing semicolon."
semi
|
| Line |
Source |
| Error |
Row 1, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 1, Column 26: "Missing semicolon."
semi
|
| 1 |
import React from 'react' |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·Text,·View,·TouchableOpacity·}·from·'react-native'` with `StyleSheet,·Text,·View,·TouchableOpacity}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 2, Column 22: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 72: "Missing semicolon."
semi
|
| 2 |
import { StyleSheet, Text, View, TouchableOpacity } from 'react-native' |
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 3 |
import { mvs } from '../../../config/metrices'; |
| Error |
Row 4, Column 70: "Insert `;`"
prettier/prettier
|
| Warning |
Row 4, Column 70: "Missing semicolon."
semi
|
| 4 |
import * as Images from '../../../../resource/assets/bank-info-icons' |
| Error |
Row 5, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 5, Column 44: "Missing semicolon."
semi
|
| 5 |
import colors from '../../../config/colors' |
| 6 |
|
| Error |
Row 7, Column 22: "Replace `·onPress,·style,·...props·` with `onPress,·style,·...props`"
prettier/prettier
|
| 7 |
const PlusButton = ({ onPress, style, ...props }) => { |
| Error |
Row 8, Column 3: "Replace `··const·Plus·=·Images['plus']` with `const·Plus·=·Images['plus'];`"
prettier/prettier
|
| Warning |
Row 8, Column 25: "["plus"] is better written in dot notation."
dot-notation
|
| Warning |
Row 8, Column 32: "Missing semicolon."
semi
|
| 8 |
const Plus = Images['plus'] |
| Error |
Row 9, Column 1: "Delete `··`"
prettier/prettier
|
| 9 |
return ( |
| Error |
Row 10, Column 5: "Replace `····prettier/prettier
|
| 10 |
<View style={{ ...style }}> |
| Error |
Row 11, Column 1: "Replace `············prettier/prettier
|
| 11 |
<TouchableOpacity |
| 12 |
onPress={onPress} |
| 13 |
style={styles.plusButton} |
| 14 |
> |
| Error |
Row 15, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 15 |
<Plus /> |
| Error |
Row 16, Column 1: "Delete `······`"
prettier/prettier
|
| 16 |
</TouchableOpacity> |
| Error |
Row 17, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 17 |
</View> |
| Error |
Row 18, Column 3: "Replace `··)` with `);`"
prettier/prettier
|
| Warning |
Row 18, Column 6: "Missing semicolon."
semi
|
| 18 |
) |
| Error |
Row 19, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 19, Column 2: "Missing semicolon."
semi
|
| 19 |
} |
| 20 |
|
| Error |
Row 21, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 21, Column 26: "Missing semicolon."
semi
|
| 21 |
export default PlusButton |
| 22 |
|
| 23 |
const styles = StyleSheet.create({ |
| Error |
Row 24, Column 3: "Delete `··`"
prettier/prettier
|
| 24 |
plusButton: { |
| Error |
Row 25, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 25 |
height: mvs(50), |
| Error |
Row 26, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 26 |
width: mvs(50), |
| Error |
Row 27, Column 1: "Delete `····`"
prettier/prettier
|
| 27 |
borderRadius: mvs(50 / 2), |
| Error |
Row 28, Column 5: "Delete `····`"
prettier/prettier
|
| 28 |
backgroundColor: colors.primary, |
| Error |
Row 29, Column 5: "Delete `····`"
prettier/prettier
|
| 29 |
justifyContent: 'center', |
| Error |
Row 30, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 30 |
alignItems: 'center', |
| Error |
Row 31, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 31 |
// elevation : 3, |
| Error |
Row 32, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 32 |
// shadowColor: "#000", |
| Error |
Row 33, Column 1: "Delete `····`"
prettier/prettier
|
| 33 |
// shadowOffset: { |
| Error |
Row 34, Column 5: "Delete `····`"
prettier/prettier
|
| 34 |
// width: 0, |
| Error |
Row 35, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 35 |
// height: 1, |
| Error |
Row 36, Column 5: "Delete `····`"
prettier/prettier
|
| 36 |
// }, |
| Error |
Row 37, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 37 |
// shadowOpacity: 0.22, |
| Error |
Row 38, Column 1: "Delete `····`"
prettier/prettier
|
| 38 |
// shadowRadius: 2.22, |
| Error |
Row 39, Column 3: "Replace `··}` with `},`"
prettier/prettier
|
| Warning |
Row 39, Column 6: "Missing trailing comma."
comma-dangle
|
| 39 |
} |
| Error |
Row 40, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 40, Column 3: "Missing semicolon."
semi
|
| 40 |
}) |
| 41 |
|
|
|
|
/src/components/molecules/order_card/processed-offer-card.js
|
21 problems (15 errors, 6 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `⏎··StyleSheet,⏎··TouchableOpacity,⏎··View⏎` with `StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| Warning |
Row 5, Column 7: "Missing trailing comma."
comma-dangle
|
| Error |
Row 8, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 46, Column 19: "Replace `·...styles.CONTAINER,·...style·` with `...styles.CONTAINER,·...style`"
prettier/prettier
|
| Warning |
Row 49, Column 16: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 49, Column 17: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| Warning |
Row 63, Column 20: "Inline style: { bottom: -1 }"
react-native/no-inline-styles
|
| Error |
Row 63, Column 21: "Replace `·bottom:·-1·` with `bottom:·-1`"
prettier/prettier
|
| Warning |
Row 72, Column 20: "Inline style: { flex: 1, overflow: 'hidden', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Error |
Row 85, Column 27: "Replace `·marginTop:·mvs(9)·` with `marginTop:·mvs(9)`"
prettier/prettier
|
| Error |
Row 86, Column 23: "Replace `·numberOfLines={2}·label={title}·style={styles.CARD_CONTENT_LABLE}` with `⏎················numberOfLines={2}⏎················label={title}⏎················style={styles.CARD_CONTENT_LABLE}⏎·············`"
prettier/prettier
|
| Error |
Row 88, Column 27: "Replace `·marginTop:·mvs(5)·` with `marginTop:·mvs(5)`"
prettier/prettier
|
| Error |
Row 99, Column 48: "Replace `·...styles.CARD_CONTENT_LABLE·` with `...styles.CARD_CONTENT_LABLE`"
prettier/prettier
|
| Error |
Row 102, Column 25: "Replace `·...styles.CARD_CONTENT_LABLE·` with `...styles.CARD_CONTENT_LABLE`"
prettier/prettier
|
| Error |
Row 125, Column 28: "Replace `·onPress={()·=>·props?.navigation?.navigate('userprofile',·{·user_id:·props?.user_id_tr,·is_review:·false·})}` with `⏎············onPress={()·=>⏎··············props?.navigation?.navigate('userprofile',·{⏎················user_id:·props?.user_id_tr,⏎················is_review:·false,⏎··············})⏎············}⏎···········`"
prettier/prettier
|
| Warning |
Row 134, Column 24: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 142, Column 25: "Replace `·...styles.DESTINATION_CONTAINER·` with `...styles.DESTINATION_CONTAINER`"
prettier/prettier
|
| Error |
Row 150, Column 27: "Replace `·uri:·order_from_flag·` with `uri:·order_from_flag`"
prettier/prettier
|
| Error |
Row 151, Column 25: "Replace `·uri:·order_to_flag·` with `uri:·order_to_flag`"
prettier/prettier
|
| Error |
Row 155, Column 28: "Replace `·onPress={()·=>·props?.navigation?.navigate('userprofile',·{·user_id:·props?.user_id,·is_review:·false·})}` with `⏎············onPress={()·=>⏎··············props?.navigation?.navigate('userprofile',·{⏎················user_id:·props?.user_id,⏎················is_review:·false,⏎··············})⏎············}⏎···········`"
prettier/prettier
|
| Warning |
Row 164, Column 24: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `⏎··StyleSheet,⏎··TouchableOpacity,⏎··View⏎` with `StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| 2 |
import { |
| 3 |
StyleSheet, |
| 4 |
TouchableOpacity, |
| Warning |
Row 5, Column 7: "Missing trailing comma."
comma-dangle
|
| 5 |
View |
| 6 |
} from 'react-native'; |
| 7 |
import colors from '../../../config/colors'; |
| Error |
Row 8, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 8 |
import { mvs } from '../../../config/metrices'; |
| 9 |
import Medium from '../../../presentation/typography/medium-text'; |
| 10 |
import Regular from '../../../presentation/typography/regular-text'; |
| 11 |
import OrderDestination from '../../atoms/OrderDestination'; |
| 12 |
import OrderDestinationAddress from '../../atoms/OrderDestinationAddress'; |
| 13 |
import ImagePlaceholder from '../../atoms/Placeholder'; |
| 14 |
import AeroplaneActive from './../../../../resource/assets/order-car-icons/aeroplane-active.svg'; |
| 15 |
import CarActive from './../../../../resource/assets/order-car-icons/car-active.svg'; |
| 16 |
import Location from './../../../../resource/assets/order-car-icons/location.svg'; |
| 17 |
const ProcessingOrderCard = ({ |
| 18 |
time, |
| 19 |
title, |
| 20 |
shopName, |
| 21 |
// order_site, |
| 22 |
price, |
| 23 |
reward, |
| 24 |
user_name, |
| 25 |
user_img, |
| 26 |
user_name_tr, |
| 27 |
user_img_tr, |
| 28 |
offer_by = {}, |
| 29 |
urgent_delivery = true, |
| 30 |
local = true, |
| 31 |
order_from, |
| 32 |
order_to, |
| 33 |
order_from_flag, |
| 34 |
order_to_flag, |
| 35 |
store_img, |
| 36 |
headingTitle, |
| 37 |
detinationWidth = null, |
| 38 |
style, |
| 39 |
order_data, |
| 40 |
order_id, |
| 41 |
onclick, |
| 42 |
...props |
| 43 |
}) => { |
| 44 |
//console.log("flag::", order_from_flag) |
| 45 |
return ( |
| Error |
Row 46, Column 19: "Replace `·...styles.CONTAINER,·...style·` with `...styles.CONTAINER,·...style`"
prettier/prettier
|
| 46 |
<View style={{ ...styles.CONTAINER, ...style }}> |
| 47 |
<TouchableOpacity |
| 48 |
activeOpacity={1} |
| Warning |
Row 49, Column 16: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 49, Column 17: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| 49 |
style={{ flex: 1 }} |
| 50 |
onPress={() => { |
| 51 |
props.navigation.navigate('orderdetails', { |
| 52 |
isLocalOrder: local, |
| 53 |
orderType: 'processing', |
| 54 |
order_id, |
| 55 |
order_data, |
| 56 |
}); |
| 57 |
}}> |
| 58 |
{headingTitle && ( |
| 59 |
<Regular label={headingTitle} style={styles.PROCESSING_LABEL} /> |
| 60 |
)} |
| 61 |
<View style={styles.CARD_WRAPPER}> |
| 62 |
<ImagePlaceholder |
| Warning |
Row 63, Column 20: "Inline style: { bottom: -1 }"
react-native/no-inline-styles
|
| Error |
Row 63, Column 21: "Replace `·bottom:·-1·` with `bottom:·-1`"
prettier/prettier
|
| 63 |
style={{ bottom: -1 }} |
| 64 |
bg_img={store_img} |
| 65 |
containerStyle={styles.STORE_IMG_CONTAINER}> |
| 66 |
{urgent_delivery && ( |
| 67 |
<Regular label={'Urgent delivery'} style={styles.URGENT_LABEL} /> |
| 68 |
)} |
| 69 |
</ImagePlaceholder> |
| 70 |
|
| 71 |
<View |
| Warning |
Row 72, Column 20: "Inline style: { flex: 1, overflow: 'hidden', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| 72 |
style={{ |
| 73 |
flex: 1, |
| 74 |
paddingLeft: mvs(9), |
| 75 |
overflow: 'hidden', |
| 76 |
justifyContent: 'space-between', |
| 77 |
}}> |
| 78 |
<Regular |
| 79 |
label={time} |
| 80 |
style={{ |
| 81 |
...styles.CARD_CONTENT_LABLE, |
| 82 |
color: colors.timeAgo, |
| 83 |
}} |
| 84 |
/> |
| Error |
Row 85, Column 27: "Replace `·marginTop:·mvs(9)·` with `marginTop:·mvs(9)`"
prettier/prettier
|
| 85 |
<View style={{ marginTop: mvs(9) }}> |
| Error |
Row 86, Column 23: "Replace `·numberOfLines={2}·label={title}·style={styles.CARD_CONTENT_LABLE}` with `⏎················numberOfLines={2}⏎················label={title}⏎················style={styles.CARD_CONTENT_LABLE}⏎·············`"
prettier/prettier
|
| 86 |
<Regular numberOfLines={2} label={title} style={styles.CARD_CONTENT_LABLE} /> |
| 87 |
</View> |
| Error |
Row 88, Column 27: "Replace `·marginTop:·mvs(5)·` with `marginTop:·mvs(5)`"
prettier/prettier
|
| 88 |
<View style={{ marginTop: mvs(5) }}> |
| 89 |
<Regular |
| 90 |
numberOfLines={1} |
| 91 |
label={shopName || order_data?.order_site} |
| 92 |
style={{ |
| 93 |
...styles.CARD_CONTENT_LABLE, |
| 94 |
color: colors.primary, |
| 95 |
}} |
| 96 |
/> |
| 97 |
</View> |
| 98 |
<View style={styles.PRICE_CONTAINER}> |
| Error |
Row 99, Column 48: "Replace `·...styles.CARD_CONTENT_LABLE·` with `...styles.CARD_CONTENT_LABLE`"
prettier/prettier
|
| 99 |
<Regular label={'Price'} style={{ ...styles.CARD_CONTENT_LABLE }} /> |
| 100 |
<Medium |
| 101 |
label={`${price}`} |
| Error |
Row 102, Column 25: "Replace `·...styles.CARD_CONTENT_LABLE·` with `...styles.CARD_CONTENT_LABLE`"
prettier/prettier
|
| 102 |
style={{ ...styles.CARD_CONTENT_LABLE }} |
| 103 |
/> |
| 104 |
</View> |
| 105 |
<View style={styles.REWARD_CONTAINER}> |
| 106 |
<Regular |
| 107 |
label={'Reward'} |
| 108 |
style={{ |
| 109 |
...styles.CARD_CONTENT_LABLE, |
| 110 |
color: colors.primary, |
| 111 |
}} |
| 112 |
/> |
| 113 |
<Medium |
| 114 |
label={`${reward}`} |
| 115 |
style={{ |
| 116 |
...styles.CARD_CONTENT_LABLE, |
| 117 |
fontSize: mvs(18), |
| 118 |
color: colors.primary, |
| 119 |
}} |
| 120 |
/> |
| 121 |
</View> |
| 122 |
</View> |
| 123 |
</View> |
| 124 |
<View style={styles.DESTINATION_WRAPPER}> |
| Error |
Row 125, Column 28: "Replace `·onPress={()·=>·props?.navigation?.navigate('userprofile',·{·user_id:·props?.user_id_tr,·is_review:·false·})}` with `⏎············onPress={()·=>⏎··············props?.navigation?.navigate('userprofile',·{⏎················user_id:·props?.user_id_tr,⏎················is_review:·false,⏎··············})⏎············}⏎···········`"
prettier/prettier
|
| 125 |
<TouchableOpacity onPress={() => props?.navigation?.navigate('userprofile', { user_id: props?.user_id_tr, is_review: false })} style={styles.AVATAR_WRAPPER}> |
| 126 |
<View style={styles.AVATAR_CONTAINER}> |
| 127 |
<ImagePlaceholder |
| 128 |
bg_img={user_img_tr} |
| 129 |
containerStyle={styles.AVATAR} |
| 130 |
/> |
| 131 |
<Regular |
| 132 |
numberOfLines={1} |
| 133 |
label={user_name_tr} |
| Warning |
Row 134, Column 24: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 134 |
style={{ |
| 135 |
...styles.CARD_CONTENT_LABLE, |
| 136 |
textAlign: 'center', |
| 137 |
fontSize: mvs(10), |
| 138 |
}} |
| 139 |
/> |
| 140 |
</View> |
| 141 |
</TouchableOpacity> |
| Error |
Row 142, Column 25: "Replace `·...styles.DESTINATION_CONTAINER·` with `...styles.DESTINATION_CONTAINER`"
prettier/prettier
|
| 142 |
<View style={{ ...styles.DESTINATION_CONTAINER }}> |
| 143 |
<OrderDestination |
| 144 |
width={detinationWidth} |
| 145 |
value={1} |
| 146 |
SVGFirst={local ? CarActive : AeroplaneActive} |
| 147 |
SVGSecond={Location} |
| 148 |
/> |
| 149 |
<OrderDestinationAddress |
| Error |
Row 150, Column 27: "Replace `·uri:·order_from_flag·` with `uri:·order_from_flag`"
prettier/prettier
|
| 150 |
imageFrom={{ uri: order_from_flag }} |
| Error |
Row 151, Column 25: "Replace `·uri:·order_to_flag·` with `uri:·order_to_flag`"
prettier/prettier
|
| 151 |
imageTo={{ uri: order_to_flag }} |
| 152 |
label={`${order_from} - ${order_to}`} |
| 153 |
/> |
| 154 |
</View> |
| Error |
Row 155, Column 28: "Replace `·onPress={()·=>·props?.navigation?.navigate('userprofile',·{·user_id:·props?.user_id,·is_review:·false·})}` with `⏎············onPress={()·=>⏎··············props?.navigation?.navigate('userprofile',·{⏎················user_id:·props?.user_id,⏎················is_review:·false,⏎··············})⏎············}⏎···········`"
prettier/prettier
|
| 155 |
<TouchableOpacity onPress={() => props?.navigation?.navigate('userprofile', { user_id: props?.user_id, is_review: false })} style={styles.AVATAR_WRAPPER}> |
| 156 |
<View style={styles.AVATAR_CONTAINER}> |
| 157 |
<ImagePlaceholder |
| 158 |
bg_img={user_img} |
| 159 |
containerStyle={styles.AVATAR} |
| 160 |
/> |
| 161 |
<Regular |
| 162 |
numberOfLines={1} |
| 163 |
label={user_name} |
| Warning |
Row 164, Column 24: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 164 |
style={{ |
| 165 |
...styles.CARD_CONTENT_LABLE, |
| 166 |
textAlign: 'center', |
| 167 |
fontSize: mvs(10), |
| 168 |
}} |
| 169 |
/> |
| 170 |
</View> |
| 171 |
</TouchableOpacity> |
| 172 |
</View> |
| 173 |
</TouchableOpacity> |
| 174 |
</View> |
| 175 |
); |
| 176 |
}; |
| 177 |
|
| 178 |
export default ProcessingOrderCard; |
| 179 |
|
| 180 |
const styles = StyleSheet.create({ |
| 181 |
STORE_IMG_CONTAINER: { |
| 182 |
width: '45%', |
| 183 |
borderRadius: mvs(20), |
| 184 |
overflow: 'hidden', |
| 185 |
alignItems: 'center', |
| 186 |
justifyContent: 'flex-end', |
| 187 |
}, |
| 188 |
CONTAINER: { |
| 189 |
// ...colors.shadow, |
| 190 |
// height: mvs(220), |
| 191 |
marginTop: 2, |
| 192 |
marginBottom: mvs(20), |
| 193 |
paddingHorizontal: mvs(10), |
| 194 |
paddingVertical: mvs(15), |
| 195 |
backgroundColor: colors.secondary, |
| 196 |
borderRadius: mvs(20), |
| 197 |
}, |
| 198 |
PRICE_CONTAINER: { |
| 199 |
marginTop: mvs(10), |
| 200 |
flexDirection: 'row', |
| 201 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 202 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 203 |
borderColor: colors.horizontalLine, |
| 204 |
height: mvs(25), |
| 205 |
justifyContent: 'space-between', |
| 206 |
alignItems: 'center', |
| 207 |
}, |
| 208 |
REWARD_CONTAINER: { |
| 209 |
marginTop: mvs(10), |
| 210 |
flexDirection: 'row', |
| 211 |
height: mvs(21), |
| 212 |
justifyContent: 'space-between', |
| 213 |
alignItems: 'center', |
| 214 |
}, |
| 215 |
PROCESSING_LABEL: { |
| 216 |
marginBottom: mvs(10), |
| 217 |
color: colors.primary, |
| 218 |
fontSize: 12, |
| 219 |
}, |
| 220 |
DESTINATION_WRAPPER: { |
| 221 |
flex: 1, |
| 222 |
marginTop: mvs(10), |
| 223 |
justifyContent: 'space-between', |
| 224 |
alignItems: 'center', |
| 225 |
flexDirection: 'row', |
| 226 |
//borderWidth: 1 |
| 227 |
}, |
| 228 |
DESTINATION_CONTAINER: { |
| 229 |
flex: 1, |
| 230 |
justifyContent: 'space-between', |
| 231 |
alignItems: 'center', |
| 232 |
// width: '100%', |
| 233 |
paddingHorizontal: mvs(10), |
| 234 |
//borderWidth : 1, |
| 235 |
height: '90%', |
| 236 |
}, |
| 237 |
CARD_WRAPPER: { |
| 238 |
flexDirection: 'row', |
| 239 |
justifyContent: 'space-between', |
| 240 |
height: mvs(141), |
| 241 |
}, |
| 242 |
CARD_CONTENT_LABLE: { |
| 243 |
fontSize: mvs(12), |
| 244 |
color: colors.headerTitle, |
| 245 |
}, |
| 246 |
AVATAR_CONTAINER: { |
| 247 |
// flex: 1, |
| 248 |
height: mvs(60), |
| 249 |
justifyContent: 'space-around', |
| 250 |
alignItems: 'center', |
| 251 |
}, |
| 252 |
AVATAR: { |
| 253 |
height: mvs(37), |
| 254 |
overflow: 'hidden', |
| 255 |
width: mvs(37), |
| 256 |
borderRadius: mvs(10), |
| 257 |
backgroundColor: colors.secondary, |
| 258 |
}, |
| 259 |
AVATAR_WRAPPER: { |
| 260 |
height: '100%', |
| 261 |
width: mvs(54), |
| 262 |
borderRadius: mvs(10), |
| 263 |
}, |
| 264 |
URGENT_LABEL: { |
| 265 |
fontSize: mvs(12), |
| 266 |
color: colors.pink, |
| 267 |
paddingHorizontal: mvs(15), |
| 268 |
paddingVertical: mvs(3), |
| 269 |
// marginTop:mvs(10), |
| 270 |
backgroundColor: colors.white, |
| 271 |
borderTopLeftRadius: mvs(6), |
| 272 |
borderTopRightRadius: mvs(6), |
| 273 |
}, |
| 274 |
}); |
| 275 |
|
|
|
|
/src/components/molecules/otp-input/otp-input-styles.js
|
11 problems (6 errors, 5 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 9: "Replace `·StyleSheet·}·from·"react-native"` with `StyleSheet}·from·'react-native'`"
prettier/prettier
|
| Warning |
Row 1, Column 28: "Strings must use singlequote."
quotes
|
| Error |
Row 2, Column 9: "Replace `·mvs·}·from·"../../../config/metrices"` with `mvs}·from·'../../../config/metrices'`"
prettier/prettier
|
| Warning |
Row 2, Column 21: "Strings must use singlequote."
quotes
|
| Warning |
Row 4, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| Error |
Row 25, Column 25: "Insert `⏎···`"
prettier/prettier
|
| Error |
Row 33, Column 16: "Insert `·`"
prettier/prettier
|
| Error |
Row 43, Column 18: "Replace `mvs(10)` with `·mvs(10),`"
prettier/prettier
|
| Warning |
Row 43, Column 25: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 54, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 54, Column 4: "Insert `⏎`"
prettier/prettier
|
| Line |
Source |
| Error |
Row 1, Column 9: "Replace `·StyleSheet·}·from·"react-native"` with `StyleSheet}·from·'react-native'`"
prettier/prettier
|
| Warning |
Row 1, Column 28: "Strings must use singlequote."
quotes
|
| 1 |
import { StyleSheet } from "react-native"; |
| Error |
Row 2, Column 9: "Replace `·mvs·}·from·"../../../config/metrices"` with `mvs}·from·'../../../config/metrices'`"
prettier/prettier
|
| Warning |
Row 2, Column 21: "Strings must use singlequote."
quotes
|
| 2 |
import { mvs } from "../../../config/metrices"; |
| 3 |
import colors from './../../../config/colors'; |
| Warning |
Row 4, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| 4 |
import fonts from './../../../config/fonts'; |
| 5 |
|
| 6 |
export const OPTINPUT_STYLES = StyleSheet.create({ |
| 7 |
// root: {}, |
| 8 |
// title: { textAlign: 'center', fontSize: 30 }, |
| 9 |
// // codeFieldRoot: {marginTop: 20}, |
| 10 |
// cell: { |
| 11 |
// width: WP(6), |
| 12 |
// height: HP(4), |
| 13 |
// // lineHeight: 3, |
| 14 |
// fontSize: fontSize.font20, |
| 15 |
// fontFamily: 'Poppins-SemiBold', |
| 16 |
// borderBottomWidth: 2, |
| 17 |
// borderColor: palette.baseLine, |
| 18 |
// textAlign: 'center', |
| 19 |
// }, |
| 20 |
// focusCell: { |
| 21 |
// borderColor: palette.blue, |
| 22 |
// }, |
| 23 |
root: {}, |
| 24 |
title: { |
| Error |
Row 25, Column 25: "Insert `⏎···`"
prettier/prettier
|
| 25 |
textAlign: 'center', fontSize: 20, |
| 26 |
fontFamily: 'Poppins-SemiBold', |
| 27 |
}, |
| 28 |
codeFieldRoot: { |
| 29 |
// marginTop: 20, |
| 30 |
// width: 280, |
| 31 |
// marginLeft: 'auto', |
| 32 |
// marginRight: 'auto', |
| Error |
Row 33, Column 16: "Insert `·`"
prettier/prettier
|
| 33 |
alignItems:'center', |
| 34 |
}, |
| 35 |
cellRoot: { |
| 36 |
width: mvs(40), |
| 37 |
height: mvs(54), |
| 38 |
margin: 2, |
| 39 |
justifyContent: 'center', |
| 40 |
alignItems: 'center', |
| 41 |
borderColor: colors.doted, |
| 42 |
borderWidth: 1, |
| Error |
Row 43, Column 18: "Replace `mvs(10)` with `·mvs(10),`"
prettier/prettier
|
| Warning |
Row 43, Column 25: "Missing trailing comma."
comma-dangle
|
| 43 |
borderRadius:mvs(10) |
| 44 |
}, |
| 45 |
cellText: { |
| 46 |
color: colors.primary, |
| 47 |
fontSize: mvs(20), |
| 48 |
textAlign: 'center', |
| 49 |
}, |
| 50 |
focusCell: { |
| 51 |
borderColor: colors.primary, |
| 52 |
borderBottomWidth: 2, |
| 53 |
}, |
| Warning |
Row 54, Column 4: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 54, Column 4: "Insert `⏎`"
prettier/prettier
|
| 54 |
}); |
|
|
|
/src/components/molecules/otp-input/otp-input.js
|
28 problems (23 errors, 5 warnings)
|
| Severity |
Rule |
| Warning |
Row 1, Column 16: "'useState' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 9: "'SafeAreaView' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 29: "'StyleSheet' is defined but never used."
no-unused-vars
|
| Error |
Row 11, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 15, Column 33: "Insert `·`"
prettier/prettier
|
| Error |
Row 24, Column 5: "Insert `··`"
prettier/prettier
|
| Error |
Row 25, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 26, Column 1: "Replace `····` with `······`"
prettier/prettier
|
| Error |
Row 27, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 28, Column 1: "Replace `······setValue(txt)` with `········setValue(txt);`"
prettier/prettier
|
| Warning |
Row 28, Column 20: "Missing semicolon."
semi
|
| Error |
Row 30, Column 5: "Insert `··`"
prettier/prettier
|
| Error |
Row 31, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 32, Column 1: "Replace `····` with `······`"
prettier/prettier
|
| Error |
Row 33, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 34, Column 5: "Insert `··`"
prettier/prettier
|
| Error |
Row 35, Column 1: "Replace `····` with `······`"
prettier/prettier
|
| Error |
Row 36, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 37, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 38, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 39, Column 9: "Replace `style={[{·marginHorizontal:mvs(5)·},styles.cellRoot,·isFocused·&&·styles.focusCell,` with `··style={[⏎············{marginHorizontal:·mvs(5)},⏎············styles.cellRoot,⏎············isFocused·&&·styles.focusCell,⏎··········`"
prettier/prettier
|
| Warning |
Row 39, Column 91: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 40, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 41, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 42, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 43, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 44, Column 5: "Insert `··`"
prettier/prettier
|
| Error |
Row 45, Column 1: "Insert `··`"
prettier/prettier
|
| Line |
Source |
| Warning |
Row 1, Column 16: "'useState' is defined but never used."
no-unused-vars
|
| 1 |
import React, {useState} from 'react'; |
| Warning |
Row 2, Column 9: "'SafeAreaView' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 29: "'StyleSheet' is defined but never used."
no-unused-vars
|
| 2 |
import {SafeAreaView, Text, StyleSheet, View} from 'react-native'; |
| 3 |
import {OPTINPUT_STYLES as styles} from './otp-input-styles'; |
| 4 |
|
| 5 |
import { |
| 6 |
CodeField, |
| 7 |
Cursor, |
| 8 |
useBlurOnFulfill, |
| 9 |
useClearByFocusCell, |
| 10 |
} from 'react-native-confirmation-code-field'; |
| Error |
Row 11, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 11 |
import { mvs } from '../../../config/metrices'; |
| 12 |
|
| 13 |
const CELL_COUNT = 6; |
| 14 |
|
| Error |
Row 15, Column 33: "Insert `·`"
prettier/prettier
|
| 15 |
export const OtpInput = ({value,setValue}) => { |
| 16 |
// const [value, setValue] = useState(''); |
| 17 |
const ref = useBlurOnFulfill({value, cellCount: CELL_COUNT}); |
| 18 |
const [props, getCellOnLayoutHandler] = useClearByFocusCell({ |
| 19 |
value, |
| 20 |
setValue, |
| 21 |
}); |
| 22 |
return ( |
| 23 |
<CodeField |
| Error |
Row 24, Column 5: "Insert `··`"
prettier/prettier
|
| 24 |
ref={ref} |
| Error |
Row 25, Column 1: "Insert `··`"
prettier/prettier
|
| 25 |
{...props} |
| Error |
Row 26, Column 1: "Replace `····` with `······`"
prettier/prettier
|
| 26 |
value={value} |
| Error |
Row 27, Column 1: "Insert `··`"
prettier/prettier
|
| 27 |
onChangeText={txt => { |
| Error |
Row 28, Column 1: "Replace `······setValue(txt)` with `········setValue(txt);`"
prettier/prettier
|
| Warning |
Row 28, Column 20: "Missing semicolon."
semi
|
| 28 |
setValue(txt) |
| 29 |
// propsParent.code(txt) |
| Error |
Row 30, Column 5: "Insert `··`"
prettier/prettier
|
| 30 |
}} |
| Error |
Row 31, Column 1: "Insert `··`"
prettier/prettier
|
| 31 |
cellCount={CELL_COUNT} |
| Error |
Row 32, Column 1: "Replace `····` with `······`"
prettier/prettier
|
| 32 |
rootStyle={styles.codeFieldRoot} |
| Error |
Row 33, Column 1: "Insert `··`"
prettier/prettier
|
| 33 |
keyboardType="number-pad" |
| Error |
Row 34, Column 5: "Insert `··`"
prettier/prettier
|
| 34 |
textContentType="oneTimeCode" |
| Error |
Row 35, Column 1: "Replace `····` with `······`"
prettier/prettier
|
| 35 |
renderCell={({index, symbol, isFocused}) => ( |
| Error |
Row 36, Column 1: "Insert `··`"
prettier/prettier
|
| 36 |
<View |
| Error |
Row 37, Column 9: "Insert `··`"
prettier/prettier
|
| 37 |
onLayout={getCellOnLayoutHandler(index)} |
| Error |
Row 38, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 38 |
key={index} |
| Error |
Row 39, Column 9: "Replace `style={[{·marginHorizontal:mvs(5)·},styles.cellRoot,·isFocused·&&·styles.focusCell,` with `··style={[⏎············{marginHorizontal:·mvs(5)},⏎············styles.cellRoot,⏎············isFocused·&&·styles.focusCell,⏎··········`"
prettier/prettier
|
| Warning |
Row 39, Column 91: "Unexpected trailing comma."
comma-dangle
|
| 39 |
style={[{ marginHorizontal:mvs(5) },styles.cellRoot, isFocused && styles.focusCell,]}> |
| Error |
Row 40, Column 9: "Insert `··`"
prettier/prettier
|
| 40 |
<Text style={styles.cellText}> |
| Error |
Row 41, Column 1: "Insert `··`"
prettier/prettier
|
| 41 |
{symbol || (isFocused ? <Cursor /> : null)} |
| Error |
Row 42, Column 1: "Insert `··`"
prettier/prettier
|
| 42 |
</Text> |
| Error |
Row 43, Column 7: "Insert `··`"
prettier/prettier
|
| 43 |
</View> |
| Error |
Row 44, Column 5: "Insert `··`"
prettier/prettier
|
| 44 |
)} |
| Error |
Row 45, Column 1: "Insert `··`"
prettier/prettier
|
| 45 |
/> |
| 46 |
); |
| 47 |
}; |
| 48 |
|
|
|
|
/src/components/molecules/phone-input/phone-input.js
|
3 problems (1 error, 2 warnings)
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Warning |
Row 2, Column 15: "'Text' is defined but never used."
no-unused-vars
|
| 2 |
import {View, Text, StyleSheet} from 'react-native'; |
| 3 |
import colors from '../../../config/colors'; |
| 4 |
import {mvs} from '../../../config/metrices'; |
| 5 |
import {TAKE_TO_INPUT_FIELD} from '../../atoms'; |
| 6 |
const CustomPhoneInput = ({ |
| 7 |
phone, |
| 8 |
defaultCode, |
| 9 |
setPhone, |
| 10 |
label = 'New Phone Number', |
| 11 |
phoneRef, |
| 12 |
}) => { |
| Error |
Row 13, Column 1: "Delete `⏎`"
prettier/prettier
|
| 13 |
|
| 14 |
return ( |
| 15 |
<View style={styles.PHONE_CONTAINER}> |
| Warning |
Row 16, Column 20: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| 16 |
<View style={{width: '100%'}}> |
| 17 |
<TAKE_TO_INPUT_FIELD.PhoneInputComponent |
| 18 |
phoneInput={phoneRef} |
| 19 |
value={phone} |
| 20 |
defaultValue={phone} |
| 21 |
placeholder={label} |
| 22 |
defaultCode={defaultCode} |
| 23 |
layout={'first'} |
| 24 |
textInputStyle={styles.PHONE_INPUT} |
| 25 |
codeTextStyle={{...styles.PHONE_INPUT, paddingTop: mvs(9.2)}} |
| 26 |
withDarkTheme={false} |
| 27 |
wrapperStyle={{borderColor: colors.white}} |
| 28 |
//containerStyle={{borderWidth:1}} |
| 29 |
//textInputStyle={{}} |
| 30 |
// onChangeFormattedText={setPhone} |
| 31 |
onChangeText={setPhone} |
| 32 |
/> |
| 33 |
</View> |
| 34 |
</View> |
| 35 |
); |
| 36 |
}; |
| 37 |
export default CustomPhoneInput; |
| 38 |
|
| 39 |
const styles = StyleSheet.create({ |
| 40 |
PHONE_CONTAINER: { |
| 41 |
flexDirection: 'row', |
| 42 |
alignItems: 'center', |
| 43 |
justifyContent: 'space-between', |
| 44 |
}, |
| 45 |
PHONE_INPUT: { |
| 46 |
color: colors.primary, |
| 47 |
backgroundColor: colors.secondary, |
| 48 |
height: mvs(38), |
| 49 |
paddingHorizontal: mvs(10), |
| 50 |
borderRadius: mvs(10), |
| 51 |
}, |
| 52 |
}); |
| 53 |
|
|
|
|
/src/components/molecules/popular_stores/store.js
|
63 problems (47 errors, 16 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 1, Column 26: "Missing semicolon."
semi
|
| Error |
Row 2, Column 9: "Replace `·Image,·StyleSheet,·TouchableOpacity,·View·}·from·'react-native'` with `Image,·StyleSheet,·TouchableOpacity,·View}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 2, Column 73: "Missing semicolon."
semi
|
| Error |
Row 3, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 3, Column 44: "Missing semicolon."
semi
|
| Error |
Row 4, Column 9: "Replace `·mvs·}·from·'../../../config/metrices'` with `mvs}·from·'../../../config/metrices';`"
prettier/prettier
|
| Warning |
Row 4, Column 47: "Missing semicolon."
semi
|
| Error |
Row 5, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 5, Column 68: "Missing semicolon."
semi
|
| Error |
Row 6, Column 55: "Insert `;`"
prettier/prettier
|
| Warning |
Row 6, Column 55: "Missing semicolon."
semi
|
| Error |
Row 8, Column 25: "Replace `·store_img,·store_url,·fav_icon,·onPress,...props·` with `store_img,·store_url,·fav_icon,·onPress,·...props`"
prettier/prettier
|
| Error |
Row 9, Column 1: "Delete `⏎··`"
prettier/prettier
|
| Error |
Row 11, Column 1: "Replace `········prettier/prettier
|
| Error |
Row 15, Column 1: "Replace `············⏎` with `······prettier/prettier
|
| Warning |
Row 15, Column 42: "Unexpected usage of singlequote."
jsx-quotes
|
| Error |
Row 17, Column 7: "Insert `/>⏎⏎`"
prettier/prettier
|
| Error |
Row 18, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 19, Column 9: "Replace `········` with `prettier/prettier
|
| Warning |
Row 19, Column 35: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 19, Column 77: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 20, Column 9: "Insert `/>⏎··`"
prettier/prettier
|
| Error |
Row 21, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 22, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 23, Column 1: "Replace `····)` with `··);`"
prettier/prettier
|
| Warning |
Row 23, Column 6: "Missing semicolon."
semi
|
| Error |
Row 24, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 24, Column 2: "Missing semicolon."
semi
|
| Error |
Row 26, Column 29: "Insert `;`"
prettier/prettier
|
| Warning |
Row 26, Column 29: "Missing semicolon."
semi
|
| Error |
Row 29, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 30, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 31, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 32, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 33, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 34, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 35, Column 5: "Replace `····borderRadius:·mvs(10)` with `borderRadius:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 35, Column 30: "Missing trailing comma."
comma-dangle
|
| Error |
Row 36, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 37, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 38, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 39, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 40, Column 5: "Replace `····borderRadius:·mvs(10)` with `borderRadius:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 40, Column 30: "Missing trailing comma."
comma-dangle
|
| Error |
Row 41, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 42, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 43, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 44, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 45, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 46, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 47, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 48, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 49, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 50, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 51, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 52, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 53, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 54, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 55, Column 3: "Replace `··}` with `},`"
prettier/prettier
|
| Warning |
Row 55, Column 6: "Missing trailing comma."
comma-dangle
|
| Error |
Row 56, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 56, Column 3: "Missing semicolon."
semi
|
| Line |
Source |
| Error |
Row 1, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 1, Column 26: "Missing semicolon."
semi
|
| 1 |
import React from 'react' |
| Error |
Row 2, Column 9: "Replace `·Image,·StyleSheet,·TouchableOpacity,·View·}·from·'react-native'` with `Image,·StyleSheet,·TouchableOpacity,·View}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 2, Column 73: "Missing semicolon."
semi
|
| 2 |
import { Image, StyleSheet, TouchableOpacity, View } from 'react-native' |
| Error |
Row 3, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 3, Column 44: "Missing semicolon."
semi
|
| 3 |
import colors from '../../../config/colors' |
| Error |
Row 4, Column 9: "Replace `·mvs·}·from·'../../../config/metrices'` with `mvs}·from·'../../../config/metrices';`"
prettier/prettier
|
| Warning |
Row 4, Column 47: "Missing semicolon."
semi
|
| 4 |
import { mvs } from '../../../config/metrices' |
| Error |
Row 5, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 5, Column 68: "Missing semicolon."
semi
|
| 5 |
import Regular from '../../../presentation/typography/regular-text' |
| Error |
Row 6, Column 55: "Insert `;`"
prettier/prettier
|
| Warning |
Row 6, Column 55: "Missing semicolon."
semi
|
| 6 |
import ImagePlaceholder from '../../atoms/Placeholder' |
| 7 |
|
| Error |
Row 8, Column 25: "Replace `·store_img,·store_url,·fav_icon,·onPress,...props·` with `store_img,·store_url,·fav_icon,·onPress,·...props`"
prettier/prettier
|
| 8 |
const PopularStores = ({ store_img, store_url, fav_icon, onPress,...props }) => { |
| Error |
Row 9, Column 1: "Delete `⏎··`"
prettier/prettier
|
| 9 |
|
| 10 |
return ( |
| Error |
Row 11, Column 1: "Replace `········prettier/prettier
|
| 11 |
<TouchableOpacity |
| 12 |
onPress = {onPress} |
| 13 |
style={styles.store} |
| 14 |
> |
| Error |
Row 15, Column 1: "Replace `············⏎` with `······prettier/prettier
|
| Warning |
Row 15, Column 42: "Unexpected usage of singlequote."
jsx-quotes
|
| 15 |
<ImagePlaceholder resizeMode='contain' bg_img={store_img} containerStyle={styles.storeImage} /> |
| 16 |
|
| Error |
Row 17, Column 7: "Insert `/>⏎⏎`"
prettier/prettier
|
| 17 |
<View style={styles.logo}> |
| Error |
Row 18, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 18 |
{/* <Apple fill = {colors.black}/> */} |
| Error |
Row 19, Column 9: "Replace `········` with `prettier/prettier
|
| Warning |
Row 19, Column 35: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 19, Column 77: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| 19 |
<Image resizeMode='cover' source={{ uri: fav_icon }} style={{ height: '100%', width: '100%' }} /> |
| Error |
Row 20, Column 9: "Insert `/>⏎··`"
prettier/prettier
|
| 20 |
</View> |
| Error |
Row 21, Column 1: "Delete `······`"
prettier/prettier
|
| 21 |
<Regular label={store_url} style={styles.storeName} /> |
| Error |
Row 22, Column 5: "Delete `····`"
prettier/prettier
|
| 22 |
</TouchableOpacity> |
| Error |
Row 23, Column 1: "Replace `····)` with `··);`"
prettier/prettier
|
| Warning |
Row 23, Column 6: "Missing semicolon."
semi
|
| 23 |
) |
| Error |
Row 24, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 24, Column 2: "Missing semicolon."
semi
|
| 24 |
} |
| 25 |
|
| Error |
Row 26, Column 29: "Insert `;`"
prettier/prettier
|
| Warning |
Row 26, Column 29: "Missing semicolon."
semi
|
| 26 |
export default PopularStores |
| 27 |
|
| 28 |
const styles = StyleSheet.create({ |
| Error |
Row 29, Column 1: "Delete `··`"
prettier/prettier
|
| 29 |
store: { |
| Error |
Row 30, Column 1: "Delete `····`"
prettier/prettier
|
| 30 |
height: mvs(185), |
| Error |
Row 31, Column 5: "Delete `····`"
prettier/prettier
|
| 31 |
width: mvs(187), |
| Error |
Row 32, Column 1: "Delete `····`"
prettier/prettier
|
| 32 |
padding: mvs(10), |
| Error |
Row 33, Column 5: "Delete `····`"
prettier/prettier
|
| 33 |
borderWidth: 0.3, |
| Error |
Row 34, Column 1: "Delete `····`"
prettier/prettier
|
| 34 |
borderColor: '#707070', |
| Error |
Row 35, Column 5: "Replace `····borderRadius:·mvs(10)` with `borderRadius:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 35, Column 30: "Missing trailing comma."
comma-dangle
|
| 35 |
borderRadius: mvs(10) |
| Error |
Row 36, Column 1: "Delete `··`"
prettier/prettier
|
| 36 |
}, |
| Error |
Row 37, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 37 |
storeImage: { |
| Error |
Row 38, Column 1: "Delete `····`"
prettier/prettier
|
| 38 |
height: mvs(140), |
| Error |
Row 39, Column 1: "Delete `····`"
prettier/prettier
|
| 39 |
width: '100%', |
| Error |
Row 40, Column 5: "Replace `····borderRadius:·mvs(10)` with `borderRadius:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 40, Column 30: "Missing trailing comma."
comma-dangle
|
| 40 |
borderRadius: mvs(10) |
| Error |
Row 41, Column 1: "Delete `··`"
prettier/prettier
|
| 41 |
}, |
| Error |
Row 42, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 42 |
logo: { |
| Error |
Row 43, Column 1: "Delete `····`"
prettier/prettier
|
| 43 |
top: mvs(7), |
| Error |
Row 44, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 44 |
height: mvs(20), |
| Error |
Row 45, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 45 |
width: mvs(20), |
| Error |
Row 46, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 46 |
//borderWidth:1 |
| Error |
Row 47, Column 3: "Delete `··`"
prettier/prettier
|
| 47 |
}, |
| Error |
Row 48, Column 1: "Delete `··`"
prettier/prettier
|
| 48 |
storeName: { |
| Error |
Row 49, Column 1: "Delete `····`"
prettier/prettier
|
| 49 |
fontSize: mvs(10), |
| Error |
Row 50, Column 5: "Delete `····`"
prettier/prettier
|
| 50 |
color: colors.primary, |
| Error |
Row 51, Column 1: "Delete `····`"
prettier/prettier
|
| 51 |
position: 'absolute', |
| Error |
Row 52, Column 5: "Delete `····`"
prettier/prettier
|
| 52 |
bottom: mvs(10), |
| Error |
Row 53, Column 1: "Delete `····`"
prettier/prettier
|
| 53 |
right: mvs(10), |
| Error |
Row 54, Column 5: "Delete `····`"
prettier/prettier
|
| 54 |
//borderWidth:1 |
| Error |
Row 55, Column 3: "Replace `··}` with `},`"
prettier/prettier
|
| Warning |
Row 55, Column 6: "Missing trailing comma."
comma-dangle
|
| 55 |
} |
| Error |
Row 56, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 56, Column 3: "Missing semicolon."
semi
|
| 56 |
}) |
| 57 |
|
|
|
|
/src/components/molecules/product-info/index.js
|
130 problems (104 errors, 26 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 1, Column 26: "Missing semicolon."
semi
|
| Error |
Row 2, Column 9: "Replace `·Image,·StyleSheet,·Text,·View·}·from·'react-native'` with `Image,·StyleSheet,·Text,·View}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 2, Column 10: "'Image' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 29: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 61: "Missing semicolon."
semi
|
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·}·from·'../../../../resource/assets/image_resouce'` with `TAKE_TO_IMAGES}·from·'../../../../resource/assets/image_resouce';`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 4, Column 75: "Missing semicolon."
semi
|
| Error |
Row 5, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 5, Column 44: "Missing semicolon."
semi
|
| Error |
Row 6, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 6, Column 68: "Missing semicolon."
semi
|
| Error |
Row 7, Column 55: "Insert `;`"
prettier/prettier
|
| Warning |
Row 7, Column 55: "Missing semicolon."
semi
|
| Error |
Row 10, Column 23: "Replace `order_img,name,·total,·reward,·priceTitle="Total",·detailsContainer,·rewardTitle·=·"Reward",...props` with `⏎··order_img,⏎··name,⏎··total,⏎··reward,⏎··priceTitle·=·'Total',⏎··detailsContainer,⏎··rewardTitle·=·'Reward',⏎··...props⏎`"
prettier/prettier
|
| Warning |
Row 10, Column 64: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 10, Column 65: "Strings must use singlequote."
quotes
|
| Warning |
Row 10, Column 106: "Strings must use singlequote."
quotes
|
| Error |
Row 11, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 12, Column 1: "Replace `········prettier/prettier
|
| Error |
Row 13, Column 1: "Replace `············prettier/prettier
|
| Error |
Row 14, Column 1: "Replace `················prettier/prettier
|
| Error |
Row 15, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 16, Column 7: "Replace `······prettier/prettier
|
| Error |
Row 17, Column 9: "Replace `········prettier/prettier
|
| Error |
Row 18, Column 1: "Replace `··················prettier/prettier
|
| Error |
Row 19, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 20, Column 9: "Replace `········prettier/prettier
|
| Warning |
Row 20, Column 30: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 21, Column 1: "Replace `················prettier/prettier
|
| Error |
Row 22, Column 1: "Replace `····················` with `············`"
prettier/prettier
|
| Warning |
Row 22, Column 74: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 23, Column 1: "Replace `···················prettier/prettier
|
| Error |
Row 24, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 25, Column 11: "Replace `······prettier/prettier
|
| Error |
Row 26, Column 13: "Replace `········` with ``"
prettier/prettier
|
| Warning |
Row 26, Column 76: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 27, Column 1: "Replace `···················prettier/prettier
|
| Error |
Row 28, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 29, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 30, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 31, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 32, Column 3: "Replace `··)` with `);`"
prettier/prettier
|
| Warning |
Row 32, Column 6: "Missing semicolon."
semi
|
| Error |
Row 33, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 33, Column 2: "Missing semicolon."
semi
|
| Error |
Row 35, Column 27: "Insert `;`"
prettier/prettier
|
| Warning |
Row 35, Column 27: "Missing semicolon."
semi
|
| Error |
Row 38, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 39, Column 5: "Replace `····flex·` with `flex`"
prettier/prettier
|
| Error |
Row 40, Column 1: "Replace `········backgroundColor·` with `····backgroundColor`"
prettier/prettier
|
| Error |
Row 41, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 42, Column 1: "Replace `·······` with `····`"
prettier/prettier
|
| Error |
Row 43, Column 5: "Replace `····width·` with `width`"
prettier/prettier
|
| Error |
Row 44, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 45, Column 5: "Replace `····flexDirection·` with `flexDirection`"
prettier/prettier
|
| Error |
Row 46, Column 5: "Replace `····alignItems·` with `alignItems`"
prettier/prettier
|
| Error |
Row 47, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 48, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 49, Column 1: "Replace `········height·` with `····height`"
prettier/prettier
|
| Error |
Row 50, Column 1: "Replace `········width·` with `····width`"
prettier/prettier
|
| Error |
Row 51, Column 1: "Replace `········borderRadius·` with `····borderRadius`"
prettier/prettier
|
| Error |
Row 52, Column 5: "Replace `····borderWidth·` with `borderWidth`"
prettier/prettier
|
| Error |
Row 53, Column 1: "Replace `········borderColor·` with `····borderColor`"
prettier/prettier
|
| Error |
Row 54, Column 1: "Replace `········justifyContent·` with `····justifyContent`"
prettier/prettier
|
| Error |
Row 55, Column 1: "Replace `········alignItems·` with `····alignItems`"
prettier/prettier
|
| Error |
Row 56, Column 1: "Replace `········paddingVertical·:·mvs(14)` with `····paddingVertical:·mvs(14),`"
prettier/prettier
|
| Warning |
Row 56, Column 34: "Missing trailing comma."
comma-dangle
|
| Error |
Row 57, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 58, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 59, Column 1: "Replace `········height·` with `····height`"
prettier/prettier
|
| Error |
Row 60, Column 1: "Replace `········width·` with `····width`"
prettier/prettier
|
| Error |
Row 61, Column 5: "Replace `····borderRadius·:·mvs(10)` with `borderRadius:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 61, Column 31: "Missing trailing comma."
comma-dangle
|
| Error |
Row 62, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 63, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 64, Column 5: "Replace `····flex·` with `flex`"
prettier/prettier
|
| Error |
Row 65, Column 1: "Replace `········marginLeft·` with `····marginLeft`"
prettier/prettier
|
| Error |
Row 66, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 67, Column 5: "Replace `····height·` with `height`"
prettier/prettier
|
| Error |
Row 68, Column 1: "Replace `········justifyContent·` with `····justifyContent`"
prettier/prettier
|
| Error |
Row 69, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 70, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 71, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 72, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| Error |
Row 73, Column 1: "Replace `········color·` with `····color`"
prettier/prettier
|
| Error |
Row 74, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 75, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 76, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 77, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 78, Column 1: "Replace `········borderTopWidth·` with `····borderTopWidth`"
prettier/prettier
|
| Error |
Row 79, Column 1: "Replace `········borderBottomWidth·` with `····borderBottomWidth`"
prettier/prettier
|
| Error |
Row 80, Column 1: "Replace `········borderColor·` with `····borderColor`"
prettier/prettier
|
| Error |
Row 81, Column 5: "Replace `····paddingVertical·` with `paddingVertical`"
prettier/prettier
|
| Error |
Row 82, Column 1: "Replace `········justifyContent·` with `····justifyContent`"
prettier/prettier
|
| Error |
Row 83, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 84, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 85, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 86, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| Error |
Row 87, Column 1: "Replace `········color·:·colors.typeHeader` with `····color:·colors.typeHeader,`"
prettier/prettier
|
| Warning |
Row 87, Column 34: "Missing trailing comma."
comma-dangle
|
| Error |
Row 88, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 89, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 90, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| Error |
Row 91, Column 1: "Replace `········color·` with `····color`"
prettier/prettier
|
| Error |
Row 92, Column 5: "Replace `····position·` with `position`"
prettier/prettier
|
| Error |
Row 93, Column 5: "Replace `····right·:·mvs(0)` with `right:·mvs(0),`"
prettier/prettier
|
| Warning |
Row 93, Column 23: "Missing trailing comma."
comma-dangle
|
| Error |
Row 94, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 95, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 96, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 97, Column 1: "Replace `········marginTop·` with `····marginTop`"
prettier/prettier
|
| Error |
Row 98, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 99, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 100, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| Error |
Row 101, Column 1: "Replace `········color·:·colors.primary` with `····color:·colors.primary,`"
prettier/prettier
|
| Warning |
Row 101, Column 31: "Missing trailing comma."
comma-dangle
|
| Error |
Row 102, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 103, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 104, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| Error |
Row 105, Column 1: "Replace `········color·` with `····color`"
prettier/prettier
|
| Error |
Row 106, Column 5: "Replace `····position·` with `position`"
prettier/prettier
|
| Error |
Row 107, Column 1: "Replace `········right·:·mvs(0)` with `····right:·mvs(0),`"
prettier/prettier
|
| Warning |
Row 107, Column 23: "Missing trailing comma."
comma-dangle
|
| Error |
Row 108, Column 1: "Replace `····}` with `··},`"
prettier/prettier
|
| Warning |
Row 108, Column 6: "Missing trailing comma."
comma-dangle
|
| Error |
Row 109, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 109, Column 3: "Missing semicolon."
semi
|
| Line |
Source |
| Error |
Row 1, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 1, Column 26: "Missing semicolon."
semi
|
| 1 |
import React from 'react' |
| Error |
Row 2, Column 9: "Replace `·Image,·StyleSheet,·Text,·View·}·from·'react-native'` with `Image,·StyleSheet,·Text,·View}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 2, Column 10: "'Image' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 29: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 61: "Missing semicolon."
semi
|
| 2 |
import { Image, StyleSheet, Text, View } from 'react-native' |
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 3 |
import { mvs } from '../../../config/metrices'; |
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_IMAGES·}·from·'../../../../resource/assets/image_resouce'` with `TAKE_TO_IMAGES}·from·'../../../../resource/assets/image_resouce';`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 4, Column 75: "Missing semicolon."
semi
|
| 4 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce' |
| Error |
Row 5, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 5, Column 44: "Missing semicolon."
semi
|
| 5 |
import colors from '../../../config/colors' |
| Error |
Row 6, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 6, Column 68: "Missing semicolon."
semi
|
| 6 |
import Regular from '../../../presentation/typography/regular-text' |
| Error |
Row 7, Column 55: "Insert `;`"
prettier/prettier
|
| Warning |
Row 7, Column 55: "Missing semicolon."
semi
|
| 7 |
import ImagePlaceholder from '../../atoms/Placeholder' |
| 8 |
import Medium from '../../../presentation/typography/medium-text'; |
| 9 |
|
| Error |
Row 10, Column 23: "Replace `order_img,name,·total,·reward,·priceTitle="Total",·detailsContainer,·rewardTitle·=·"Reward",...props` with `⏎··order_img,⏎··name,⏎··total,⏎··reward,⏎··priceTitle·=·'Total',⏎··detailsContainer,⏎··rewardTitle·=·'Reward',⏎··...props⏎`"
prettier/prettier
|
| Warning |
Row 10, Column 64: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 10, Column 65: "Strings must use singlequote."
quotes
|
| Warning |
Row 10, Column 106: "Strings must use singlequote."
quotes
|
| 10 |
const ProductInfo = ({order_img,name, total, reward, priceTitle="Total", detailsContainer, rewardTitle = "Reward",...props}) => { |
| Error |
Row 11, Column 1: "Delete `··`"
prettier/prettier
|
| 11 |
return ( |
| Error |
Row 12, Column 1: "Replace `········prettier/prettier
|
| 12 |
<View style = {styles.mainContainer}> |
| Error |
Row 13, Column 1: "Replace `············prettier/prettier
|
| 13 |
<View style = {styles.imageContainer}> |
| Error |
Row 14, Column 1: "Replace `················prettier/prettier
|
| 14 |
<ImagePlaceholder bg_img={order_img} containerStyle={styles.image}/> |
| Error |
Row 15, Column 1: "Delete `······`"
prettier/prettier
|
| 15 |
</View> |
| Error |
Row 16, Column 7: "Replace `······prettier/prettier
|
| 16 |
<View style = {{...styles.detailsContainer, ...detailsContainer}}> |
| Error |
Row 17, Column 9: "Replace `········prettier/prettier
|
| 17 |
<View style={{ paddingVertical : mvs(12)}}> |
| Error |
Row 18, Column 1: "Replace `··················prettier/prettier
|
| 18 |
<Regular numberOfLines={2} label = {name} style = {styles.name}/> |
| Error |
Row 19, Column 1: "Delete `········`"
prettier/prettier
|
| 19 |
</View> |
| Error |
Row 20, Column 9: "Replace `········prettier/prettier
|
| Warning |
Row 20, Column 30: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 20 |
<View style={{flex:1}}> |
| Error |
Row 21, Column 1: "Replace `················prettier/prettier
|
| 21 |
<View style = {styles.totalContainer}> |
| Error |
Row 22, Column 1: "Replace `····················` with `············`"
prettier/prettier
|
| Warning |
Row 22, Column 74: "Trailing spaces not allowed."
no-trailing-spaces
|
| 22 |
<Regular label = {priceTitle} style = {styles.total}/> |
| Error |
Row 23, Column 1: "Replace `···················prettier/prettier
|
| 23 |
<Medium label = {total} style = {styles.totalValue}/> |
| Error |
Row 24, Column 1: "Delete `······`"
prettier/prettier
|
| 24 |
</View> |
| Error |
Row 25, Column 11: "Replace `······prettier/prettier
|
| 25 |
<View style = {styles.rewardContainer}> |
| Error |
Row 26, Column 13: "Replace `········` with ``"
prettier/prettier
|
| Warning |
Row 26, Column 76: "Trailing spaces not allowed."
no-trailing-spaces
|
| 26 |
<Regular label = {rewardTitle} style = {styles.reward}/> |
| Error |
Row 27, Column 1: "Replace `···················prettier/prettier
|
| 27 |
<Medium label = {reward} style = {styles.rewardValue}/> |
| Error |
Row 28, Column 1: "Delete `······`"
prettier/prettier
|
| 28 |
</View> |
| Error |
Row 29, Column 9: "Delete `········`"
prettier/prettier
|
| 29 |
</View> |
| Error |
Row 30, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 30 |
</View> |
| Error |
Row 31, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 31 |
</View> |
| Error |
Row 32, Column 3: "Replace `··)` with `);`"
prettier/prettier
|
| Warning |
Row 32, Column 6: "Missing semicolon."
semi
|
| 32 |
) |
| Error |
Row 33, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 33, Column 2: "Missing semicolon."
semi
|
| 33 |
} |
| 34 |
|
| Error |
Row 35, Column 27: "Insert `;`"
prettier/prettier
|
| Warning |
Row 35, Column 27: "Missing semicolon."
semi
|
| 35 |
export default ProductInfo |
| 36 |
|
| 37 |
const styles = StyleSheet.create({ |
| Error |
Row 38, Column 1: "Delete `··`"
prettier/prettier
|
| 38 |
mainContainer: { |
| Error |
Row 39, Column 5: "Replace `····flex·` with `flex`"
prettier/prettier
|
| 39 |
flex : 1, |
| Error |
Row 40, Column 1: "Replace `········backgroundColor·` with `····backgroundColor`"
prettier/prettier
|
| 40 |
backgroundColor : colors.white, |
| Error |
Row 41, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 41 |
//paddingHorizontal : mvs(22), |
| Error |
Row 42, Column 1: "Replace `·······` with `····`"
prettier/prettier
|
| 42 |
// height : mvs(125), |
| Error |
Row 43, Column 5: "Replace `····width·` with `width`"
prettier/prettier
|
| 43 |
width : '100%', |
| Error |
Row 44, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 44 |
//borderWidth:1, |
| Error |
Row 45, Column 5: "Replace `····flexDirection·` with `flexDirection`"
prettier/prettier
|
| 45 |
flexDirection : 'row', |
| Error |
Row 46, Column 5: "Replace `····alignItems·` with `alignItems`"
prettier/prettier
|
| 46 |
alignItems : 'center', |
| Error |
Row 47, Column 3: "Delete `··`"
prettier/prettier
|
| 47 |
}, |
| Error |
Row 48, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 48 |
imageContainer: { |
| Error |
Row 49, Column 1: "Replace `········height·` with `····height`"
prettier/prettier
|
| 49 |
height : '100%', |
| Error |
Row 50, Column 1: "Replace `········width·` with `····width`"
prettier/prettier
|
| 50 |
width : mvs(104), |
| Error |
Row 51, Column 1: "Replace `········borderRadius·` with `····borderRadius`"
prettier/prettier
|
| 51 |
borderRadius : mvs(10), |
| Error |
Row 52, Column 5: "Replace `····borderWidth·` with `borderWidth`"
prettier/prettier
|
| 52 |
borderWidth : 0.3, |
| Error |
Row 53, Column 1: "Replace `········borderColor·` with `····borderColor`"
prettier/prettier
|
| 53 |
borderColor : colors.price_border, |
| Error |
Row 54, Column 1: "Replace `········justifyContent·` with `····justifyContent`"
prettier/prettier
|
| 54 |
justifyContent : 'center', |
| Error |
Row 55, Column 1: "Replace `········alignItems·` with `····alignItems`"
prettier/prettier
|
| 55 |
alignItems : 'center', |
| Error |
Row 56, Column 1: "Replace `········paddingVertical·:·mvs(14)` with `····paddingVertical:·mvs(14),`"
prettier/prettier
|
| Warning |
Row 56, Column 34: "Missing trailing comma."
comma-dangle
|
| 56 |
paddingVertical : mvs(14) |
| Error |
Row 57, Column 1: "Delete `··`"
prettier/prettier
|
| 57 |
}, |
| Error |
Row 58, Column 3: "Delete `··`"
prettier/prettier
|
| 58 |
image: { |
| Error |
Row 59, Column 1: "Replace `········height·` with `····height`"
prettier/prettier
|
| 59 |
height : mvs(98), |
| Error |
Row 60, Column 1: "Replace `········width·` with `····width`"
prettier/prettier
|
| 60 |
width : mvs(75), |
| Error |
Row 61, Column 5: "Replace `····borderRadius·:·mvs(10)` with `borderRadius:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 61, Column 31: "Missing trailing comma."
comma-dangle
|
| 61 |
borderRadius : mvs(10) |
| Error |
Row 62, Column 1: "Delete `··`"
prettier/prettier
|
| 62 |
}, |
| Error |
Row 63, Column 3: "Delete `··`"
prettier/prettier
|
| 63 |
detailsContainer: { |
| Error |
Row 64, Column 5: "Replace `····flex·` with `flex`"
prettier/prettier
|
| 64 |
flex : 1, |
| Error |
Row 65, Column 1: "Replace `········marginLeft·` with `····marginLeft`"
prettier/prettier
|
| 65 |
marginLeft : mvs(9), |
| Error |
Row 66, Column 1: "Delete `····`"
prettier/prettier
|
| 66 |
//borderWidth : 1, |
| Error |
Row 67, Column 5: "Replace `····height·` with `height`"
prettier/prettier
|
| 67 |
height : '100%', |
| Error |
Row 68, Column 1: "Replace `········justifyContent·` with `····justifyContent`"
prettier/prettier
|
| 68 |
justifyContent : 'center', |
| Error |
Row 69, Column 1: "Delete `····`"
prettier/prettier
|
| 69 |
//backgroundColor:'lightblue' |
| Error |
Row 70, Column 1: "Delete `··`"
prettier/prettier
|
| 70 |
}, |
| Error |
Row 71, Column 3: "Delete `··`"
prettier/prettier
|
| 71 |
name: { |
| Error |
Row 72, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| 72 |
fontSize : mvs(18), |
| Error |
Row 73, Column 1: "Replace `········color·` with `····color`"
prettier/prettier
|
| 73 |
color : colors.typeHeader, |
| Error |
Row 74, Column 1: "Delete `····`"
prettier/prettier
|
| 74 |
//marginTop : mvs(10) |
| Error |
Row 75, Column 3: "Delete `··`"
prettier/prettier
|
| 75 |
}, |
| Error |
Row 76, Column 1: "Delete `··`"
prettier/prettier
|
| 76 |
totalContainer: { |
| Error |
Row 77, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 77 |
//marginTop : mvs(17), |
| Error |
Row 78, Column 1: "Replace `········borderTopWidth·` with `····borderTopWidth`"
prettier/prettier
|
| 78 |
borderTopWidth : 0.5, |
| Error |
Row 79, Column 1: "Replace `········borderBottomWidth·` with `····borderBottomWidth`"
prettier/prettier
|
| 79 |
borderBottomWidth : 0.5, |
| Error |
Row 80, Column 1: "Replace `········borderColor·` with `····borderColor`"
prettier/prettier
|
| 80 |
borderColor : '#BBC0C3', |
| Error |
Row 81, Column 5: "Replace `····paddingVertical·` with `paddingVertical`"
prettier/prettier
|
| 81 |
paddingVertical : mvs(7), |
| Error |
Row 82, Column 1: "Replace `········justifyContent·` with `····justifyContent`"
prettier/prettier
|
| 82 |
justifyContent : 'center', |
| Error |
Row 83, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 83 |
//backgroundColor:'red' |
| Error |
Row 84, Column 1: "Delete `··`"
prettier/prettier
|
| 84 |
}, |
| Error |
Row 85, Column 3: "Delete `··`"
prettier/prettier
|
| 85 |
total: { |
| Error |
Row 86, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| 86 |
fontSize : mvs(15), |
| Error |
Row 87, Column 1: "Replace `········color·:·colors.typeHeader` with `····color:·colors.typeHeader,`"
prettier/prettier
|
| Warning |
Row 87, Column 34: "Missing trailing comma."
comma-dangle
|
| 87 |
color : colors.typeHeader |
| Error |
Row 88, Column 1: "Delete `··`"
prettier/prettier
|
| 88 |
}, |
| Error |
Row 89, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 89 |
totalValue: { |
| Error |
Row 90, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| 90 |
fontSize : mvs(15), |
| Error |
Row 91, Column 1: "Replace `········color·` with `····color`"
prettier/prettier
|
| 91 |
color : colors.typeHeader, |
| Error |
Row 92, Column 5: "Replace `····position·` with `position`"
prettier/prettier
|
| 92 |
position : 'absolute', |
| Error |
Row 93, Column 5: "Replace `····right·:·mvs(0)` with `right:·mvs(0),`"
prettier/prettier
|
| Warning |
Row 93, Column 23: "Missing trailing comma."
comma-dangle
|
| 93 |
right : mvs(0) |
| Error |
Row 94, Column 1: "Delete `··`"
prettier/prettier
|
| 94 |
}, |
| Error |
Row 95, Column 3: "Delete `··`"
prettier/prettier
|
| 95 |
rewardContainer: { |
| Error |
Row 96, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 96 |
//borderWidth : 1, |
| Error |
Row 97, Column 1: "Replace `········marginTop·` with `····marginTop`"
prettier/prettier
|
| 97 |
marginTop : mvs(13), |
| Error |
Row 98, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 98 |
}, |
| Error |
Row 99, Column 1: "Delete `··`"
prettier/prettier
|
| 99 |
reward: { |
| Error |
Row 100, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| 100 |
fontSize : mvs(15), |
| Error |
Row 101, Column 1: "Replace `········color·:·colors.primary` with `····color:·colors.primary,`"
prettier/prettier
|
| Warning |
Row 101, Column 31: "Missing trailing comma."
comma-dangle
|
| 101 |
color : colors.primary |
| Error |
Row 102, Column 1: "Delete `··`"
prettier/prettier
|
| 102 |
}, |
| Error |
Row 103, Column 3: "Delete `··`"
prettier/prettier
|
| 103 |
rewardValue: { |
| Error |
Row 104, Column 1: "Replace `········fontSize·` with `····fontSize`"
prettier/prettier
|
| 104 |
fontSize : mvs(18), |
| Error |
Row 105, Column 1: "Replace `········color·` with `····color`"
prettier/prettier
|
| 105 |
color : colors.primary, |
| Error |
Row 106, Column 5: "Replace `····position·` with `position`"
prettier/prettier
|
| 106 |
position : 'absolute', |
| Error |
Row 107, Column 1: "Replace `········right·:·mvs(0)` with `····right:·mvs(0),`"
prettier/prettier
|
| Warning |
Row 107, Column 23: "Missing trailing comma."
comma-dangle
|
| 107 |
right : mvs(0) |
| Error |
Row 108, Column 1: "Replace `····}` with `··},`"
prettier/prettier
|
| Warning |
Row 108, Column 6: "Missing trailing comma."
comma-dangle
|
| 108 |
} |
| Error |
Row 109, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 109, Column 3: "Missing semicolon."
semi
|
| 109 |
}) |
| 110 |
|
|
|
|
/src/components/molecules/profile/public-rating.js
|
17 problems (11 errors, 6 warnings)
|
| Severity |
Rule |
| Warning |
Row 5, Column 3: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 7, Column 3: "'TouchableOpacity' is defined but never used."
no-unused-vars
|
| Warning |
Row 8, Column 3: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 11, Column 9: "Replace `·GrayStar,·YellowStar·` with `GrayStar,·YellowStar`"
prettier/prettier
|
| Error |
Row 15, Column 24: "Replace `·rate_by_profile_picture,·rate·=·0,·name·=·'',·feedback·=·'',·rate_created_at·` with `⏎··rate_by_profile_picture,⏎··rate·=·0,⏎··name·=·'',⏎··feedback·=·'',⏎··rate_created_at,⏎`"
prettier/prettier
|
| Error |
Row 20, Column 26: "Replace `·bg_img={rate_by_profile_picture}·containerStyle={{·width:·'100%',·height:·'100%'·}}` with `⏎··········bg_img={rate_by_profile_picture}⏎··········containerStyle={{width:·'100%',·height:·'100%'}}⏎·······`"
prettier/prettier
|
| Warning |
Row 20, Column 76: "Inline style: { width: '100%', height: '100%' }"
react-native/no-inline-styles
|
| Warning |
Row 22, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 22, Column 21: "Replace `·flex:·1,·marginLeft:·mvs(15)·` with `flex:·1,·marginLeft:·mvs(15)`"
prettier/prettier
|
| Error |
Row 26, Column 21: "Replace `·fontSize:·mvs(10),·color:·colors.primary·` with `fontSize:·mvs(10),·color:·colors.primary`"
prettier/prettier
|
| Error |
Row 28, Column 19: "Replace `·label={moment(rate_created_at).format('YYYY-MM-DD·hh:mm·A')}·style={{·fontSize:·mvs(10),·color:·colors.primary·}}` with `⏎············label={moment(rate_created_at).format('YYYY-MM-DD·hh:mm·A')}⏎············style={{fontSize:·mvs(10),·color:·colors.primary}}⏎·········`"
prettier/prettier
|
| Error |
Row 30, Column 14: "Replace `·style={{·...styles.ROW,·justifyContent:·'flex-start',·marginTop:·mvs(5.8)` with `⏎··········style={{⏎············...styles.ROW,⏎············justifyContent:·'flex-start',⏎············marginTop:·mvs(5.8),⏎·········`"
prettier/prettier
|
| Warning |
Row 30, Column 22: "Inline style: { justifyContent: 'flex-start' }"
react-native/no-inline-styles
|
| Error |
Row 32, Column 39: "Replace `·marginRight:·mvs(5)·` with `marginRight:·mvs(5)`"
prettier/prettier
|
| Error |
Row 33, Column 31: "Replace `·:·` with `(⏎················⏎··············)·:·(⏎················⏎··············)`"
prettier/prettier
|
| Error |
Row 37, Column 17: "Replace `·style={{·marginTop:·mvs(11.5),·fontSize:·mvs(10),·color:·colors.typeHeader·}}·label={feedback}` with `⏎··········style={{⏎············marginTop:·mvs(11.5),⏎············fontSize:·mvs(10),⏎············color:·colors.typeHeader,⏎··········}}⏎··········label={feedback}⏎·······`"
prettier/prettier
|
| Line |
Source |
| 1 |
import moment from 'moment'; |
| 2 |
import React from 'react'; |
| 3 |
import { |
| 4 |
View, |
| Warning |
Row 5, Column 3: "'Text' is defined but never used."
no-unused-vars
|
| 5 |
Text, |
| 6 |
StyleSheet, |
| Warning |
Row 7, Column 3: "'TouchableOpacity' is defined but never used."
no-unused-vars
|
| 7 |
TouchableOpacity, |
| Warning |
Row 8, Column 3: "'ImageBackground' is defined but never used."
no-unused-vars
|
| 8 |
ImageBackground, |
| 9 |
} from 'react-native'; |
| Error |
Row 10, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 10 |
import { mvs } from '../../../config/metrices'; |
| Error |
Row 11, Column 9: "Replace `·GrayStar,·YellowStar·` with `GrayStar,·YellowStar`"
prettier/prettier
|
| 11 |
import { GrayStar, YellowStar } from '../../../../resource/assets/profile'; |
| 12 |
import colors from '../../../config/colors'; |
| 13 |
import Regular from '../../../presentation/typography/regular-text'; |
| 14 |
import ImagePlaceholder from '../../atoms/Placeholder'; |
| Error |
Row 15, Column 24: "Replace `·rate_by_profile_picture,·rate·=·0,·name·=·'',·feedback·=·'',·rate_created_at·` with `⏎··rate_by_profile_picture,⏎··rate·=·0,⏎··name·=·'',⏎··feedback·=·'',⏎··rate_created_at,⏎`"
prettier/prettier
|
| 15 |
const PublicRating = ({ rate_by_profile_picture, rate = 0, name = '', feedback = '', rate_created_at }) => { |
| 16 |
return ( |
| 17 |
<View style={styles.CONTAINER}> |
| 18 |
<View style={styles.BACK_IMAGE}> |
| 19 |
{/* <View style={{width: '100%', height: '100%'}} /> */} |
| Error |
Row 20, Column 26: "Replace `·bg_img={rate_by_profile_picture}·containerStyle={{·width:·'100%',·height:·'100%'·}}` with `⏎··········bg_img={rate_by_profile_picture}⏎··········containerStyle={{width:·'100%',·height:·'100%'}}⏎·······`"
prettier/prettier
|
| Warning |
Row 20, Column 76: "Inline style: { width: '100%', height: '100%' }"
react-native/no-inline-styles
|
| 20 |
<ImagePlaceholder bg_img={rate_by_profile_picture} containerStyle={{ width: '100%', height: '100%' }} /> |
| 21 |
</View> |
| Warning |
Row 22, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 22, Column 21: "Replace `·flex:·1,·marginLeft:·mvs(15)·` with `flex:·1,·marginLeft:·mvs(15)`"
prettier/prettier
|
| 22 |
<View style={{ flex: 1, marginLeft: mvs(15) }}> |
| 23 |
<View style={styles.ROW}> |
| 24 |
<Regular |
| 25 |
label={name} |
| Error |
Row 26, Column 21: "Replace `·fontSize:·mvs(10),·color:·colors.primary·` with `fontSize:·mvs(10),·color:·colors.primary`"
prettier/prettier
|
| 26 |
style={{ fontSize: mvs(10), color: colors.primary }} |
| 27 |
/> |
| Error |
Row 28, Column 19: "Replace `·label={moment(rate_created_at).format('YYYY-MM-DD·hh:mm·A')}·style={{·fontSize:·mvs(10),·color:·colors.primary·}}` with `⏎············label={moment(rate_created_at).format('YYYY-MM-DD·hh:mm·A')}⏎············style={{fontSize:·mvs(10),·color:·colors.primary}}⏎·········`"
prettier/prettier
|
| 28 |
<Regular label={moment(rate_created_at).format('YYYY-MM-DD hh:mm A')} style={{ fontSize: mvs(10), color: colors.primary }} /> |
| 29 |
</View> |
| Error |
Row 30, Column 14: "Replace `·style={{·...styles.ROW,·justifyContent:·'flex-start',·marginTop:·mvs(5.8)` with `⏎··········style={{⏎············...styles.ROW,⏎············justifyContent:·'flex-start',⏎············marginTop:·mvs(5.8),⏎·········`"
prettier/prettier
|
| Warning |
Row 30, Column 22: "Inline style: { justifyContent: 'flex-start' }"
react-native/no-inline-styles
|
| 30 |
<View style={{ ...styles.ROW, justifyContent: 'flex-start', marginTop: mvs(5.8) }}> |
| 31 |
{[0, 1, 2, 3, 4].map((star, index) => ( |
| Error |
Row 32, Column 39: "Replace `·marginRight:·mvs(5)·` with `marginRight:·mvs(5)`"
prettier/prettier
|
| 32 |
<View key={index} style={{ marginRight: mvs(5) }}> |
| Error |
Row 33, Column 31: "Replace `·:·` with `(⏎················⏎··············)·:·(⏎················⏎··············)`"
prettier/prettier
|
| 33 |
{index < rate ? <YellowStar height={mvs(14)} width={mvs(14)} /> : <GrayStar height={mvs(14)} width={mvs(14)} />} |
| 34 |
</View> |
| 35 |
))} |
| 36 |
</View> |
| Error |
Row 37, Column 17: "Replace `·style={{·marginTop:·mvs(11.5),·fontSize:·mvs(10),·color:·colors.typeHeader·}}·label={feedback}` with `⏎··········style={{⏎············marginTop:·mvs(11.5),⏎············fontSize:·mvs(10),⏎············color:·colors.typeHeader,⏎··········}}⏎··········label={feedback}⏎·······`"
prettier/prettier
|
| 37 |
<Regular style={{ marginTop: mvs(11.5), fontSize: mvs(10), color: colors.typeHeader }} label={feedback} /> |
| 38 |
</View> |
| 39 |
</View> |
| 40 |
); |
| 41 |
}; |
| 42 |
export default PublicRating; |
| 43 |
const styles = StyleSheet.create({ |
| 44 |
CONTAINER: { |
| 45 |
flex: 1, |
| 46 |
flexDirection: 'row', |
| 47 |
justifyContent: 'space-between', |
| 48 |
marginBottom: mvs(5), |
| 49 |
padding: mvs(13), |
| 50 |
backgroundColor: colors.secondary, |
| 51 |
borderTopEndRadius: mvs(10), |
| 52 |
borderTopStartRadius: mvs(20), |
| 53 |
borderBottomEndRadius: mvs(20), |
| 54 |
borderBottomStartRadius: mvs(10), |
| 55 |
}, |
| 56 |
LABEL: { |
| 57 |
fontSize: mvs(13), |
| 58 |
}, |
| 59 |
BACK_IMAGE: { |
| 60 |
backgroundColor: colors.black, |
| 61 |
height: mvs(65), |
| 62 |
width: mvs(65), |
| 63 |
borderRadius: mvs(20), |
| 64 |
overflow: 'hidden', |
| 65 |
}, |
| 66 |
ROW: { |
| 67 |
justifyContent: 'space-between', |
| 68 |
flexDirection: 'row', |
| 69 |
alignItems: 'center', |
| 70 |
}, |
| 71 |
}); |
| 72 |
|
|
|
|
/src/components/molecules/profile/user-info.js
|
28 problems (17 errors, 11 warnings)
|
| Severity |
Rule |
| Warning |
Row 1, Column 8: "'moment' is defined but never used."
no-unused-vars
|
| Warning |
Row 3, Column 15: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 3, Column 33: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Error |
Row 6, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 10, Column 18: "Replace `(props)` with `props`"
prettier/prettier
|
| Error |
Row 11, Column 25: "Replace `=` with `·=·`"
prettier/prettier
|
| Warning |
Row 11, Column 25: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 12, Column 20: "Replace `=(publicUserInfo?.is_email_verified·||·publicUserInfo?.is_mob_verified)?true:` with `·=⏎····publicUserInfo?.is_email_verified·||·publicUserInfo?.is_mob_verified⏎······?·true⏎······:·`"
prettier/prettier
|
| Warning |
Row 12, Column 20: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 12, Column 91: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 14, Column 33: "Replace `paddingHorizontal:` with `·paddingHorizontal:·`"
prettier/prettier
|
| Error |
Row 15, Column 24: "Replace `·resizeMode='contain'·bg_img={publicUserInfo?.profile_picture}·containerStyle={styles.IMG_CONTAINER}` with `⏎········resizeMode="contain"⏎········bg_img={publicUserInfo?.profile_picture}⏎········containerStyle={styles.IMG_CONTAINER}⏎·····`"
prettier/prettier
|
| Warning |
Row 15, Column 36: "Unexpected usage of singlequote."
jsx-quotes
|
| Error |
Row 20, Column 13: "Replace `··prettier/prettier
|
| Error |
Row 21, Column 1: "Replace `··············prettier/prettier
|
| Error |
Row 24, Column 17: "Replace `·label={`Member·since·${publicUserInfo?.member_since}`}·style={{...styles.JOIN}}` with `⏎··········label={`Member·since·${publicUserInfo?.member_since}`}⏎··········style={{...styles.JOIN}}⏎·······`"
prettier/prettier
|
| Warning |
Row 26, Column 18: "Inline style: { justifyContent: 'flex-start' }"
react-native/no-inline-styles
|
| Error |
Row 31, Column 18: "Replace `·label={is_verified?'Verified·User':'Un-Verified·User'}·style={styles.VERIFIED}` with `⏎············label={is_verified·?·'Verified·User'·:·'Un-Verified·User'}⏎············style={styles.VERIFIED}⏎·········`"
prettier/prettier
|
| Warning |
Row 31, Column 37: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 32, Column 23: "Replace `&&` with `·&&·`"
prettier/prettier
|
| Warning |
Row 32, Column 23: "Operator '&&' must be spaced."
space-infix-ops
|
| Error |
Row 35, Column 19: "Replace `·label={'Successful·Deliveries'}·style={{...styles.SUCCESSFUL}}` with `⏎············label={'Successful·Deliveries'}⏎············style={{...styles.SUCCESSFUL}}⏎·········`"
prettier/prettier
|
| Error |
Row 36, Column 19: "Replace `·label={publicUserInfo?.successful_deliveries}·style={{...styles.VAULE}}` with `⏎············label={publicUserInfo?.successful_deliveries}⏎············style={{...styles.VAULE}}⏎·········`"
prettier/prettier
|
| Warning |
Row 39, Column 18: "Inline style: { marginTop: 0 }"
react-native/no-inline-styles
|
| Error |
Row 45, Column 19: "Replace `·label={'Unsuccessful·Deliveries'}·style={{...styles.SUCCESSFUL,color:colors.pink}}` with `⏎············label={'Unsuccessful·Deliveries'}⏎············style={{...styles.SUCCESSFUL,·color:·colors.pink}}⏎·········`"
prettier/prettier
|
| Error |
Row 46, Column 19: "Replace `·label={publicUserInfo?.unsuccessful_deliveries}·style={{...styles.VAULE,color:colors.pink}}` with `⏎············label={publicUserInfo?.unsuccessful_deliveries}⏎············style={{...styles.VAULE,·color:·colors.pink}}⏎·········`"
prettier/prettier
|
| Error |
Row 77, Column 11: "Insert `·`"
prettier/prettier
|
| Error |
Row 93, Column 27: "Delete `⏎`"
prettier/prettier
|
| Line |
Source |
| Warning |
Row 1, Column 8: "'moment' is defined but never used."
no-unused-vars
|
| 1 |
import moment from 'moment'; |
| 2 |
import React from 'react'; |
| Warning |
Row 3, Column 15: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 3, Column 33: "'ImageBackground' is defined but never used."
no-unused-vars
|
| 3 |
import {View, Text, StyleSheet, ImageBackground} from 'react-native'; |
| 4 |
import {BlueStar, StarTick} from '../../../../resource/assets/profile'; |
| 5 |
import colors from '../../../config/colors'; |
| Error |
Row 6, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 6 |
import { mvs } from '../../../config/metrices'; |
| 7 |
import Medium from '../../../presentation/typography/medium-text'; |
| 8 |
import Regular from '../../../presentation/typography/regular-text'; |
| 9 |
import ImagePlaceholder from '../../atoms/Placeholder'; |
| Error |
Row 10, Column 18: "Replace `(props)` with `props`"
prettier/prettier
|
| 10 |
const UserInfo = (props) => { |
| Error |
Row 11, Column 25: "Replace `=` with `·=·`"
prettier/prettier
|
| Warning |
Row 11, Column 25: "Operator '=' must be spaced."
space-infix-ops
|
| 11 |
const {publicUserInfo}=props; |
| Error |
Row 12, Column 20: "Replace `=(publicUserInfo?.is_email_verified·||·publicUserInfo?.is_mob_verified)?true:` with `·=⏎····publicUserInfo?.is_email_verified·||·publicUserInfo?.is_mob_verified⏎······?·true⏎······:·`"
prettier/prettier
|
| Warning |
Row 12, Column 20: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 12, Column 91: "Operator '?' must be spaced."
space-infix-ops
|
| 12 |
const is_verified=(publicUserInfo?.is_email_verified || publicUserInfo?.is_mob_verified)?true:false; |
| 13 |
return ( |
| Error |
Row 14, Column 33: "Replace `paddingHorizontal:` with `·paddingHorizontal:·`"
prettier/prettier
|
| 14 |
<View style={{...styles.ROW,paddingHorizontal:mvs(22)}}> |
| Error |
Row 15, Column 24: "Replace `·resizeMode='contain'·bg_img={publicUserInfo?.profile_picture}·containerStyle={styles.IMG_CONTAINER}` with `⏎········resizeMode="contain"⏎········bg_img={publicUserInfo?.profile_picture}⏎········containerStyle={styles.IMG_CONTAINER}⏎·····`"
prettier/prettier
|
| Warning |
Row 15, Column 36: "Unexpected usage of singlequote."
jsx-quotes
|
| 15 |
<ImagePlaceholder resizeMode='contain' bg_img={publicUserInfo?.profile_picture} containerStyle={styles.IMG_CONTAINER} /> |
| 16 |
<View style={styles.INFO_CONTAINER}> |
| 17 |
<View style={{...styles.ROW}}> |
| 18 |
<Regular label={publicUserInfo?.user_name} style={{...styles.NAME}} /> |
| 19 |
<View style={styles.ROW}> |
| Error |
Row 20, Column 13: "Replace `··prettier/prettier
|
| 20 |
<BlueStar height={mvs(19)} width={mvs(19)}/> |
| Error |
Row 21, Column 1: "Replace `··············prettier/prettier
|
| 21 |
<Medium label={publicUserInfo?.rating} style={{marginLeft:mvs(4),color:colors.typeHeader}}/> |
| 22 |
</View> |
| 23 |
</View> |
| Error |
Row 24, Column 17: "Replace `·label={`Member·since·${publicUserInfo?.member_since}`}·style={{...styles.JOIN}}` with `⏎··········label={`Member·since·${publicUserInfo?.member_since}`}⏎··········style={{...styles.JOIN}}⏎·······`"
prettier/prettier
|
| 24 |
<Regular label={`Member since ${publicUserInfo?.member_since}`} style={{...styles.JOIN}} /> |
| 25 |
<View |
| Warning |
Row 26, Column 18: "Inline style: { justifyContent: 'flex-start' }"
react-native/no-inline-styles
|
| 26 |
style={{ |
| 27 |
...styles.ROW, |
| 28 |
marginTop: mvs(6), |
| 29 |
justifyContent: 'flex-start', |
| 30 |
}}> |
| Error |
Row 31, Column 18: "Replace `·label={is_verified?'Verified·User':'Un-Verified·User'}·style={styles.VERIFIED}` with `⏎············label={is_verified·?·'Verified·User'·:·'Un-Verified·User'}⏎············style={styles.VERIFIED}⏎·········`"
prettier/prettier
|
| Warning |
Row 31, Column 37: "Operator '?' must be spaced."
space-infix-ops
|
| 31 |
<Medium label={is_verified?'Verified User':'Un-Verified User'} style={styles.VERIFIED} /> |
| Error |
Row 32, Column 23: "Replace `&&` with `·&&·`"
prettier/prettier
|
| Warning |
Row 32, Column 23: "Operator '&&' must be spaced."
space-infix-ops
|
| 32 |
{is_verified&&<StarTick height={mvs(15)} width={mvs(15)} />} |
| 33 |
</View> |
| 34 |
<View style={{...styles.ROW, ...styles.SUCCESSFUL_CONTAINER}}> |
| Error |
Row 35, Column 19: "Replace `·label={'Successful·Deliveries'}·style={{...styles.SUCCESSFUL}}` with `⏎············label={'Successful·Deliveries'}⏎············style={{...styles.SUCCESSFUL}}⏎·········`"
prettier/prettier
|
| 35 |
<Regular label={'Successful Deliveries'} style={{...styles.SUCCESSFUL}} /> |
| Error |
Row 36, Column 19: "Replace `·label={publicUserInfo?.successful_deliveries}·style={{...styles.VAULE}}` with `⏎············label={publicUserInfo?.successful_deliveries}⏎············style={{...styles.VAULE}}⏎·········`"
prettier/prettier
|
| 36 |
<Regular label={publicUserInfo?.successful_deliveries} style={{...styles.VAULE}} /> |
| 37 |
</View> |
| 38 |
<View |
| Warning |
Row 39, Column 18: "Inline style: { marginTop: 0 }"
react-native/no-inline-styles
|
| 39 |
style={{ |
| 40 |
...styles.ROW, |
| 41 |
...styles.SUCCESSFUL_CONTAINER, |
| 42 |
marginTop: 0, |
| 43 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 44 |
}}> |
| Error |
Row 45, Column 19: "Replace `·label={'Unsuccessful·Deliveries'}·style={{...styles.SUCCESSFUL,color:colors.pink}}` with `⏎············label={'Unsuccessful·Deliveries'}⏎············style={{...styles.SUCCESSFUL,·color:·colors.pink}}⏎·········`"
prettier/prettier
|
| 45 |
<Regular label={'Unsuccessful Deliveries'} style={{...styles.SUCCESSFUL,color:colors.pink}} /> |
| Error |
Row 46, Column 19: "Replace `·label={publicUserInfo?.unsuccessful_deliveries}·style={{...styles.VAULE,color:colors.pink}}` with `⏎············label={publicUserInfo?.unsuccessful_deliveries}⏎············style={{...styles.VAULE,·color:·colors.pink}}⏎·········`"
prettier/prettier
|
| 46 |
<Regular label={publicUserInfo?.unsuccessful_deliveries} style={{...styles.VAULE,color:colors.pink}} /> |
| 47 |
</View> |
| 48 |
</View> |
| 49 |
</View> |
| 50 |
); |
| 51 |
}; |
| 52 |
export default UserInfo; |
| 53 |
const styles = StyleSheet.create({ |
| 54 |
ROW: { |
| 55 |
justifyContent: 'space-between', |
| 56 |
flexDirection: 'row', |
| 57 |
alignItems: 'center', |
| 58 |
}, |
| 59 |
IMG_CONTAINER: { |
| 60 |
width: mvs(104), |
| 61 |
height: mvs(150), |
| 62 |
borderRadius: mvs(8), |
| 63 |
overflow: 'hidden', |
| 64 |
}, |
| 65 |
NAME: { |
| 66 |
fontSize: mvs(18), |
| 67 |
color: colors.primary, |
| 68 |
}, |
| 69 |
INFO_CONTAINER: { |
| 70 |
paddingTop: mvs(23), |
| 71 |
flex: 1, |
| 72 |
height: '100%', |
| 73 |
paddingHorizontal: mvs(9), |
| 74 |
}, |
| 75 |
JOIN: { |
| 76 |
fontSize: 12, |
| Error |
Row 77, Column 11: "Insert `·`"
prettier/prettier
|
| 77 |
color:colors.typeHeader, |
| 78 |
paddingTop: mvs(3), |
| 79 |
}, |
| 80 |
VERIFIED: { |
| 81 |
fontSize: mvs(10), |
| 82 |
marginRight: mvs(8), |
| 83 |
color: colors.primary, |
| 84 |
}, |
| 85 |
SUCCESSFUL_CONTAINER: { |
| 86 |
borderColor: colors.price_border, |
| 87 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 88 |
marginTop: mvs(10), |
| 89 |
paddingVertical: mvs(3), |
| 90 |
}, |
| 91 |
SUCCESSFUL: { |
| 92 |
fontSize: mvs(15), |
| Error |
Row 93, Column 27: "Delete `⏎`"
prettier/prettier
|
| 93 |
color: colors.primary, |
| 94 |
|
| 95 |
}, |
| 96 |
VAULE: { |
| 97 |
fontSize: mvs(15), |
| 98 |
color: colors.primary, |
| 99 |
}, |
| 100 |
}); |
| 101 |
|
|
|
|
/src/components/molecules/profile/user-rating.js
|
16 problems (9 errors, 7 warnings)
|
| Severity |
Rule |
| Warning |
Row 2, Column 15: "'Text' is defined but never used."
no-unused-vars
|
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 7, Column 26: "Replace `=3,label='Communication',onPress,` with `·=·3,·label·=·'Communication',·onPress,·`"
prettier/prettier
|
| Warning |
Row 7, Column 26: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 7, Column 34: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 11, Column 20: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 11, Column 35: "Insert `·`"
prettier/prettier
|
| Error |
Row 12, Column 4: "Replace `···{⏎········[0,1,2,3,4].map((star,index)=>(onPress(index+1)}·key={index}·style={{marginRight:` with `·····{[0,·1,·2,·3,·4].map((star,·index)·=>·(⏎···········onPress(index·+·1)}⏎············key={index}⏎············style={{marginRight:·`"
prettier/prettier
|
| Warning |
Row 13, Column 104: "Operator '+' must be spaced."
space-infix-ops
|
| Error |
Row 14, Column 9: "Replace `{index:⏎·········` with `····{index·<·fill·?··:`"
prettier/prettier
|
| Warning |
Row 14, Column 15: "Operator '<' must be spaced."
space-infix-ops
|
| Warning |
Row 14, Column 20: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 16, Column 1: "Replace `········))` with `··········`"
prettier/prettier
|
| Error |
Row 17, Column 7: "Insert `··))`"
prettier/prettier
|
| Error |
Row 28, Column 18: "Insert `·`"
prettier/prettier
|
| Error |
Row 32, Column 11: "Insert `·`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Warning |
Row 2, Column 15: "'Text' is defined but never used."
no-unused-vars
|
| 2 |
import {View, Text, StyleSheet, TouchableOpacity} from 'react-native'; |
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 3 |
import { mvs } from '../../../config/metrices'; |
| 4 |
import {GrayStar, YellowStar} from '../../../../resource/assets/profile'; |
| 5 |
import Regular from '../../../presentation/typography/regular-text'; |
| 6 |
import colors from '../../../config/colors'; |
| Error |
Row 7, Column 26: "Replace `=3,label='Communication',onPress,` with `·=·3,·label·=·'Communication',·onPress,·`"
prettier/prettier
|
| Warning |
Row 7, Column 26: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 7, Column 34: "Operator '=' must be spaced."
space-infix-ops
|
| 7 |
const UserRating = ({fill=3,label='Communication',onPress,disabled}) => { |
| 8 |
return ( |
| 9 |
<View style={styles.CONTAINER}> |
| 10 |
<Regular label={label} style={styles.LABEL} /> |
| Warning |
Row 11, Column 20: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 11, Column 35: "Insert `·`"
prettier/prettier
|
| 11 |
<View style={{flexDirection:'row'}}> |
| Error |
Row 12, Column 4: "Replace `···{⏎········[0,1,2,3,4].map((star,index)=>(onPress(index+1)}·key={index}·style={{marginRight:` with `·····{[0,·1,·2,·3,·4].map((star,·index)·=>·(⏎···········onPress(index·+·1)}⏎············key={index}⏎············style={{marginRight:·`"
prettier/prettier
|
| 12 |
{ |
| Warning |
Row 13, Column 104: "Operator '+' must be spaced."
space-infix-ops
|
| 13 |
[0,1,2,3,4].map((star,index)=>(<TouchableOpacity disabled={disabled} onPress={()=>onPress(index+1)} key={index} style={{marginRight:mvs(3)}}> |
| Error |
Row 14, Column 9: "Replace `{index:⏎·········` with `····{index·<·fill·?··:`"
prettier/prettier
|
| Warning |
Row 14, Column 15: "Operator '<' must be spaced."
space-infix-ops
|
| Warning |
Row 14, Column 20: "Operator '?' must be spaced."
space-infix-ops
|
| 14 |
{index<fill? <YellowStar />: |
| 15 |
<GrayStar />} |
| Error |
Row 16, Column 1: "Replace `········))` with `··········`"
prettier/prettier
|
| 16 |
</TouchableOpacity>)) |
| Error |
Row 17, Column 7: "Insert `··))`"
prettier/prettier
|
| 17 |
} |
| 18 |
</View> |
| 19 |
</View> |
| 20 |
); |
| 21 |
}; |
| 22 |
export default UserRating; |
| 23 |
const styles = StyleSheet.create({ |
| 24 |
CONTAINER: { |
| 25 |
flex: 1, |
| 26 |
flexDirection: 'row', |
| 27 |
justifyContent: 'space-between', |
| Error |
Row 28, Column 18: "Insert `·`"
prettier/prettier
|
| 28 |
marginBottom:mvs(10), |
| 29 |
}, |
| 30 |
LABEL: { |
| 31 |
fontSize: mvs(13), |
| Error |
Row 32, Column 11: "Insert `·`"
prettier/prettier
|
| 32 |
color:colors.typeHeader, |
| 33 |
}, |
| 34 |
}); |
| 35 |
|
|
|
|
/src/components/molecules/setting_card/approved-setting-card.js
|
6 problems (3 errors, 3 warnings)
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Warning |
Row 2, Column 21: "'Text' is defined but never used."
no-unused-vars
|
| 2 |
import {StyleSheet, Text, View} from 'react-native'; |
| 3 |
|
| 4 |
import colors from '../../../config/colors'; |
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 5 |
import { mvs } from '../../../config/metrices'; |
| 6 |
import Regular from '../../../presentation/typography/regular-text'; |
| 7 |
import CustomSwitch from '../../atoms/Switch'; |
| 8 |
import DualText from '../dual-text/dual-text'; |
| 9 |
import SettingCard from './setting-card'; |
| 10 |
|
| 11 |
const ApprovedSettingCard = ({heading, type, ...props}) => { |
| 12 |
const [payload, setPayload] = React.useState({ |
| 13 |
isPromotionEmail: true, |
| 14 |
isOrderEmail: true, |
| 15 |
isSms: false, |
| 16 |
}); |
| 17 |
return ( |
| Warning |
Row 18, Column 18: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 18, Column 25: "Replace `'100%',` with `·'100%'`"
prettier/prettier
|
| Warning |
Row 18, Column 31: "Unexpected trailing comma."
comma-dangle
|
| 18 |
<View style={{width:'100%',}}> |
| 19 |
<Regular label="Logo" style={styles.logo} /> |
| 20 |
|
| 21 |
<View style={styles.statusContainer}> |
| 22 |
<Regular label={heading} style={styles.status} /> |
| 23 |
</View> |
| 24 |
{props.children} |
| 25 |
|
| 26 |
<SettingCard heading={'Make sure your notifications are on'} style={{}}> |
| 27 |
<DualText |
| 28 |
// onPress={()=>alert('sdsd')} |
| 29 |
content={'You will be notified when you start receiving Offers'} |
| 30 |
// highlightText={'Taketo.'} |
| 31 |
/> |
| 32 |
<CustomSwitch |
| 33 |
value={payload.isOrderEmail} |
| 34 |
label={'Email'} |
| 35 |
onChange={v => setPayload({...payload, isOrderEmail: v})} |
| 36 |
/> |
| 37 |
<CustomSwitch |
| 38 |
style={{marginTop: mvs(28)}} |
| 39 |
value={payload.isSms} |
| 40 |
label={'SMS'} |
| 41 |
onChange={v => setPayload({...payload, isSms: v})} |
| 42 |
/> |
| 43 |
</SettingCard> |
| 44 |
</View> |
| 45 |
); |
| 46 |
}; |
| 47 |
|
| 48 |
export default ApprovedSettingCard; |
| 49 |
|
| 50 |
const styles = StyleSheet.create({ |
| 51 |
mainContainer: { |
| 52 |
flex: 1, |
| 53 |
backgroundColor: colors.white, |
| 54 |
}, |
| 55 |
container: { |
| 56 |
flex: 1, |
| 57 |
paddingHorizontal: mvs(22), |
| 58 |
borderWidth: 1, |
| 59 |
alignItems: 'center', |
| 60 |
}, |
| 61 |
logo: { |
| 62 |
fontSize: mvs(34), |
| Error |
Row 63, Column 15: "Insert `·`"
prettier/prettier
|
| 63 |
alignSelf:'center', |
| 64 |
color: colors.headerTitle, |
| 65 |
marginTop: mvs(20), |
| 66 |
}, |
| 67 |
statusContainer: { |
| 68 |
height: mvs(39), |
| 69 |
justifyContent: 'center', |
| 70 |
alignItems: 'center', |
| 71 |
marginTop: mvs(10), |
| 72 |
borderTopWidth: 0.3, |
| 73 |
borderBottomWidth: 0.3, |
| 74 |
width: '100%', |
| 75 |
borderColor: colors.label, |
| 76 |
}, |
| 77 |
status: { |
| 78 |
fontSize: mvs(15), |
| 79 |
color: colors.green, |
| 80 |
}, |
| 81 |
}); |
| 82 |
|
|
|
|
/src/components/molecules/setting_card/setting-card.js
|
17 problems (12 errors, 5 warnings)
|
| Severity |
Rule |
| Warning |
Row 2, Column 21: "'Text' is defined but never used."
no-unused-vars
|
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 7, Column 8: "'DualText' is defined but never used."
no-unused-vars
|
| Error |
Row 9, Column 23: "Replace `heading·=·'',·value·=·'',·promotion,·headingStyle,·...props` with `⏎··heading·=·'',⏎··value·=·'',⏎··promotion,⏎··headingStyle,⏎··...props⏎`"
prettier/prettier
|
| Error |
Row 12, Column 15: "Replace `·label={heading}·style={{...styles.CARD_HEADING,·...headingStyle}}` with `⏎········label={heading}⏎········style={{...styles.CARD_HEADING,·...headingStyle}}⏎·····`"
prettier/prettier
|
| Error |
Row 18, Column 23: "Replace `heading,·content,·highlightText,·headingStyle,style,·...props` with `⏎··heading,⏎··content,⏎··highlightText,⏎··headingStyle,⏎··style,⏎··...props⏎`"
prettier/prettier
|
| Error |
Row 21, Column 6: "Replace `{heading?·prettier/prettier
|
| Warning |
Row 21, Column 14: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 22, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 23, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 24, Column 6: "Replace `·:` with `·)·:·(`"
prettier/prettier
|
| Error |
Row 25, Column 1: "Replace `······<>⏎······{props.children}` with `········<>{props.children}>`"
prettier/prettier
|
| Error |
Row 27, Column 7: "Replace `>⏎··` with `)`"
prettier/prettier
|
| Error |
Row 43, Column 10: "Replace `·:·'100%'` with `:·'100%',`"
prettier/prettier
|
| Warning |
Row 43, Column 19: "Missing trailing comma."
comma-dangle
|
| Error |
Row 45, Column 64: "Delete `,`"
prettier/prettier
|
| Warning |
Row 45, Column 64: "Unexpected trailing comma."
comma-dangle
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Warning |
Row 2, Column 21: "'Text' is defined but never used."
no-unused-vars
|
| 2 |
import {StyleSheet, Text, View} from 'react-native'; |
| 3 |
import colors from '../../../config/colors'; |
| 4 |
import fonts from '../../../config/fonts'; |
| Error |
Row 5, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 5 |
import { mvs } from '../../../config/metrices'; |
| 6 |
import Regular from '../../../presentation/typography/regular-text'; |
| Warning |
Row 7, Column 8: "'DualText' is defined but never used."
no-unused-vars
|
| 7 |
import DualText from '../dual-text/dual-text'; |
| 8 |
|
| Error |
Row 9, Column 23: "Replace `heading·=·'',·value·=·'',·promotion,·headingStyle,·...props` with `⏎··heading·=·'',⏎··value·=·'',⏎··promotion,⏎··headingStyle,⏎··...props⏎`"
prettier/prettier
|
| 9 |
const CardHeading = ({heading = '', value = '', promotion, headingStyle, ...props}) => { |
| 10 |
return ( |
| 11 |
<View> |
| Error |
Row 12, Column 15: "Replace `·label={heading}·style={{...styles.CARD_HEADING,·...headingStyle}}` with `⏎········label={heading}⏎········style={{...styles.CARD_HEADING,·...headingStyle}}⏎·····`"
prettier/prettier
|
| 12 |
<Regular label={heading} style={{...styles.CARD_HEADING, ...headingStyle}} /> |
| 13 |
{props.children} |
| 14 |
</View> |
| 15 |
); |
| 16 |
}; |
| 17 |
|
| Error |
Row 18, Column 23: "Replace `heading,·content,·highlightText,·headingStyle,style,·...props` with `⏎··heading,⏎··content,⏎··highlightText,⏎··headingStyle,⏎··style,⏎··...props⏎`"
prettier/prettier
|
| 18 |
const SettingCard = ({heading, content, highlightText, headingStyle,style, ...props}) => { |
| 19 |
return ( |
| 20 |
<View style={{...styles.CARD, marginTop: mvs(0), ...style}}> |
| Error |
Row 21, Column 6: "Replace `{heading?·prettier/prettier
|
| Warning |
Row 21, Column 14: "Operator '?' must be spaced."
space-infix-ops
|
| 21 |
{heading? <CardHeading {...props} heading = {heading} headingStyle = {headingStyle}> |
| Error |
Row 22, Column 9: "Insert `··`"
prettier/prettier
|
| 22 |
{props.children} |
| Error |
Row 23, Column 1: "Insert `··`"
prettier/prettier
|
| 23 |
</CardHeading> |
| Error |
Row 24, Column 6: "Replace `·:` with `·)·:·(`"
prettier/prettier
|
| 24 |
: |
| Error |
Row 25, Column 1: "Replace `······<>⏎······{props.children}` with `········<>{props.children}>`"
prettier/prettier
|
| 25 |
<> |
| 26 |
{props.children} |
| Error |
Row 27, Column 7: "Replace `>⏎··` with `)`"
prettier/prettier
|
| 27 |
</> |
| 28 |
} |
| 29 |
</View> |
| 30 |
); |
| 31 |
}; |
| 32 |
|
| 33 |
export default SettingCard; |
| 34 |
|
| 35 |
const styles = StyleSheet.create({ |
| 36 |
CARD: { |
| 37 |
marginTop: mvs(20), |
| 38 |
paddingTop: mvs(20), |
| 39 |
paddingBottom: mvs(17), |
| 40 |
backgroundColor: colors.secondary, |
| 41 |
paddingHorizontal: mvs(20), |
| 42 |
borderRadius: mvs(10), |
| Error |
Row 43, Column 10: "Replace `·:·'100%'` with `:·'100%',`"
prettier/prettier
|
| Warning |
Row 43, Column 19: "Missing trailing comma."
comma-dangle
|
| 43 |
width : '100%' |
| 44 |
}, |
| Error |
Row 45, Column 64: "Delete `,`"
prettier/prettier
|
| Warning |
Row 45, Column 64: "Unexpected trailing comma."
comma-dangle
|
| 45 |
CARD_HEADING: {marginBottom: mvs(8), color: colors.typeHeader,}, |
| 46 |
CARD_LABEL: { |
| 47 |
color: colors.label, |
| 48 |
fontSize: mvs(12), |
| 49 |
fontFamily: fonts.carosSoftRegular, |
| 50 |
}, |
| 51 |
|
| 52 |
TAKE_TO_LABEL: {color: colors.primary, fontSize: mvs(12)}, |
| 53 |
}); |
| 54 |
|
|
|
|
/src/components/pages/auth/signUp-page.js
|
64 problems (30 errors, 34 warnings)
|
| Severity |
Rule |
| Error |
Row 4, Column 9: "Replace `·useEffect·` with `useEffect`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'useEffect' is defined but never used."
no-unused-vars
|
| Error |
Row 12, Column 7: "Insert `,`"
prettier/prettier
|
| Warning |
Row 12, Column 7: "Missing trailing comma."
comma-dangle
|
| Error |
Row 16, Column 9: "Replace `·mvs,·xdHeight·` with `mvs,·xdHeight`"
prettier/prettier
|
| Error |
Row 17, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Error |
Row 25, Column 10: "Replace `·navigation,·langauge·` with `navigation,·langauge`"
prettier/prettier
|
| Error |
Row 26, Column 10: "Replace `·socialData·` with `socialData`"
prettier/prettier
|
| Error |
Row 35, Column 11: "Replace `socialData·&&·socialData?.name` with `(socialData·&&·socialData?.name)`"
prettier/prettier
|
| Error |
Row 36, Column 16: "Replace `socialData·&&·socialData?.nickname` with `(socialData·&&·socialData?.nickname)`"
prettier/prettier
|
| Error |
Row 37, Column 12: "Replace `socialData·&&·socialData?.email` with `(socialData·&&·socialData?.email)`"
prettier/prettier
|
| Error |
Row 42, Column 45: "Insert `;`"
prettier/prettier
|
| Warning |
Row 42, Column 45: "Missing semicolon."
semi
|
| Error |
Row 43, Column 47: "Insert `;`"
prettier/prettier
|
| Warning |
Row 43, Column 47: "Missing semicolon."
semi
|
| Warning |
Row 45, Column 10: "'secureTextEntry' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 45, Column 27: "'setSecureTextEntry' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 47, Column 10: "'imageLoading' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 47, Column 24: "'setImageLoading' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 49, Column 17: "Replace `·...payload,·[fieldName]:·value·` with `...payload,·[fieldName]:·value`"
prettier/prettier
|
| Error |
Row 52, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 76, Column 10: "Insert `;`"
prettier/prettier
|
| Warning |
Row 76, Column 10: "Missing semicolon."
semi
|
| Error |
Row 79, Column 17: "Insert `;`"
prettier/prettier
|
| Warning |
Row 79, Column 17: "Missing semicolon."
semi
|
| Error |
Row 96, Column 17: "Replace `·...payload,·...getData·` with `...payload,·...getData`"
prettier/prettier
|
| Error |
Row 99, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 122, Column 28: "Insert `,`"
prettier/prettier
|
| Warning |
Row 122, Column 28: "Missing trailing comma."
comma-dangle
|
| Error |
Row 123, Column 11: "Insert `;`"
prettier/prettier
|
| Warning |
Row 123, Column 11: "Missing semicolon."
semi
|
| Error |
Row 128, Column 34: "Replace `·URL·` with `URL`"
prettier/prettier
|
| Warning |
Row 134, Column 14: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 134, Column 15: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 143, Column 26: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 143, Column 27: "Replace `·alignSelf:·'center'·` with `alignSelf:·'center'`"
prettier/prettier
|
| Error |
Row 144, Column 32: "Replace `·...styles.AVATAR,·marginBottom:·mvs(0)·` with `...styles.AVATAR,·marginBottom:·mvs(0)`"
prettier/prettier
|
| Error |
Row 146, Column 34: "Replace `·iconStyle={{·top:·mvs(95),·right:·mvs(10)·}}·onClick={()·=>·setOpenPicker(true)}` with `⏎··············iconStyle={{top:·mvs(95),·right:·mvs(10)}}⏎··············onClick={()·=>·setOpenPicker(true)}⏎···········`"
prettier/prettier
|
| Error |
Row 151, Column 37: "Delete `·`"
prettier/prettier
|
| Warning |
Row 153, Column 39: "["first_last_name"] is better written in dot notation."
dot-notation
|
| Warning |
Row 155, Column 48: "["first_last_name_placeholder"] is better written in dot notation."
dot-notation
|
| Warning |
Row 161, Column 39: "["user_name"] is better written in dot notation."
dot-notation
|
| Warning |
Row 163, Column 48: "["user_name_placeholder"] is better written in dot notation."
dot-notation
|
| Error |
Row 167, Column 37: "Delete `·`"
prettier/prettier
|
| Warning |
Row 169, Column 39: "["email_address"] is better written in dot notation."
dot-notation
|
| Warning |
Row 172, Column 48: "["login_email_placeholder"] is better written in dot notation."
dot-notation
|
| Warning |
Row 178, Column 39: "["new_password"] is better written in dot notation."
dot-notation
|
| Error |
Row 183, Column 29: "Replace `·...payload,·password:·value·` with `...payload,·password:·value`"
prettier/prettier
|
| Warning |
Row 185, Column 66: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 188, Column 48: "["password"] is better written in dot notation."
dot-notation
|
| Warning |
Row 196, Column 42: "["confirm_password"] is better written in dot notation."
dot-notation
|
| Error |
Row 199, Column 29: "Replace `·...payload,·confirm_password:·value·` with `...payload,·confirm_password:·value`"
prettier/prettier
|
| Warning |
Row 201, Column 58: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 204, Column 48: "["confirm_password"] is better written in dot notation."
dot-notation
|
| Warning |
Row 209, Column 20: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 219, Column 37: "["signup"] is better written in dot notation."
dot-notation
|
| Warning |
Row 225, Column 36: "["by_signup_agree"] is better written in dot notation."
dot-notation
|
| Warning |
Row 226, Column 39: "["terms_of_use"] is better written in dot notation."
dot-notation
|
| Warning |
Row 230, Column 39: "["and"] is better written in dot notation."
dot-notation
|
| Warning |
Row 231, Column 41: "["privacy_policy"] is better written in dot notation."
dot-notation
|
| Warning |
Row 238, Column 18: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| Error |
Row 247, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}·inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| Error |
Row 249, Column 20: "Replace `"payload?.profile_image·::·",·payload?.profile_image·?·true·:·false` with `⏎········'payload?.profile_image·::·',⏎········payload?.profile_image·?·true·:·false,⏎······`"
prettier/prettier
|
| Warning |
Row 249, Column 20: "Strings must use singlequote."
quotes
|
| Line |
Source |
| 1 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 2 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 3 |
import React from 'react'; |
| Error |
Row 4, Column 9: "Replace `·useEffect·` with `useEffect`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'useEffect' is defined but never used."
no-unused-vars
|
| 4 |
import { useEffect } from 'react'; |
| 5 |
import { |
| 6 |
Keyboard, |
| 7 |
KeyboardAvoidingView, |
| 8 |
Platform, |
| 9 |
ScrollView, |
| 10 |
StyleSheet, |
| 11 |
TouchableOpacity, |
| Error |
Row 12, Column 7: "Insert `,`"
prettier/prettier
|
| Warning |
Row 12, Column 7: "Missing trailing comma."
comma-dangle
|
| 12 |
View |
| 13 |
} from 'react-native'; |
| 14 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 15 |
import colors from '../../../config/colors'; |
| Error |
Row 16, Column 9: "Replace `·mvs,·xdHeight·` with `mvs,·xdHeight`"
prettier/prettier
|
| 16 |
import { mvs, xdHeight } from '../../../config/metrices'; |
| Error |
Row 17, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 17 |
import { TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| 18 |
import Buttons from '../../atoms/Button'; |
| 19 |
import ImagePlaceholder from '../../atoms/Placeholder'; |
| 20 |
import DualText from '../../molecules/dual-text/dual-text'; |
| 21 |
import ImagePicker from '../../molecules/modals/image-picker/image-picker'; |
| 22 |
import Back from './../../../../resource/assets/headers-icons/back.svg'; |
| 23 |
|
| 24 |
export const SignUpPage = props => { |
| Error |
Row 25, Column 10: "Replace `·navigation,·langauge·` with `navigation,·langauge`"
prettier/prettier
|
| 25 |
const { navigation, langauge } = props; |
| Error |
Row 26, Column 10: "Replace `·socialData·` with `socialData`"
prettier/prettier
|
| 26 |
const { socialData } = props.route.params; |
| 27 |
const btnTranslation = langauge?.translations?.button; |
| 28 |
const inputTranslation = langauge?.translations?.input; |
| 29 |
const authLables = langauge?.translations?.auth_screen; |
| 30 |
const scrollRef = React.useRef(); |
| 31 |
const alertRef = React.useRef(); |
| 32 |
|
| 33 |
const [payload, setPayload] = React.useState({ |
| 34 |
profile_image: '', |
| Error |
Row 35, Column 11: "Replace `socialData·&&·socialData?.name` with `(socialData·&&·socialData?.name)`"
prettier/prettier
|
| 35 |
name: socialData && socialData?.name || '', |
| Error |
Row 36, Column 16: "Replace `socialData·&&·socialData?.nickname` with `(socialData·&&·socialData?.nickname)`"
prettier/prettier
|
| 36 |
user_name: socialData && socialData?.nickname || '', |
| Error |
Row 37, Column 12: "Replace `socialData·&&·socialData?.email` with `(socialData·&&·socialData?.email)`"
prettier/prettier
|
| 37 |
email: socialData && socialData?.email || '', |
| 38 |
password: '', |
| 39 |
confirm_password: '', |
| 40 |
}); |
| 41 |
const [openPicker, setOpenPicker] = React.useState(false); |
| Error |
Row 42, Column 45: "Insert `;`"
prettier/prettier
|
| Warning |
Row 42, Column 45: "Missing semicolon."
semi
|
| 42 |
const [eye, setEye] = React.useState(true) |
| Error |
Row 43, Column 47: "Insert `;`"
prettier/prettier
|
| Warning |
Row 43, Column 47: "Missing semicolon."
semi
|
| 43 |
const [eye1, setEye1] = React.useState(true) |
| 44 |
const [isConfirmVerify, setIsConfirmVerify] = React.useState(false); |
| Warning |
Row 45, Column 10: "'secureTextEntry' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 45, Column 27: "'setSecureTextEntry' is assigned a value but never used."
no-unused-vars
|
| 45 |
const [secureTextEntry, setSecureTextEntry] = React.useState(true); |
| 46 |
const [loading, setLoading] = React.useState(false); |
| Warning |
Row 47, Column 10: "'imageLoading' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 47, Column 24: "'setImageLoading' is assigned a value but never used."
no-unused-vars
|
| 47 |
const [imageLoading, setImageLoading] = React.useState(false); |
| 48 |
const onChangeField = async (fieldName, value) => { |
| Error |
Row 49, Column 17: "Replace `·...payload,·[fieldName]:·value·` with `...payload,·[fieldName]:·value`"
prettier/prettier
|
| 49 |
setPayload({ ...payload, [fieldName]: value }); |
| 50 |
}; |
| 51 |
|
| Error |
Row 52, Column 1: "Delete `⏎`"
prettier/prettier
|
| 52 |
|
| 53 |
// useEffect(() => { |
| 54 |
// console.log("socialData:", socialData) |
| 55 |
// setPayload({ |
| 56 |
// ...payload, |
| 57 |
// profile_image: socialData?.avatar || '', |
| 58 |
// name: socialData?.name || '', |
| 59 |
// user_name: socialData?.nickname || '', |
| 60 |
// email: socialData?.email || '', |
| 61 |
// }) |
| 62 |
// },[]) |
| 63 |
|
| 64 |
console.log('payload of sign up :', payload); |
| 65 |
const onSignUp = async () => { |
| 66 |
Keyboard.dismiss(); |
| 67 |
try { |
| 68 |
const response = TAKE_TO_CONSTANT.signupValidation(payload); |
| 69 |
if (response.status) { |
| 70 |
setLoading(true); |
| 71 |
await props?.postRegisterData(payload); |
| 72 |
alertRef.current.alertWithType( |
| 73 |
'success', |
| 74 |
'Account Created Successfully', |
| 75 |
'You may login now', |
| Error |
Row 76, Column 10: "Insert `;`"
prettier/prettier
|
| Warning |
Row 76, Column 10: "Missing semicolon."
semi
|
| 76 |
) |
| 77 |
setTimeout(() => { |
| 78 |
props.navigation.goBack(); |
| Error |
Row 79, Column 17: "Insert `;`"
prettier/prettier
|
| Warning |
Row 79, Column 17: "Missing semicolon."
semi
|
| 79 |
}, 1000) |
| 80 |
} else { |
| 81 |
throw new Error(response.message); |
| 82 |
} |
| 83 |
setLoading(false); |
| 84 |
} catch (error) { |
| 85 |
setLoading(false); |
| 86 |
// scrollRef.current.scrollTo({x: 0, y: 0, animated: true}); |
| 87 |
alertRef.current.alertWithType( |
| 88 |
'error', |
| 89 |
'Error', |
| 90 |
UI_API._returnError(error), |
| 91 |
); |
| 92 |
} |
| 93 |
}; |
| 94 |
|
| 95 |
const updatePayload = getData => { |
| Error |
Row 96, Column 17: "Replace `·...payload,·...getData·` with `...payload,·...getData`"
prettier/prettier
|
| 96 |
setPayload({ ...payload, ...getData }); |
| 97 |
}; |
| 98 |
|
| Error |
Row 99, Column 1: "Delete `⏎`"
prettier/prettier
|
| 99 |
|
| 100 |
const openCamera = () => { |
| 101 |
// launchCamera({mediaType: 'photo', includeBase64: false}, response => |
| 102 |
UI_API._openCamera(updatePayload, alertRef); |
| 103 |
// ); |
| 104 |
}; |
| 105 |
const openGallery = () => { |
| 106 |
// launchImageLibrary({mediaType: 'photo', includeBase64: false}, response => |
| 107 |
UI_API._openGallery(updatePayload, alertRef); |
| 108 |
// ); |
| 109 |
}; |
| 110 |
|
| 111 |
const onImageModalSelection = type => { |
| 112 |
//type :: Camera,Gallery,Delete |
| 113 |
setOpenPicker(false); |
| 114 |
setTimeout(() => { |
| 115 |
if (type === 'Camera') { |
| 116 |
openCamera(); |
| 117 |
} else if (type === 'Gallery') { |
| 118 |
openGallery(); |
| 119 |
} else { |
| 120 |
setPayload({ |
| 121 |
...payload, |
| Error |
Row 122, Column 28: "Insert `,`"
prettier/prettier
|
| Warning |
Row 122, Column 28: "Missing trailing comma."
comma-dangle
|
| 122 |
profile_image: '' |
| Error |
Row 123, Column 11: "Insert `;`"
prettier/prettier
|
| Warning |
Row 123, Column 11: "Missing semicolon."
semi
|
| 123 |
}) |
| 124 |
} |
| 125 |
}, 1000); |
| 126 |
}; |
| 127 |
const openSite = (screen, URL) => { |
| Error |
Row 128, Column 34: "Replace `·URL·` with `URL`"
prettier/prettier
|
| 128 |
navigation.navigate(screen, { URL }); |
| 129 |
}; |
| 130 |
// console.log(payload); |
| 131 |
|
| 132 |
return ( |
| 133 |
<KeyboardAvoidingView |
| Warning |
Row 134, Column 14: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 134, Column 15: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 134 |
style={{ flex: 1, backgroundColor: colors.white }} |
| 135 |
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}> |
| 136 |
<View style={styles.CONTAINER}> |
| 137 |
<ScrollView |
| 138 |
contentContainerStyle={styles.SCROLL_CONTAINER} |
| 139 |
ref={scrollRef}> |
| 140 |
<View style={styles.AVATAR}> |
| 141 |
<ImagePlaceholder |
| 142 |
bg_img={payload.profile_image?.uri || payload?.profile_image} |
| Warning |
Row 143, Column 26: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 143, Column 27: "Replace `·alignSelf:·'center'·` with `alignSelf:·'center'`"
prettier/prettier
|
| 143 |
iconStyle={{ alignSelf: 'center' }} |
| Error |
Row 144, Column 32: "Replace `·...styles.AVATAR,·marginBottom:·mvs(0)·` with `...styles.AVATAR,·marginBottom:·mvs(0)`"
prettier/prettier
|
| 144 |
containerStyle={{ ...styles.AVATAR, marginBottom: mvs(0) }} |
| 145 |
/> |
| Error |
Row 146, Column 34: "Replace `·iconStyle={{·top:·mvs(95),·right:·mvs(10)·}}·onClick={()·=>·setOpenPicker(true)}` with `⏎··············iconStyle={{top:·mvs(95),·right:·mvs(10)}}⏎··············onClick={()·=>·setOpenPicker(true)}⏎···········`"
prettier/prettier
|
| 146 |
<Buttons.ButtonCamera iconStyle={{ top: mvs(95), right: mvs(10) }} onClick={() => setOpenPicker(true)} /> |
| 147 |
</View> |
| 148 |
|
| 149 |
<View style={styles.INPUT_CONTAINER}> |
| 150 |
<TAKE_TO_INPUT_FIELD.CustomInput |
| Error |
Row 151, Column 37: "Delete `·`"
prettier/prettier
|
| 151 |
onPressVerify={() => { }} |
| 152 |
value={payload.name} |
| Warning |
Row 153, Column 39: "["first_last_name"] is better written in dot notation."
dot-notation
|
| 153 |
label={inputTranslation['first_last_name']} |
| 154 |
onChangeText={value => onChangeField('name', value)} |
| Warning |
Row 155, Column 48: "["first_last_name_placeholder"] is better written in dot notation."
dot-notation
|
| 155 |
placeholder={`${inputTranslation['first_last_name_placeholder']}`} |
| 156 |
/> |
| 157 |
<TAKE_TO_INPUT_FIELD.CustomInput |
| 158 |
// isVerify={payload.user_name.length >= 2} |
| 159 |
value={payload.user_name} |
| 160 |
isRequired |
| Warning |
Row 161, Column 39: "["user_name"] is better written in dot notation."
dot-notation
|
| 161 |
label={inputTranslation['user_name']} |
| 162 |
onChangeText={value => onChangeField('user_name', value)} |
| Warning |
Row 163, Column 48: "["user_name_placeholder"] is better written in dot notation."
dot-notation
|
| 163 |
placeholder={`${inputTranslation['user_name_placeholder']}`} |
| 164 |
/> |
| 165 |
{console.log('socialData::', socialData)} |
| 166 |
<TAKE_TO_INPUT_FIELD.CustomInput |
| Error |
Row 167, Column 37: "Delete `·`"
prettier/prettier
|
| 167 |
onPressVerify={() => { }} |
| 168 |
value={payload.email} |
| Warning |
Row 169, Column 39: "["email_address"] is better written in dot notation."
dot-notation
|
| 169 |
label={inputTranslation['email_address']} |
| 170 |
keyboardType={'email-address'} |
| 171 |
onChangeText={value => onChangeField('email', value)} |
| Warning |
Row 172, Column 48: "["login_email_placeholder"] is better written in dot notation."
dot-notation
|
| 172 |
placeholder={`${inputTranslation['login_email_placeholder']}`} |
| 173 |
editable={socialData?.email ? false : true} |
| 174 |
/> |
| 175 |
<TAKE_TO_INPUT_FIELD.CustomInput |
| 176 |
isVerify={payload.password.length >= 8} |
| 177 |
value={payload.password} |
| Warning |
Row 178, Column 39: "["new_password"] is better written in dot notation."
dot-notation
|
| 178 |
label={inputTranslation['new_password']?.split(' ')[1]} |
| 179 |
secureTextEntry={eye} |
| 180 |
secure |
| 181 |
onPressIcon={() => setEye(!eye)} |
| 182 |
onChangeText={value => { |
| Error |
Row 183, Column 29: "Replace `·...payload,·password:·value·` with `...payload,·password:·value`"
prettier/prettier
|
| 183 |
setPayload({ ...payload, password: value }); |
| 184 |
setIsConfirmVerify( |
| Warning |
Row 185, Column 66: "Expected '===' and instead saw '=='."
eqeqeq
|
| 185 |
value?.length >= 8 && payload.confirm_password == value, |
| 186 |
); |
| 187 |
}} |
| Warning |
Row 188, Column 48: "["password"] is better written in dot notation."
dot-notation
|
| 188 |
placeholder={`${inputTranslation['password']}`} |
| 189 |
/> |
| 190 |
<TAKE_TO_INPUT_FIELD.CustomInput |
| 191 |
isVerify={isConfirmVerify} |
| 192 |
isReject={payload.confirm_password.length >= 8} |
| 193 |
value={payload.confirm_password} |
| 194 |
secure |
| 195 |
onPressIcon={() => setEye1(!eye1)} |
| Warning |
Row 196, Column 42: "["confirm_password"] is better written in dot notation."
dot-notation
|
| 196 |
label={`${inputTranslation['confirm_password']}`} |
| 197 |
secureTextEntry={eye1} |
| 198 |
onChangeText={value => { |
| Error |
Row 199, Column 29: "Replace `·...payload,·confirm_password:·value·` with `...payload,·confirm_password:·value`"
prettier/prettier
|
| 199 |
setPayload({ ...payload, confirm_password: value }); |
| 200 |
setIsConfirmVerify( |
| Warning |
Row 201, Column 58: "Expected '===' and instead saw '=='."
eqeqeq
|
| 201 |
value?.length >= 8 && payload.password == value, |
| 202 |
); |
| 203 |
}} |
| Warning |
Row 204, Column 48: "["confirm_password"] is better written in dot notation."
dot-notation
|
| 204 |
placeholder={`${inputTranslation['confirm_password']}`} |
| 205 |
divider |
| 206 |
/> |
| 207 |
</View> |
| 208 |
<View |
| Warning |
Row 209, Column 20: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| 209 |
style={{ |
| 210 |
...styles.BTN_CONTAINER, |
| 211 |
justifyContent: 'center', |
| 212 |
marginTop: mvs(30), |
| 213 |
}}> |
| 214 |
<Buttons.ButtonPrimary |
| 215 |
onClick={onSignUp} |
| 216 |
loading={loading} |
| 217 |
loaderColor={colors.white} |
| 218 |
disabled={loading} |
| Warning |
Row 219, Column 37: "["signup"] is better written in dot notation."
dot-notation
|
| 219 |
title={btnTranslation['signup']} |
| 220 |
style={styles.BTN_LOGIN} |
| 221 |
/> |
| 222 |
</View> |
| 223 |
<DualText |
| 224 |
style={styles.PRIVACY_LABEL} |
| Warning |
Row 225, Column 36: "["by_signup_agree"] is better written in dot notation."
dot-notation
|
| 225 |
content={`${authLables['by_signup_agree']} `} |
| Warning |
Row 226, Column 39: "["terms_of_use"] is better written in dot notation."
dot-notation
|
| 226 |
highlightText={authLables['terms_of_use']} |
| 227 |
onPress={() => openSite('termsofuse', 'terms-of-use')}> |
| 228 |
<DualText |
| 229 |
style={styles.PRIVACY_LABEL} |
| Warning |
Row 230, Column 39: "["and"] is better written in dot notation."
dot-notation
|
| 230 |
content={` ${authLables['and']} `} |
| Warning |
Row 231, Column 41: "["privacy_policy"] is better written in dot notation."
dot-notation
|
| 231 |
highlightText={authLables['privacy_policy']} |
| 232 |
onPress={() => openSite('privacypolicy', 'privacy-policy')} |
| 233 |
/> |
| 234 |
</DualText> |
| 235 |
</ScrollView> |
| 236 |
<TouchableOpacity |
| 237 |
onPress={() => navigation.pop()} |
| Warning |
Row 238, Column 18: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| 238 |
style={{ |
| 239 |
position: 'absolute', |
| 240 |
top: mvs(45), |
| 241 |
left: mvs(23), |
| 242 |
backgroundColor: colors.white, |
| 243 |
}}> |
| 244 |
<Back /> |
| 245 |
</TouchableOpacity> |
| 246 |
|
| Error |
Row 247, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}·inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| 247 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 248 |
</View> |
| Error |
Row 249, Column 20: "Replace `"payload?.profile_image·::·",·payload?.profile_image·?·true·:·false` with `⏎········'payload?.profile_image·::·',⏎········payload?.profile_image·?·true·:·false,⏎······`"
prettier/prettier
|
| Warning |
Row 249, Column 20: "Strings must use singlequote."
quotes
|
| 249 |
{console.log("payload?.profile_image :: ", payload?.profile_image ? true : false)} |
| 250 |
<ImagePicker |
| 251 |
visible={openPicker} |
| 252 |
showDelete={payload?.profile_image ? true : false} |
| 253 |
onClose={setOpenPicker} |
| 254 |
onSubmit={onImageModalSelection} |
| 255 |
/> |
| 256 |
</KeyboardAvoidingView> |
| 257 |
); |
| 258 |
}; |
| 259 |
const styles = StyleSheet.create({ |
| 260 |
AVATAR: { |
| 261 |
alignSelf: 'center', |
| 262 |
justifyContent: 'center', |
| 263 |
alignItems: 'center', |
| 264 |
height: mvs(130), |
| 265 |
width: mvs(130), |
| 266 |
borderRadius: mvs(65), |
| 267 |
backgroundColor: colors.secondary, |
| 268 |
marginBottom: mvs(34), |
| 269 |
// backgroundColor:'red', |
| 270 |
}, |
| 271 |
CONTAINER: { |
| 272 |
flex: 1, |
| 273 |
backgroundColor: colors.white, |
| 274 |
paddingTop: mvs(45), |
| 275 |
}, |
| 276 |
BTN_CONTAINER: { |
| 277 |
flexDirection: 'row', |
| 278 |
alignItems: 'center', |
| 279 |
justifyContent: 'space-between', |
| 280 |
}, |
| 281 |
BTN_LOGIN: { |
| 282 |
width: '47%', |
| 283 |
}, |
| 284 |
|
| 285 |
SCROLL_CONTAINER: { |
| 286 |
paddingHorizontal: mvs(22), |
| 287 |
paddingBottom: mvs(20), |
| 288 |
}, |
| 289 |
INPUT_CONTAINER: {}, |
| 290 |
PRIVACY_LABEL: { |
| 291 |
marginTop: mvs(xdHeight(30)), |
| 292 |
textAlign: 'center', |
| 293 |
color: colors.typeHeader, |
| 294 |
fontSize: mvs(11), |
| 295 |
}, |
| 296 |
}); |
| 297 |
|
|
|
|
/src/components/pages/auth/singIn-page.js
|
229 problems (190 errors, 39 warnings)
|
| Severity |
Rule |
| Error |
Row 4, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| Error |
Row 5, Column 9: "Replace `·ActivityIndicator,·KeyboardAvoidingView,·Platform,·ScrollView,·StyleSheet,·View·` with `⏎··ActivityIndicator,⏎··KeyboardAvoidingView,⏎··Platform,⏎··ScrollView,⏎··StyleSheet,⏎··View,⏎`"
prettier/prettier
|
| Error |
Row 6, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 7, Column 9: "Replace `·LargeLogo·` with `LargeLogo`"
prettier/prettier
|
| Error |
Row 10, Column 9: "Replace `·mvs,·xdHeight·` with `mvs,·xdHeight`"
prettier/prettier
|
| Error |
Row 12, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 34, Column 5: "'fetchEcho' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 34, Column 14: "Insert `,`"
prettier/prettier
|
| Warning |
Row 34, Column 14: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 39, Column 10: "'secureTextEntry' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 39, Column 27: "'setSecureTextEntry' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 44, Column 45: "Insert `;`"
prettier/prettier
|
| Warning |
Row 44, Column 45: "Missing semicolon."
semi
|
| Error |
Row 45, Column 47: "Insert `;`"
prettier/prettier
|
| Warning |
Row 45, Column 47: "Missing semicolon."
semi
|
| Error |
Row 46, Column 35: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 62, Column 1: "Replace `⏎⏎⏎⏎⏎··const·sendToken·=·async·(type)` with `··const·sendToken·=·async·type`"
prettier/prettier
|
| Error |
Row 73, Column 22: "Delete `⏎⏎····`"
prettier/prettier
|
| Error |
Row 76, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 76, Column 4: "Missing semicolon."
semi
|
| Error |
Row 80, Column 52: "Insert `;`"
prettier/prettier
|
| Warning |
Row 80, Column 52: "Missing semicolon."
semi
|
| Error |
Row 81, Column 28: "Insert `;`"
prettier/prettier
|
| Warning |
Row 81, Column 28: "Missing semicolon."
semi
|
| Error |
Row 83, Column 9: "Insert `;`"
prettier/prettier
|
| Warning |
Row 83, Column 9: "Missing semicolon."
semi
|
| Error |
Row 84, Column 9: "Replace `⏎⏎` with `;`"
prettier/prettier
|
| Warning |
Row 84, Column 9: "Missing semicolon."
semi
|
| Error |
Row 111, Column 6: "React Hook React.useEffect has a missing dependency: 'getCountriesList'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 114, Column 17: "Replace `·...payload,·[fieldName]:·value·` with `...payload,·[fieldName]:·value`"
prettier/prettier
|
| Error |
Row 115, Column 5: "Delete `⏎⏎⏎⏎`"
prettier/prettier
|
| Error |
Row 149, Column 1: "Delete `⏎`"
prettier/prettier
|
| Warning |
Row 151, Column 11: "'requset' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 152, Column 11: "'payload' is already declared in the upper scope."
no-shadow
|
| Error |
Row 160, Column 11: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 176, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 184, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 189, Column 34: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 199, Column 30: "Insert `;`"
prettier/prettier
|
| Warning |
Row 199, Column 30: "Missing semicolon."
semi
|
| Error |
Row 204, Column 34: "Replace `·URL·` with `URL`"
prettier/prettier
|
| Error |
Row 209, Column 5: "Replace `style={{·flex:·1,·backgroundColor:·colors.white·` with `··style={{flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 209, Column 12: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 210, Column 5: "Insert `··`"
prettier/prettier
|
| Error |
Row 211, Column 5: "Insert `··`"
prettier/prettier
|
| Error |
Row 212, Column 1: "Replace `······` with `········`"
prettier/prettier
|
| Error |
Row 214, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 215, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 216, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 217, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 218, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 219, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 220, Column 11: "Replace `style={{·marginTop:·mvs(45),·alignSelf:·'center'·` with `··style={{marginTop:·mvs(45),·alignSelf:·'center'`"
prettier/prettier
|
| Warning |
Row 220, Column 18: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 221, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 222, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 223, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 224, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 225, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Warning |
Row 225, Column 37: "["login_email"] is better written in dot notation."
dot-notation
|
| Error |
Row 226, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 227, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 227, Column 43: "["login_email_placeholder"] is better written in dot notation."
dot-notation
|
| Error |
Row 228, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 229, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 230, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 231, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 232, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 233, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 233, Column 37: "["new_password"] is better written in dot notation."
dot-notation
|
| Error |
Row 234, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 235, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Warning |
Row 235, Column 43: "["password_placeholder"] is better written in dot notation."
dot-notation
|
| Error |
Row 236, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 237, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 238, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 239, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 240, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 241, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 242, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 243, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 243, Column 35: "["login"] is better written in dot notation."
dot-notation
|
| Error |
Row 244, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 245, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 246, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 247, Column 1: "Replace `············textStyle={{·color:·colors.typeHeader·` with `··············textStyle={{color:·colors.typeHeader`"
prettier/prettier
|
| Error |
Row 248, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 249, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 250, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 251, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 251, Column 31: "["forgot_password"] is better written in dot notation."
dot-notation
|
| Error |
Row 252, Column 13: "Replace `textStyle={{·color:·colors.typeHeader,·alignSelf:·'flex-end'·` with `··textStyle={{color:·colors.typeHeader,·alignSelf:·'flex-end'`"
prettier/prettier
|
| Warning |
Row 252, Column 24: "Inline style: { alignSelf: 'flex-end' }"
react-native/no-inline-styles
|
| Error |
Row 253, Column 1: "Replace `············style={{·...styles.BTN_LOGIN,·paddingRight:·mvs(5)·` with `··············style={{...styles.BTN_LOGIN,·paddingRight:·mvs(5)`"
prettier/prettier
|
| Error |
Row 254, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 255, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 256, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 257, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 257, Column 18: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 258, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 259, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 260, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 261, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 262, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 263, Column 13: "Replace `onClick={()·=>·navigation.navigate('register',·{·socialData:·undefined·})` with `··onClick={()·=>⏎················navigation.navigate('register',·{socialData:·undefined})⏎··············`"
prettier/prettier
|
| Error |
Row 264, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Warning |
Row 264, Column 35: "["signup"] is better written in dot notation."
dot-notation
|
| Error |
Row 265, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 266, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 267, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 268, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 269, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Warning |
Row 269, Column 18: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 270, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 271, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 272, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 273, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 274, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 275, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 276, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 276, Column 31: "["or"] is better written in dot notation."
dot-notation
|
| Error |
Row 277, Column 13: "Replace `style={{·color:·colors.typeHeader·` with `··style={{color:·colors.typeHeader`"
prettier/prettier
|
| Error |
Row 278, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 279, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 280, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 281, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Warning |
Row 281, Column 18: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 282, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 283, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 284, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 284, Column 36: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 285, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 286, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 287, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 288, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 289, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 290, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 291, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 292, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 293, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 294, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 295, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 296, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 297, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 298, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 299, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 300, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 301, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 301, Column 24: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 302, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 303, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 304, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 305, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 306, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 307, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 308, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 309, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 311, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 312, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Warning |
Row 312, Column 18: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 313, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 314, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 315, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 316, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 317, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 318, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 319, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 320, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 321, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 322, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 322, Column 31: "["skip_to_services"] is better written in dot notation."
dot-notation
|
| Error |
Row 323, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 324, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 324, Column 24: "Inline style: { textDecorationLine: 'underline', textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 325, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 326, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 327, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 328, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 329, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 330, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 331, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 332, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 333, Column 11: "Insert `··`"
prettier/prettier
|
| Warning |
Row 333, Column 34: "["by_signup_agree"] is better written in dot notation."
dot-notation
|
| Error |
Row 334, Column 11: "Insert `··`"
prettier/prettier
|
| Warning |
Row 334, Column 37: "["terms_of_use"] is better written in dot notation."
dot-notation
|
| Error |
Row 335, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 336, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 337, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 338, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 338, Column 37: "["and"] is better written in dot notation."
dot-notation
|
| Error |
Row 339, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 339, Column 39: "["privacy_policy"] is better written in dot notation."
dot-notation
|
| Error |
Row 340, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 341, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 342, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 343, Column 1: "Replace `······` with `········`"
prettier/prettier
|
| Error |
Row 345, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 346, Column 1: "Replace `········onOkResult={({·email,·otp·` with `··········onOkResult={({email,·otp`"
prettier/prettier
|
| Error |
Row 347, Column 1: "Replace `··········setForgotPayload({·...forgotPayload,·email,·otp·` with `············setForgotPayload({...forgotPayload,·email,·otp`"
prettier/prettier
|
| Error |
Row 348, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 349, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 350, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 351, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 352, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 353, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 355, Column 1: "Replace `⏎······` with `········`"
prettier/prettier
|
| Error |
Row 357, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 358, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 359, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 360, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 361, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 362, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 363, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 364, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 365, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 366, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 367, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 369, Column 1: "Replace `⏎` with `··`"
prettier/prettier
|
| Error |
Row 371, Column 9: "Replace `forgotPayload={forgotPayload}·onClose={()·=>·setIsPasswordModal(false)}·visible={isPasswordModal}` with `··forgotPayload={forgotPayload}⏎··········onClose={()·=>·setIsPasswordModal(false)}⏎··········visible={isPasswordModal}⏎·······`"
prettier/prettier
|
| Error |
Row 373, Column 1: "Replace `······{socialloading·&&·prettier/prettier
|
| Warning |
Row 373, Column 38: "Inline style: {
position: 'absolute',
height: '100%',
width: '100%',
backgroundColor: 'rgba(255,255,255,0.5)',
alignItems: 'center',
justifyContent: 'center'
}"
react-native/no-inline-styles
|
| Error |
Row 374, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 375, Column 7: "Replace `` with `····⏎········)`"
prettier/prettier
|
| Error |
Row 376, Column 1: "Replace `·······prettier/prettier
|
| Error |
Row 377, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 391, Column 38: "Insert `⏎···`"
prettier/prettier
|
| Warning |
Row 395, Column 65: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 395, Column 65: "Delete `··`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 2 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 3 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| Error |
Row 4, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| 4 |
import React, { useState } from 'react'; |
| Error |
Row 5, Column 9: "Replace `·ActivityIndicator,·KeyboardAvoidingView,·Platform,·ScrollView,·StyleSheet,·View·` with `⏎··ActivityIndicator,⏎··KeyboardAvoidingView,⏎··Platform,⏎··ScrollView,⏎··StyleSheet,⏎··View,⏎`"
prettier/prettier
|
| 5 |
import { ActivityIndicator, KeyboardAvoidingView, Platform, ScrollView, StyleSheet, View } from 'react-native'; |
| Error |
Row 6, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 6 |
import { connect } from 'react-redux'; |
| Error |
Row 7, Column 9: "Replace `·LargeLogo·` with `LargeLogo`"
prettier/prettier
|
| 7 |
import { LargeLogo } from '../../../../resource/assets/common-icons'; |
| 8 |
import colors from '../../../config/colors'; |
| 9 |
import TAKE_SOCIAL from '../../../config/constants'; |
| Error |
Row 10, Column 9: "Replace `·mvs,·xdHeight·` with `mvs,·xdHeight`"
prettier/prettier
|
| 10 |
import { mvs, xdHeight } from '../../../config/metrices'; |
| 11 |
import Regular from '../../../presentation/typography/regular-text'; |
| Error |
Row 12, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 12 |
import { TAKE_TO_INPUT_FIELD } from '../../atoms'; |
| 13 |
import Buttons from '../../atoms/Button'; |
| 14 |
import DualText from '../../molecules/dual-text/dual-text'; |
| 15 |
import ResetPasswordModal from '../../molecules/modals/reset-password-modal'; |
| 16 |
import Apple from './../../../../resource/assets/social-icons/apple.svg'; |
| 17 |
import Facebook from './../../../../resource/assets/social-icons/facebook.svg'; |
| 18 |
import Google from './../../../../resource/assets/social-icons/google.svg'; |
| 19 |
import Twitter from './../../../../resource/assets/social-icons/twitter.svg'; |
| 20 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 21 |
import messaging from '@react-native-firebase/messaging'; |
| 22 |
import AsyncStorage from '@react-native-async-storage/async-storage'; |
| 23 |
import ChangePasswordModal from '../../molecules/modals/change-password-modal'; |
| 24 |
import EmailVerificationModal from '../../molecules/modals/setting-modals/email-verification-modal'; |
| 25 |
import TAKE_2_API from '@khan_ahmad786/common/api/API'; |
| 26 |
const SignInPage = props => { |
| 27 |
const { |
| 28 |
navigation, |
| 29 |
postSigninData, |
| 30 |
onChangeGuest, |
| 31 |
activeCountryList, |
| 32 |
langauge, |
| 33 |
postSocialData, |
| Warning |
Row 34, Column 5: "'fetchEcho' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 34, Column 14: "Insert `,`"
prettier/prettier
|
| Warning |
Row 34, Column 14: "Missing trailing comma."
comma-dangle
|
| 34 |
fetchEcho |
| 35 |
} = props; |
| 36 |
const btnTranslation = langauge?.translations?.button; |
| 37 |
const inputTranslation = langauge?.translations?.input; |
| 38 |
const authLables = langauge?.translations?.auth_screen; |
| Warning |
Row 39, Column 10: "'secureTextEntry' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 39, Column 27: "'setSecureTextEntry' is assigned a value but never used."
no-unused-vars
|
| 39 |
const [secureTextEntry, setSecureTextEntry] = React.useState(true); |
| 40 |
const [visible, setVisible] = React.useState(false); |
| 41 |
const [loading, setLoading] = useState(false); |
| 42 |
const [socialloading, setSocialLoading] = useState(false); |
| 43 |
const scrollRef = React.useRef(); |
| Error |
Row 44, Column 45: "Insert `;`"
prettier/prettier
|
| Warning |
Row 44, Column 45: "Missing semicolon."
semi
|
| 44 |
const [eye, setEye] = React.useState(true) |
| Error |
Row 45, Column 47: "Insert `;`"
prettier/prettier
|
| Warning |
Row 45, Column 47: "Missing semicolon."
semi
|
| 45 |
const [token, setToken] = React.useState('') |
| Error |
Row 46, Column 35: "Delete `⏎`"
prettier/prettier
|
| 46 |
const alertRef = React.useRef(); |
| 47 |
|
| 48 |
|
| 49 |
//forgot password state |
| 50 |
const [forgotPayload, setForgotPayload] = React.useState({ |
| 51 |
email: '', |
| 52 |
otp: '', |
| 53 |
}); |
| 54 |
const [isOtpModal, setIsOtpModal] = React.useState(false); |
| 55 |
const [isPasswordModal, setIsPasswordModal] = React.useState(false); |
| 56 |
// |
| 57 |
const [payload, setPayload] = React.useState({ |
| 58 |
email: '', |
| 59 |
password: '', |
| 60 |
}); |
| 61 |
|
| Error |
Row 62, Column 1: "Replace `⏎⏎⏎⏎⏎··const·sendToken·=·async·(type)` with `··const·sendToken·=·async·type`"
prettier/prettier
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
const sendToken = async (type) => { |
| 68 |
try { |
| 69 |
const res = await TAKE_2_API.postDeviceToken({ |
| 70 |
device_token: token, |
| 71 |
}); |
| 72 |
console.log('res:', res?.data?.data); |
| Error |
Row 73, Column 22: "Delete `⏎⏎····`"
prettier/prettier
|
| 73 |
} catch (error) { |
| 74 |
|
| 75 |
} |
| Error |
Row 76, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 76, Column 4: "Missing semicolon."
semi
|
| 76 |
} |
| 77 |
|
| 78 |
React.useEffect(() => { |
| 79 |
(async () => { |
| Error |
Row 80, Column 52: "Insert `;`"
prettier/prettier
|
| Warning |
Row 80, Column 52: "Missing semicolon."
semi
|
| 80 |
const fcmToken = await messaging().getToken() |
| Error |
Row 81, Column 28: "Insert `;`"
prettier/prettier
|
| Warning |
Row 81, Column 28: "Missing semicolon."
semi
|
| 81 |
console.log(fcmToken) |
| 82 |
setToken(fcmToken); |
| Error |
Row 83, Column 9: "Insert `;`"
prettier/prettier
|
| Warning |
Row 83, Column 9: "Missing semicolon."
semi
|
| 83 |
})() |
| Error |
Row 84, Column 9: "Replace `⏎⏎` with `;`"
prettier/prettier
|
| Warning |
Row 84, Column 9: "Missing semicolon."
semi
|
| 84 |
}, []) |
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
const getCountriesList = async () => { |
| 89 |
try { |
| 90 |
const value = await AsyncStorage.getItem('@Countries'); |
| 91 |
// console.log(JSON.parse(value)) |
| 92 |
if (value !== null) { |
| 93 |
// value previously stored |
| 94 |
activeCountryList(JSON.parse(value)); |
| 95 |
} |
| 96 |
} catch (error) { |
| 97 |
// error reading value |
| 98 |
alertRef.current.alertWithType( |
| 99 |
'error', |
| 100 |
'Error', |
| 101 |
UI_API._returnError(error), |
| 102 |
); |
| 103 |
} |
| 104 |
}; |
| 105 |
React.useEffect(() => { |
| 106 |
const unsubscribe = navigation.addListener('focus', () => { |
| 107 |
getCountriesList(); |
| 108 |
// alert('asda'); |
| 109 |
}); |
| 110 |
return unsubscribe; |
| Error |
Row 111, Column 6: "React Hook React.useEffect has a missing dependency: 'getCountriesList'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 111 |
}, [navigation]); |
| 112 |
|
| 113 |
const onChangeField = async (fieldName, value) => { |
| Error |
Row 114, Column 17: "Replace `·...payload,·[fieldName]:·value·` with `...payload,·[fieldName]:·value`"
prettier/prettier
|
| 114 |
setPayload({ ...payload, [fieldName]: value }); |
| Error |
Row 115, Column 5: "Delete `⏎⏎⏎⏎`"
prettier/prettier
|
| 115 |
}; |
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
const onLoginPress = async () => { |
| 122 |
try { |
| 123 |
setLoading(true); |
| 124 |
const response = TAKE_TO_CONSTANT.signinValidation(payload); |
| 125 |
if (response.status) { |
| 126 |
await postSigninData({ |
| 127 |
username: payload.email, |
| 128 |
password: payload.password, |
| 129 |
}); |
| 130 |
await sendToken(); |
| 131 |
navigation.replace('main'); |
| 132 |
} else { |
| 133 |
throw new Error(response.message); |
| 134 |
} |
| 135 |
setLoading(false); |
| 136 |
} catch (error) { |
| 137 |
setLoading(false); |
| 138 |
// scrollRef.current.scrollTo({x: 0, y: 0, animated: true}); |
| 139 |
alertRef.current.alertWithType( |
| 140 |
'error', |
| 141 |
'Error', |
| 142 |
UI_API._returnError(error), |
| 143 |
); |
| 144 |
} |
| 145 |
}; |
| 146 |
|
| 147 |
const socialHandler = async provider => { |
| 148 |
try { |
| Error |
Row 149, Column 1: "Delete `⏎`"
prettier/prettier
|
| 149 |
|
| 150 |
let response = null; |
| Warning |
Row 151, Column 11: "'requset' is assigned a value but never used."
no-unused-vars
|
| 151 |
let requset = null; |
| Warning |
Row 152, Column 11: "'payload' is already declared in the upper scope."
no-shadow
|
| 152 |
let payload = null; |
| 153 |
setSocialLoading(true); |
| 154 |
if (provider === 'google') { |
| 155 |
response = await TAKE_SOCIAL.onGoogleButtonPress(); |
| 156 |
payload = { |
| 157 |
email: response?.user?.email, |
| 158 |
social_id: response?.user?.id, |
| 159 |
name: response?.user?.name, |
| Error |
Row 160, Column 11: "Delete `⏎`"
prettier/prettier
|
| 160 |
}; |
| 161 |
|
| 162 |
} else if (provider === 'apple') { |
| 163 |
response = await TAKE_SOCIAL.onAppleButtonPress(); |
| 164 |
payload = { |
| 165 |
email: `${response?.additionalUserInfo.profile.email}`, |
| 166 |
social_id: response?.user.uid, |
| 167 |
name: response?.user.displayName, |
| 168 |
}; |
| 169 |
} else if (provider === 'facebook') { |
| 170 |
response = await TAKE_SOCIAL.onFacebookButtonPress(); |
| 171 |
payload = { |
| 172 |
email: response?.user?.email, |
| 173 |
social_id: response?.additionalUserInfo?.profile?.id, |
| 174 |
name: response?.user?.displayName, |
| 175 |
}; |
| Error |
Row 176, Column 1: "Delete `⏎`"
prettier/prettier
|
| 176 |
|
| 177 |
} else { |
| 178 |
response = await TAKE_SOCIAL.onTwitterButtonPress(); |
| 179 |
payload = { |
| 180 |
email: response?.additionalUserInfo?.profile?.email, |
| 181 |
social_id: response?.additionalUserInfo?.username, |
| 182 |
name: response?.user.displayName, |
| 183 |
}; |
| Error |
Row 184, Column 1: "Delete `⏎`"
prettier/prettier
|
| 184 |
|
| 185 |
} |
| 186 |
console.log('response of social in sigin::', response); |
| 187 |
await postSocialData(payload, provider); |
| 188 |
await sendToken(); |
| Error |
Row 189, Column 34: "Delete `⏎`"
prettier/prettier
|
| 189 |
navigation.replace('main'); |
| 190 |
|
| 191 |
} catch (error) { |
| 192 |
// console.log('error:::',error); |
| 193 |
alertRef.current.alertWithType( |
| 194 |
'error', |
| 195 |
'Error', |
| 196 |
UI_API._returnError(error), |
| 197 |
); |
| 198 |
} finally { |
| Error |
Row 199, Column 30: "Insert `;`"
prettier/prettier
|
| Warning |
Row 199, Column 30: "Missing semicolon."
semi
|
| 199 |
setSocialLoading(false) |
| 200 |
} |
| 201 |
}; |
| 202 |
|
| 203 |
const openSite = (screen, URL) => { |
| Error |
Row 204, Column 34: "Replace `·URL·` with `URL`"
prettier/prettier
|
| 204 |
navigation.navigate(screen, { URL }); |
| 205 |
}; |
| 206 |
|
| 207 |
return ( |
| 208 |
<KeyboardAvoidingView |
| Error |
Row 209, Column 5: "Replace `style={{·flex:·1,·backgroundColor:·colors.white·` with `··style={{flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 209, Column 12: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 209 |
style={{ flex: 1, backgroundColor: colors.white }} |
| Error |
Row 210, Column 5: "Insert `··`"
prettier/prettier
|
| 210 |
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}> |
| Error |
Row 211, Column 5: "Insert `··`"
prettier/prettier
|
| 211 |
<View style={styles.CONTAINER}> |
| Error |
Row 212, Column 1: "Replace `······` with `········`"
prettier/prettier
|
| 212 |
{/* <Header {...props} /> */} |
| 213 |
|
| Error |
Row 214, Column 7: "Insert `··`"
prettier/prettier
|
| 214 |
<ScrollView |
| Error |
Row 215, Column 1: "Insert `··`"
prettier/prettier
|
| 215 |
contentContainerStyle={styles.SCROLL_CONTAINER} |
| Error |
Row 216, Column 9: "Insert `··`"
prettier/prettier
|
| 216 |
ref={scrollRef}> |
| Error |
Row 217, Column 9: "Insert `··`"
prettier/prettier
|
| 217 |
<LargeLogo |
| Error |
Row 218, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 218 |
width={mvs(147)} |
| Error |
Row 219, Column 1: "Insert `··`"
prettier/prettier
|
| 219 |
height={mvs(126)} |
| Error |
Row 220, Column 11: "Replace `style={{·marginTop:·mvs(45),·alignSelf:·'center'·` with `··style={{marginTop:·mvs(45),·alignSelf:·'center'`"
prettier/prettier
|
| Warning |
Row 220, Column 18: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| 220 |
style={{ marginTop: mvs(45), alignSelf: 'center' }} |
| Error |
Row 221, Column 1: "Insert `··`"
prettier/prettier
|
| 221 |
/> |
| Error |
Row 222, Column 1: "Insert `··`"
prettier/prettier
|
| 222 |
<View style={styles.INPUT_CONTAINER}> |
| Error |
Row 223, Column 11: "Insert `··`"
prettier/prettier
|
| 223 |
<TAKE_TO_INPUT_FIELD.CustomInput |
| Error |
Row 224, Column 13: "Insert `··`"
prettier/prettier
|
| 224 |
value={payload.email} |
| Error |
Row 225, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Warning |
Row 225, Column 37: "["login_email"] is better written in dot notation."
dot-notation
|
| 225 |
label={inputTranslation['login_email']} |
| Error |
Row 226, Column 1: "Insert `··`"
prettier/prettier
|
| 226 |
onChangeText={value => onChangeField('email', value)} |
| Error |
Row 227, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 227, Column 43: "["login_email_placeholder"] is better written in dot notation."
dot-notation
|
| 227 |
placeholder={inputTranslation['login_email_placeholder']} |
| Error |
Row 228, Column 11: "Insert `··`"
prettier/prettier
|
| 228 |
/> |
| Error |
Row 229, Column 1: "Insert `··`"
prettier/prettier
|
| 229 |
<TAKE_TO_INPUT_FIELD.CustomInput |
| Error |
Row 230, Column 13: "Insert `··`"
prettier/prettier
|
| 230 |
secureTextEntry={eye} |
| Error |
Row 231, Column 13: "Insert `··`"
prettier/prettier
|
| 231 |
secure |
| Error |
Row 232, Column 1: "Insert `··`"
prettier/prettier
|
| 232 |
value={payload.password} |
| Error |
Row 233, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 233, Column 37: "["new_password"] is better written in dot notation."
dot-notation
|
| 233 |
label={inputTranslation['new_password']?.split(' ')[1]} |
| Error |
Row 234, Column 1: "Insert `··`"
prettier/prettier
|
| 234 |
onChangeText={value => onChangeField('password', value)} |
| Error |
Row 235, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Warning |
Row 235, Column 43: "["password_placeholder"] is better written in dot notation."
dot-notation
|
| 235 |
placeholder={inputTranslation['password_placeholder']} |
| Error |
Row 236, Column 13: "Insert `··`"
prettier/prettier
|
| 236 |
divider |
| Error |
Row 237, Column 1: "Insert `··`"
prettier/prettier
|
| 237 |
onPressIcon={() => setEye(!eye)} |
| Error |
Row 238, Column 11: "Insert `··`"
prettier/prettier
|
| 238 |
/> |
| Error |
Row 239, Column 1: "Insert `··`"
prettier/prettier
|
| 239 |
</View> |
| Error |
Row 240, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 240 |
<View style={styles.BTN_CONTAINER}> |
| Error |
Row 241, Column 11: "Insert `··`"
prettier/prettier
|
| 241 |
<Buttons.ButtonSecondaryOutline |
| Error |
Row 242, Column 1: "Insert `··`"
prettier/prettier
|
| 242 |
onClick={onLoginPress} |
| Error |
Row 243, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 243, Column 35: "["login"] is better written in dot notation."
dot-notation
|
| 243 |
title={btnTranslation['login']} |
| Error |
Row 244, Column 13: "Insert `··`"
prettier/prettier
|
| 244 |
loading={loading} |
| Error |
Row 245, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 245 |
disabled={loading} |
| Error |
Row 246, Column 1: "Insert `··`"
prettier/prettier
|
| 246 |
style={styles.BTN_LOGIN} |
| Error |
Row 247, Column 1: "Replace `············textStyle={{·color:·colors.typeHeader·` with `··············textStyle={{color:·colors.typeHeader`"
prettier/prettier
|
| 247 |
textStyle={{ color: colors.typeHeader }} |
| Error |
Row 248, Column 1: "Insert `··`"
prettier/prettier
|
| 248 |
/> |
| Error |
Row 249, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 249 |
<Buttons.ButtonSeconday |
| Error |
Row 250, Column 1: "Insert `··`"
prettier/prettier
|
| 250 |
onClick={() => setVisible(true)} |
| Error |
Row 251, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 251, Column 31: "["forgot_password"] is better written in dot notation."
dot-notation
|
| 251 |
title={authLables['forgot_password']} |
| Error |
Row 252, Column 13: "Replace `textStyle={{·color:·colors.typeHeader,·alignSelf:·'flex-end'·` with `··textStyle={{color:·colors.typeHeader,·alignSelf:·'flex-end'`"
prettier/prettier
|
| Warning |
Row 252, Column 24: "Inline style: { alignSelf: 'flex-end' }"
react-native/no-inline-styles
|
| 252 |
textStyle={{ color: colors.typeHeader, alignSelf: 'flex-end' }} |
| Error |
Row 253, Column 1: "Replace `············style={{·...styles.BTN_LOGIN,·paddingRight:·mvs(5)·` with `··············style={{...styles.BTN_LOGIN,·paddingRight:·mvs(5)`"
prettier/prettier
|
| 253 |
style={{ ...styles.BTN_LOGIN, paddingRight: mvs(5) }} |
| Error |
Row 254, Column 1: "Insert `··`"
prettier/prettier
|
| 254 |
/> |
| Error |
Row 255, Column 9: "Insert `··`"
prettier/prettier
|
| 255 |
</View> |
| Error |
Row 256, Column 9: "Insert `··`"
prettier/prettier
|
| 256 |
<View |
| Error |
Row 257, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 257, Column 18: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| 257 |
style={{ |
| Error |
Row 258, Column 13: "Insert `··`"
prettier/prettier
|
| 258 |
...styles.BTN_CONTAINER, |
| Error |
Row 259, Column 1: "Insert `··`"
prettier/prettier
|
| 259 |
justifyContent: 'center', |
| Error |
Row 260, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 260 |
marginTop: mvs(xdHeight(52)), |
| Error |
Row 261, Column 11: "Insert `··`"
prettier/prettier
|
| 261 |
}}> |
| Error |
Row 262, Column 1: "Insert `··`"
prettier/prettier
|
| 262 |
<Buttons.ButtonPrimary |
| Error |
Row 263, Column 13: "Replace `onClick={()·=>·navigation.navigate('register',·{·socialData:·undefined·})` with `··onClick={()·=>⏎················navigation.navigate('register',·{socialData:·undefined})⏎··············`"
prettier/prettier
|
| 263 |
onClick={() => navigation.navigate('register', { socialData: undefined })} |
| Error |
Row 264, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Warning |
Row 264, Column 35: "["signup"] is better written in dot notation."
dot-notation
|
| 264 |
title={btnTranslation['signup']} |
| Error |
Row 265, Column 13: "Insert `··`"
prettier/prettier
|
| 265 |
style={styles.BTN_LOGIN} |
| Error |
Row 266, Column 1: "Insert `··`"
prettier/prettier
|
| 266 |
/> |
| Error |
Row 267, Column 9: "Insert `··`"
prettier/prettier
|
| 267 |
</View> |
| Error |
Row 268, Column 9: "Insert `··`"
prettier/prettier
|
| 268 |
<View |
| Error |
Row 269, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Warning |
Row 269, Column 18: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| 269 |
style={{ |
| Error |
Row 270, Column 1: "Insert `··`"
prettier/prettier
|
| 270 |
...styles.BTN_CONTAINER, |
| Error |
Row 271, Column 1: "Insert `··`"
prettier/prettier
|
| 271 |
justifyContent: 'center', |
| Error |
Row 272, Column 13: "Insert `··`"
prettier/prettier
|
| 272 |
marginTop: mvs(xdHeight(17)), |
| Error |
Row 273, Column 1: "Insert `··`"
prettier/prettier
|
| 273 |
marginBottom: mvs(xdHeight(11)), |
| Error |
Row 274, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 274 |
}}> |
| Error |
Row 275, Column 1: "Insert `··`"
prettier/prettier
|
| 275 |
<Regular |
| Error |
Row 276, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 276, Column 31: "["or"] is better written in dot notation."
dot-notation
|
| 276 |
label={authLables['or']} |
| Error |
Row 277, Column 13: "Replace `style={{·color:·colors.typeHeader·` with `··style={{color:·colors.typeHeader`"
prettier/prettier
|
| 277 |
style={{ color: colors.typeHeader }} |
| Error |
Row 278, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 278 |
/> |
| Error |
Row 279, Column 1: "Insert `··`"
prettier/prettier
|
| 279 |
</View> |
| Error |
Row 280, Column 9: "Insert `··`"
prettier/prettier
|
| 280 |
<View |
| Error |
Row 281, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Warning |
Row 281, Column 18: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| 281 |
style={{ |
| Error |
Row 282, Column 1: "Insert `··`"
prettier/prettier
|
| 282 |
...styles.BTN_CONTAINER, |
| Error |
Row 283, Column 1: "Insert `··`"
prettier/prettier
|
| 283 |
alignSelf: 'center', |
| Error |
Row 284, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 284, Column 36: "Expected '===' and instead saw '=='."
eqeqeq
|
| 284 |
width: mvs(Platform.OS == 'ios' ? 227 : 160), |
| Error |
Row 285, Column 11: "Insert `··`"
prettier/prettier
|
| 285 |
}}> |
| Error |
Row 286, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 286 |
<Twitter |
| Error |
Row 287, Column 1: "Insert `··`"
prettier/prettier
|
| 287 |
onPress={() => socialHandler('twitter')} |
| Error |
Row 288, Column 1: "Insert `··`"
prettier/prettier
|
| 288 |
height={mvs(41)} |
| Error |
Row 289, Column 13: "Insert `··`"
prettier/prettier
|
| 289 |
width={mvs(41)} |
| Error |
Row 290, Column 11: "Insert `··`"
prettier/prettier
|
| 290 |
/> |
| Error |
Row 291, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 291 |
<Facebook |
| Error |
Row 292, Column 1: "Insert `··`"
prettier/prettier
|
| 292 |
onPress={() => socialHandler('facebook')} |
| Error |
Row 293, Column 1: "Insert `··`"
prettier/prettier
|
| 293 |
height={mvs(41)} |
| Error |
Row 294, Column 13: "Insert `··`"
prettier/prettier
|
| 294 |
width={mvs(41)} |
| Error |
Row 295, Column 11: "Insert `··`"
prettier/prettier
|
| 295 |
/> |
| Error |
Row 296, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 296 |
<Google |
| Error |
Row 297, Column 1: "Insert `··`"
prettier/prettier
|
| 297 |
onPress={() => socialHandler('google')} |
| Error |
Row 298, Column 1: "Insert `··`"
prettier/prettier
|
| 298 |
height={mvs(41)} |
| Error |
Row 299, Column 13: "Insert `··`"
prettier/prettier
|
| 299 |
width={mvs(41)} |
| Error |
Row 300, Column 11: "Insert `··`"
prettier/prettier
|
| 300 |
/> |
| Error |
Row 301, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 301, Column 24: "Expected '===' and instead saw '=='."
eqeqeq
|
| 301 |
{Platform.OS == 'ios' && ( |
| Error |
Row 302, Column 13: "Insert `··`"
prettier/prettier
|
| 302 |
<Apple |
| Error |
Row 303, Column 1: "Insert `··`"
prettier/prettier
|
| 303 |
onPress={() => socialHandler('apple')} |
| Error |
Row 304, Column 15: "Insert `··`"
prettier/prettier
|
| 304 |
fill={colors.black} |
| Error |
Row 305, Column 15: "Insert `··`"
prettier/prettier
|
| 305 |
height={mvs(41)} |
| Error |
Row 306, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 306 |
width={mvs(41)} |
| Error |
Row 307, Column 13: "Insert `··`"
prettier/prettier
|
| 307 |
/> |
| Error |
Row 308, Column 1: "Insert `··`"
prettier/prettier
|
| 308 |
)} |
| Error |
Row 309, Column 9: "Insert `··`"
prettier/prettier
|
| 309 |
</View> |
| 310 |
|
| Error |
Row 311, Column 9: "Insert `··`"
prettier/prettier
|
| 311 |
<View |
| Error |
Row 312, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Warning |
Row 312, Column 18: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| 312 |
style={{ |
| Error |
Row 313, Column 1: "Insert `··`"
prettier/prettier
|
| 313 |
...styles.BTN_CONTAINER, |
| Error |
Row 314, Column 1: "Insert `··`"
prettier/prettier
|
| 314 |
justifyContent: 'center', |
| Error |
Row 315, Column 13: "Insert `··`"
prettier/prettier
|
| 315 |
marginTop: mvs(xdHeight(52)), |
| Error |
Row 316, Column 11: "Insert `··`"
prettier/prettier
|
| 316 |
}}> |
| Error |
Row 317, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 317 |
<Buttons.ButtonSeconday |
| Error |
Row 318, Column 13: "Insert `··`"
prettier/prettier
|
| 318 |
onClick={() => { |
| Error |
Row 319, Column 1: "Insert `··`"
prettier/prettier
|
| 319 |
onChangeGuest(true); |
| Error |
Row 320, Column 15: "Insert `··`"
prettier/prettier
|
| 320 |
navigation.navigate('main'); |
| Error |
Row 321, Column 13: "Insert `··`"
prettier/prettier
|
| 321 |
}} |
| Error |
Row 322, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 322, Column 31: "["skip_to_services"] is better written in dot notation."
dot-notation
|
| 322 |
title={authLables['skip_to_services']} |
| Error |
Row 323, Column 13: "Insert `··`"
prettier/prettier
|
| 323 |
style={styles.BTN_LOGIN} |
| Error |
Row 324, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 324, Column 24: "Inline style: { textDecorationLine: 'underline', textAlign: 'center' }"
react-native/no-inline-styles
|
| 324 |
textStyle={{ |
| Error |
Row 325, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 325 |
textDecorationLine: 'underline', |
| Error |
Row 326, Column 15: "Insert `··`"
prettier/prettier
|
| 326 |
textAlign: 'center', |
| Error |
Row 327, Column 1: "Insert `··`"
prettier/prettier
|
| 327 |
color: colors.typeHeader, |
| Error |
Row 328, Column 13: "Insert `··`"
prettier/prettier
|
| 328 |
}} |
| Error |
Row 329, Column 1: "Insert `··`"
prettier/prettier
|
| 329 |
/> |
| Error |
Row 330, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 330 |
</View> |
| Error |
Row 331, Column 1: "Insert `··`"
prettier/prettier
|
| 331 |
<DualText |
| Error |
Row 332, Column 1: "Insert `··`"
prettier/prettier
|
| 332 |
style={styles.PRIVACY_LABEL} |
| Error |
Row 333, Column 11: "Insert `··`"
prettier/prettier
|
| Warning |
Row 333, Column 34: "["by_signup_agree"] is better written in dot notation."
dot-notation
|
| 333 |
content={`${authLables['by_signup_agree']} `} |
| Error |
Row 334, Column 11: "Insert `··`"
prettier/prettier
|
| Warning |
Row 334, Column 37: "["terms_of_use"] is better written in dot notation."
dot-notation
|
| 334 |
highlightText={authLables['terms_of_use']} |
| Error |
Row 335, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 335 |
onPress={() => openSite('termsofuse', 'terms-of-use')}> |
| Error |
Row 336, Column 11: "Insert `··`"
prettier/prettier
|
| 336 |
<DualText |
| Error |
Row 337, Column 1: "Insert `··`"
prettier/prettier
|
| 337 |
style={styles.PRIVACY_LABEL} |
| Error |
Row 338, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 338, Column 37: "["and"] is better written in dot notation."
dot-notation
|
| 338 |
content={` ${authLables['and']} `} |
| Error |
Row 339, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 339, Column 39: "["privacy_policy"] is better written in dot notation."
dot-notation
|
| 339 |
highlightText={authLables['privacy_policy']} |
| Error |
Row 340, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 340 |
onPress={() => openSite('privacypolicy', 'privacy-policy')} |
| Error |
Row 341, Column 11: "Insert `··`"
prettier/prettier
|
| 341 |
/> |
| Error |
Row 342, Column 1: "Insert `··`"
prettier/prettier
|
| 342 |
</DualText> |
| Error |
Row 343, Column 1: "Replace `······` with `········`"
prettier/prettier
|
| 343 |
</ScrollView> |
| 344 |
|
| Error |
Row 345, Column 1: "Insert `··`"
prettier/prettier
|
| 345 |
<ResetPasswordModal |
| Error |
Row 346, Column 1: "Replace `········onOkResult={({·email,·otp·` with `··········onOkResult={({email,·otp`"
prettier/prettier
|
| 346 |
onOkResult={({ email, otp }) => { |
| Error |
Row 347, Column 1: "Replace `··········setForgotPayload({·...forgotPayload,·email,·otp·` with `············setForgotPayload({...forgotPayload,·email,·otp`"
prettier/prettier
|
| 347 |
setForgotPayload({ ...forgotPayload, email, otp }); |
| Error |
Row 348, Column 1: "Insert `··`"
prettier/prettier
|
| 348 |
setVisible(false); |
| Error |
Row 349, Column 1: "Insert `··`"
prettier/prettier
|
| 349 |
setIsOtpModal(true); |
| Error |
Row 350, Column 9: "Insert `··`"
prettier/prettier
|
| 350 |
}} |
| Error |
Row 351, Column 1: "Insert `··`"
prettier/prettier
|
| 351 |
visible={visible} |
| Error |
Row 352, Column 1: "Insert `··`"
prettier/prettier
|
| 352 |
onClose={() => setVisible(false)} |
| Error |
Row 353, Column 7: "Insert `··`"
prettier/prettier
|
| 353 |
/> |
| 354 |
|
| Error |
Row 355, Column 1: "Replace `⏎······` with `········`"
prettier/prettier
|
| 355 |
|
| 356 |
<EmailVerificationModal |
| Error |
Row 357, Column 1: "Insert `··`"
prettier/prettier
|
| 357 |
isChangePassword={true} |
| Error |
Row 358, Column 1: "Insert `··`"
prettier/prettier
|
| 358 |
onOkResult={() => { |
| Error |
Row 359, Column 11: "Insert `··`"
prettier/prettier
|
| 359 |
// console.log('on ok forgotPayload::',forgotPayload); |
| Error |
Row 360, Column 11: "Insert `··`"
prettier/prettier
|
| 360 |
setIsOtpModal(false); |
| Error |
Row 361, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 361 |
setIsPasswordModal(true); |
| Error |
Row 362, Column 1: "Insert `··`"
prettier/prettier
|
| 362 |
}} |
| Error |
Row 363, Column 9: "Insert `··`"
prettier/prettier
|
| 363 |
forgotPayload={forgotPayload} |
| Error |
Row 364, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 364 |
onClose={() => setIsOtpModal(false)} |
| Error |
Row 365, Column 9: "Insert `··`"
prettier/prettier
|
| 365 |
setForgotPayload={setForgotPayload} |
| Error |
Row 366, Column 1: "Insert `··`"
prettier/prettier
|
| 366 |
visible={isOtpModal} |
| Error |
Row 367, Column 7: "Insert `··`"
prettier/prettier
|
| 367 |
/> |
| 368 |
|
| Error |
Row 369, Column 1: "Replace `⏎` with `··`"
prettier/prettier
|
| 369 |
|
| 370 |
<ChangePasswordModal |
| Error |
Row 371, Column 9: "Replace `forgotPayload={forgotPayload}·onClose={()·=>·setIsPasswordModal(false)}·visible={isPasswordModal}` with `··forgotPayload={forgotPayload}⏎··········onClose={()·=>·setIsPasswordModal(false)}⏎··········visible={isPasswordModal}⏎·······`"
prettier/prettier
|
| 371 |
forgotPayload={forgotPayload} onClose={() => setIsPasswordModal(false)} visible={isPasswordModal} /> |
| 372 |
|
| Error |
Row 373, Column 1: "Replace `······{socialloading·&&·prettier/prettier
|
| Warning |
Row 373, Column 38: "Inline style: {
position: 'absolute',
height: '100%',
width: '100%',
backgroundColor: 'rgba(255,255,255,0.5)',
alignItems: 'center',
justifyContent: 'center'
}"
react-native/no-inline-styles
|
| 373 |
{socialloading && <View style={{ position: 'absolute', height: '100%', width: '100%', backgroundColor: 'rgba(255,255,255,0.5)', alignItems: 'center', justifyContent: 'center' }}> |
| Error |
Row 374, Column 1: "Insert `····`"
prettier/prettier
|
| 374 |
<ActivityIndicator size={'small'} color={colors.typeHeader} /> |
| Error |
Row 375, Column 7: "Replace `` with `····⏎········)`"
prettier/prettier
|
| 375 |
</View>} |
| Error |
Row 376, Column 1: "Replace `·······prettier/prettier
|
| 376 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| Error |
Row 377, Column 1: "Insert `··`"
prettier/prettier
|
| 377 |
</View> |
| 378 |
</KeyboardAvoidingView> |
| 379 |
); |
| 380 |
}; |
| 381 |
|
| 382 |
const mapStateToProps = state => { |
| 383 |
return { |
| 384 |
authData: state.auth, |
| 385 |
langauge: state.common?.langauge, |
| 386 |
}; |
| 387 |
}; |
| 388 |
|
| 389 |
const mapDispatchToProps = dispatch => ({ |
| 390 |
postSigninData: data => dispatch(TAKE_TO_ACTIONS.postSigninData(data)), |
| Error |
Row 391, Column 38: "Insert `⏎···`"
prettier/prettier
|
| 391 |
postSocialData: (data, provider) => dispatch(TAKE_TO_ACTIONS.postSocialData(data, provider)), |
| 392 |
onChangeGuest: bool => dispatch(TAKE_TO_ACTIONS.onChangeGuest(bool)), |
| 393 |
activeCountryList: countryList => |
| 394 |
dispatch(TAKE_TO_ACTIONS.activeCountryList(countryList)), |
| Warning |
Row 395, Column 65: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 395, Column 65: "Delete `··`"
prettier/prettier
|
| 395 |
fetchEcho: echo => dispatch(TAKE_TO_ACTIONS?.fetchEcho(echo)), |
| 396 |
}); |
| 397 |
// export default SignInScreen; |
| 398 |
export default connect(mapStateToProps, mapDispatchToProps)(SignInPage); |
| 399 |
const styles = StyleSheet.create({ |
| 400 |
CONTAINER: { |
| 401 |
flex: 1, |
| 402 |
backgroundColor: colors.white, |
| 403 |
}, |
| 404 |
BTN_CONTAINER: { |
| 405 |
flexDirection: 'row', |
| 406 |
alignItems: 'center', |
| 407 |
justifyContent: 'space-between', |
| 408 |
}, |
| 409 |
BTN_LOGIN: { |
| 410 |
width: '47%', |
| 411 |
}, |
| 412 |
|
| 413 |
SCROLL_CONTAINER: { |
| 414 |
paddingHorizontal: mvs(xdHeight(22)), |
| 415 |
paddingBottom: mvs(10), |
| 416 |
}, |
| 417 |
INPUT_CONTAINER: { |
| 418 |
paddingTop: mvs(57), |
| 419 |
}, |
| 420 |
PRIVACY_LABEL: { |
| 421 |
marginTop: mvs(xdHeight(25)), |
| 422 |
textAlign: 'center', |
| 423 |
color: colors.typeHeader, |
| 424 |
fontSize: mvs(11), |
| 425 |
}, |
| 426 |
}); |
| 427 |
|
|
|
|
/src/components/pages/index.js
|
5 problems (2 errors, 3 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 35: "Insert `;`"
prettier/prettier
|
| Warning |
Row 1, Column 35: "Missing semicolon."
semi
|
| Warning |
Row 2, Column 35: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 2, Column 35: "Insert `;⏎`"
prettier/prettier
|
| Warning |
Row 2, Column 35: "Missing semicolon."
semi
|
| Line |
Source |
| Error |
Row 1, Column 35: "Insert `;`"
prettier/prettier
|
| Warning |
Row 1, Column 35: "Missing semicolon."
semi
|
| 1 |
export * from './auth/singIn-page' |
| Warning |
Row 2, Column 35: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 2, Column 35: "Insert `;⏎`"
prettier/prettier
|
| Warning |
Row 2, Column 35: "Missing semicolon."
semi
|
| 2 |
export * from './auth/signUp-page' |
|
|
|
/src/config/axios-interceptor.js
|
23 problems (15 errors, 8 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 8, Column 1: "'source' is not defined."
no-undef
|
| Error |
Row 9, Column 1: "'client' is not defined."
no-undef
|
| Error |
Row 12, Column 1: "'messangerClient' is not defined."
no-undef
|
| Error |
Row 17, Column 1: "'client' is not defined."
no-undef
|
| Error |
Row 27, Column 26: "'source' is not defined."
no-undef
|
| Warning |
Row 29, Column 22: "["Authorization"] is better written in dot notation."
dot-notation
|
| Warning |
Row 30, Column 9: "Strings must use singlequote."
quotes
|
| Error |
Row 40, Column 1: "'client' is not defined."
no-undef
|
| Error |
Row 52, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 61, Column 19: "Replace `"Token·info:·",·tokenInfo)` with `'Token·info:·',·tokenInfo);`"
prettier/prettier
|
| Warning |
Row 61, Column 19: "Strings must use singlequote."
quotes
|
| Warning |
Row 61, Column 45: "Missing semicolon."
semi
|
| Warning |
Row 64, Column 39: "["Authorization"] is better written in dot notation."
dot-notation
|
| Error |
Row 66, Column 16: "'client' is not defined."
no-undef
|
| Error |
Row 70, Column 36: "Replace `·index:·0,·routes:·[{·name:·'login'·}]·});⏎` with `index:·0,·routes:·[{name:·'login'}]});`"
prettier/prettier
|
| Error |
Row 78, Column 3: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 82, Column 1: "'messangerClient' is not defined."
no-undef
|
| Error |
Row 92, Column 26: "'source' is not defined."
no-undef
|
| Warning |
Row 94, Column 22: "["Authorization"] is better written in dot notation."
dot-notation
|
| Warning |
Row 95, Column 9: "Strings must use singlequote."
quotes
|
| Error |
Row 105, Column 1: "'messangerClient' is not defined."
no-undef
|
| Warning |
Row 115, Column 11: "'token' is assigned a value but never used."
no-unused-vars
|
| Line |
Source |
| Error |
Row 1, Column 1: "Delete `⏎`"
prettier/prettier
|
| 1 |
|
| 2 |
import TAKE_2_API from '@khan_ahmad786/common/api/API'; |
| 3 |
import services from '@khan_ahmad786/common/api/services'; |
| 4 |
import axios from '@khan_ahmad786/common/utils/axios'; |
| 5 |
import AsyncStorage from '@react-native-async-storage/async-storage'; |
| 6 |
|
| 7 |
const CancelToken = axios.CancelToken; |
| Error |
Row 8, Column 1: "'source' is not defined."
no-undef
|
| 8 |
source = CancelToken.source(); |
| Error |
Row 9, Column 1: "'client' is not defined."
no-undef
|
| 9 |
client = axios.create({ |
| 10 |
baseURL: services.base_url, |
| 11 |
}); |
| Error |
Row 12, Column 1: "'messangerClient' is not defined."
no-undef
|
| 12 |
messangerClient = axios.create({ |
| 13 |
baseURL: services.chat_base_url, |
| 14 |
}); |
| 15 |
|
| 16 |
//Axios Interceptors |
| Error |
Row 17, Column 1: "'client' is not defined."
no-undef
|
| 17 |
client.interceptors.request.use( |
| 18 |
async config => { |
| 19 |
const token = await AsyncStorage.getItem('@token'); |
| 20 |
config.headers = { |
| 21 |
Accept: 'application/json', |
| 22 |
'Cache-Control': 'no-cache', |
| 23 |
'Content-Type': 'multipart/form-data, application/json', |
| 24 |
}; |
| 25 |
|
| 26 |
config.params = config.params || {}; |
| Error |
Row 27, Column 26: "'source' is not defined."
no-undef
|
| 27 |
config.cancelToken = source.token || {}; |
| 28 |
if (JSON.parse(token)) { |
| Warning |
Row 29, Column 22: "["Authorization"] is better written in dot notation."
dot-notation
|
| 29 |
config.headers['Authorization'] = |
| Warning |
Row 30, Column 9: "Strings must use singlequote."
quotes
|
| 30 |
`Bearer ` + JSON.parse(token)?.access_token; |
| 31 |
} |
| 32 |
return config; |
| 33 |
}, |
| 34 |
error => { |
| 35 |
console.log('I am here'); |
| 36 |
Promise.reject(error); |
| 37 |
}, |
| 38 |
); |
| 39 |
|
| Error |
Row 40, Column 1: "'client' is not defined."
no-undef
|
| 40 |
client.interceptors.response.use( |
| 41 |
response => { |
| 42 |
// AsyncStorage.clear(); |
| 43 |
|
| 44 |
console.log('RESPONSE INTERCPTOR : ', response?.status); |
| 45 |
return response; |
| 46 |
}, |
| 47 |
async function (error) { |
| 48 |
console.log('INTERCEPTOR ERROR RESPONSE : ', error?.response?.status); |
| 49 |
console.log('INTERCEPTOR ERROR RESPONSE CONFIG: ', error?.config); |
| 50 |
const token = await AsyncStorage.getItem('@token'); |
| 51 |
|
| Error |
Row 52, Column 1: "Delete `⏎`"
prettier/prettier
|
| 52 |
|
| 53 |
const originalRequest = error.config; |
| 54 |
if (error?.response?.status === undefined && error?.config === undefined) { |
| 55 |
return Promise.reject('Hi Dude'); |
| 56 |
} else if (error?.response?.status === 401) { |
| 57 |
originalRequest._retry = true; |
| 58 |
const tokenInfo = await TAKE_2_API.tokenRefresh( |
| 59 |
JSON.parse(token)?.refresh_token, |
| 60 |
); |
| Error |
Row 61, Column 19: "Replace `"Token·info:·",·tokenInfo)` with `'Token·info:·',·tokenInfo);`"
prettier/prettier
|
| Warning |
Row 61, Column 19: "Strings must use singlequote."
quotes
|
| Warning |
Row 61, Column 45: "Missing semicolon."
semi
|
| 61 |
console.log("Token info: ", tokenInfo) |
| 62 |
if (tokenInfo) { |
| 63 |
await AsyncStorage.setItem('@token', JSON.stringify(tokenInfo)); |
| Warning |
Row 64, Column 39: "["Authorization"] is better written in dot notation."
dot-notation
|
| 64 |
axios.defaults.headers.common['Authorization'] = |
| 65 |
'Bearer ' + tokenInfo?.access_token; |
| Error |
Row 66, Column 16: "'client' is not defined."
no-undef
|
| 66 |
return client(originalRequest); |
| 67 |
} else { |
| 68 |
AsyncStorage.multiRemove(['@token']).then(res => { |
| 69 |
// props.navigation.navigate('signIn'); |
| Error |
Row 70, Column 36: "Replace `·index:·0,·routes:·[{·name:·'login'·}]·});⏎` with `index:·0,·routes:·[{name:·'login'}]});`"
prettier/prettier
|
| 70 |
global.navigation.reset({ index: 0, routes: [{ name: 'login' }] }); |
| 71 |
|
| 72 |
}); |
| 73 |
return Promise.reject(error); |
| 74 |
} |
| 75 |
} |
| 76 |
return Promise.reject(error); |
| 77 |
}, |
| Error |
Row 78, Column 3: "Delete `⏎`"
prettier/prettier
|
| 78 |
); |
| 79 |
|
| 80 |
|
| 81 |
//Axios Interceptors |
| Error |
Row 82, Column 1: "'messangerClient' is not defined."
no-undef
|
| 82 |
messangerClient.interceptors.request.use( |
| 83 |
async config => { |
| 84 |
const token = await AsyncStorage.getItem('@token'); |
| 85 |
config.headers = { |
| 86 |
Accept: 'application/json', |
| 87 |
'Cache-Control': 'no-cache', |
| 88 |
'Content-Type': 'multipart/form-data, application/json', |
| 89 |
}; |
| 90 |
|
| 91 |
config.params = config.params || {}; |
| Error |
Row 92, Column 26: "'source' is not defined."
no-undef
|
| 92 |
config.cancelToken = source.token || {}; |
| 93 |
if (JSON.parse(token)) { |
| Warning |
Row 94, Column 22: "["Authorization"] is better written in dot notation."
dot-notation
|
| 94 |
config.headers['Authorization'] = |
| Warning |
Row 95, Column 9: "Strings must use singlequote."
quotes
|
| 95 |
`Bearer ` + JSON.parse(token)?.access_token; |
| 96 |
} |
| 97 |
return config; |
| 98 |
}, |
| 99 |
error => { |
| 100 |
console.log('I am here'); |
| 101 |
Promise.reject(error); |
| 102 |
}, |
| 103 |
); |
| 104 |
|
| Error |
Row 105, Column 1: "'messangerClient' is not defined."
no-undef
|
| 105 |
messangerClient.interceptors.response.use( |
| 106 |
response => { |
| 107 |
// AsyncStorage.clear(); |
| 108 |
|
| 109 |
console.log('RESPONSE INTERCPTOR : ', response?.status); |
| 110 |
return response; |
| 111 |
}, |
| 112 |
async function (error) { |
| 113 |
console.log('INTERCEPTOR ERROR RESPONSE : ', error?.response?.status); |
| 114 |
console.log('INTERCEPTOR ERROR RESPONSE CONFIG: ', error?.config); |
| Warning |
Row 115, Column 11: "'token' is assigned a value but never used."
no-unused-vars
|
| 115 |
const token = await AsyncStorage.getItem('@token'); |
| 116 |
const originalRequest = error.config; |
| 117 |
if (error?.response?.status === undefined && error?.config === undefined) { |
| 118 |
return Promise.reject('Hi Dude'); |
| 119 |
} else if (error?.response?.status === 401) { |
| 120 |
originalRequest._retry = true; |
| 121 |
// const tokenInfo = await TAKE_TO_ACTIONS.tokenRefresh( |
| 122 |
// JSON.parse(token)?.token?.refresh_token, |
| 123 |
// ); |
| 124 |
// console.log("Token info: ",tokenInfo) |
| 125 |
// if (tokenInfo) { |
| 126 |
// await AsyncStorage.setItem('@token', JSON.stringify({token:tokenInfo})); |
| 127 |
// axios.defaults.headers.common['Authorization'] = |
| 128 |
// 'Bearer ' + tokenInfo?.access_token; |
| 129 |
// return client(originalRequest); |
| 130 |
// } else { |
| 131 |
// AsyncStorage.multiRemove(['user_data', 'token']).then(res => { |
| 132 |
// // props.navigation.navigate('signIn'); |
| 133 |
// global.navigation.navigate('getStarted'); |
| 134 |
// global.navigation.dispatch(StackActions.replace('getStarted')); |
| 135 |
// }); |
| 136 |
// return Promise.reject(error); |
| 137 |
// } |
| 138 |
} |
| 139 |
return Promise.reject(error); |
| 140 |
}, |
| 141 |
); |
| 142 |
|
|
|
|
/src/config/button.js
|
63 problems (49 errors, 14 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 1: "Insert `·`"
prettier/prettier
|
| Error |
Row 3, Column 1: "Insert `·`"
prettier/prettier
|
| Error |
Row 4, Column 9: "Replace `·StyleSheet·` with `StyleSheet`"
prettier/prettier
|
| Error |
Row 5, Column 9: "Replace `·px2dp·` with `px2dp`"
prettier/prettier
|
| Warning |
Row 5, Column 10: "'px2dp' is defined but never used."
no-unused-vars
|
| Error |
Row 8, Column 9: "Replace `·ms,·mvs,·scale,·xdHeight·` with `ms,·mvs,·scale,·xdHeight`"
prettier/prettier
|
| Warning |
Row 8, Column 10: "'ms' is defined but never used."
no-unused-vars
|
| Warning |
Row 8, Column 19: "'scale' is defined but never used."
no-unused-vars
|
| Warning |
Row 8, Column 26: "'xdHeight' is defined but never used."
no-unused-vars
|
| Error |
Row 13, Column 16: "Insert `·`"
prettier/prettier
|
| Error |
Row 14, Column 20: "Insert `·`"
prettier/prettier
|
| Error |
Row 15, Column 21: "Insert `·`"
prettier/prettier
|
| Error |
Row 17, Column 11: "Replace `'100%'` with `·'100%',`"
prettier/prettier
|
| Warning |
Row 17, Column 17: "Missing trailing comma."
comma-dangle
|
| Error |
Row 21, Column 16: "Insert `·`"
prettier/prettier
|
| Error |
Row 22, Column 20: "Insert `·`"
prettier/prettier
|
| Error |
Row 23, Column 21: "Insert `·`"
prettier/prettier
|
| Error |
Row 25, Column 11: "Insert `·`"
prettier/prettier
|
| Error |
Row 26, Column 17: "Insert `·`"
prettier/prettier
|
| Error |
Row 27, Column 17: "Replace `colors.doted` with `·colors.doted,`"
prettier/prettier
|
| Warning |
Row 27, Column 29: "Missing trailing comma."
comma-dangle
|
| Error |
Row 29, Column 23: "Delete `⏎···`"
prettier/prettier
|
| Warning |
Row 30, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 31, Column 30: "Insert `,`"
prettier/prettier
|
| Warning |
Row 31, Column 30: "Missing trailing comma."
comma-dangle
|
| Error |
Row 35, Column 16: "Insert `·`"
prettier/prettier
|
| Error |
Row 36, Column 20: "Insert `·`"
prettier/prettier
|
| Error |
Row 37, Column 21: "Insert `·`"
prettier/prettier
|
| Error |
Row 39, Column 11: "Replace `'100%'` with `·'100%',`"
prettier/prettier
|
| Warning |
Row 39, Column 17: "Missing trailing comma."
comma-dangle
|
| Error |
Row 44, Column 19: "Insert `,`"
prettier/prettier
|
| Warning |
Row 44, Column 19: "Missing trailing comma."
comma-dangle
|
| Error |
Row 47, Column 19: "Insert `·`"
prettier/prettier
|
| Error |
Row 48, Column 23: "Insert `·`"
prettier/prettier
|
| Error |
Row 49, Column 20: "Insert `·`"
prettier/prettier
|
| Error |
Row 51, Column 16: "Insert `·`"
prettier/prettier
|
| Error |
Row 52, Column 21: "Insert `·`"
prettier/prettier
|
| Error |
Row 57, Column 19: "Insert `·`"
prettier/prettier
|
| Error |
Row 58, Column 23: "Insert `·`"
prettier/prettier
|
| Error |
Row 59, Column 20: "Insert `·`"
prettier/prettier
|
| Error |
Row 61, Column 16: "Insert `·`"
prettier/prettier
|
| Error |
Row 62, Column 21: "Insert `·`"
prettier/prettier
|
| Error |
Row 65, Column 14: "Insert `·`"
prettier/prettier
|
| Error |
Row 66, Column 21: "Insert `·`"
prettier/prettier
|
| Error |
Row 67, Column 12: "Insert `·`"
prettier/prettier
|
| Error |
Row 68, Column 11: "Insert `·`"
prettier/prettier
|
| Error |
Row 69, Column 20: "Insert `·`"
prettier/prettier
|
| Error |
Row 70, Column 16: "Insert `·`"
prettier/prettier
|
| Error |
Row 71, Column 17: "Insert `·`"
prettier/prettier
|
| Error |
Row 72, Column 18: "Replace `mvs(10)` with `·mvs(10),`"
prettier/prettier
|
| Warning |
Row 72, Column 25: "Missing trailing comma."
comma-dangle
|
| Error |
Row 74, Column 21: "Insert `·`"
prettier/prettier
|
| Error |
Row 75, Column 1: "Replace `···flexDirection:` with `····flexDirection:·`"
prettier/prettier
|
| Error |
Row 76, Column 1: "Replace `···alignItems:` with `····alignItems:·`"
prettier/prettier
|
| Error |
Row 77, Column 4: "Replace `justifyContent:` with `·justifyContent:·`"
prettier/prettier
|
| Error |
Row 79, Column 24: "Insert `·`"
prettier/prettier
|
| Error |
Row 80, Column 19: "Insert `·`"
prettier/prettier
|
| Error |
Row 81, Column 16: "Insert `·`"
prettier/prettier
|
| Error |
Row 82, Column 3: "Replace `·}` with `},`"
prettier/prettier
|
| Warning |
Row 82, Column 5: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 105, Column 28: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 105, Column 28: "Insert `;⏎`"
prettier/prettier
|
| Warning |
Row 105, Column 28: "Missing semicolon."
semi
|
| Line |
Source |
| 1 |
/** |
| Error |
Row 2, Column 1: "Insert `·`"
prettier/prettier
|
| 2 |
* @providesModule ButtonStyles |
| Error |
Row 3, Column 1: "Insert `·`"
prettier/prettier
|
| 3 |
*/ |
| Error |
Row 4, Column 9: "Replace `·StyleSheet·` with `StyleSheet`"
prettier/prettier
|
| 4 |
import { StyleSheet } from 'react-native'; |
| Error |
Row 5, Column 9: "Replace `·px2dp·` with `px2dp`"
prettier/prettier
|
| Warning |
Row 5, Column 10: "'px2dp' is defined but never used."
no-unused-vars
|
| 5 |
import { px2dp } from 'react-native-style-adaptive'; |
| 6 |
import colors from './colors'; |
| 7 |
|
| Error |
Row 8, Column 9: "Replace `·ms,·mvs,·scale,·xdHeight·` with `ms,·mvs,·scale,·xdHeight`"
prettier/prettier
|
| Warning |
Row 8, Column 10: "'ms' is defined but never used."
no-unused-vars
|
| Warning |
Row 8, Column 19: "'scale' is defined but never used."
no-unused-vars
|
| Warning |
Row 8, Column 26: "'xdHeight' is defined but never used."
no-unused-vars
|
| 8 |
import { ms, mvs, scale, xdHeight } from './metrices'; |
| 9 |
|
| 10 |
export const buttonStyles = StyleSheet.create({ |
| 11 |
buttonPrimary: { |
| 12 |
height: mvs(52), |
| Error |
Row 13, Column 16: "Insert `·`"
prettier/prettier
|
| 13 |
alignItems:'center', |
| Error |
Row 14, Column 20: "Insert `·`"
prettier/prettier
|
| 14 |
justifyContent:'center', |
| Error |
Row 15, Column 21: "Insert `·`"
prettier/prettier
|
| 15 |
backgroundColor:colors.primary, |
| 16 |
borderRadius: mvs(10), |
| Error |
Row 17, Column 11: "Replace `'100%'` with `·'100%',`"
prettier/prettier
|
| Warning |
Row 17, Column 17: "Missing trailing comma."
comma-dangle
|
| 17 |
width:'100%' |
| 18 |
}, |
| 19 |
buttonOutline: { |
| 20 |
height: mvs(52), |
| Error |
Row 21, Column 16: "Insert `·`"
prettier/prettier
|
| 21 |
alignItems:'center', |
| Error |
Row 22, Column 20: "Insert `·`"
prettier/prettier
|
| 22 |
justifyContent:'center', |
| Error |
Row 23, Column 21: "Insert `·`"
prettier/prettier
|
| 23 |
backgroundColor:colors.white, |
| 24 |
borderRadius: mvs(10), |
| Error |
Row 25, Column 11: "Insert `·`"
prettier/prettier
|
| 25 |
width:'100%', |
| Error |
Row 26, Column 17: "Insert `·`"
prettier/prettier
|
| 26 |
borderWidth:StyleSheet.hairlineWidth, |
| Error |
Row 27, Column 17: "Replace `colors.doted` with `·colors.doted,`"
prettier/prettier
|
| Warning |
Row 27, Column 29: "Missing trailing comma."
comma-dangle
|
| 27 |
borderColor:colors.doted |
| 28 |
}, |
| Error |
Row 29, Column 23: "Delete `⏎···`"
prettier/prettier
|
| 29 |
buttonOutlineDark: { |
| Warning |
Row 30, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| 30 |
|
| Error |
Row 31, Column 30: "Insert `,`"
prettier/prettier
|
| Warning |
Row 31, Column 30: "Missing trailing comma."
comma-dangle
|
| 31 |
borderColor: colors.white |
| 32 |
}, |
| 33 |
buttonOutlineWhite: { |
| 34 |
height: mvs(52), |
| Error |
Row 35, Column 16: "Insert `·`"
prettier/prettier
|
| 35 |
alignItems:'center', |
| Error |
Row 36, Column 20: "Insert `·`"
prettier/prettier
|
| 36 |
justifyContent:'center', |
| Error |
Row 37, Column 21: "Insert `·`"
prettier/prettier
|
| 37 |
backgroundColor:colors.white, |
| 38 |
borderRadius: mvs(10), |
| Error |
Row 39, Column 11: "Replace `'100%'` with `·'100%',`"
prettier/prettier
|
| Warning |
Row 39, Column 17: "Missing trailing comma."
comma-dangle
|
| 39 |
width:'100%' |
| 40 |
}, |
| 41 |
buttonFull: { |
| 42 |
width: '100%', |
| 43 |
marginLeft: 0, |
| Error |
Row 44, Column 19: "Insert `,`"
prettier/prettier
|
| Warning |
Row 44, Column 19: "Missing trailing comma."
comma-dangle
|
| 44 |
marginRight: 0 |
| 45 |
}, |
| 46 |
buttonRTL: { |
| Error |
Row 47, Column 19: "Insert `·`"
prettier/prettier
|
| 47 |
flexDirection:'row', |
| Error |
Row 48, Column 23: "Insert `·`"
prettier/prettier
|
| 48 |
paddingHorizontal:mvs(10), |
| Error |
Row 49, Column 20: "Insert `·`"
prettier/prettier
|
| 49 |
justifyContent:'space-between', |
| 50 |
height: mvs(52), |
| Error |
Row 51, Column 16: "Insert `·`"
prettier/prettier
|
| 51 |
alignItems:'center', |
| Error |
Row 52, Column 21: "Insert `·`"
prettier/prettier
|
| 52 |
backgroundColor:colors.primary, |
| 53 |
borderRadius: mvs(10), |
| 54 |
// width:'100%' |
| 55 |
}, |
| 56 |
buttonLoc: { |
| Error |
Row 57, Column 19: "Insert `·`"
prettier/prettier
|
| 57 |
flexDirection:'row', |
| Error |
Row 58, Column 23: "Insert `·`"
prettier/prettier
|
| 58 |
paddingHorizontal:mvs(10), |
| Error |
Row 59, Column 20: "Insert `·`"
prettier/prettier
|
| 59 |
justifyContent:'space-between', |
| 60 |
height: mvs(38), |
| Error |
Row 61, Column 16: "Insert `·`"
prettier/prettier
|
| 61 |
alignItems:'center', |
| Error |
Row 62, Column 21: "Insert `·`"
prettier/prettier
|
| 62 |
backgroundColor:colors.secondary, |
| 63 |
borderRadius: mvs(10), |
| 64 |
}, |
| Error |
Row 65, Column 14: "Insert `·`"
prettier/prettier
|
| 65 |
buttonCard:{ |
| Error |
Row 66, Column 21: "Insert `·`"
prettier/prettier
|
| 66 |
backgroundColor:colors.white, |
| Error |
Row 67, Column 12: "Insert `·`"
prettier/prettier
|
| 67 |
height:mvs(52), |
| Error |
Row 68, Column 11: "Insert `·`"
prettier/prettier
|
| 68 |
width:mvs(69), |
| Error |
Row 69, Column 20: "Insert `·`"
prettier/prettier
|
| 69 |
justifyContent:'center', |
| Error |
Row 70, Column 16: "Insert `·`"
prettier/prettier
|
| 70 |
alignItems:'center', |
| Error |
Row 71, Column 17: "Insert `·`"
prettier/prettier
|
| 71 |
borderWidth:StyleSheet.hairlineWidth, |
| Error |
Row 72, Column 18: "Replace `mvs(10)` with `·mvs(10),`"
prettier/prettier
|
| Warning |
Row 72, Column 25: "Missing trailing comma."
comma-dangle
|
| 72 |
borderRadius:mvs(10) |
| 73 |
}, |
| Error |
Row 74, Column 21: "Insert `·`"
prettier/prettier
|
| 74 |
buttonDelvieryLoc:{ |
| Error |
Row 75, Column 1: "Replace `···flexDirection:` with `····flexDirection:·`"
prettier/prettier
|
| 75 |
flexDirection:'row', |
| Error |
Row 76, Column 1: "Replace `···alignItems:` with `····alignItems:·`"
prettier/prettier
|
| 76 |
alignItems:'center', |
| Error |
Row 77, Column 4: "Replace `justifyContent:` with `·justifyContent:·`"
prettier/prettier
|
| 77 |
justifyContent:'space-between', |
| 78 |
}, |
| Error |
Row 79, Column 24: "Insert `·`"
prettier/prettier
|
| 79 |
buttonDelvieryLocSub:{ |
| Error |
Row 80, Column 19: "Insert `·`"
prettier/prettier
|
| 80 |
flexDirection:'row', |
| Error |
Row 81, Column 16: "Insert `·`"
prettier/prettier
|
| 81 |
alignItems:'center', |
| Error |
Row 82, Column 3: "Replace `·}` with `},`"
prettier/prettier
|
| Warning |
Row 82, Column 5: "Missing trailing comma."
comma-dangle
|
| 82 |
} |
| 83 |
// buttonPrimary: { |
| 84 |
// height: 42, |
| 85 |
// borderRadius: 3 |
| 86 |
// }, |
| 87 |
// OUTLINE: { |
| 88 |
// appearance:'outline', |
| 89 |
// }, |
| 90 |
// buttonOutlineDark: { |
| 91 |
// ...buttonOutline, |
| 92 |
// borderColor: colors.white |
| 93 |
// }, |
| 94 |
// buttonOutlineWhite: { |
| 95 |
// ...buttonOutline, |
| 96 |
// borderColor: colors.white |
| 97 |
// }, |
| 98 |
// buttonFull: { |
| 99 |
// width: '100%', |
| 100 |
// marginLeft: 0, |
| 101 |
// marginRight: 0 |
| 102 |
// } |
| 103 |
}); |
| 104 |
|
| Warning |
Row 105, Column 28: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 105, Column 28: "Insert `;⏎`"
prettier/prettier
|
| Warning |
Row 105, Column 28: "Missing semicolon."
semi
|
| 105 |
export default buttonStyles |
|
|
|
/src/config/colors.js
|
13 problems (13 errors, 0 warnings)
|
| Severity |
Rule |
| Error |
Row 6, Column 15: "Insert `·`"
prettier/prettier
|
| Error |
Row 7, Column 14: "Insert `·`"
prettier/prettier
|
| Error |
Row 9, Column 21: "Replace `·,` with `,·`"
prettier/prettier
|
| Error |
Row 10, Column 24: "Insert `·`"
prettier/prettier
|
| Error |
Row 12, Column 13: "Replace `'red',⏎⏎` with `·'red',`"
prettier/prettier
|
| Error |
Row 21, Column 20: "Replace `'#878B93',` with `·'#878B93',·`"
prettier/prettier
|
| Error |
Row 33, Column 3: "Duplicate key 'headerTitle'."
no-dupe-keys
|
| Error |
Row 59, Column 18: "Insert `·`"
prettier/prettier
|
| Error |
Row 60, Column 12: "Insert `·`"
prettier/prettier
|
| Error |
Row 61, Column 13: "Insert `·`"
prettier/prettier
|
| Error |
Row 62, Column 14: "Insert `·`"
prettier/prettier
|
| Error |
Row 63, Column 14: "Insert `·`"
prettier/prettier
|
| Error |
Row 69, Column 8: "Delete `·`"
prettier/prettier
|
| Line |
Source |
| 1 |
/** |
| 2 |
* @providesModule Colors |
| 3 |
*/ |
| 4 |
const colors = { |
| 5 |
//new color scheme |
| Error |
Row 6, Column 15: "Insert `·`"
prettier/prettier
|
| 6 |
headerTitle:'#424753', |
| Error |
Row 7, Column 14: "Insert `·`"
prettier/prettier
|
| 7 |
typeHeader:'#54585D', |
| 8 |
black: '#000000', |
| Error |
Row 9, Column 21: "Replace `·,` with `,·`"
prettier/prettier
|
| 9 |
primary: '#0F6EF4' ,//'#5586FF' |
| Error |
Row 10, Column 24: "Insert `·`"
prettier/prettier
|
| 10 |
secondary: '#F2F2F2',//'#F2F2F2', |
| 11 |
label: '#9A9A9A', |
| Error |
Row 12, Column 13: "Replace `'red',⏎⏎` with `·'red',`"
prettier/prettier
|
| 12 |
mendatory:'red', |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
primary0: '#0F6EF400', |
| 17 |
primary17: '#0F6EF417', |
| 18 |
primary50: '#0F6EF430', |
| 19 |
//black |
| 20 |
input_label: '#13092C', |
| Error |
Row 21, Column 20: "Replace `'#878B93',` with `·'#878B93',·`"
prettier/prettier
|
| 21 |
input_placehoder:'#878B93',//'#BBC0C3',// '#DADBDA', |
| 22 |
input_txt_color: '#6f98ff', |
| 23 |
border: '#707070', |
| 24 |
//white |
| 25 |
white: '#FFFFFF', |
| 26 |
ypsDark: '#47546E', |
| 27 |
yps: '#637599', |
| 28 |
ypsLight: '#7B92BF', |
| 29 |
cosmic: '#963D32', |
| 30 |
message: '#3A3A41', |
| 31 |
|
| 32 |
//Buttons |
| Error |
Row 33, Column 3: "Duplicate key 'headerTitle'."
no-dupe-keys
|
| 33 |
headerTitle: '#424753', |
| 34 |
green: '#24C661', |
| 35 |
pink: '#EA1C8B', |
| 36 |
sky: '#00AFEF', |
| 37 |
gray: '#E8E8E8', |
| 38 |
map_search_make_offer_card_bg: '#F2F2F2', |
| 39 |
price_border: '#D9D9D9', |
| 40 |
filter_divider: '#848484', |
| 41 |
disputes: '#DDB922', |
| 42 |
//shadow |
| 43 |
shadow: { |
| 44 |
shadowColor: '#000', |
| 45 |
shadowOffset: { |
| 46 |
width: 0, |
| 47 |
height: 1, |
| 48 |
}, |
| 49 |
shadowOpacity: 0.2, |
| 50 |
shadowRadius: 1.41, |
| 51 |
|
| 52 |
elevation: 2, |
| 53 |
}, |
| 54 |
|
| 55 |
//Time color: |
| 56 |
timeAgo: '#9A9A9A', |
| 57 |
|
| 58 |
//Line color |
| Error |
Row 59, Column 18: "Insert `·`"
prettier/prettier
|
| 59 |
horizontalLine:'#D9D9D9', |
| Error |
Row 60, Column 12: "Insert `·`"
prettier/prettier
|
| 60 |
pathline:'#9A9A9A', |
| Error |
Row 61, Column 13: "Insert `·`"
prettier/prettier
|
| 61 |
lightgrey:'#F8F8F8', |
| Error |
Row 62, Column 14: "Insert `·`"
prettier/prettier
|
| 62 |
lightgrey1:'#8D8D8D', |
| Error |
Row 63, Column 14: "Insert `·`"
prettier/prettier
|
| 63 |
lightgrey2:'#878B93', |
| 64 |
doted: '#BBC0C3', |
| 65 |
//Toggle Color |
| 66 |
toggleOff: '#D9D9D9', |
| 67 |
|
| 68 |
//callout |
| Error |
Row 69, Column 8: "Delete `·`"
prettier/prettier
|
| 69 |
title : '#16183B', |
| 70 |
}; |
| 71 |
export default colors; |
| 72 |
|
|
|
|
/src/config/constants.js
|
25 problems (15 errors, 10 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·NativeModules·` with `NativeModules`"
prettier/prettier
|
| Error |
Row 8, Column 52: "Delete `⏎`"
prettier/prettier
|
| Warning |
Row 13, Column 9: "'CommonActions' is defined but never used."
no-unused-vars
|
| Error |
Row 15, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 17, Column 9: "Replace `·appleAuth·` with `appleAuth`"
prettier/prettier
|
| Error |
Row 19, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 21, Column 8: "Replace `·RNTwitterSignIn·` with `RNTwitterSignIn`"
prettier/prettier
|
| Error |
Row 33, Column 1: "Delete `⏎⏎⏎`"
prettier/prettier
|
| Error |
Row 58, Column 3: "Delete `⏎⏎⏎`"
prettier/prettier
|
| Error |
Row 86, Column 1: "Delete `⏎⏎⏎`"
prettier/prettier
|
| Error |
Row 90, Column 1: "Replace `⏎··console.log("here...")··` with `··console.log('here...');`"
prettier/prettier
|
| Warning |
Row 91, Column 15: "Strings must use singlequote."
quotes
|
| Warning |
Row 91, Column 25: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 91, Column 25: "Missing semicolon."
semi
|
| Error |
Row 99, Column 15: "Replace `"result:",·result)` with `'result:',·result);`"
prettier/prettier
|
| Warning |
Row 99, Column 15: "Strings must use singlequote."
quotes
|
| Warning |
Row 99, Column 33: "Missing semicolon."
semi
|
| Error |
Row 116, Column 15: "Replace `"facebookCredential:",·facebookCredential)` with `'facebookCredential:',·facebookCredential);`"
prettier/prettier
|
| Warning |
Row 116, Column 15: "Strings must use singlequote."
quotes
|
| Warning |
Row 116, Column 57: "Missing semicolon."
semi
|
| Error |
Row 120, Column 3: "Delete `⏎⏎⏎`"
prettier/prettier
|
| Error |
Row 161, Column 1: "Delete `⏎`"
prettier/prettier
|
| Warning |
Row 169, Column 27: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 169, Column 27: "Insert `;⏎`"
prettier/prettier
|
| Warning |
Row 169, Column 27: "Missing semicolon."
semi
|
| Line |
Source |
| 1 |
import auth from '@react-native-firebase/auth'; |
| Error |
Row 2, Column 9: "Replace `·NativeModules·` with `NativeModules`"
prettier/prettier
|
| 2 |
import { NativeModules } from 'react-native'; |
| 3 |
|
| 4 |
//Google Sign in |
| 5 |
import { |
| 6 |
GoogleSignin, |
| 7 |
statusCodes, |
| Error |
Row 8, Column 52: "Delete `⏎`"
prettier/prettier
|
| 8 |
} from '@react-native-google-signin/google-signin'; |
| 9 |
|
| 10 |
|
| 11 |
//Facebook Sign in |
| 12 |
import {LoginManager, AccessToken} from 'react-native-fbsdk'; |
| Warning |
Row 13, Column 9: "'CommonActions' is defined but never used."
no-unused-vars
|
| 13 |
import {CommonActions} from '@react-navigation/routers'; |
| 14 |
|
| Error |
Row 15, Column 1: "Delete `⏎`"
prettier/prettier
|
| 15 |
|
| 16 |
// //Apple Sign in |
| Error |
Row 17, Column 9: "Replace `·appleAuth·` with `appleAuth`"
prettier/prettier
|
| 17 |
import { appleAuth } from '@invertase/react-native-apple-authentication'; |
| 18 |
|
| Error |
Row 19, Column 1: "Delete `⏎`"
prettier/prettier
|
| 19 |
|
| 20 |
//Twitter Sign in |
| Error |
Row 21, Column 8: "Replace `·RNTwitterSignIn·` with `RNTwitterSignIn`"
prettier/prettier
|
| 21 |
const { RNTwitterSignIn } = NativeModules; |
| 22 |
const TwitterKeys = { |
| 23 |
TWITTER_CONSUMER_KEY: 'lCI290eXskSLcY6D5JiLQpEZO', |
| 24 |
TWITTER_CONSUMER_SECRET: 'ZR0RNDxGJX8fGPsYiiZSywmEUSWlfQ6XuDRYeEwvX1TzqirrpN', |
| 25 |
// TWITTER_CONSUMER_KEY: 'W4mLvUCsuqXf94VAp1JL9z6Ki', |
| 26 |
// TWITTER_CONSUMER_SECRET: '18iXpf7CLz1b0oaaHpMFb4nLMmuYy8hXXxirRJ03LP9bTxdm1v', |
| 27 |
}; |
| 28 |
RNTwitterSignIn.init( |
| 29 |
TwitterKeys.TWITTER_CONSUMER_KEY, |
| 30 |
TwitterKeys.TWITTER_CONSUMER_SECRET, |
| 31 |
); |
| 32 |
|
| Error |
Row 33, Column 1: "Delete `⏎⏎⏎`"
prettier/prettier
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
const onTwitterButtonPress = async () => { |
| 37 |
try { |
| 38 |
// (async () => { |
| 39 |
// await RNTwitterSignIn.init( |
| 40 |
// TwitterKeys.TWITTER_CONSUMER_KEY, |
| 41 |
// TwitterKeys.TWITTER_CONSUMER_SECRET, |
| 42 |
// ); |
| 43 |
// })(); |
| 44 |
// Perform the login request |
| 45 |
const {authToken, authTokenSecret} = await RNTwitterSignIn.logIn(); |
| 46 |
|
| 47 |
// Create a Twitter credential with the tokens |
| 48 |
const twitterCredential = auth.TwitterAuthProvider.credential( |
| 49 |
authToken, |
| 50 |
authTokenSecret, |
| 51 |
); |
| 52 |
|
| 53 |
// Sign-in the user with the credential |
| 54 |
return auth().signInWithCredential(twitterCredential); |
| 55 |
} catch (e) { |
| 56 |
throw new Error(e); |
| 57 |
} |
| Error |
Row 58, Column 3: "Delete `⏎⏎⏎`"
prettier/prettier
|
| 58 |
}; |
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
const onAppleButtonPress = async () => { |
| 64 |
// Start the sign-in request |
| 65 |
const appleAuthRequestResponse = await appleAuth.performRequest({ |
| 66 |
requestedOperation: appleAuth.Operation.LOGIN, |
| 67 |
requestedScopes: [appleAuth.Scope.EMAIL, appleAuth.Scope.FULL_NAME], |
| 68 |
}); |
| 69 |
|
| 70 |
// Ensure Apple returned a user identityToken |
| 71 |
if (!appleAuthRequestResponse.identityToken) { |
| 72 |
throw 'Apple Sign-In failed - no identify token returned'; |
| 73 |
} |
| 74 |
|
| 75 |
// Create a Firebase credential from the response |
| 76 |
const {identityToken, nonce} = appleAuthRequestResponse; |
| 77 |
const appleCredential = auth.AppleAuthProvider.credential( |
| 78 |
identityToken, |
| 79 |
nonce, |
| 80 |
); |
| 81 |
|
| 82 |
// Sign the user in with the credential |
| 83 |
return await auth().signInWithCredential(appleCredential); |
| 84 |
}; |
| 85 |
|
| Error |
Row 86, Column 1: "Delete `⏎⏎⏎`"
prettier/prettier
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
const onFacebookButtonPress = async () => { |
| Error |
Row 90, Column 1: "Replace `⏎··console.log("here...")··` with `··console.log('here...');`"
prettier/prettier
|
| 90 |
|
| Warning |
Row 91, Column 15: "Strings must use singlequote."
quotes
|
| Warning |
Row 91, Column 25: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 91, Column 25: "Missing semicolon."
semi
|
| 91 |
console.log("here...") |
| 92 |
// Attempt login with permissions |
| 93 |
LoginManager.logOut(); |
| 94 |
const result = await LoginManager.logInWithPermissions([ |
| 95 |
'public_profile', |
| 96 |
'email', |
| 97 |
]); |
| 98 |
|
| Error |
Row 99, Column 15: "Replace `"result:",·result)` with `'result:',·result);`"
prettier/prettier
|
| Warning |
Row 99, Column 15: "Strings must use singlequote."
quotes
|
| Warning |
Row 99, Column 33: "Missing semicolon."
semi
|
| 99 |
console.log("result:", result) |
| 100 |
|
| 101 |
if (result.isCancelled) { |
| 102 |
throw 'User cancelled the login process'; |
| 103 |
} |
| 104 |
|
| 105 |
// Once signed in, get the users AccesToken |
| 106 |
const data = await AccessToken.getCurrentAccessToken(); |
| 107 |
console.log(data); |
| 108 |
if (!data) { |
| 109 |
throw 'Something went wrong obtaining access token'; |
| 110 |
} |
| 111 |
|
| 112 |
// Create a Firebase credential with the AccessToken |
| 113 |
const facebookCredential = auth.FacebookAuthProvider.credential( |
| 114 |
data.accessToken, |
| 115 |
); |
| Error |
Row 116, Column 15: "Replace `"facebookCredential:",·facebookCredential)` with `'facebookCredential:',·facebookCredential);`"
prettier/prettier
|
| Warning |
Row 116, Column 15: "Strings must use singlequote."
quotes
|
| Warning |
Row 116, Column 57: "Missing semicolon."
semi
|
| 116 |
console.log("facebookCredential:", facebookCredential) |
| 117 |
|
| 118 |
// Sign-in the user with the credential |
| 119 |
return await auth().signInWithCredential(facebookCredential); |
| Error |
Row 120, Column 3: "Delete `⏎⏎⏎`"
prettier/prettier
|
| 120 |
}; |
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
const onGoogleButtonPress = async () => { |
| 126 |
try { |
| 127 |
//await GoogleSignin.revokeAccess(); |
| 128 |
await GoogleSignin.signOut(); |
| 129 |
await GoogleSignin.hasPlayServices(); |
| 130 |
// Get the users ID token |
| 131 |
const {idToken, user, serverAuthCode, scopes} = await GoogleSignin.signIn(); |
| 132 |
|
| 133 |
// console.log({ idToken, user, serverAuthCode, scopes }) |
| 134 |
//console.log({ idToken }) |
| 135 |
// Create a Google credential with the token |
| 136 |
const googleCredential = auth.GoogleAuthProvider.credential(idToken); |
| 137 |
|
| 138 |
// Sign-in the user with the credential |
| 139 |
const googleResponse = await auth().signInWithCredential(googleCredential); |
| 140 |
|
| 141 |
//console.log('Google Response: ', googleResponse); |
| 142 |
return {...googleResponse, idToken, user, serverAuthCode, scopes}; |
| 143 |
} catch (error) { |
| 144 |
if (error.code === statusCodes.SIGN_IN_CANCELLED) { |
| 145 |
// user cancelled the login flow |
| 146 |
throw 'User cancelled the login process'; |
| 147 |
} else if (error.code === statusCodes.IN_PROGRESS) { |
| 148 |
// operation (e.g. sign in) is in progress already |
| 149 |
throw 'operation is in progress already'; |
| 150 |
} else if (error.code === statusCodes.PLAY_SERVICES_NOT_AVAILABLE) { |
| 151 |
// play services not available or outdated |
| 152 |
throw 'play services not available or outdated'; |
| 153 |
} else { |
| 154 |
// some other error happened |
| 155 |
console.log(error); |
| 156 |
throw 'some unknown error occurred'; |
| 157 |
} |
| 158 |
} |
| 159 |
}; |
| 160 |
|
| Error |
Row 161, Column 1: "Delete `⏎`"
prettier/prettier
|
| 161 |
|
| 162 |
const TAKE_SOCIAL = { |
| 163 |
onGoogleButtonPress, |
| 164 |
onTwitterButtonPress, |
| 165 |
onAppleButtonPress, |
| 166 |
onFacebookButtonPress, |
| 167 |
}; |
| 168 |
|
| Warning |
Row 169, Column 27: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 169, Column 27: "Insert `;⏎`"
prettier/prettier
|
| Warning |
Row 169, Column 27: "Missing semicolon."
semi
|
| 169 |
export default TAKE_SOCIAL |
|
|
|
/src/config/fonts.js
|
10 problems (8 errors, 2 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 1: "Insert `·`"
prettier/prettier
|
| Error |
Row 3, Column 1: "Insert `·`"
prettier/prettier
|
| Error |
Row 5, Column 1: "Replace `····carosSoftLight:` with `··carosSoftLight:·`"
prettier/prettier
|
| Error |
Row 6, Column 3: "Replace `··carosSoftRegular:` with `carosSoftRegular:·`"
prettier/prettier
|
| Error |
Row 7, Column 1: "Replace `····carosSoftMedium:` with `··carosSoftMedium:·`"
prettier/prettier
|
| Error |
Row 8, Column 1: "Replace `····carosSoftBold:'CarosSoftBold'` with `··carosSoftBold:·'CarosSoftBold',`"
prettier/prettier
|
| Warning |
Row 8, Column 34: "Missing trailing comma."
comma-dangle
|
| Error |
Row 9, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 10, Column 1: "Replace `··export·default·fonts;` with `export·default·fonts;⏎`"
prettier/prettier
|
| Warning |
Row 10, Column 24: "Newline required at end of file but not found."
eol-last
|
| Line |
Source |
| 1 |
/** |
| Error |
Row 2, Column 1: "Insert `·`"
prettier/prettier
|
| 2 |
* @providesModule Fonts |
| Error |
Row 3, Column 1: "Insert `·`"
prettier/prettier
|
| 3 |
*/ |
| 4 |
const fonts = { |
| Error |
Row 5, Column 1: "Replace `····carosSoftLight:` with `··carosSoftLight:·`"
prettier/prettier
|
| 5 |
carosSoftLight:'CarosSoftLight', |
| Error |
Row 6, Column 3: "Replace `··carosSoftRegular:` with `carosSoftRegular:·`"
prettier/prettier
|
| 6 |
carosSoftRegular:'CarosSoft', |
| Error |
Row 7, Column 1: "Replace `····carosSoftMedium:` with `··carosSoftMedium:·`"
prettier/prettier
|
| 7 |
carosSoftMedium:'CarosSoftMedium', |
| Error |
Row 8, Column 1: "Replace `····carosSoftBold:'CarosSoftBold'` with `··carosSoftBold:·'CarosSoftBold',`"
prettier/prettier
|
| Warning |
Row 8, Column 34: "Missing trailing comma."
comma-dangle
|
| 8 |
carosSoftBold:'CarosSoftBold' |
| Error |
Row 9, Column 1: "Delete `··`"
prettier/prettier
|
| 9 |
}; |
| Error |
Row 10, Column 1: "Replace `··export·default·fonts;` with `export·default·fonts;⏎`"
prettier/prettier
|
| Warning |
Row 10, Column 24: "Newline required at end of file but not found."
eol-last
|
| 10 |
export default fonts; |
|
|
|
/src/config/images.js
|
8 problems (7 errors, 1 warning)
|
| Line |
Source |
| 1 |
/** |
| Error |
Row 2, Column 1: "Insert `·`"
prettier/prettier
|
| 2 |
* @providesModule Images |
| Error |
Row 3, Column 1: "Insert `·`"
prettier/prettier
|
| 3 |
*/ |
| 4 |
const images = { |
| Error |
Row 5, Column 1: "Delete `··`"
prettier/prettier
|
| 5 |
// logo1x: require('../assets/images/yps-logo.png'), |
| Error |
Row 6, Column 3: "Delete `··`"
prettier/prettier
|
| 6 |
// logo2x: require('../assets/images/yps-hero.png'), |
| Error |
Row 7, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 7 |
// logo3x: require('../assets/images/yps-goodbye.png') |
| Error |
Row 8, Column 1: "Delete `··`"
prettier/prettier
|
| 8 |
}; |
| Error |
Row 9, Column 1: "Replace `··export·default·images;` with `export·default·images;⏎`"
prettier/prettier
|
| Warning |
Row 9, Column 25: "Newline required at end of file but not found."
eol-last
|
| 9 |
export default images; |
|
|
|
/src/config/input.js
|
17 problems (12 errors, 5 warnings)
|
| Severity |
Rule |
| Error |
Row 4, Column 9: "Replace `·StyleSheet·` with `StyleSheet`"
prettier/prettier
|
| Error |
Row 7, Column 9: "Replace `⏎··mvs⏎` with `mvs`"
prettier/prettier
|
| Warning |
Row 8, Column 6: "Missing trailing comma."
comma-dangle
|
| Error |
Row 13, Column 18: "Insert `·`"
prettier/prettier
|
| Error |
Row 19, Column 11: "Insert `·`"
prettier/prettier
|
| Error |
Row 21, Column 21: "Insert `·`"
prettier/prettier
|
| Error |
Row 27, Column 18: "Replace `mvs(10)` with `·mvs(10),`"
prettier/prettier
|
| Warning |
Row 27, Column 25: "Missing trailing comma."
comma-dangle
|
| Error |
Row 45, Column 11: "Insert `·`"
prettier/prettier
|
| Error |
Row 56, Column 30: "Insert `,`"
prettier/prettier
|
| Warning |
Row 56, Column 30: "Missing trailing comma."
comma-dangle
|
| Error |
Row 62, Column 13: "Insert `·`"
prettier/prettier
|
| Error |
Row 65, Column 26: "Insert `,`"
prettier/prettier
|
| Warning |
Row 65, Column 26: "Missing trailing comma."
comma-dangle
|
| Error |
Row 67, Column 15: "Replace `·position:·'absolute',·right:·mvs(0),·top:·mvs(10),·color:·colors.primary,·textDecorationLine:·'underline',·fontSize:·mvs(13)` with `⏎····position:·'absolute',⏎····right:·mvs(0),⏎····top:·mvs(10),⏎····color:·colors.primary,⏎····textDecorationLine:·'underline',⏎····fontSize:·mvs(13),⏎·`"
prettier/prettier
|
| Error |
Row 81, Column 4: "Insert `,`"
prettier/prettier
|
| Warning |
Row 81, Column 4: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| 1 |
/** |
| 2 |
* @providesModule ButtonStyles |
| 3 |
*/ |
| Error |
Row 4, Column 9: "Replace `·StyleSheet·` with `StyleSheet`"
prettier/prettier
|
| 4 |
import { StyleSheet } from 'react-native'; |
| 5 |
import colors from './colors'; |
| 6 |
import fonts from './fonts'; |
| Error |
Row 7, Column 9: "Replace `⏎··mvs⏎` with `mvs`"
prettier/prettier
|
| 7 |
import { |
| Warning |
Row 8, Column 6: "Missing trailing comma."
comma-dangle
|
| 8 |
mvs |
| 9 |
} from './metrices'; |
| 10 |
|
| 11 |
export const INPUT_STYLES = StyleSheet.create({ |
| 12 |
LABLE_STYLE: { |
| Error |
Row 13, Column 18: "Insert `·`"
prettier/prettier
|
| 13 |
marginBottom:mvs(8), |
| 14 |
fontSize: mvs(15), |
| 15 |
color: colors.typeHeader, |
| 16 |
}, |
| 17 |
INPUT_TXT: { |
| 18 |
color: colors.primary, |
| Error |
Row 19, Column 11: "Insert `·`"
prettier/prettier
|
| 19 |
width:'100%', |
| 20 |
paddingHorizontal: mvs(10), |
| Error |
Row 21, Column 21: "Insert `·`"
prettier/prettier
|
| 21 |
backgroundColor:colors.secondary, |
| 22 |
fontSize: mvs(15), |
| 23 |
fontFamily: fonts.carosSoftRegular, |
| 24 |
height: mvs(40), |
| 25 |
marginBottom: mvs(15), |
| 26 |
borderColor: colors.border, |
| Error |
Row 27, Column 18: "Replace `mvs(10)` with `·mvs(10),`"
prettier/prettier
|
| Warning |
Row 27, Column 25: "Missing trailing comma."
comma-dangle
|
| 27 |
borderRadius:mvs(10) |
| 28 |
// borderBottomWidth: StyleSheet.hairlineWidth, |
| 29 |
}, |
| 30 |
PRICE_CONTAINER: { |
| 31 |
width: mvs(161), |
| 32 |
flexDirection: 'row', |
| 33 |
alignItems: 'center', |
| 34 |
justifyContent: 'space-between', |
| 35 |
paddingHorizontal: mvs(20), |
| 36 |
backgroundColor: colors.secondary, |
| 37 |
borderRadius: mvs(10), |
| 38 |
// height:mvs(38), |
| 39 |
}, |
| 40 |
PRICE_INPUT_TXT: { |
| 41 |
color: colors.headerTitle, |
| 42 |
paddingLeft: 0, |
| 43 |
height: mvs(40), |
| 44 |
fontSize: mvs(15), |
| Error |
Row 45, Column 11: "Insert `·`"
prettier/prettier
|
| 45 |
width:'70%', |
| 46 |
fontFamily: fonts.carosSoftRegular, |
| 47 |
borderColor: colors.headerTitle, |
| 48 |
// width: mvs(80), |
| 49 |
// borderBottomWidth: StyleSheet.hairlineWidth, |
| 50 |
}, |
| 51 |
OTP: { |
| 52 |
backgroundColor: colors.secondary, |
| 53 |
height: mvs(38), |
| 54 |
borderRadius: mvs(10), |
| 55 |
paddingHorizontal: mvs(10), |
| Error |
Row 56, Column 30: "Insert `,`"
prettier/prettier
|
| Warning |
Row 56, Column 30: "Missing trailing comma."
comma-dangle
|
| 56 |
color: colors.headerTitle |
| 57 |
}, |
| 58 |
SECONDARY_INPUT: { |
| 59 |
backgroundColor: colors.secondary, |
| 60 |
height: mvs(38), |
| 61 |
width: mvs(243), |
| Error |
Row 62, Column 13: "Insert `·`"
prettier/prettier
|
| 62 |
padding:0, |
| 63 |
borderRadius: mvs(10), |
| 64 |
paddingHorizontal: mvs(10), |
| Error |
Row 65, Column 26: "Insert `,`"
prettier/prettier
|
| Warning |
Row 65, Column 26: "Missing trailing comma."
comma-dangle
|
| 65 |
color: colors.primary |
| 66 |
}, |
| Error |
Row 67, Column 15: "Replace `·position:·'absolute',·right:·mvs(0),·top:·mvs(10),·color:·colors.primary,·textDecorationLine:·'underline',·fontSize:·mvs(13)` with `⏎····position:·'absolute',⏎····right:·mvs(0),⏎····top:·mvs(10),⏎····color:·colors.primary,⏎····textDecorationLine:·'underline',⏎····fontSize:·mvs(13),⏎·`"
prettier/prettier
|
| 67 |
SEND_CODE: { position: 'absolute', right: mvs(0), top: mvs(10), color: colors.primary, textDecorationLine: 'underline', fontSize: mvs(13) }, |
| 68 |
REVIEW_CONTAINER: { |
| 69 |
padding: mvs(15), |
| 70 |
backgroundColor: colors.secondary, |
| 71 |
borderRadius: mvs(15), |
| 72 |
maxHeight: mvs(100), |
| 73 |
}, |
| 74 |
REVIEW_LABEL_CONTAINER: { |
| 75 |
backgroundColor: colors.white, |
| 76 |
position: 'absolute', |
| 77 |
alignSelf: 'center', |
| 78 |
borderRadius: mvs(12), |
| 79 |
paddingHorizontal: mvs(35), |
| 80 |
paddingVertical: mvs(6), |
| Error |
Row 81, Column 4: "Insert `,`"
prettier/prettier
|
| Warning |
Row 81, Column 4: "Missing trailing comma."
comma-dangle
|
| 81 |
} |
| 82 |
// INPUT_CONTAINER: { |
| 83 |
// // padding:0, |
| 84 |
// height:mvs(55), |
| 85 |
// backgroundColor:'gray', |
| 86 |
// // marginBottom: scale(15), |
| 87 |
// borderBottomWidth: StyleSheet.hairlineWidth, |
| 88 |
// borderColor:colors.border, |
| 89 |
// borderWidth:1 |
| 90 |
// }, |
| 91 |
}); |
| 92 |
|
|
|
|
/src/config/metrices.js
|
5 problems (4 errors, 1 warning)
|
| Severity |
Rule |
| Warning |
Row 24, Column 18: "'xdHeight' is already declared in the upper scope."
no-shadow
|
| Error |
Row 27, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 39, Column 35: "Delete `⏎·`"
prettier/prettier
|
| Error |
Row 41, Column 36: "Delete `⏎·`"
prettier/prettier
|
| Error |
Row 44, Column 9: "Replace `⏎··scale,⏎··vs,⏎··ms,⏎··mvs,⏎··height,⏎··width,⏎··xdHeight,⏎··xdWith,⏎` with `scale,·vs,·ms,·mvs,·height,·width,·xdHeight,·xdWith`"
prettier/prettier
|
| Line |
Source |
| 1 |
// import { Dimensions } from 'react-native'; |
| 2 |
|
| 3 |
// const { width, height } = Dimensions.get('window'); |
| 4 |
|
| 5 |
// // console.log({ width, height } ) |
| 6 |
// const [shortDimension, longDimension] = width < height ? [width, height] : [height, width]; |
| 7 |
|
| 8 |
// //Default guideline sizes are based on standard ~5" screen mobile device |
| 9 |
// const guidelineBaseWidth = 375;//360//411 |
| 10 |
// const guidelineBaseHeight = 812;//686//683 |
| 11 |
// console.log(shortDimension,longDimension) |
| 12 |
// const scale = size => shortDimension / guidelineBaseWidth * size; |
| 13 |
// const vs = size => longDimension / guidelineBaseHeight * size; |
| 14 |
// const ms = (size, factor = 0.5) => size + (scale(size) - size) * factor; |
| 15 |
// const mvs = (size, factor = 0.5) => size + (vs(size) - size) * factor; |
| 16 |
|
| 17 |
// export {scale, vs, ms,mvs,width,height}; |
| 18 |
import {Dimensions} from 'react-native'; |
| 19 |
// const {width, height} = Dimensions.get('window'); |
| 20 |
import {PixelRatio} from 'react-native'; |
| 21 |
const width = Math.round(Dimensions.get('window').width); |
| 22 |
const height = Math.round(Dimensions.get('window').height); |
| 23 |
|
| Warning |
Row 24, Column 18: "'xdHeight' is already declared in the upper scope."
no-shadow
|
| 24 |
const xdHeight = xdHeight => { |
| 25 |
const heightPercent = Math.round((xdHeight / 812) * 100); |
| 26 |
return PixelRatio.roundToNearestPixel((height * heightPercent) / 100); |
| Error |
Row 27, Column 1: "Delete `⏎`"
prettier/prettier
|
| 27 |
|
| 28 |
}; |
| 29 |
const xdWith = xdWidth => { |
| 30 |
const widthPercent = Math.round((xdWidth / 375) * 100); |
| 31 |
return PixelRatio.roundToNearestPixel((width * widthPercent) / 100); |
| 32 |
}; |
| 33 |
//Guideline sizes are based on standard ~5" screen mobile devices |
| 34 |
const guidelineBaseWidth = 375; |
| 35 |
const guidelineBaseHeight = 812; |
| 36 |
|
| 37 |
const scale = size => (width / guidelineBaseWidth) * size; |
| 38 |
const vs = size => (height / guidelineBaseHeight) * size; |
| Error |
Row 39, Column 35: "Delete `⏎·`"
prettier/prettier
|
| 39 |
const ms = (size, factor = 0.5) => |
| 40 |
size + (scale(size) - size) * factor; |
| Error |
Row 41, Column 36: "Delete `⏎·`"
prettier/prettier
|
| 41 |
const mvs = (size, factor = 0.5) => |
| 42 |
size + (vs(size) - size) * factor; |
| 43 |
|
| Error |
Row 44, Column 9: "Replace `⏎··scale,⏎··vs,⏎··ms,⏎··mvs,⏎··height,⏎··width,⏎··xdHeight,⏎··xdWith,⏎` with `scale,·vs,·ms,·mvs,·height,·width,·xdHeight,·xdWith`"
prettier/prettier
|
| 44 |
export { |
| 45 |
scale, |
| 46 |
vs, |
| 47 |
ms, |
| 48 |
mvs, |
| 49 |
height, |
| 50 |
width, |
| 51 |
xdHeight, |
| 52 |
xdWith, |
| 53 |
}; |
| 54 |
|
|
|
|
/src/config/sockets.js
|
51 problems (42 errors, 9 warnings)
|
| Severity |
Rule |
| Error |
Row 5, Column 1: "Replace `⏎⏎⏎export·const·connectEcho·=·async·(userId)` with `export·const·connectEcho·=·async·userId`"
prettier/prettier
|
| Error |
Row 9, Column 1: "Replace `⏎····` with `··`"
prettier/prettier
|
| Error |
Row 12, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 13, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 14, Column 1: "Replace `······` with `····`"
prettier/prettier
|
| Error |
Row 15, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 16, Column 5: "Delete `··`"
prettier/prettier
|
| Error |
Row 17, Column 1: "Replace `······` with `····`"
prettier/prettier
|
| Error |
Row 18, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 19, Column 5: "Delete `··`"
prettier/prettier
|
| Error |
Row 20, Column 1: "Replace `······` with `····`"
prettier/prettier
|
| Error |
Row 21, Column 5: "Delete `··`"
prettier/prettier
|
| Error |
Row 22, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 23, Column 1: "Replace `··········` with `········`"
prettier/prettier
|
| Error |
Row 24, Column 7: "Delete `··`"
prettier/prettier
|
| Error |
Row 25, Column 1: "Replace `······` with `····`"
prettier/prettier
|
| Error |
Row 26, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 28, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 29, Column 5: "Delete `··`"
prettier/prettier
|
| Error |
Row 30, Column 1: "Replace `······` with `····`"
prettier/prettier
|
| Error |
Row 31, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 32, Column 5: "Delete `··`"
prettier/prettier
|
| Error |
Row 33, Column 1: "Replace `······` with `····`"
prettier/prettier
|
| Error |
Row 34, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 35, Column 5: "Delete `··`"
prettier/prettier
|
| Error |
Row 36, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 37, Column 9: "Delete `··`"
prettier/prettier
|
| Error |
Row 38, Column 7: "Delete `··`"
prettier/prettier
|
| Error |
Row 39, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 40, Column 3: "Delete `··`"
prettier/prettier
|
| Warning |
Row 41, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 41, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 42, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 43, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 44, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 45, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 46, Column 1: "Replace `······newChannel·` with `····newChannel`"
prettier/prettier
|
| Error |
Row 47, Column 1: "Replace `······anotherEcho·:·anotherEcho·` with `····anotherEcho:·anotherEcho,`"
prettier/prettier
|
| Warning |
Row 47, Column 32: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 47, Column 32: "Missing trailing comma."
comma-dangle
|
| Error |
Row 48, Column 1: "Replace `····}` with `··};`"
prettier/prettier
|
| Warning |
Row 48, Column 6: "Missing semicolon."
semi
|
| Error |
Row 49, Column 1: "Replace `····return·echo` with `··return·echo;`"
prettier/prettier
|
| Warning |
Row 49, Column 16: "Missing semicolon."
semi
|
| Error |
Row 50, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 50, Column 2: "Missing semicolon."
semi
|
| Error |
Row 52, Column 44: "Insert `};`"
prettier/prettier
|
| Warning |
Row 53, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 53, Column 1: "Delete `···⏎}`"
prettier/prettier
|
| Warning |
Row 54, Column 2: "Newline required at end of file but not found."
eol-last
|
| Warning |
Row 54, Column 2: "Missing semicolon."
semi
|
| Line |
Source |
| 1 |
import Echo from 'laravel-echo'; |
| 2 |
import AsyncStorage from '@react-native-async-storage/async-storage'; |
| 3 |
import Pusher from 'pusher-js/react-native'; |
| 4 |
|
| Error |
Row 5, Column 1: "Replace `⏎⏎⏎export·const·connectEcho·=·async·(userId)` with `export·const·connectEcho·=·async·userId`"
prettier/prettier
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
export const connectEcho = async (userId) => { |
| Error |
Row 9, Column 1: "Replace `⏎····` with `··`"
prettier/prettier
|
| 9 |
|
| 10 |
const token = await AsyncStorage.getItem('@token'); |
| 11 |
|
| Error |
Row 12, Column 1: "Delete `··`"
prettier/prettier
|
| 12 |
Pusher.logToConsole = true; |
| Error |
Row 13, Column 3: "Delete `··`"
prettier/prettier
|
| 13 |
let push = new Pusher('11c01f9e26f24ccd6063', { |
| Error |
Row 14, Column 1: "Replace `······` with `····`"
prettier/prettier
|
| 14 |
wsHost: '88.198.152.58', |
| Error |
Row 15, Column 1: "Delete `··`"
prettier/prettier
|
| 15 |
wsPort: '6001', |
| Error |
Row 16, Column 5: "Delete `··`"
prettier/prettier
|
| 16 |
wssPort: '6001', |
| Error |
Row 17, Column 1: "Replace `······` with `····`"
prettier/prettier
|
| 17 |
cluster: 'us2', |
| Error |
Row 18, Column 1: "Delete `··`"
prettier/prettier
|
| 18 |
enabledTransports: ['ws'], |
| Error |
Row 19, Column 5: "Delete `··`"
prettier/prettier
|
| 19 |
forceTLS: false, |
| Error |
Row 20, Column 1: "Replace `······` with `····`"
prettier/prettier
|
| 20 |
authEndpoint: 'https://api.taketo.exodevs.com/api/broadcasting/auth', |
| Error |
Row 21, Column 5: "Delete `··`"
prettier/prettier
|
| 21 |
auth: { |
| Error |
Row 22, Column 1: "Delete `··`"
prettier/prettier
|
| 22 |
headers: { |
| Error |
Row 23, Column 1: "Replace `··········` with `········`"
prettier/prettier
|
| 23 |
Authorization: 'Bearer ' + JSON.parse(token)?.access_token, |
| Error |
Row 24, Column 7: "Delete `··`"
prettier/prettier
|
| 24 |
}, |
| Error |
Row 25, Column 1: "Replace `······` with `····`"
prettier/prettier
|
| 25 |
}, |
| Error |
Row 26, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 26 |
}); |
| 27 |
|
| Error |
Row 28, Column 1: "Delete `··`"
prettier/prettier
|
| 28 |
let anotherEcho = new Echo({ |
| Error |
Row 29, Column 5: "Delete `··`"
prettier/prettier
|
| 29 |
broadcaster: 'pusher', |
| Error |
Row 30, Column 1: "Replace `······` with `····`"
prettier/prettier
|
| 30 |
client: push, |
| Error |
Row 31, Column 1: "Delete `··`"
prettier/prettier
|
| 31 |
key: '11c01f9e26f24ccd6063', |
| Error |
Row 32, Column 5: "Delete `··`"
prettier/prettier
|
| 32 |
disableStats: true, |
| Error |
Row 33, Column 1: "Replace `······` with `····`"
prettier/prettier
|
| 33 |
forceTLS: false, |
| Error |
Row 34, Column 1: "Delete `··`"
prettier/prettier
|
| 34 |
authEndpoint: 'https://api.taketo.exodevs.com/api/broadcasting/auth', |
| Error |
Row 35, Column 5: "Delete `··`"
prettier/prettier
|
| 35 |
auth: { |
| Error |
Row 36, Column 1: "Delete `··`"
prettier/prettier
|
| 36 |
headers: { |
| Error |
Row 37, Column 9: "Delete `··`"
prettier/prettier
|
| 37 |
Authorization: 'Bearer ' + JSON.parse(token)?.access_token, |
| Error |
Row 38, Column 7: "Delete `··`"
prettier/prettier
|
| 38 |
}, |
| Error |
Row 39, Column 1: "Delete `··`"
prettier/prettier
|
| 39 |
}, |
| Error |
Row 40, Column 3: "Delete `··`"
prettier/prettier
|
| 40 |
}); |
| Warning |
Row 41, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 41, Column 1: "Delete `····`"
prettier/prettier
|
| 41 |
|
| Error |
Row 42, Column 3: "Delete `··`"
prettier/prettier
|
| 42 |
anotherEcho.connect(); |
| Error |
Row 43, Column 1: "Delete `··`"
prettier/prettier
|
| 43 |
//alert(anotherEcho?.socketId) |
| Error |
Row 44, Column 1: "Delete `··`"
prettier/prettier
|
| 44 |
let newChannel = anotherEcho.private('messenger.user.' + userId); |
| Error |
Row 45, Column 3: "Delete `··`"
prettier/prettier
|
| 45 |
const echo = { |
| Error |
Row 46, Column 1: "Replace `······newChannel·` with `····newChannel`"
prettier/prettier
|
| 46 |
newChannel : newChannel, |
| Error |
Row 47, Column 1: "Replace `······anotherEcho·:·anotherEcho·` with `····anotherEcho:·anotherEcho,`"
prettier/prettier
|
| Warning |
Row 47, Column 32: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 47, Column 32: "Missing trailing comma."
comma-dangle
|
| 47 |
anotherEcho : anotherEcho |
| Error |
Row 48, Column 1: "Replace `····}` with `··};`"
prettier/prettier
|
| Warning |
Row 48, Column 6: "Missing semicolon."
semi
|
| 48 |
} |
| Error |
Row 49, Column 1: "Replace `····return·echo` with `··return·echo;`"
prettier/prettier
|
| Warning |
Row 49, Column 16: "Missing semicolon."
semi
|
| 49 |
return echo |
| Error |
Row 50, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 50, Column 2: "Missing semicolon."
semi
|
| 50 |
} |
| 51 |
|
| Error |
Row 52, Column 44: "Insert `};`"
prettier/prettier
|
| 52 |
export const disconnectEcho = async () => { |
| Warning |
Row 53, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 53, Column 1: "Delete `···⏎}`"
prettier/prettier
|
| 53 |
|
| Warning |
Row 54, Column 2: "Newline required at end of file but not found."
eol-last
|
| Warning |
Row 54, Column 2: "Missing semicolon."
semi
|
| 54 |
} |
|
|
|
/src/config/typography.js
|
42 problems (34 errors, 8 warnings)
|
| Severity |
Rule |
| Error |
Row 4, Column 1: "Replace `·import·{·StyleSheet·` with `import·{StyleSheet`"
prettier/prettier
|
| Error |
Row 5, Column 1: "Delete `·`"
prettier/prettier
|
| Error |
Row 6, Column 1: "Delete `·`"
prettier/prettier
|
| Error |
Row 7, Column 1: "Delete `·`"
prettier/prettier
|
| Error |
Row 8, Column 1: "Delete `·`"
prettier/prettier
|
| Error |
Row 9, Column 1: "Delete `·`"
prettier/prettier
|
| Error |
Row 10, Column 1: "Delete `·`"
prettier/prettier
|
| Error |
Row 11, Column 1: "Delete `·`"
prettier/prettier
|
| Error |
Row 12, Column 1: "Insert `·`"
prettier/prettier
|
| Error |
Row 13, Column 5: "Delete `·`"
prettier/prettier
|
| Error |
Row 14, Column 5: "Replace `·fontSize:·largeText` with `fontSize:·largeText,`"
prettier/prettier
|
| Warning |
Row 14, Column 25: "Missing trailing comma."
comma-dangle
|
| Error |
Row 15, Column 3: "Delete `·`"
prettier/prettier
|
| Error |
Row 16, Column 1: "Delete `·`"
prettier/prettier
|
| Error |
Row 17, Column 1: "Delete `·`"
prettier/prettier
|
| Error |
Row 18, Column 5: "Replace `·fontSize:·largeText` with `fontSize:·largeText,`"
prettier/prettier
|
| Warning |
Row 18, Column 25: "Missing trailing comma."
comma-dangle
|
| Error |
Row 19, Column 1: "Delete `·`"
prettier/prettier
|
| Error |
Row 20, Column 3: "Delete `·`"
prettier/prettier
|
| Error |
Row 21, Column 1: "Delete `·`"
prettier/prettier
|
| Error |
Row 22, Column 5: "Replace `·fontSize:·mediumText` with `fontSize:·mediumText,`"
prettier/prettier
|
| Warning |
Row 22, Column 26: "Missing trailing comma."
comma-dangle
|
| Error |
Row 23, Column 1: "Delete `·`"
prettier/prettier
|
| Error |
Row 24, Column 3: "Delete `·`"
prettier/prettier
|
| Error |
Row 25, Column 1: "Delete `·`"
prettier/prettier
|
| Error |
Row 26, Column 1: "Replace `·····fontSize:·mediumText` with `····fontSize:·mediumText,`"
prettier/prettier
|
| Warning |
Row 26, Column 26: "Missing trailing comma."
comma-dangle
|
| Error |
Row 27, Column 1: "Delete `·`"
prettier/prettier
|
| Error |
Row 28, Column 1: "Delete `·`"
prettier/prettier
|
| Error |
Row 29, Column 1: "Delete `·`"
prettier/prettier
|
| Error |
Row 30, Column 1: "Replace `·····fontSize:·smallText` with `····fontSize:·smallText,`"
prettier/prettier
|
| Warning |
Row 30, Column 25: "Missing trailing comma."
comma-dangle
|
| Error |
Row 31, Column 1: "Delete `·`"
prettier/prettier
|
| Error |
Row 32, Column 1: "Delete `·`"
prettier/prettier
|
| Error |
Row 33, Column 5: "Delete `·`"
prettier/prettier
|
| Error |
Row 34, Column 5: "Replace `·fontSize:·smallText` with `fontSize:·smallText,`"
prettier/prettier
|
| Warning |
Row 34, Column 25: "Missing trailing comma."
comma-dangle
|
| Error |
Row 35, Column 3: "Replace `·}` with `},`"
prettier/prettier
|
| Warning |
Row 35, Column 5: "Missing trailing comma."
comma-dangle
|
| Error |
Row 36, Column 1: "Delete `·`"
prettier/prettier
|
| Error |
Row 37, Column 1: "Replace `·export·default·textStyles;` with `export·default·textStyles;⏎`"
prettier/prettier
|
| Warning |
Row 37, Column 28: "Newline required at end of file but not found."
eol-last
|
| Line |
Source |
| 1 |
/** |
| 2 |
* @providesModule TextStyles |
| 3 |
*/ |
| Error |
Row 4, Column 1: "Replace `·import·{·StyleSheet·` with `import·{StyleSheet`"
prettier/prettier
|
| 4 |
import { StyleSheet } from 'react-native'; |
| Error |
Row 5, Column 1: "Delete `·`"
prettier/prettier
|
| 5 |
import fonts from 'Fonts'; |
| Error |
Row 6, Column 1: "Delete `·`"
prettier/prettier
|
| 6 |
const largeText = 16; |
| Error |
Row 7, Column 1: "Delete `·`"
prettier/prettier
|
| 7 |
const mediumText = 14; |
| Error |
Row 8, Column 1: "Delete `·`"
prettier/prettier
|
| 8 |
const smallText = 12; |
| Error |
Row 9, Column 1: "Delete `·`"
prettier/prettier
|
| 9 |
const regularText = fonts.openSansRegular; |
| Error |
Row 10, Column 1: "Delete `·`"
prettier/prettier
|
| 10 |
const semiboldText = fonts.openSansSemibold; |
| Error |
Row 11, Column 1: "Delete `·`"
prettier/prettier
|
| 11 |
const textStyles = StyleSheet.create({ |
| Error |
Row 12, Column 1: "Insert `·`"
prettier/prettier
|
| 12 |
largeText: { |
| Error |
Row 13, Column 5: "Delete `·`"
prettier/prettier
|
| 13 |
fontFamily: regularText, |
| Error |
Row 14, Column 5: "Replace `·fontSize:·largeText` with `fontSize:·largeText,`"
prettier/prettier
|
| Warning |
Row 14, Column 25: "Missing trailing comma."
comma-dangle
|
| 14 |
fontSize: largeText |
| Error |
Row 15, Column 3: "Delete `·`"
prettier/prettier
|
| 15 |
}, |
| Error |
Row 16, Column 1: "Delete `·`"
prettier/prettier
|
| 16 |
largeTextSemibold: { |
| Error |
Row 17, Column 1: "Delete `·`"
prettier/prettier
|
| 17 |
fontFamily: semiboldText, |
| Error |
Row 18, Column 5: "Replace `·fontSize:·largeText` with `fontSize:·largeText,`"
prettier/prettier
|
| Warning |
Row 18, Column 25: "Missing trailing comma."
comma-dangle
|
| 18 |
fontSize: largeText |
| Error |
Row 19, Column 1: "Delete `·`"
prettier/prettier
|
| 19 |
}, |
| Error |
Row 20, Column 3: "Delete `·`"
prettier/prettier
|
| 20 |
mediumText: { |
| Error |
Row 21, Column 1: "Delete `·`"
prettier/prettier
|
| 21 |
fontFamily: regularText, |
| Error |
Row 22, Column 5: "Replace `·fontSize:·mediumText` with `fontSize:·mediumText,`"
prettier/prettier
|
| Warning |
Row 22, Column 26: "Missing trailing comma."
comma-dangle
|
| 22 |
fontSize: mediumText |
| Error |
Row 23, Column 1: "Delete `·`"
prettier/prettier
|
| 23 |
}, |
| Error |
Row 24, Column 3: "Delete `·`"
prettier/prettier
|
| 24 |
mediumTextSemibold: { |
| Error |
Row 25, Column 1: "Delete `·`"
prettier/prettier
|
| 25 |
fontFamily: semiboldText, |
| Error |
Row 26, Column 1: "Replace `·····fontSize:·mediumText` with `····fontSize:·mediumText,`"
prettier/prettier
|
| Warning |
Row 26, Column 26: "Missing trailing comma."
comma-dangle
|
| 26 |
fontSize: mediumText |
| Error |
Row 27, Column 1: "Delete `·`"
prettier/prettier
|
| 27 |
}, |
| Error |
Row 28, Column 1: "Delete `·`"
prettier/prettier
|
| 28 |
smallText: { |
| Error |
Row 29, Column 1: "Delete `·`"
prettier/prettier
|
| 29 |
fontFamily: regularText, |
| Error |
Row 30, Column 1: "Replace `·····fontSize:·smallText` with `····fontSize:·smallText,`"
prettier/prettier
|
| Warning |
Row 30, Column 25: "Missing trailing comma."
comma-dangle
|
| 30 |
fontSize: smallText |
| Error |
Row 31, Column 1: "Delete `·`"
prettier/prettier
|
| 31 |
}, |
| Error |
Row 32, Column 1: "Delete `·`"
prettier/prettier
|
| 32 |
smallTextSemibold: { |
| Error |
Row 33, Column 5: "Delete `·`"
prettier/prettier
|
| 33 |
fontFamily: semiboldText, |
| Error |
Row 34, Column 5: "Replace `·fontSize:·smallText` with `fontSize:·smallText,`"
prettier/prettier
|
| Warning |
Row 34, Column 25: "Missing trailing comma."
comma-dangle
|
| 34 |
fontSize: smallText |
| Error |
Row 35, Column 3: "Replace `·}` with `},`"
prettier/prettier
|
| Warning |
Row 35, Column 5: "Missing trailing comma."
comma-dangle
|
| 35 |
} |
| Error |
Row 36, Column 1: "Delete `·`"
prettier/prettier
|
| 36 |
}); |
| Error |
Row 37, Column 1: "Replace `·export·default·textStyles;` with `export·default·textStyles;⏎`"
prettier/prettier
|
| Warning |
Row 37, Column 28: "Newline required at end of file but not found."
eol-last
|
| 37 |
export default textStyles; |
|
|
|
/src/container/index.js
|
0 problems
|
|
|
/src/i18n/i18n.js
|
1 problem (1 error, 0 warnings)
|
| Severity |
Rule |
| Error |
Row 9, Column 36: "Replace `·en,·ar·` with `en,·ar`"
prettier/prettier
|
| Line |
Source |
| 1 |
import {I18nManager} from 'react-native'; |
| 2 |
import i18n from 'i18n-js'; |
| 3 |
import memoize from 'lodash.memoize'; |
| 4 |
import en from './en.json'; |
| 5 |
import ar from './ar.json'; |
| 6 |
|
| 7 |
export const DEFAULT_LANGUAGE = 'en'; |
| 8 |
|
| Error |
Row 9, Column 36: "Replace `·en,·ar·` with `en,·ar`"
prettier/prettier
|
| 9 |
export const translationGetters = { en, ar }; |
| 10 |
|
| 11 |
export const translate = memoize( |
| 12 |
(key, config) => i18n.t(key, config), |
| 13 |
(key, config) => (config ? key + JSON.stringify(config) : key), |
| 14 |
); |
| 15 |
|
| 16 |
export const t = translate; |
| 17 |
|
| 18 |
export const setI18nConfig = (codeLang = null) => { |
| 19 |
// fallback if no available language fits |
| 20 |
const fallback = {languageTag: DEFAULT_LANGUAGE, isRTL: false}; |
| 21 |
const lang = codeLang ? {languageTag: codeLang, isRTL: false} : null; |
| 22 |
|
| 23 |
const {languageTag, isRTL} = lang ? lang : fallback; |
| 24 |
|
| 25 |
// clear translation cache |
| 26 |
translate.cache.clear(); |
| 27 |
// update layout direction |
| 28 |
I18nManager.forceRTL(isRTL); |
| 29 |
// set i18n-js config |
| 30 |
i18n.translations = {[languageTag]: translationGetters[languageTag]}; |
| 31 |
i18n.locale = languageTag; |
| 32 |
|
| 33 |
return languageTag; |
| 34 |
}; |
| 35 |
|
|
|
|
/src/i18n/index.js
|
0 problems
|
|
|
/src/navigation/index.js
|
2 problems (1 error, 1 warning)
|
| Severity |
Rule |
| Warning |
Row 2, Column 55: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 2, Column 55: "Insert `⏎`"
prettier/prettier
|
| Line |
Source |
| 1 |
export * from './main-navigator/main-navigator'; |
| Warning |
Row 2, Column 55: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 2, Column 55: "Insert `⏎`"
prettier/prettier
|
| 2 |
export * from './main-navigator/homeStack-navigation'; |
|
|
|
/src/navigation/main-navigator/homeStack-navigation.js
|
10 problems (6 errors, 4 warnings)
|
| Severity |
Rule |
| Error |
Row 3, Column 9: "Replace `·createNativeStackNavigator·` with `createNativeStackNavigator`"
prettier/prettier
|
| Error |
Row 11, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 13, Column 23: "Replace `=()` with `·=·()·`"
prettier/prettier
|
| Warning |
Row 13, Column 23: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 15, Column 5: "Replace `··prettier/prettier
|
| Warning |
Row 15, Column 41: "Unexpected usage of singlequote."
jsx-quotes
|
| Error |
Row 21, Column 1: "Delete `⏎··`"
prettier/prettier
|
| Warning |
Row 24, Column 2: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 24, Column 2: "Insert `;⏎`"
prettier/prettier
|
| Warning |
Row 24, Column 2: "Missing semicolon."
semi
|
| Line |
Source |
| 1 |
// In App.js in a new project |
| 2 |
|
| Error |
Row 3, Column 9: "Replace `·createNativeStackNavigator·` with `createNativeStackNavigator`"
prettier/prettier
|
| 3 |
import { createNativeStackNavigator } from '@react-navigation/native-stack'; |
| 4 |
import * as React from 'react'; |
| 5 |
import DeliveredOrders from '../../screens/orders/delivered-orders'; |
| 6 |
import International from '../../screens/orders/international'; |
| 7 |
import PostedOrders from '../../screens/orders/posted-orders'; |
| 8 |
import ProcessingOrders from '../../screens/orders/processing-orders'; |
| 9 |
import HomeTab from '../../screens/tab-screens/tab-home'; |
| 10 |
|
| Error |
Row 11, Column 1: "Delete `⏎`"
prettier/prettier
|
| 11 |
|
| 12 |
const Stack = createNativeStackNavigator(); |
| Error |
Row 13, Column 23: "Replace `=()` with `·=·()·`"
prettier/prettier
|
| Warning |
Row 13, Column 23: "Operator '=' must be spaced."
space-infix-ops
|
| 13 |
export const HomeStack=()=> { |
| 14 |
return ( |
| Error |
Row 15, Column 5: "Replace `··prettier/prettier
|
| Warning |
Row 15, Column 41: "Unexpected usage of singlequote."
jsx-quotes
|
| 15 |
<Stack.Navigator initialRouteName='home' screenOptions={{headerShown:false}} > |
| 16 |
<Stack.Screen name="Home" component={HomeTab} /> |
| 17 |
<Stack.Screen name="international" component={International} /> |
| 18 |
<Stack.Screen name="processingorders" component={ProcessingOrders} /> |
| 19 |
<Stack.Screen name="deliveredOrders" component={DeliveredOrders} /> |
| 20 |
<Stack.Screen name="postedorders" component={PostedOrders} /> |
| Error |
Row 21, Column 1: "Delete `⏎··`"
prettier/prettier
|
| 21 |
|
| 22 |
</Stack.Navigator> |
| 23 |
); |
| Warning |
Row 24, Column 2: "Newline required at end of file but not found."
eol-last
|
| Error |
Row 24, Column 2: "Insert `;⏎`"
prettier/prettier
|
| Warning |
Row 24, Column 2: "Missing semicolon."
semi
|
| 24 |
} |
|
|
|
/src/navigation/main-navigator/main-navigator.js
|
112 problems (31 errors, 81 warnings)
|
| Severity |
Rule |
| Error |
Row 3, Column 9: "Replace `·NavigationContainer·` with `NavigationContainer`"
prettier/prettier
|
| Warning |
Row 3, Column 10: "'NavigationContainer' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·createNativeStackNavigator·` with `createNativeStackNavigator`"
prettier/prettier
|
| Warning |
Row 6, Column 8: "'SignInPage' is defined but never used."
no-unused-vars
|
| Warning |
Row 7, Column 8: "'AddTrip' is defined but never used."
no-unused-vars
|
| Warning |
Row 8, Column 8: "'SignupScreen' is defined but never used."
no-unused-vars
|
| Warning |
Row 9, Column 8: "'Chat' is defined but never used."
no-unused-vars
|
| Warning |
Row 10, Column 8: "'Onboarding2' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 62: "Insert `;`"
prettier/prettier
|
| Warning |
Row 10, Column 62: "Missing semicolon."
semi
|
| Warning |
Row 11, Column 8: "'BrowseOrders' is defined but never used."
no-unused-vars
|
| Warning |
Row 12, Column 8: "'InternationalDelivery' is defined but never used."
no-unused-vars
|
| Warning |
Row 13, Column 8: "'OrderDetails' is defined but never used."
no-unused-vars
|
| Warning |
Row 14, Column 8: "'AccountInfo' is defined but never used."
no-unused-vars
|
| Warning |
Row 15, Column 8: "'Approve' is defined but never used."
no-unused-vars
|
| Warning |
Row 16, Column 8: "'Approved' is defined but never used."
no-unused-vars
|
| Warning |
Row 17, Column 8: "'DeliveryHistory' is defined but never used."
no-unused-vars
|
| Warning |
Row 18, Column 8: "'DeliveryPendingDetails' is defined but never used."
no-unused-vars
|
| Warning |
Row 19, Column 8: "'Disputes' is defined but never used."
no-unused-vars
|
| Warning |
Row 20, Column 8: "'InviteFriends' is defined but never used."
no-unused-vars
|
| Warning |
Row 21, Column 8: "'Menu' is defined but never used."
no-unused-vars
|
| Warning |
Row 22, Column 8: "'MyOffers' is defined but never used."
no-unused-vars
|
| Warning |
Row 23, Column 8: "'myOffersDetails' is defined but never used."
no-unused-vars
|
| Warning |
Row 24, Column 8: "'myOrders' is defined but never used."
no-unused-vars
|
| Warning |
Row 25, Column 8: "'OrderHistory' is defined but never used."
no-unused-vars
|
| Warning |
Row 26, Column 8: "'PendingDetails' is defined but never used."
no-unused-vars
|
| Warning |
Row 27, Column 8: "'OfferRequest' is defined but never used."
no-unused-vars
|
| Warning |
Row 28, Column 8: "'PrivacyPolicy' is defined but never used."
no-unused-vars
|
| Warning |
Row 29, Column 8: "'SubmitRequest' is defined but never used."
no-unused-vars
|
| Warning |
Row 30, Column 8: "'TermsOfUse' is defined but never used."
no-unused-vars
|
| Warning |
Row 31, Column 8: "'AddBankInfo' is defined but never used."
no-unused-vars
|
| Warning |
Row 32, Column 8: "'Wallet' is defined but never used."
no-unused-vars
|
| Warning |
Row 33, Column 8: "'WalletDeliveryDetails' is defined but never used."
no-unused-vars
|
| Warning |
Row 34, Column 8: "'WalletHistory' is defined but never used."
no-unused-vars
|
| Warning |
Row 35, Column 8: "'WalletPayoutDetail' is defined but never used."
no-unused-vars
|
| Warning |
Row 36, Column 8: "'WalletRefundDetails' is defined but never used."
no-unused-vars
|
| Warning |
Row 37, Column 8: "'Notifications' is defined but never used."
no-unused-vars
|
| Warning |
Row 38, Column 8: "'CreateOrderEStore' is defined but never used."
no-unused-vars
|
| Warning |
Row 39, Column 8: "'CreateOrderPhysicalStore' is defined but never used."
no-unused-vars
|
| Warning |
Row 40, Column 8: "'DeliverTo' is defined but never used."
no-unused-vars
|
| Warning |
Row 41, Column 8: "'DetailsConfirmation' is defined but never used."
no-unused-vars
|
| Warning |
Row 42, Column 8: "'HighestPaidDestinations' is defined but never used."
no-unused-vars
|
| Warning |
Row 43, Column 8: "'International' is defined but never used."
no-unused-vars
|
| Warning |
Row 44, Column 8: "'LocalOrders' is defined but never used."
no-unused-vars
|
| Warning |
Row 45, Column 8: "'OrderDeliveryDetail' is defined but never used."
no-unused-vars
|
| Warning |
Row 46, Column 8: "'PaymentConfirmation' is defined but never used."
no-unused-vars
|
| Warning |
Row 47, Column 8: "'SearchMap' is defined but never used."
no-unused-vars
|
| Warning |
Row 48, Column 8: "'StoreLocation' is defined but never used."
no-unused-vars
|
| Warning |
Row 49, Column 8: "'Stores' is defined but never used."
no-unused-vars
|
| Warning |
Row 50, Column 8: "'UserProfile' is defined but never used."
no-unused-vars
|
| Warning |
Row 51, Column 8: "'ChangeEmail' is defined but never used."
no-unused-vars
|
| Warning |
Row 52, Column 8: "'ChangePassword' is defined but never used."
no-unused-vars
|
| Warning |
Row 53, Column 8: "'ChangePhoneNumber' is defined but never used."
no-unused-vars
|
| Warning |
Row 54, Column 8: "'DeliveryLocation' is defined but never used."
no-unused-vars
|
| Warning |
Row 55, Column 8: "'NewAddress' is defined but never used."
no-unused-vars
|
| Warning |
Row 56, Column 8: "'SavedAddress' is defined but never used."
no-unused-vars
|
| Warning |
Row 57, Column 8: "'SelectAddress' is defined but never used."
no-unused-vars
|
| Warning |
Row 58, Column 8: "'Settings' is defined but never used."
no-unused-vars
|
| Warning |
Row 59, Column 8: "'TabNavigator' is defined but never used."
no-unused-vars
|
| Warning |
Row 60, Column 8: "'privacyAndTerms' is defined but never used."
no-unused-vars
|
| Warning |
Row 61, Column 8: "'InternationalTrip' is defined but never used."
no-unused-vars
|
| Warning |
Row 62, Column 8: "'LocalTrip' is defined but never used."
no-unused-vars
|
| Warning |
Row 63, Column 8: "'DeliveryAddress' is defined but never used."
no-unused-vars
|
| Warning |
Row 64, Column 8: "'ChatDispute' is defined but never used."
no-unused-vars
|
| Error |
Row 67, Column 9: "Replace `·PermissionsAndroid,·View,·TouchableOpacity,·Easing,·Animated,·Image·` with `⏎··PermissionsAndroid,⏎··View,⏎··TouchableOpacity,⏎··Easing,⏎··Animated,⏎··Image,⏎`"
prettier/prettier
|
| Warning |
Row 67, Column 10: "'PermissionsAndroid' is defined but never used."
no-unused-vars
|
| Warning |
Row 67, Column 36: "'TouchableOpacity' is defined but never used."
no-unused-vars
|
| Error |
Row 69, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 70, Column 7: "'Stack' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 71, Column 7: "'getRandomNumber' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 72, Column 7: "'getNewUuid' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 73, Column 7: "'isIOS' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 73, Column 15: "'Platform' is not defined."
no-undef
|
| Error |
Row 75, Column 1: "Replace `⏎export·const·MainNavigator·=·(props)` with `export·const·MainNavigator·=·props`"
prettier/prettier
|
| Error |
Row 77, Column 19: "Replace `,]·=·React.useState(new·Animated.Value(0))` with `]·=·React.useState(new·Animated.Value(0));`"
prettier/prettier
|
| Warning |
Row 77, Column 19: "Unexpected trailing comma."
comma-dangle
|
| Warning |
Row 77, Column 61: "Missing semicolon."
semi
|
| Error |
Row 85, Column 28: "Insert `,`"
prettier/prettier
|
| Warning |
Row 85, Column 28: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 87, Column 7: "'leftSpin' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 87, Column 17: "Insert `;`"
prettier/prettier
|
| Warning |
Row 87, Column 17: "Missing semicolon."
semi
|
| Error |
Row 88, Column 7: "Insert `;`"
prettier/prettier
|
| Warning |
Row 88, Column 7: "Missing semicolon."
semi
|
| Error |
Row 89, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 89, Column 4: "Missing semicolon."
semi
|
| Error |
Row 93, Column 43: "Insert `,`"
prettier/prettier
|
| Warning |
Row 93, Column 43: "Missing trailing comma."
comma-dangle
|
| Error |
Row 94, Column 5: "Insert `;`"
prettier/prettier
|
| Warning |
Row 94, Column 5: "Missing semicolon."
semi
|
| Error |
Row 98, Column 76: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 172, Column 8: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 175, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 278, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 286, Column 24: "Insert `;`"
prettier/prettier
|
| Warning |
Row 286, Column 24: "Missing semicolon."
semi
|
| Error |
Row 287, Column 9: "Replace `⏎` with `;`"
prettier/prettier
|
| Warning |
Row 287, Column 9: "Missing semicolon."
semi
|
| Error |
Row 291, Column 10: "Replace `·style={{·flex:·1,·backgroundColor:·'#000',·justifyContent:·'space-between',·alignItems:·'center'·}}>⏎⏎` with `⏎······style={{⏎········flex:·1,⏎········backgroundColor:·'#000',⏎········justifyContent:·'space-between',⏎········alignItems:·'center',⏎······}}>`"
prettier/prettier
|
| Warning |
Row 291, Column 18: "Inline style: {
flex: 1,
backgroundColor: '#000',
justifyContent: 'space-between',
alignItems: 'center'
}"
react-native/no-inline-styles
|
| Error |
Row 306, Column 31: "Replace `·transform:·[{·rotate:·spin_·}]·` with `transform:·[{rotate:·spin_}]`"
prettier/prettier
|
| Error |
Row 307, Column 15: "Insert `⏎·········`"
prettier/prettier
|
| Warning |
Row 307, Column 23: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 308, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 309, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 310, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 311, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 312, Column 1: "Replace `··········transform:·[{·rotate:·'120deg'·}]` with `············transform:·[{rotate:·'120deg'}],`"
prettier/prettier
|
| Warning |
Row 312, Column 44: "Missing trailing comma."
comma-dangle
|
| Error |
Row 313, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 314, Column 20: "Replace `·uri:·'https://www.pinclipart.com/picdir/middle/60-601763_poziv-call-icon-red-png-clipart.png'` with `⏎············uri:·'https://www.pinclipart.com/picdir/middle/60-601763_poziv-call-icon-red-png-clipart.png',⏎·········`"
prettier/prettier
|
| Error |
Row 315, Column 11: "Delete `⏎`"
prettier/prettier
|
| Line |
Source |
| 1 |
// In App.js in a new project |
| 2 |
|
| Error |
Row 3, Column 9: "Replace `·NavigationContainer·` with `NavigationContainer`"
prettier/prettier
|
| Warning |
Row 3, Column 10: "'NavigationContainer' is defined but never used."
no-unused-vars
|
| 3 |
import { NavigationContainer } from '@react-navigation/native'; |
| Error |
Row 4, Column 9: "Replace `·createNativeStackNavigator·` with `createNativeStackNavigator`"
prettier/prettier
|
| 4 |
import { createNativeStackNavigator } from '@react-navigation/native-stack'; |
| 5 |
import * as React from 'react'; |
| Warning |
Row 6, Column 8: "'SignInPage' is defined but never used."
no-unused-vars
|
| 6 |
import SignInPage from '../../components/pages/auth/singIn-page'; |
| Warning |
Row 7, Column 8: "'AddTrip' is defined but never used."
no-unused-vars
|
| 7 |
import AddTrip from '../../screens/add-trip-screen/add-trip'; |
| Warning |
Row 8, Column 8: "'SignupScreen' is defined but never used."
no-unused-vars
|
| 8 |
import SignupScreen from '../../screens/auth/sign-up-screen'; |
| Warning |
Row 9, Column 8: "'Chat' is defined but never used."
no-unused-vars
|
| 9 |
import Chat from '../../screens/chat/chat'; |
| Warning |
Row 10, Column 8: "'Onboarding2' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 62: "Insert `;`"
prettier/prettier
|
| Warning |
Row 10, Column 62: "Missing semicolon."
semi
|
| 10 |
import Onboarding2 from '../../screens/onboarding/onboarding' |
| Warning |
Row 11, Column 8: "'BrowseOrders' is defined but never used."
no-unused-vars
|
| 11 |
import BrowseOrders from '../../screens/international-delivery/browse-orders'; |
| Warning |
Row 12, Column 8: "'InternationalDelivery' is defined but never used."
no-unused-vars
|
| 12 |
import InternationalDelivery from '../../screens/international-delivery/international-delivery'; |
| Warning |
Row 13, Column 8: "'OrderDetails' is defined but never used."
no-unused-vars
|
| 13 |
import OrderDetails from '../../screens/make-offer/order-details'; |
| Warning |
Row 14, Column 8: "'AccountInfo' is defined but never used."
no-unused-vars
|
| 14 |
import AccountInfo from '../../screens/menu/account-info'; |
| Warning |
Row 15, Column 8: "'Approve' is defined but never used."
no-unused-vars
|
| 15 |
import Approve from '../../screens/menu/approve'; |
| Warning |
Row 16, Column 8: "'Approved' is defined but never used."
no-unused-vars
|
| 16 |
import Approved from '../../screens/menu/approved'; |
| Warning |
Row 17, Column 8: "'DeliveryHistory' is defined but never used."
no-unused-vars
|
| 17 |
import DeliveryHistory from '../../screens/menu/delivery-history'; |
| Warning |
Row 18, Column 8: "'DeliveryPendingDetails' is defined but never used."
no-unused-vars
|
| 18 |
import DeliveryPendingDetails from '../../screens/menu/delivery-history/delivery-pending-details'; |
| Warning |
Row 19, Column 8: "'Disputes' is defined but never used."
no-unused-vars
|
| 19 |
import Disputes from '../../screens/menu/disputes'; |
| Warning |
Row 20, Column 8: "'InviteFriends' is defined but never used."
no-unused-vars
|
| 20 |
import InviteFriends from '../../screens/menu/invite-friends'; |
| Warning |
Row 21, Column 8: "'Menu' is defined but never used."
no-unused-vars
|
| 21 |
import Menu from '../../screens/menu/menu'; |
| Warning |
Row 22, Column 8: "'MyOffers' is defined but never used."
no-unused-vars
|
| 22 |
import MyOffers from '../../screens/menu/my-offers'; |
| Warning |
Row 23, Column 8: "'myOffersDetails' is defined but never used."
no-unused-vars
|
| 23 |
import myOffersDetails from '../../screens/menu/my-offers/my-offers-details'; |
| Warning |
Row 24, Column 8: "'myOrders' is defined but never used."
no-unused-vars
|
| 24 |
import myOrders from '../../screens/menu/my-orders'; |
| Warning |
Row 25, Column 8: "'OrderHistory' is defined but never used."
no-unused-vars
|
| 25 |
import OrderHistory from '../../screens/menu/order-history'; |
| Warning |
Row 26, Column 8: "'PendingDetails' is defined but never used."
no-unused-vars
|
| 26 |
import PendingDetails from '../../screens/menu/order-history/pending-details'; |
| Warning |
Row 27, Column 8: "'OfferRequest' is defined but never used."
no-unused-vars
|
| 27 |
import OfferRequest from '../../screens/menu/order-history/pending-details/offer-request'; |
| Warning |
Row 28, Column 8: "'PrivacyPolicy' is defined but never used."
no-unused-vars
|
| 28 |
import PrivacyPolicy from '../../screens/menu/privacy-policy'; |
| Warning |
Row 29, Column 8: "'SubmitRequest' is defined but never used."
no-unused-vars
|
| 29 |
import SubmitRequest from '../../screens/menu/submit-request'; |
| Warning |
Row 30, Column 8: "'TermsOfUse' is defined but never used."
no-unused-vars
|
| 30 |
import TermsOfUse from '../../screens/menu/terms'; |
| Warning |
Row 31, Column 8: "'AddBankInfo' is defined but never used."
no-unused-vars
|
| 31 |
import AddBankInfo from '../../screens/menu/wallet/add-bank-info'; |
| Warning |
Row 32, Column 8: "'Wallet' is defined but never used."
no-unused-vars
|
| 32 |
import Wallet from '../../screens/menu/wallet/wallet'; |
| Warning |
Row 33, Column 8: "'WalletDeliveryDetails' is defined but never used."
no-unused-vars
|
| 33 |
import WalletDeliveryDetails from '../../screens/menu/wallet/wallet-delivery-details'; |
| Warning |
Row 34, Column 8: "'WalletHistory' is defined but never used."
no-unused-vars
|
| 34 |
import WalletHistory from '../../screens/menu/wallet/wallet-history'; |
| Warning |
Row 35, Column 8: "'WalletPayoutDetail' is defined but never used."
no-unused-vars
|
| 35 |
import WalletPayoutDetail from '../../screens/menu/wallet/wallet-payout-detail'; |
| Warning |
Row 36, Column 8: "'WalletRefundDetails' is defined but never used."
no-unused-vars
|
| 36 |
import WalletRefundDetails from '../../screens/menu/wallet/wallet-refund-details'; |
| Warning |
Row 37, Column 8: "'Notifications' is defined but never used."
no-unused-vars
|
| 37 |
import Notifications from '../../screens/notifications-screen/notifications'; |
| Warning |
Row 38, Column 8: "'CreateOrderEStore' is defined but never used."
no-unused-vars
|
| 38 |
import CreateOrderEStore from '../../screens/orders/create-order-estore'; |
| Warning |
Row 39, Column 8: "'CreateOrderPhysicalStore' is defined but never used."
no-unused-vars
|
| 39 |
import CreateOrderPhysicalStore from '../../screens/orders/create-order-pstore'; |
| Warning |
Row 40, Column 8: "'DeliverTo' is defined but never used."
no-unused-vars
|
| 40 |
import DeliverTo from '../../screens/orders/deliver-to'; |
| Warning |
Row 41, Column 8: "'DetailsConfirmation' is defined but never used."
no-unused-vars
|
| 41 |
import DetailsConfirmation from '../../screens/orders/details-confirmation'; |
| Warning |
Row 42, Column 8: "'HighestPaidDestinations' is defined but never used."
no-unused-vars
|
| 42 |
import HighestPaidDestinations from '../../screens/orders/highest-paid-destinition'; |
| Warning |
Row 43, Column 8: "'International' is defined but never used."
no-unused-vars
|
| 43 |
import International from '../../screens/orders/international'; |
| Warning |
Row 44, Column 8: "'LocalOrders' is defined but never used."
no-unused-vars
|
| 44 |
import LocalOrders from '../../screens/orders/local-orders'; |
| Warning |
Row 45, Column 8: "'OrderDeliveryDetail' is defined but never used."
no-unused-vars
|
| 45 |
import OrderDeliveryDetail from '../../screens/orders/order-delivery-detail'; |
| Warning |
Row 46, Column 8: "'PaymentConfirmation' is defined but never used."
no-unused-vars
|
| 46 |
import PaymentConfirmation from '../../screens/orders/payment-confirmation'; |
| Warning |
Row 47, Column 8: "'SearchMap' is defined but never used."
no-unused-vars
|
| 47 |
import SearchMap from '../../screens/orders/search-map'; |
| Warning |
Row 48, Column 8: "'StoreLocation' is defined but never used."
no-unused-vars
|
| 48 |
import StoreLocation from '../../screens/orders/store-location'; |
| Warning |
Row 49, Column 8: "'Stores' is defined but never used."
no-unused-vars
|
| 49 |
import Stores from '../../screens/popular-stores/stores'; |
| Warning |
Row 50, Column 8: "'UserProfile' is defined but never used."
no-unused-vars
|
| 50 |
import UserProfile from '../../screens/profile/user-profile'; |
| Warning |
Row 51, Column 8: "'ChangeEmail' is defined but never used."
no-unused-vars
|
| 51 |
import ChangeEmail from '../../screens/setting-screens/change-email'; |
| Warning |
Row 52, Column 8: "'ChangePassword' is defined but never used."
no-unused-vars
|
| 52 |
import ChangePassword from '../../screens/setting-screens/change-password'; |
| Warning |
Row 53, Column 8: "'ChangePhoneNumber' is defined but never used."
no-unused-vars
|
| 53 |
import ChangePhoneNumber from '../../screens/setting-screens/change-phone-number'; |
| Warning |
Row 54, Column 8: "'DeliveryLocation' is defined but never used."
no-unused-vars
|
| 54 |
import DeliveryLocation from '../../screens/setting-screens/delivery-location'; |
| Warning |
Row 55, Column 8: "'NewAddress' is defined but never used."
no-unused-vars
|
| 55 |
import NewAddress from '../../screens/setting-screens/new-address'; |
| Warning |
Row 56, Column 8: "'SavedAddress' is defined but never used."
no-unused-vars
|
| 56 |
import SavedAddress from '../../screens/setting-screens/saved-address'; |
| Warning |
Row 57, Column 8: "'SelectAddress' is defined but never used."
no-unused-vars
|
| 57 |
import SelectAddress from '../../screens/setting-screens/select-address'; |
| Warning |
Row 58, Column 8: "'Settings' is defined but never used."
no-unused-vars
|
| 58 |
import Settings from '../../screens/setting-screens/settings'; |
| Warning |
Row 59, Column 8: "'TabNavigator' is defined but never used."
no-unused-vars
|
| 59 |
import TabNavigator from './tab-navigation'; |
| Warning |
Row 60, Column 8: "'privacyAndTerms' is defined but never used."
no-unused-vars
|
| 60 |
import privacyAndTerms from '../../screens/privacy-files/privacyAndTerms'; |
| Warning |
Row 61, Column 8: "'InternationalTrip' is defined but never used."
no-unused-vars
|
| 61 |
import InternationalTrip from '../../screens/trip/international-trip/international-trip'; |
| Warning |
Row 62, Column 8: "'LocalTrip' is defined but never used."
no-unused-vars
|
| 62 |
import LocalTrip from '../../screens/trip/local-trip/local-trip'; |
| Warning |
Row 63, Column 8: "'DeliveryAddress' is defined but never used."
no-unused-vars
|
| 63 |
import DeliveryAddress from '../../screens/chat/delivery-address'; |
| Warning |
Row 64, Column 8: "'ChatDispute' is defined but never used."
no-unused-vars
|
| 64 |
import ChatDispute from '../../screens/chat/chat-dispute'; |
| 65 |
// import RNCallKeep from 'react-native-callkeep'; |
| 66 |
import uuid from 'react-native-uuid'; |
| Error |
Row 67, Column 9: "Replace `·PermissionsAndroid,·View,·TouchableOpacity,·Easing,·Animated,·Image·` with `⏎··PermissionsAndroid,⏎··View,⏎··TouchableOpacity,⏎··Easing,⏎··Animated,⏎··Image,⏎`"
prettier/prettier
|
| Warning |
Row 67, Column 10: "'PermissionsAndroid' is defined but never used."
no-unused-vars
|
| Warning |
Row 67, Column 36: "'TouchableOpacity' is defined but never used."
no-unused-vars
|
| 67 |
import { PermissionsAndroid, View, TouchableOpacity, Easing, Animated, Image } from 'react-native'; |
| 68 |
import SplashScreen from 'react-native-splash-screen'; |
| Error |
Row 69, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 69 |
import { mvs } from '../../config/metrices'; |
| Warning |
Row 70, Column 7: "'Stack' is assigned a value but never used."
no-unused-vars
|
| 70 |
const Stack = createNativeStackNavigator(); |
| Warning |
Row 71, Column 7: "'getRandomNumber' is assigned a value but never used."
no-unused-vars
|
| 71 |
const getRandomNumber = () => String(Math.floor(Math.random() * 100000)); |
| Warning |
Row 72, Column 7: "'getNewUuid' is assigned a value but never used."
no-unused-vars
|
| 72 |
const getNewUuid = () => uuid.v4().toLowerCase(); |
| Warning |
Row 73, Column 7: "'isIOS' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 73, Column 15: "'Platform' is not defined."
no-undef
|
| 73 |
const isIOS = Platform.OS === 'ios'; |
| 74 |
|
| Error |
Row 75, Column 1: "Replace `⏎export·const·MainNavigator·=·(props)` with `export·const·MainNavigator·=·props`"
prettier/prettier
|
| 75 |
|
| 76 |
export const MainNavigator = (props) => { |
| Error |
Row 77, Column 19: "Replace `,]·=·React.useState(new·Animated.Value(0))` with `]·=·React.useState(new·Animated.Value(0));`"
prettier/prettier
|
| Warning |
Row 77, Column 19: "Unexpected trailing comma."
comma-dangle
|
| Warning |
Row 77, Column 61: "Missing semicolon."
semi
|
| 77 |
const [spinValue,] = React.useState(new Animated.Value(0)) |
| 78 |
|
| 79 |
const leftSpin = () => { |
| 80 |
spinValue.setValue(0); |
| 81 |
Animated.timing(spinValue, { |
| 82 |
toValue: 1, |
| 83 |
duration: 100, |
| 84 |
easing: Easing.linear, |
| Error |
Row 85, Column 28: "Insert `,`"
prettier/prettier
|
| Warning |
Row 85, Column 28: "Missing trailing comma."
comma-dangle
|
| 85 |
useNativeDriver: true |
| 86 |
}).start(() => { |
| Warning |
Row 87, Column 7: "'leftSpin' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 87, Column 17: "Insert `;`"
prettier/prettier
|
| Warning |
Row 87, Column 17: "Missing semicolon."
semi
|
| 87 |
leftSpin() |
| Error |
Row 88, Column 7: "Insert `;`"
prettier/prettier
|
| Warning |
Row 88, Column 7: "Missing semicolon."
semi
|
| 88 |
}) |
| Error |
Row 89, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 89, Column 4: "Missing semicolon."
semi
|
| 89 |
} |
| 90 |
|
| 91 |
const spin_ = spinValue.interpolate({ |
| 92 |
inputRange: [0, 0.5, 1], |
| Error |
Row 93, Column 43: "Insert `,`"
prettier/prettier
|
| Warning |
Row 93, Column 43: "Missing trailing comma."
comma-dangle
|
| 93 |
outputRange: ['0deg', '20deg', '0deg'] |
| Error |
Row 94, Column 5: "Insert `;`"
prettier/prettier
|
| Warning |
Row 94, Column 5: "Missing semicolon."
semi
|
| 94 |
}) |
| 95 |
// const [logText, setLog] = React.useState(''); |
| 96 |
// const [heldCalls, setHeldCalls] = React.useState({}); // callKeep uuid: held |
| 97 |
// const [mutedCalls, setMutedCalls] = React.useState({}); // callKeep uuid: muted |
| Error |
Row 98, Column 76: "Delete `⏎`"
prettier/prettier
|
| 98 |
// const [calls, setCalls] = React.useState({}); // callKeep uuid: number |
| 99 |
|
| 100 |
|
| 101 |
// React.useEffect(() => { |
| 102 |
|
| 103 |
// RNCallKeep.addEventListener('answerCall', answerCall); |
| 104 |
// RNCallKeep.addEventListener('didPerformDTMFAction', didPerformDTMFAction); |
| 105 |
// RNCallKeep.addEventListener( |
| 106 |
// 'didReceiveStartCallAction', |
| 107 |
// didReceiveStartCallAction, |
| 108 |
// ); |
| 109 |
// RNCallKeep.addEventListener( |
| 110 |
// 'didPerformSetMutedCallAction', |
| 111 |
// didPerformSetMutedCallAction, |
| 112 |
// ); |
| 113 |
// RNCallKeep.addEventListener( |
| 114 |
// ); |
| 115 |
// RNCallKeep.addEventListener('endCall', endCall); |
| 116 |
|
| 117 |
// return () => { |
| 118 |
// RNCallKeep.removeEventListener('answerCall', answerCall); |
| 119 |
// RNCallKeep.removeEventListener( |
| 120 |
// 'didPerformDTMFAction', |
| 121 |
// didPerformDTMFAction, |
| 122 |
// ); |
| 123 |
// RNCallKeep.removeEventListener( |
| 124 |
// 'didReceiveStartCallAction', |
| 125 |
// didReceiveStartCallAction, |
| 126 |
// ); |
| 127 |
// RNCallKeep.removeEventListener( |
| 128 |
// 'didPerformSetMutedCallAction', |
| 129 |
// didPerformSetMutedCallAction, |
| 130 |
// ); |
| 131 |
// RNCallKeep.removeEventListener( |
| 132 |
// 'didToggleHoldCallAction', |
| 133 |
// didToggleHoldCallAction, |
| 134 |
// ); |
| 135 |
// RNCallKeep.removeEventListener('endCall', endCall); |
| 136 |
// }; |
| 137 |
// }, []); |
| 138 |
// const addCall = (callUUID, number) => { |
| 139 |
// setHeldCalls({ ...heldCalls, [callUUID]: false }); |
| 140 |
// setCalls({ ...calls, [callUUID]: number }); |
| 141 |
// }; |
| 142 |
|
| 143 |
// // console.log(calls); |
| 144 |
// const removeCall = callUUID => { |
| 145 |
// const { [callUUID]: _, ...updated } = calls; |
| 146 |
// const { [callUUID]: __, ...updatedHeldCalls } = heldCalls; |
| 147 |
|
| 148 |
// setCalls(updated); |
| 149 |
// setCalls(updatedHeldCalls); |
| 150 |
// }; |
| 151 |
|
| 152 |
// const setCallHeld = (callUUID, held) => { |
| 153 |
// setHeldCalls({ ...heldCalls, [callUUID]: held }); |
| 154 |
// }; |
| 155 |
|
| 156 |
// const setCallMuted = (callUUID, muted) => { |
| 157 |
// setMutedCalls({ ...mutedCalls, [callUUID]: muted }); |
| 158 |
// }; |
| 159 |
|
| 160 |
// const displayIncomingCall = number => { |
| 161 |
// const callUUID = getNewUuid(); |
| 162 |
// addCall(callUUID, number); |
| 163 |
|
| 164 |
// // // log(`[displayIncomingCall] ${format(callUUID)}, number: ${number}`); |
| 165 |
|
| 166 |
// RNCallKeep.displayIncomingCall(callUUID, number, number, 'number', true); |
| 167 |
// }; |
| 168 |
|
| 169 |
// const displayIncomingCallNow = () => { |
| 170 |
// alert('calling') |
| 171 |
// displayIncomingCall(getRandomNumber()); |
| Error |
Row 172, Column 8: "Delete `⏎`"
prettier/prettier
|
| 172 |
// }; |
| 173 |
|
| 174 |
|
| Error |
Row 175, Column 1: "Delete `⏎`"
prettier/prettier
|
| 175 |
|
| 176 |
// const answerCall = ({ callUUID }) => { |
| 177 |
// const number = calls[callUUID]; |
| 178 |
// console.log('CALLS :: ', calls); |
| 179 |
// // log(`[answerCall] ${format(callUUID)}, number: ${number}`); |
| 180 |
|
| 181 |
// RNCallKeep.startCall(callUUID, number, number); |
| 182 |
|
| 183 |
// // BackgroundTimer.setTimeout(() => { |
| 184 |
// // log(`[setCurrentCallActive] ${format(callUUID)}, number: ${number}`); |
| 185 |
// RNCallKeep.setCurrentCallActive(callUUID); |
| 186 |
// //}, 1000); |
| 187 |
// }; |
| 188 |
|
| 189 |
// const didPerformDTMFAction = ({ callUUID, digits }) => { |
| 190 |
// const number = calls[callUUID]; |
| 191 |
// // log( |
| 192 |
// // `[didPerformDTMFAction] ${format( |
| 193 |
// // callUUID, |
| 194 |
// // )}, number: ${number} (${digits})`, |
| 195 |
// // ); |
| 196 |
// }; |
| 197 |
|
| 198 |
// const didReceiveStartCallAction = ({ handle }) => { |
| 199 |
// if (!handle) { |
| 200 |
// // @TODO: sometime we receive `didReceiveStartCallAction` with handle` undefined` |
| 201 |
// return; |
| 202 |
// } |
| 203 |
// const callUUID = getNewUuid(); |
| 204 |
// addCall(callUUID, handle); |
| 205 |
|
| 206 |
// // log(`[didReceiveStartCallAction] ${callUUID}, number: ${handle}`); |
| 207 |
|
| 208 |
// RNCallKeep.startCall(callUUID, handle, handle); |
| 209 |
|
| 210 |
// // BackgroundTimer.setTimeout(() => { |
| 211 |
// // log(`[setCurrentCallActive] ${format(callUUID)}, number: ${handle}`); |
| 212 |
// RNCallKeep.setCurrentCallActive(callUUID); |
| 213 |
// // }, 1000); |
| 214 |
// }; |
| 215 |
|
| 216 |
// const didPerformSetMutedCallAction = ({ muted, callUUID }) => { |
| 217 |
// const number = calls[callUUID]; |
| 218 |
// // log( |
| 219 |
// // `[didPerformSetMutedCallAction] ${format( |
| 220 |
// // callUUID, |
| 221 |
// // )}, number: ${number} (${muted})`, |
| 222 |
// // ); |
| 223 |
|
| 224 |
// setCallMuted(callUUID, muted); |
| 225 |
// }; |
| 226 |
|
| 227 |
// const didToggleHoldCallAction = ({ hold, callUUID }) => { |
| 228 |
// const number = calls[callUUID]; |
| 229 |
// // log( |
| 230 |
// // `[didToggleHoldCallAction] ${format( |
| 231 |
// // callUUID, |
| 232 |
// // )}, number: ${number} (${hold})`, |
| 233 |
// // ); |
| 234 |
|
| 235 |
// setCallHeld(callUUID, hold); |
| 236 |
// }; |
| 237 |
|
| 238 |
// const endCall = ({ callUUID }) => { |
| 239 |
// const handle = calls[callUUID]; |
| 240 |
// // log(`[endCall] ${format(callUUID)}, number: ${handle}`); |
| 241 |
|
| 242 |
// removeCall(callUUID); |
| 243 |
// }; |
| 244 |
|
| 245 |
// const hangup = callUUID => { |
| 246 |
// RNCallKeep.endCall(callUUID); |
| 247 |
// removeCall(callUUID); |
| 248 |
// }; |
| 249 |
|
| 250 |
// const setOnHold = (callUUID, held) => { |
| 251 |
// const handle = calls[callUUID]; |
| 252 |
// RNCallKeep.setOnHold(callUUID, held); |
| 253 |
// // log(`[setOnHold: ${held}] ${format(callUUID)}, number: ${handle}`); |
| 254 |
|
| 255 |
// setCallHeld(callUUID, held); |
| 256 |
// }; |
| 257 |
|
| 258 |
// const setOnMute = (callUUID, muted) => { |
| 259 |
// const handle = calls[callUUID]; |
| 260 |
// RNCallKeep.setMutedCall(callUUID, muted); |
| 261 |
// // log(`[setMutedCall: ${muted}] ${format(callUUID)}, number: ${handle}`); |
| 262 |
|
| 263 |
// setCallMuted(callUUID, muted); |
| 264 |
// }; |
| 265 |
|
| 266 |
// const updateDisplay = callUUID => { |
| 267 |
// const number = calls[callUUID]; |
| 268 |
// // Workaround because Android doesn't display well displayName, se we have to switch ... |
| 269 |
// if (isIOS) { |
| 270 |
// RNCallKeep.updateDisplay(callUUID, 'New Name', number); |
| 271 |
// } else { |
| 272 |
// RNCallKeep.updateDisplay(callUUID, number, 'New Name'); |
| 273 |
// } |
| 274 |
|
| 275 |
// // log(`[updateDisplay: ${number}] ${format(callUUID)}`); |
| 276 |
// }; |
| 277 |
|
| Error |
Row 278, Column 1: "Delete `⏎`"
prettier/prettier
|
| 278 |
|
| 279 |
// React.useEffect(() => { |
| 280 |
// setTimeout(() => { |
| 281 |
// displayIncomingCallNow() |
| 282 |
// }, 7000) |
| 283 |
// }, []) |
| 284 |
|
| 285 |
React.useEffect(() => { |
| Error |
Row 286, Column 24: "Insert `;`"
prettier/prettier
|
| Warning |
Row 286, Column 24: "Missing semicolon."
semi
|
| 286 |
SplashScreen.hide() |
| Error |
Row 287, Column 9: "Replace `⏎` with `;`"
prettier/prettier
|
| Warning |
Row 287, Column 9: "Missing semicolon."
semi
|
| 287 |
}, []) |
| 288 |
|
| 289 |
|
| 290 |
return ( |
| Error |
Row 291, Column 10: "Replace `·style={{·flex:·1,·backgroundColor:·'#000',·justifyContent:·'space-between',·alignItems:·'center'·}}>⏎⏎` with `⏎······style={{⏎········flex:·1,⏎········backgroundColor:·'#000',⏎········justifyContent:·'space-between',⏎········alignItems:·'center',⏎······}}>`"
prettier/prettier
|
| Warning |
Row 291, Column 18: "Inline style: {
flex: 1,
backgroundColor: '#000',
justifyContent: 'space-between',
alignItems: 'center'
}"
react-native/no-inline-styles
|
| 291 |
<View style={{ flex: 1, backgroundColor: '#000', justifyContent: 'space-between', alignItems: 'center' }}> |
| 292 |
|
| 293 |
|
| 294 |
{/* <Animated.View style={[{ transform: [{ rotate: spin_ }] }]}> |
| 295 |
<Image style={{ |
| 296 |
height: mvs(50), |
| 297 |
width: mvs(50), |
| 298 |
borderRadius: mvs(50), |
| 299 |
alignSelf: 'center', |
| 300 |
transform: [{ rotate: '100deg' }] |
| 301 |
}} |
| 302 |
source={{ uri: 'https://www.pngitem.com/pimgs/m/156-1568222_red-png-contact-icon-png-download-phone-red.png' }} |
| 303 |
/> |
| 304 |
|
| 305 |
</Animated.View> */} |
| Error |
Row 306, Column 31: "Replace `·transform:·[{·rotate:·spin_·}]·` with `transform:·[{rotate:·spin_}]`"
prettier/prettier
|
| 306 |
<Animated.View style={[{ transform: [{ rotate: spin_ }] }]}> |
| Error |
Row 307, Column 15: "Insert `⏎·········`"
prettier/prettier
|
| Warning |
Row 307, Column 23: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| 307 |
<Image style={{ |
| Error |
Row 308, Column 11: "Insert `··`"
prettier/prettier
|
| 308 |
height: mvs(50), |
| Error |
Row 309, Column 1: "Insert `··`"
prettier/prettier
|
| 309 |
width: mvs(50), |
| Error |
Row 310, Column 11: "Insert `··`"
prettier/prettier
|
| 310 |
borderRadius: mvs(50), |
| Error |
Row 311, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 311 |
alignSelf: 'center', |
| Error |
Row 312, Column 1: "Replace `··········transform:·[{·rotate:·'120deg'·}]` with `············transform:·[{rotate:·'120deg'}],`"
prettier/prettier
|
| Warning |
Row 312, Column 44: "Missing trailing comma."
comma-dangle
|
| 312 |
transform: [{ rotate: '120deg' }] |
| Error |
Row 313, Column 9: "Insert `··`"
prettier/prettier
|
| 313 |
}} |
| Error |
Row 314, Column 20: "Replace `·uri:·'https://www.pinclipart.com/picdir/middle/60-601763_poziv-call-icon-red-png-clipart.png'` with `⏎············uri:·'https://www.pinclipart.com/picdir/middle/60-601763_poziv-call-icon-red-png-clipart.png',⏎·········`"
prettier/prettier
|
| 314 |
source={{ uri: 'https://www.pinclipart.com/picdir/middle/60-601763_poziv-call-icon-red-png-clipart.png' }} |
| Error |
Row 315, Column 11: "Delete `⏎`"
prettier/prettier
|
| 315 |
/> |
| 316 |
|
| 317 |
</Animated.View> |
| 318 |
</View> |
| 319 |
// <NavigationContainer> |
| 320 |
// <Stack.Navigator |
| 321 |
// initialRouteName="onboarding" |
| 322 |
// screenOptions={{ headerShown: false }}> |
| 323 |
// <Stack.Screen name="onboarding" component={Onboarding2} /> |
| 324 |
// <Stack.Screen name="login" component={SignInPage} /> |
| 325 |
// <Stack.Screen |
| 326 |
// name="walletpayoutdetails" |
| 327 |
// component={WalletPayoutDetail} |
| 328 |
// /> |
| 329 |
// <Stack.Screen name="register" component={SignupScreen} /> |
| 330 |
// <Stack.Screen name="main" component={TabNavigator} /> |
| 331 |
// <Stack.Screen name="localorders" component={LocalOrders} /> |
| 332 |
// <Stack.Screen name="international" component={International} /> |
| 333 |
// <Stack.Screen name="stores" component={Stores} /> |
| 334 |
// <Stack.Screen |
| 335 |
// name="internationaldelivery" |
| 336 |
// component={InternationalDelivery} |
| 337 |
// /> |
| 338 |
// <Stack.Screen name="orderdetails" component={OrderDetails} /> |
| 339 |
// <Stack.Screen name="settings" component={Settings} /> |
| 340 |
// <Stack.Screen name="savedaddress" component={SavedAddress} /> |
| 341 |
// <Stack.Screen name="newaddress" component={NewAddress} /> |
| 342 |
// <Stack.Screen name="deliveryaddress" component={DeliveryAddress} /> |
| 343 |
// <Stack.Screen name="selectaddress" component={SelectAddress} /> |
| 344 |
// <Stack.Screen name="changeemail" component={ChangeEmail} /> |
| 345 |
// <Stack.Screen name="changepassword" component={ChangePassword} /> |
| 346 |
// <Stack.Screen name="changephonenumber" component={ChangePhoneNumber} /> |
| 347 |
// <Stack.Screen |
| 348 |
// name="orderdeliverydetail" |
| 349 |
// component={OrderDeliveryDetail} |
| 350 |
// /> |
| 351 |
// <Stack.Screen name="deliverylocation" component={DeliveryLocation} /> |
| 352 |
// <Stack.Screen name="menu" component={Menu} /> |
| 353 |
// <Stack.Screen name="accountinfo" component={AccountInfo} /> |
| 354 |
// <Stack.Screen name="wallet" component={Wallet} /> |
| 355 |
// <Stack.Screen name="addbankinfo" component={AddBankInfo} /> |
| 356 |
// <Stack.Screen name="wallethistory" component={WalletHistory} /> |
| 357 |
// <Stack.Screen name="invitefriends" component={InviteFriends} /> |
| 358 |
// <Stack.Screen name="orderhistory" component={OrderHistory} /> |
| 359 |
// <Stack.Screen name="deliveryhistory" component={DeliveryHistory} /> |
| 360 |
// <Stack.Screen name="disputes" component={Disputes} /> |
| 361 |
// <Stack.Screen name="pendingdetails" component={PendingDetails} /> |
| 362 |
// <Stack.Screen name="offerrequest" component={OfferRequest} /> |
| 363 |
// <Stack.Screen |
| 364 |
// name="deliverypendingdetails" |
| 365 |
// component={DeliveryPendingDetails} |
| 366 |
// /> |
| 367 |
// <Stack.Screen name="approved" component={Approved} /> |
| 368 |
// <Stack.Screen name="approve" component={Approve} /> |
| 369 |
// <Stack.Screen |
| 370 |
// name="walletdeliverydetails" |
| 371 |
// component={WalletDeliveryDetails} |
| 372 |
// /> |
| 373 |
// <Stack.Screen |
| 374 |
// name="walletrefunddetails" |
| 375 |
// component={WalletRefundDetails} |
| 376 |
// /> |
| 377 |
// <Stack.Screen name="createorderestore" component={CreateOrderEStore} /> |
| 378 |
// <Stack.Screen |
| 379 |
// name="createorderpstore" |
| 380 |
// component={CreateOrderPhysicalStore} |
| 381 |
// /> |
| 382 |
// <Stack.Screen |
| 383 |
// name="detailsconfirmation" |
| 384 |
// component={DetailsConfirmation} |
| 385 |
// /> |
| 386 |
// <Stack.Screen |
| 387 |
// name="paymentconfirmation" |
| 388 |
// component={PaymentConfirmation} |
| 389 |
// /> |
| 390 |
// <Stack.Screen name="userprofile" component={UserProfile} /> |
| 391 |
// <Stack.Screen name="storelocation" component={StoreLocation} /> |
| 392 |
// <Stack.Screen name="searchmap" component={SearchMap} /> |
| 393 |
// <Stack.Screen name="chat" component={Chat} /> |
| 394 |
// <Stack.Screen name="chat_dispute" component={ChatDispute} /> |
| 395 |
// <Stack.Screen name="addTrip" component={AddTrip} /> |
| 396 |
// <Stack.Screen name="submitrequest" component={SubmitRequest} /> |
| 397 |
// <Stack.Screen |
| 398 |
// name="highestpaiddestinations" |
| 399 |
// component={HighestPaidDestinations} |
| 400 |
// /> |
| 401 |
// <Stack.Screen name="myoffers" component={MyOffers} /> |
| 402 |
// <Stack.Screen name="myorders" component={myOrders} /> |
| 403 |
// <Stack.Screen name="myofferdetails" component={myOffersDetails} /> |
| 404 |
// <Stack.Screen name="termsofuse" component={TermsOfUse} /> |
| 405 |
// <Stack.Screen name="privacypolicy" component={PrivacyPolicy} /> |
| 406 |
// <Stack.Screen name="notifications" component={Notifications} /> |
| 407 |
// <Stack.Screen name="deliverto" component={DeliverTo} /> |
| 408 |
// <Stack.Screen name="browseOrders" component={BrowseOrders} /> |
| 409 |
// <Stack.Screen name="webview" component={privacyAndTerms} /> |
| 410 |
|
| 411 |
// <Stack.Screen name="internationaltrip" component={InternationalTrip} /> |
| 412 |
// <Stack.Screen name="localtrip" component={LocalTrip} /> |
| 413 |
// </Stack.Navigator> |
| 414 |
// </NavigationContainer> |
| 415 |
); |
| 416 |
}; |
| 417 |
|
|
|
|
/src/navigation/main-navigator/tab-navigation.js
|
32 problems (25 errors, 7 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 9: "Replace `·createBottomTabNavigator·` with `createBottomTabNavigator`"
prettier/prettier
|
| Error |
Row 3, Column 9: "Replace `·Alert,·View·` with `Alert,·View`"
prettier/prettier
|
| Error |
Row 4, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'connect' is defined but never used."
no-unused-vars
|
| Error |
Row 5, Column 9: "Replace `·HomeStack·` with `HomeStack`"
prettier/prettier
|
| Warning |
Row 9, Column 8: "'HomeTab' is defined but never used."
no-unused-vars
|
| Error |
Row 15, Column 1: "Replace `⏎const·TabNavigator·=·props·=>·{⏎` with `const·TabNavigator·=·props·=>·{`"
prettier/prettier
|
| Error |
Row 19, Column 17: "Replace `⏎······'Alert',⏎······'You·are·a·guest,·please·register·yourself',⏎·····` with `'Alert',·'You·are·a·guest,·please·register·yourself',`"
prettier/prettier
|
| Error |
Row 23, Column 1: "Replace `········` with `······`"
prettier/prettier
|
| Error |
Row 24, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 25, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 26, Column 9: "Replace `··style:·'cancel'` with `style:·'cancel',`"
prettier/prettier
|
| Warning |
Row 26, Column 26: "Missing trailing comma."
comma-dangle
|
| Error |
Row 27, Column 1: "Replace `········` with `······`"
prettier/prettier
|
| Error |
Row 28, Column 7: "Replace `··{·text:·'OK',·onPress:·()·=>··props?.navigation?.navigate('login')}` with `{text:·'OK',·onPress:·()·=>·props?.navigation?.navigate('login')},`"
prettier/prettier
|
| Warning |
Row 28, Column 76: "Missing trailing comma."
comma-dangle
|
| Error |
Row 29, Column 1: "Replace `······]⏎····` with `····]`"
prettier/prettier
|
| Error |
Row 31, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 31, Column 4: "Missing semicolon."
semi
|
| Warning |
Row 34, Column 18: "Inline style: { flex: 1, backgroundColor: '#fff' }"
react-native/no-inline-styles
|
| Error |
Row 34, Column 19: "Replace `·flex:·1,·backgroundColor:·'#fff'·` with `flex:·1,·backgroundColor:·'#fff'`"
prettier/prettier
|
| Error |
Row 36, Column 25: "Replace `·headerShown:·false·` with `headerShown:·false`"
prettier/prettier
|
| Warning |
Row 37, Column 17: "'props' is already declared in the upper scope."
no-shadow
|
| Error |
Row 37, Column 26: "Replace `}` with `(⏎··········`"
prettier/prettier
|
| Error |
Row 38, Column 7: "Insert `··)}`"
prettier/prettier
|
| Error |
Row 44, Column 25: "Replace `(focused)·=>·` with `focused·=>·(⏎··············⏎············)`"
prettier/prettier
|
| Error |
Row 52, Column 25: "Replace `(focused)·=>·` with `focused·=>·(⏎··············⏎············)`"
prettier/prettier
|
| Error |
Row 60, Column 25: "Replace `(focused)·=>·` with `focused·=>·(⏎··············⏎············)`"
prettier/prettier
|
| Error |
Row 65, Column 31: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 68, Column 12: "Insert `·`"
prettier/prettier
|
| Error |
Row 70, Column 25: "Replace `(focused)·=>·` with `focused·=>·(⏎··············⏎············)`"
prettier/prettier
|
| Error |
Row 79, Column 1: "Delete `⏎`"
prettier/prettier
|
| Line |
Source |
| Error |
Row 1, Column 9: "Replace `·createBottomTabNavigator·` with `createBottomTabNavigator`"
prettier/prettier
|
| 1 |
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; |
| 2 |
import React from 'react'; |
| Error |
Row 3, Column 9: "Replace `·Alert,·View·` with `Alert,·View`"
prettier/prettier
|
| 3 |
import { Alert, View } from 'react-native'; |
| Error |
Row 4, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'connect' is defined but never used."
no-unused-vars
|
| 4 |
import { connect } from 'react-redux'; |
| Error |
Row 5, Column 9: "Replace `·HomeStack·` with `HomeStack`"
prettier/prettier
|
| 5 |
import { HomeStack } from '..'; |
| 6 |
import BottomMenu from '../../components/atoms/BottomMenu'; |
| 7 |
import BottomMenuIcon from '../../components/atoms/BottomMenuIcon'; |
| 8 |
import DeliveryTab from '../../screens/tab-screens/tab-deliver'; |
| Warning |
Row 9, Column 8: "'HomeTab' is defined but never used."
no-unused-vars
|
| 9 |
import HomeTab from '../../screens/tab-screens/tab-home'; |
| 10 |
import InboxTab from '../../screens/tab-screens/tab-inbox'; |
| 11 |
import OrderTab from '../../screens/tab-screens/tab-order'; |
| 12 |
|
| 13 |
const BottomTab = createBottomTabNavigator(); |
| 14 |
|
| Error |
Row 15, Column 1: "Replace `⏎const·TabNavigator·=·props·=>·{⏎` with `const·TabNavigator·=·props·=>·{`"
prettier/prettier
|
| 15 |
|
| 16 |
const TabNavigator = props => { |
| 17 |
|
| 18 |
const showGuestAlert = () => { |
| Error |
Row 19, Column 17: "Replace `⏎······'Alert',⏎······'You·are·a·guest,·please·register·yourself',⏎·····` with `'Alert',·'You·are·a·guest,·please·register·yourself',`"
prettier/prettier
|
| 19 |
Alert.alert( |
| 20 |
'Alert', |
| 21 |
'You are a guest, please register yourself', |
| 22 |
[ |
| Error |
Row 23, Column 1: "Replace `········` with `······`"
prettier/prettier
|
| 23 |
{ |
| Error |
Row 24, Column 1: "Delete `··`"
prettier/prettier
|
| 24 |
text: 'Cancel', |
| Error |
Row 25, Column 1: "Delete `··`"
prettier/prettier
|
| 25 |
onPress: () => console.log('Cancel Pressed'), |
| Error |
Row 26, Column 9: "Replace `··style:·'cancel'` with `style:·'cancel',`"
prettier/prettier
|
| Warning |
Row 26, Column 26: "Missing trailing comma."
comma-dangle
|
| 26 |
style: 'cancel' |
| Error |
Row 27, Column 1: "Replace `········` with `······`"
prettier/prettier
|
| 27 |
}, |
| Error |
Row 28, Column 7: "Replace `··{·text:·'OK',·onPress:·()·=>··props?.navigation?.navigate('login')}` with `{text:·'OK',·onPress:·()·=>·props?.navigation?.navigate('login')},`"
prettier/prettier
|
| Warning |
Row 28, Column 76: "Missing trailing comma."
comma-dangle
|
| 28 |
{ text: 'OK', onPress: () => props?.navigation?.navigate('login')} |
| Error |
Row 29, Column 1: "Replace `······]⏎····` with `····]`"
prettier/prettier
|
| 29 |
] |
| 30 |
); |
| Error |
Row 31, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 31, Column 4: "Missing semicolon."
semi
|
| 31 |
} |
| 32 |
|
| 33 |
return ( |
| Warning |
Row 34, Column 18: "Inline style: { flex: 1, backgroundColor: '#fff' }"
react-native/no-inline-styles
|
| Error |
Row 34, Column 19: "Replace `·flex:·1,·backgroundColor:·'#fff'·` with `flex:·1,·backgroundColor:·'#fff'`"
prettier/prettier
|
| 34 |
<View style={{ flex: 1, backgroundColor: '#fff' }}> |
| 35 |
<BottomTab.Navigator |
| Error |
Row 36, Column 25: "Replace `·headerShown:·false·` with `headerShown:·false`"
prettier/prettier
|
| 36 |
screenOptions={{ headerShown: false }} |
| Warning |
Row 37, Column 17: "'props' is already declared in the upper scope."
no-shadow
|
| Error |
Row 37, Column 26: "Replace `}` with `(⏎··········`"
prettier/prettier
|
| 37 |
tabBar={props => <BottomMenu showGuestAlert={showGuestAlert} {...props} />} |
| Error |
Row 38, Column 7: "Insert `··)}`"
prettier/prettier
|
| 38 |
> |
| 39 |
<BottomTab.Screen |
| 40 |
name="Home" |
| 41 |
component={HomeStack} |
| 42 |
options={{ |
| 43 |
title: 'Home', |
| Error |
Row 44, Column 25: "Replace `(focused)·=>·` with `focused·=>·(⏎··············⏎············)`"
prettier/prettier
|
| 44 |
tabBarIcon: (focused) => <BottomMenuIcon name="home" focused={focused} />, |
| 45 |
}} |
| 46 |
/> |
| 47 |
<BottomTab.Screen |
| 48 |
name="Order" |
| 49 |
component={OrderTab} |
| 50 |
options={{ |
| 51 |
title: 'Order', |
| Error |
Row 52, Column 25: "Replace `(focused)·=>·` with `focused·=>·(⏎··············⏎············)`"
prettier/prettier
|
| 52 |
tabBarIcon: (focused) => <BottomMenuIcon name="order" focused={focused} />, |
| 53 |
}} |
| 54 |
/> |
| 55 |
<BottomTab.Screen |
| 56 |
name="Deliver" |
| 57 |
component={DeliveryTab} |
| 58 |
options={{ |
| 59 |
title: 'Deliver', |
| Error |
Row 60, Column 25: "Replace `(focused)·=>·` with `focused·=>·(⏎··············⏎············)`"
prettier/prettier
|
| 60 |
tabBarIcon: (focused) => <BottomMenuIcon name="delivery" focused={focused} />, |
| 61 |
}} |
| 62 |
/> |
| 63 |
<BottomTab.Screen |
| 64 |
name="Inbox" |
| Error |
Row 65, Column 31: "Delete `⏎`"
prettier/prettier
|
| 65 |
component={InboxTab} |
| 66 |
|
| 67 |
options={{ |
| Error |
Row 68, Column 12: "Insert `·`"
prettier/prettier
|
| 68 |
// unmountOnBlur: true, |
| 69 |
title: 'Inbox', |
| Error |
Row 70, Column 25: "Replace `(focused)·=>·` with `focused·=>·(⏎··············⏎············)`"
prettier/prettier
|
| 70 |
tabBarIcon: (focused) => <BottomMenuIcon name="inbox" focused={focused} />, |
| 71 |
}} |
| 72 |
/> |
| 73 |
</BottomTab.Navigator> |
| 74 |
</View> |
| 75 |
); |
| 76 |
}; |
| 77 |
|
| 78 |
export default TabNavigator; |
| Error |
Row 79, Column 1: "Delete `⏎`"
prettier/prettier
|
| 79 |
|
| 80 |
|
|
|
|
/src/presentation/typography/bold-text.js
|
20 problems (11 errors, 9 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 1, Column 26: "Missing semicolon."
semi
|
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·Text,·View·}·from·'react-native'` with `StyleSheet,·Text,·View}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'View' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 54: "Missing semicolon."
semi
|
| Error |
Row 3, Column 39: "Insert `;`"
prettier/prettier
|
| Warning |
Row 3, Column 39: "Missing semicolon."
semi
|
| Error |
Row 5, Column 14: "Replace `(props)` with `props`"
prettier/prettier
|
| Error |
Row 6, Column 3: "Replace `··const·{label,style}=props` with `const·{label,·style}·=·props;`"
prettier/prettier
|
| Warning |
Row 6, Column 24: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 6, Column 30: "Missing semicolon."
semi
|
| Error |
Row 7, Column 3: "Replace `··return·{label}` with `return·(⏎····⏎······{label}⏎····⏎··)`"
prettier/prettier
|
| Error |
Row 8, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 8, Column 2: "Missing semicolon."
semi
|
| Error |
Row 10, Column 20: "Insert `;`"
prettier/prettier
|
| Warning |
Row 10, Column 20: "Missing semicolon."
semi
|
| Error |
Row 13, Column 3: "Replace `··label:` with `label:·`"
prettier/prettier
|
| Error |
Row 14, Column 1: "Replace `········fontFamily:` with `····fontFamily:·`"
prettier/prettier
|
| Error |
Row 15, Column 3: "Replace `··}` with `},`"
prettier/prettier
|
| Warning |
Row 15, Column 6: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| Error |
Row 1, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 1, Column 26: "Missing semicolon."
semi
|
| 1 |
import React from 'react' |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·Text,·View·}·from·'react-native'` with `StyleSheet,·Text,·View}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'View' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 54: "Missing semicolon."
semi
|
| 2 |
import { StyleSheet, Text, View } from 'react-native' |
| Error |
Row 3, Column 39: "Insert `;`"
prettier/prettier
|
| Warning |
Row 3, Column 39: "Missing semicolon."
semi
|
| 3 |
import fonts from '../../config/fonts' |
| 4 |
|
| Error |
Row 5, Column 14: "Replace `(props)` with `props`"
prettier/prettier
|
| 5 |
const Bold = (props) => { |
| Error |
Row 6, Column 3: "Replace `··const·{label,style}=props` with `const·{label,·style}·=·props;`"
prettier/prettier
|
| Warning |
Row 6, Column 24: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 6, Column 30: "Missing semicolon."
semi
|
| 6 |
const {label,style}=props |
| Error |
Row 7, Column 3: "Replace `··return·{label}` with `return·(⏎····⏎······{label}⏎····⏎··)`"
prettier/prettier
|
| 7 |
return <Text {...props} style={{...styles.label,...style}}>{label}</Text>; |
| Error |
Row 8, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 8, Column 2: "Missing semicolon."
semi
|
| 8 |
} |
| 9 |
|
| Error |
Row 10, Column 20: "Insert `;`"
prettier/prettier
|
| Warning |
Row 10, Column 20: "Missing semicolon."
semi
|
| 10 |
export default Bold |
| 11 |
|
| 12 |
const styles = StyleSheet.create({ |
| Error |
Row 13, Column 3: "Replace `··label:` with `label:·`"
prettier/prettier
|
| 13 |
label:{ |
| Error |
Row 14, Column 1: "Replace `········fontFamily:` with `····fontFamily:·`"
prettier/prettier
|
| 14 |
fontFamily:fonts.carosSoftBold, |
| Error |
Row 15, Column 3: "Replace `··}` with `},`"
prettier/prettier
|
| Warning |
Row 15, Column 6: "Missing trailing comma."
comma-dangle
|
| 15 |
} |
| 16 |
}); |
| 17 |
|
|
|
|
/src/presentation/typography/light-text.js
|
22 problems (13 errors, 9 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 1, Column 26: "Missing semicolon."
semi
|
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·Text,·View·}·from·'react-native'` with `StyleSheet,·Text,·View}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'View' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 54: "Missing semicolon."
semi
|
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 4, Column 39: "Insert `;`"
prettier/prettier
|
| Warning |
Row 4, Column 39: "Missing semicolon."
semi
|
| Error |
Row 6, Column 15: "Replace `(props)` with `props`"
prettier/prettier
|
| Error |
Row 7, Column 1: "Replace `····const·{label,style}=props` with `··const·{label,·style}·=·props;`"
prettier/prettier
|
| Warning |
Row 7, Column 24: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 7, Column 30: "Missing semicolon."
semi
|
| Error |
Row 8, Column 3: "Replace `··return·{label}` with `return·(⏎····⏎······{label}⏎····⏎··)`"
prettier/prettier
|
| Error |
Row 9, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 9, Column 2: "Missing semicolon."
semi
|
| Error |
Row 11, Column 21: "Insert `;`"
prettier/prettier
|
| Warning |
Row 11, Column 21: "Missing semicolon."
semi
|
| Error |
Row 14, Column 1: "Replace `····label:` with `··label:·`"
prettier/prettier
|
| Error |
Row 15, Column 1: "Replace `········fontFamily:` with `····fontFamily:·`"
prettier/prettier
|
| Error |
Row 16, Column 1: "Replace `········fontSize:` with `····fontSize:·`"
prettier/prettier
|
| Error |
Row 17, Column 3: "Replace `··}` with `},`"
prettier/prettier
|
| Warning |
Row 17, Column 6: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| Error |
Row 1, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 1, Column 26: "Missing semicolon."
semi
|
| 1 |
import React from 'react' |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·Text,·View·}·from·'react-native'` with `StyleSheet,·Text,·View}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'View' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 54: "Missing semicolon."
semi
|
| 2 |
import { StyleSheet, Text, View } from 'react-native' |
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 3 |
import { mvs } from '../../config/metrices'; |
| Error |
Row 4, Column 39: "Insert `;`"
prettier/prettier
|
| Warning |
Row 4, Column 39: "Missing semicolon."
semi
|
| 4 |
import fonts from '../../config/fonts' |
| 5 |
|
| Error |
Row 6, Column 15: "Replace `(props)` with `props`"
prettier/prettier
|
| 6 |
const Light = (props) => { |
| Error |
Row 7, Column 1: "Replace `····const·{label,style}=props` with `··const·{label,·style}·=·props;`"
prettier/prettier
|
| Warning |
Row 7, Column 24: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 7, Column 30: "Missing semicolon."
semi
|
| 7 |
const {label,style}=props |
| Error |
Row 8, Column 3: "Replace `··return·{label}` with `return·(⏎····⏎······{label}⏎····⏎··)`"
prettier/prettier
|
| 8 |
return <Text {...props} style={{...styles.label,...style}}>{label}</Text>; |
| Error |
Row 9, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 9, Column 2: "Missing semicolon."
semi
|
| 9 |
} |
| 10 |
|
| Error |
Row 11, Column 21: "Insert `;`"
prettier/prettier
|
| Warning |
Row 11, Column 21: "Missing semicolon."
semi
|
| 11 |
export default Light |
| 12 |
|
| 13 |
const styles = StyleSheet.create({ |
| Error |
Row 14, Column 1: "Replace `····label:` with `··label:·`"
prettier/prettier
|
| 14 |
label:{ |
| Error |
Row 15, Column 1: "Replace `········fontFamily:` with `····fontFamily:·`"
prettier/prettier
|
| 15 |
fontFamily:fonts.carosSoftLight, |
| Error |
Row 16, Column 1: "Replace `········fontSize:` with `····fontSize:·`"
prettier/prettier
|
| 16 |
fontSize:mvs(15), |
| Error |
Row 17, Column 3: "Replace `··}` with `},`"
prettier/prettier
|
| Warning |
Row 17, Column 6: "Missing trailing comma."
comma-dangle
|
| 17 |
} |
| 18 |
}); |
| 19 |
|
|
|
|
/src/presentation/typography/medium-text.js
|
20 problems (12 errors, 8 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 1, Column 26: "Missing semicolon."
semi
|
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·Text,·View·}·from·'react-native'` with `StyleSheet,·Text,·View}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'View' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 54: "Missing semicolon."
semi
|
| Error |
Row 3, Column 39: "Insert `;`"
prettier/prettier
|
| Warning |
Row 3, Column 39: "Missing semicolon."
semi
|
| Error |
Row 5, Column 24: "Replace `style,` with `·style,·`"
prettier/prettier
|
| Error |
Row 6, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 7, Column 3: "Replace `··return·{label}` with `return·(⏎····⏎······{label}⏎····⏎··)`"
prettier/prettier
|
| Error |
Row 8, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 8, Column 2: "Missing semicolon."
semi
|
| Warning |
Row 9, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 9, Column 1: "Delete `·`"
prettier/prettier
|
| Error |
Row 10, Column 22: "Insert `;`"
prettier/prettier
|
| Warning |
Row 10, Column 22: "Missing semicolon."
semi
|
| Error |
Row 13, Column 3: "Replace `··label:` with `label:·`"
prettier/prettier
|
| Error |
Row 14, Column 1: "Replace `········fontFamily:` with `····fontFamily:·`"
prettier/prettier
|
| Error |
Row 15, Column 3: "Replace `··}` with `},`"
prettier/prettier
|
| Warning |
Row 15, Column 6: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| Error |
Row 1, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 1, Column 26: "Missing semicolon."
semi
|
| 1 |
import React from 'react' |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·Text,·View·}·from·'react-native'` with `StyleSheet,·Text,·View}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "'View' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 54: "Missing semicolon."
semi
|
| 2 |
import { StyleSheet, Text, View } from 'react-native' |
| Error |
Row 3, Column 39: "Insert `;`"
prettier/prettier
|
| Warning |
Row 3, Column 39: "Missing semicolon."
semi
|
| 3 |
import fonts from '../../config/fonts' |
| 4 |
|
| Error |
Row 5, Column 24: "Replace `style,` with `·style,·`"
prettier/prettier
|
| 5 |
const Medium = ({label,style,...props}) => { |
| Error |
Row 6, Column 1: "Delete `··`"
prettier/prettier
|
| 6 |
//const {label,style}=props |
| Error |
Row 7, Column 3: "Replace `··return·{label}` with `return·(⏎····⏎······{label}⏎····⏎··)`"
prettier/prettier
|
| 7 |
return <Text {...props} style={{...styles.label,...style}}>{label}</Text>; |
| Error |
Row 8, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 8, Column 2: "Missing semicolon."
semi
|
| 8 |
} |
| Warning |
Row 9, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 9, Column 1: "Delete `·`"
prettier/prettier
|
| 9 |
|
| Error |
Row 10, Column 22: "Insert `;`"
prettier/prettier
|
| Warning |
Row 10, Column 22: "Missing semicolon."
semi
|
| 10 |
export default Medium |
| 11 |
|
| 12 |
const styles = StyleSheet.create({ |
| Error |
Row 13, Column 3: "Replace `··label:` with `label:·`"
prettier/prettier
|
| 13 |
label:{ |
| Error |
Row 14, Column 1: "Replace `········fontFamily:` with `····fontFamily:·`"
prettier/prettier
|
| 14 |
fontFamily:fonts.carosSoftMedium, |
| Error |
Row 15, Column 3: "Replace `··}` with `},`"
prettier/prettier
|
| Warning |
Row 15, Column 6: "Missing trailing comma."
comma-dangle
|
| 15 |
} |
| 16 |
}); |
| 17 |
|
|
|
|
/src/presentation/typography/regular-text.js
|
1 problem (0 errors, 1 warning)
|
| Severity |
Rule |
| Warning |
Row 2, Column 27: "'View' is defined but never used."
no-unused-vars
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Warning |
Row 2, Column 27: "'View' is defined but never used."
no-unused-vars
|
| 2 |
import {StyleSheet, Text, View} from 'react-native'; |
| 3 |
import colors from '../../config/colors'; |
| 4 |
import fonts from '../../config/fonts'; |
| 5 |
import {mvs} from '../../config/metrices'; |
| 6 |
|
| 7 |
const Regular = ({label, numberOfLines = 100, style, ...props}) => { |
| 8 |
// const {label,style}=props |
| 9 |
return ( |
| 10 |
<Text |
| 11 |
numberOfLines={numberOfLines} |
| 12 |
{...props} |
| 13 |
style={{...styles.label, ...style}}> |
| 14 |
{label} |
| 15 |
{props.children} |
| 16 |
</Text> |
| 17 |
); |
| 18 |
}; |
| 19 |
|
| 20 |
export default Regular; |
| 21 |
|
| 22 |
const styles = StyleSheet.create({ |
| 23 |
label: { |
| 24 |
fontFamily: fonts.carosSoftRegular, |
| 25 |
fontSize: mvs(15), |
| 26 |
color: colors.headerTitle, //default color |
| 27 |
}, |
| 28 |
}); |
| 29 |
|
|
|
|
/src/presentation/typography/semibold-text.js
|
9 problems (6 errors, 3 warnings)
|
| Severity |
Rule |
| Error |
Row 5, Column 18: "Replace `(props)` with `props`"
prettier/prettier
|
| Error |
Row 6, Column 16: "Replace `style}=props` with `·style}·=·props;`"
prettier/prettier
|
| Warning |
Row 6, Column 22: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 6, Column 28: "Missing semicolon."
semi
|
| Error |
Row 7, Column 10: "Replace `{label}` with `(⏎····⏎······{label}⏎····⏎··)`"
prettier/prettier
|
| Error |
Row 13, Column 3: "Replace `··label:` with `label:·`"
prettier/prettier
|
| Error |
Row 14, Column 1: "Replace `········fontFamily:` with `····fontFamily:·`"
prettier/prettier
|
| Error |
Row 15, Column 3: "Replace `··}` with `},`"
prettier/prettier
|
| Warning |
Row 15, Column 6: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| 1 |
import React from 'react'; |
| 2 |
import {StyleSheet, Text} from 'react-native'; |
| 3 |
import fonts from '../../config/fonts'; |
| 4 |
|
| Error |
Row 5, Column 18: "Replace `(props)` with `props`"
prettier/prettier
|
| 5 |
const SemiBold = (props) => { |
| Error |
Row 6, Column 16: "Replace `style}=props` with `·style}·=·props;`"
prettier/prettier
|
| Warning |
Row 6, Column 22: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 6, Column 28: "Missing semicolon."
semi
|
| 6 |
const {label,style}=props |
| Error |
Row 7, Column 10: "Replace `{label}` with `(⏎····⏎······{label}⏎····⏎··)`"
prettier/prettier
|
| 7 |
return <Text {...props} style={{...styles.label,...style}}>{label}</Text>; |
| 8 |
}; |
| 9 |
|
| 10 |
export default SemiBold; |
| 11 |
|
| 12 |
const styles = StyleSheet.create({ |
| Error |
Row 13, Column 3: "Replace `··label:` with `label:·`"
prettier/prettier
|
| 13 |
label:{ |
| Error |
Row 14, Column 1: "Replace `········fontFamily:` with `····fontFamily:·`"
prettier/prettier
|
| 14 |
fontFamily:fonts.carosSoftMedium, |
| Error |
Row 15, Column 3: "Replace `··}` with `},`"
prettier/prettier
|
| Warning |
Row 15, Column 6: "Missing trailing comma."
comma-dangle
|
| 15 |
} |
| 16 |
}); |
| 17 |
|
|
|
|
/src/screens/add-trip-screen/add-trip.js
|
128 problems (72 errors, 56 warnings)
|
| Severity |
Rule |
| Warning |
Row 1, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 8: "'moment' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·View,·Text,·StyleSheet,·ScrollView,·TouchableOpacity·` with `⏎··View,⏎··Text,⏎··StyleSheet,⏎··ScrollView,⏎··TouchableOpacity,⏎`"
prettier/prettier
|
| Warning |
Row 4, Column 16: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 4, Column 46: "'TouchableOpacity' is defined but never used."
no-unused-vars
|
| Warning |
Row 7, Column 8: "'Calendar' is defined but never used."
no-unused-vars
|
| Warning |
Row 8, Column 8: "'DateTimePicker' is defined but never used."
no-unused-vars
|
| Warning |
Row 11, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| Error |
Row 12, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 13, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Warning |
Row 15, Column 8: "'InternationalDelivery' is defined but never used."
no-unused-vars
|
| Warning |
Row 19, Column 8: "'AeroplaneWhite' is defined but never used."
no-unused-vars
|
| Warning |
Row 20, Column 8: "'Car' is defined but never used."
no-unused-vars
|
| Warning |
Row 21, Column 8: "'CarWhite' is defined but never used."
no-unused-vars
|
| Error |
Row 26, Column 23: "Replace `·iconName·=·'flag',·country·=·'Kuwait',·labelStyle·` with `iconName·=·'flag',·country·=·'Kuwait',·labelStyle`"
prettier/prettier
|
| Warning |
Row 30, Column 18: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 30, Column 19: "Replace `·flexDirection:·'row'·` with `flexDirection:·'row'`"
prettier/prettier
|
| Error |
Row 34, Column 17: "Replace `·color:·colors.white,·...labelStyle·` with `color:·colors.white,·...labelStyle`"
prettier/prettier
|
| Error |
Row 45, Column 14: "Replace `=` with `·=·`"
prettier/prettier
|
| Warning |
Row 45, Column 14: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 46, Column 12: "Replace `=` with `·=·`"
prettier/prettier
|
| Warning |
Row 46, Column 12: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 48, Column 17: "Replace `·...styles.LOC_DES,·...style·` with `...styles.LOC_DES,·...style`"
prettier/prettier
|
| Error |
Row 49, Column 63: "Insert `·`"
prettier/prettier
|
| Warning |
Row 50, Column 18: "Inline style: { width: '40%', alignContent: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 50, Column 19: "Replace `·width:·'40%',·alignContent:·'center'·` with `width:·'40%',·alignContent:·'center'`"
prettier/prettier
|
| Error |
Row 61, Column 61: "Insert `·`"
prettier/prettier
|
| Error |
Row 65, Column 44: "Replace `toCountry,` with `·toCountry,·`"
prettier/prettier
|
| Error |
Row 66, Column 8: "Replace `·style={{·marginTop:·mvs(10),·backgroundColor:·colors.white,paddingHorizontal:mvs(22),·paddingVertical:·mvs(15),·borderRadius:·mvs(20)` with `⏎····style={{⏎······marginTop:·mvs(10),⏎······backgroundColor:·colors.white,⏎······paddingHorizontal:·mvs(22),⏎······paddingVertical:·mvs(15),⏎······borderRadius:·mvs(20),⏎···`"
prettier/prettier
|
| Error |
Row 73, Column 32: "Insert `,`"
prettier/prettier
|
| Warning |
Row 73, Column 32: "Missing trailing comma."
comma-dangle
|
| Error |
Row 88, Column 19: "Replace `·color:·colors.white,·fontSize:·mvs(12)·` with `color:·colors.white,·fontSize:·mvs(12)`"
prettier/prettier
|
| Warning |
Row 95, Column 10: "'deliveryDestination' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 95, Column 31: "'setDeliveryDestination' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 113, Column 10: "'show' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 113, Column 16: "'setShow' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 114, Column 10: "'dayMonthYear' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 114, Column 24: "'setDayMonthYear' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 118, Column 5: "Insert `;`"
prettier/prettier
|
| Warning |
Row 118, Column 5: "Missing semicolon."
semi
|
| Error |
Row 133, Column 26: "Replace `(option)` with `option`"
prettier/prettier
|
| Warning |
Row 138, Column 18: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 138, Column 19: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 140, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 140, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Error |
Row 141, Column 20: "Replace `·showsVerticalScrollIndicator={false}·contentContainerStyle={{·backgroundColor:·colors.secondary,·paddingBottom:·mvs(20),·flexGrow:·1` with `⏎··········showsVerticalScrollIndicator={false}⏎··········contentContainerStyle={{⏎············backgroundColor:·colors.secondary,⏎············paddingBottom:·mvs(20),⏎············flexGrow:·1,⏎·········`"
prettier/prettier
|
| Warning |
Row 141, Column 81: "Inline style: { flexGrow: 1 }"
react-native/no-inline-styles
|
| Warning |
Row 144, Column 22: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Warning |
Row 158, Column 24: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Warning |
Row 177, Column 24: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 189, Column 52: "Insert `·(`"
prettier/prettier
|
| Warning |
Row 192, Column 26: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Error |
Row 200, Column 34: "Replace `·color:·payload.isRound·?·colors.primary·:·colors.typeHeader` with `⏎······················color:·payload.isRound⏎························?·colors.primary⏎························:·colors.typeHeader,⏎···················`"
prettier/prettier
|
| Error |
Row 201, Column 39: "Replace `·setPayload({·...payload,·isOneWay:·!value,·isRound:·value·})` with `⏎······················setPayload({...payload,·isOneWay:·!value,·isRound:·value})⏎····················`"
prettier/prettier
|
| Error |
Row 207, Column 34: "Replace `·color:·payload.isOneWay·?·colors.primary·:·colors.typeHeader` with `⏎······················color:·payload.isOneWay⏎························?·colors.primary⏎························:·colors.typeHeader,⏎···················`"
prettier/prettier
|
| Error |
Row 208, Column 39: "Replace `·setPayload({·...payload,·isOneWay:·value,·isRound:·!value·})` with `⏎······················setPayload({...payload,·isOneWay:·value,·isRound:·!value})⏎····················`"
prettier/prettier
|
| Error |
Row 211, Column 31: "Replace `·...styles.DESTINATION_CONTAINER,·` with `...styles.DESTINATION_CONTAINER`"
prettier/prettier
|
| Warning |
Row 211, Column 63: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 213, Column 29: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 219, Column 33: "Replace `·color:·colors.lightgrey2·` with `color:·colors.lightgrey2`"
prettier/prettier
|
| Error |
Row 222, Column 29: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 228, Column 33: "Replace `·color:·colors.lightgrey2·` with `color:·colors.lightgrey2`"
prettier/prettier
|
| Warning |
Row 232, Column 26: "Inline style: { justifyContent: 'flex-start' }"
react-native/no-inline-styles
|
| Error |
Row 237, Column 29: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 243, Column 33: "Replace `·color:·colors.lightgrey2·` with `color:·colors.lightgrey2`"
prettier/prettier
|
| Error |
Row 244, Column 21: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 248, Column 33: "Replace `·...styles.DIV,·` with `...styles.DIV`"
prettier/prettier
|
| Warning |
Row 248, Column 47: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 249, Column 24: "Insert `⏎···················`"
prettier/prettier
|
| Warning |
Row 249, Column 32: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Error |
Row 250, Column 1: "Replace `····················flexDirection:·'row',` with `······················flexDirection:·'row',⏎·····················`"
prettier/prettier
|
| Error |
Row 251, Column 19: "Insert `··`"
prettier/prettier
|
| Error |
Row 252, Column 26: "Replace `·style={{·...styles.DESTINATION_CONTAINER,·marginTop:·0,width:'49%',·flexDirection:·'column',` with `⏎······················style={{⏎························...styles.DESTINATION_CONTAINER,⏎························marginTop:·0,⏎························width:·'49%',⏎························flexDirection:·'column',⏎·····················`"
prettier/prettier
|
| Warning |
Row 252, Column 34: "Inline style: { marginTop: 0, width: '49%', flexDirection: 'column' }"
react-native/no-inline-styles
|
| Warning |
Row 252, Column 118: "Unexpected trailing comma."
comma-dangle
|
| Warning |
Row 255, Column 32: "Inline style: { alignSelf: 'flex-start' }"
react-native/no-inline-styles
|
| Error |
Row 255, Column 33: "Replace `·fontSize:·mvs(15),·marginBottom:·mvs(9),·color:·colors.typeHeader,·alignSelf:·'flex-start'` with `⏎··························fontSize:·mvs(15),⏎··························marginBottom:·mvs(9),⏎··························color:·colors.typeHeader,⏎··························alignSelf:·'flex-start',⏎·······················`"
prettier/prettier
|
| Error |
Row 258, Column 41: "Delete `·`"
prettier/prettier
|
| Error |
Row 261, Column 37: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Warning |
Row 262, Column 32: "Inline style: { width: '100%', alignSelf: 'flex-start' }"
react-native/no-inline-styles
|
| Error |
Row 262, Column 33: "Replace `·...styles.FLAG_BUTTON,width:'100%',·alignSelf:·'flex-start'` with `⏎··························...styles.FLAG_BUTTON,⏎··························width:·'100%',⏎··························alignSelf:·'flex-start',⏎·······················`"
prettier/prettier
|
| Error |
Row 269, Column 26: "Replace `·style={{·...styles.DESTINATION_CONTAINER,width:'49%',·marginTop:·0,·flexDirection:·'column',` with `⏎······················style={{⏎························...styles.DESTINATION_CONTAINER,⏎························width:·'49%',⏎························marginTop:·0,⏎························flexDirection:·'column',⏎·····················`"
prettier/prettier
|
| Warning |
Row 269, Column 34: "Inline style: { width: '49%', marginTop: 0, flexDirection: 'column' }"
react-native/no-inline-styles
|
| Warning |
Row 269, Column 118: "Unexpected trailing comma."
comma-dangle
|
| Warning |
Row 272, Column 32: "Inline style: {
alignSelf: "deliveryButton.internationalDelivery ? 'flex-start' : 'flex-start'"
}"
react-native/no-inline-styles
|
| Error |
Row 272, Column 33: "Replace `·fontSize:·mvs(15),·marginBottom:·mvs(9),·color:·colors.typeHeader,·alignSelf:·deliveryButton.internationalDelivery·?·'flex-start'·:·'flex-start'` with `⏎··························fontSize:·mvs(15),⏎··························marginBottom:·mvs(9),⏎··························color:·colors.typeHeader,⏎··························alignSelf:·deliveryButton.internationalDelivery⏎····························?·'flex-start'⏎····························:·'flex-start',⏎·······················`"
prettier/prettier
|
| Error |
Row 275, Column 41: "Delete `·`"
prettier/prettier
|
| Error |
Row 278, Column 37: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Warning |
Row 279, Column 32: "Inline style: { width: '100%', alignSelf: 'flex-start' }"
react-native/no-inline-styles
|
| Error |
Row 279, Column 33: "Replace `·...styles.FLAG_BUTTON,width:'100%',·alignSelf:·'flex-start'` with `⏎··························...styles.FLAG_BUTTON,⏎··························width:·'100%',⏎··························alignSelf:·'flex-start',⏎·······················`"
prettier/prettier
|
| Error |
Row 287, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 289, Column 1: "Replace `⏎··············>·:` with `··············>⏎············)·:·(`"
prettier/prettier
|
| Error |
Row 292, Column 22: "Replace `·style={{·flexDirection:·'column',·justifyContent:·'space-between'` with `⏎··················style={{⏎····················flexDirection:·'column',⏎····················justifyContent:·'space-between',⏎·················`"
prettier/prettier
|
| Warning |
Row 292, Column 30: "Inline style: { flexDirection: 'column', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Error |
Row 293, Column 24: "Replace `·style={{·...styles.DESTINATION_CONTAINER,·marginTop:·0,marginBottom:mvs(9),·flexDirection:·'row',` with `⏎····················style={{⏎······················...styles.DESTINATION_CONTAINER,⏎······················marginTop:·0,⏎······················marginBottom:·mvs(9),⏎······················flexDirection:·'row',⏎···················`"
prettier/prettier
|
| Warning |
Row 293, Column 32: "Inline style: { marginTop: 0, flexDirection: 'row' }"
react-native/no-inline-styles
|
| Warning |
Row 293, Column 121: "Unexpected trailing comma."
comma-dangle
|
| Warning |
Row 296, Column 30: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 296, Column 31: "Replace `·fontSize:·mvs(15),·color:·colors.typeHeader,·alignSelf:·'center'` with `⏎························fontSize:·mvs(15),⏎························color:·colors.typeHeader,⏎························alignSelf:·'center',⏎·····················`"
prettier/prettier
|
| Error |
Row 299, Column 39: "Delete `·`"
prettier/prettier
|
| Error |
Row 302, Column 35: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Warning |
Row 303, Column 30: "Inline style: { alignSelf: 'flex-start' }"
react-native/no-inline-styles
|
| Error |
Row 303, Column 31: "Replace `·...styles.FLAG_BUTTON,·alignSelf:·'flex-start'·` with `...styles.FLAG_BUTTON,·alignSelf:·'flex-start'`"
prettier/prettier
|
| Error |
Row 310, Column 24: "Replace `·style={{·...styles.DESTINATION_CONTAINER,·marginTop:·0,marginBottom:mvs(0),·flexDirection:·'row',` with `⏎····················style={{⏎······················...styles.DESTINATION_CONTAINER,⏎······················marginTop:·0,⏎······················marginBottom:·mvs(0),⏎······················flexDirection:·'row',⏎···················`"
prettier/prettier
|
| Warning |
Row 310, Column 32: "Inline style: { marginTop: 0, flexDirection: 'row' }"
react-native/no-inline-styles
|
| Warning |
Row 310, Column 121: "Unexpected trailing comma."
comma-dangle
|
| Warning |
Row 313, Column 30: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 313, Column 31: "Replace `·fontSize:·mvs(15),·color:·colors.typeHeader,·alignSelf:·'center'` with `⏎························fontSize:·mvs(15),⏎························color:·colors.typeHeader,⏎························alignSelf:·'center',⏎·····················`"
prettier/prettier
|
| Error |
Row 316, Column 39: "Delete `·`"
prettier/prettier
|
| Error |
Row 319, Column 35: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Warning |
Row 320, Column 30: "Inline style: { alignSelf: 'flex-start' }"
react-native/no-inline-styles
|
| Error |
Row 320, Column 31: "Replace `·...styles.FLAG_BUTTON,·alignSelf:·'flex-start'·` with `...styles.FLAG_BUTTON,·alignSelf:·'flex-start'`"
prettier/prettier
|
| Error |
Row 335, Column 31: "Replace `·color:·colors.white,·fontSize:·mvs(12)·` with `color:·colors.white,·fontSize:·mvs(12)`"
prettier/prettier
|
| Error |
Row 339, Column 13: "Replace `}⏎` with `)}`"
prettier/prettier
|
| Error |
Row 342, Column 12: "Replace `·deliveryButton.internationalDelivery·&&` with `deliveryButton.internationalDelivery·&&·(⏎············`"
prettier/prettier
|
| Warning |
Row 342, Column 50: "Operator '&&' must be spaced."
space-infix-ops
|
| Error |
Row 343, Column 1: "Replace `············prettier/prettier
|
| Error |
Row 344, Column 1: "Replace `············prettier/prettier
|
| Error |
Row 345, Column 1: "Replace `··········>` with `············>⏎··········)`"
prettier/prettier
|
| Warning |
Row 355, Column 20: "Inline style: { width: '90%', alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 355, Column 21: "Replace `·marginTop:·deliveryButton.internationalDelivery·?·mvs(47)·:·mvs(403.5),·width:·'90%',·alignSelf:·'center'` with `⏎··············marginTop:·deliveryButton.internationalDelivery⏎················?·mvs(47)⏎················:·mvs(403.5),⏎··············width:·'90%',⏎··············alignSelf:·'center',⏎···········`"
prettier/prettier
|
| Error |
Row 358, Column 13: "Delete `·`"
prettier/prettier
|
| Error |
Row 372, Column 23: "Insert `⏎·······`"
prettier/prettier
|
| Error |
Row 373, Column 23: "Replace `·...payload,·[dateOption]:`${(date?.month*1+1)}·/·${date?.day}·/·${date.year}`` with `⏎············...payload,⏎············[dateOption]:·`${date?.month·*·1·+·1}·/·${date?.day}·/·${⏎··············date.year⏎············}`,⏎··········`"
prettier/prettier
|
| Warning |
Row 373, Column 64: "Operator '*' must be spaced."
space-infix-ops
|
| Warning |
Row 373, Column 66: "Operator '+' must be spaced."
space-infix-ops
|
| Error |
Row 375, Column 11: "Replace `··onClose={hideDatePicker}·visible={isDatePickerVisible}` with `⏎········onClose={hideDatePicker}⏎········visible={isDatePickerVisible}⏎······`"
prettier/prettier
|
| Error |
Row 376, Column 11: "Delete `·`"
prettier/prettier
|
| Line |
Source |
| Warning |
Row 1, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| 1 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| Warning |
Row 2, Column 8: "'moment' is defined but never used."
no-unused-vars
|
| 2 |
import moment from 'moment'; |
| 3 |
import React from 'react'; |
| Error |
Row 4, Column 9: "Replace `·View,·Text,·StyleSheet,·ScrollView,·TouchableOpacity·` with `⏎··View,⏎··Text,⏎··StyleSheet,⏎··ScrollView,⏎··TouchableOpacity,⏎`"
prettier/prettier
|
| Warning |
Row 4, Column 16: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 4, Column 46: "'TouchableOpacity' is defined but never used."
no-unused-vars
|
| 4 |
import { View, Text, StyleSheet, ScrollView, TouchableOpacity } from 'react-native'; |
| 5 |
import Buttons from '../../components/atoms/Button'; |
| 6 |
import CustomRadio from '../../components/atoms/RadioButton'; |
| Warning |
Row 7, Column 8: "'Calendar' is defined but never used."
no-unused-vars
|
| 7 |
import Calendar from '../../components/molecules/calendar/calendar'; |
| Warning |
Row 8, Column 8: "'DateTimePicker' is defined but never used."
no-unused-vars
|
| 8 |
import DateTimePicker from '../../components/molecules/destination-card/date-picker'; |
| 9 |
import Header from '../../components/molecules/header/header-1x'; |
| 10 |
import colors from '../../config/colors'; |
| Warning |
Row 11, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| 11 |
import fonts from '../../config/fonts'; |
| Error |
Row 12, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 12 |
import { mvs } from '../../config/metrices'; |
| Warning |
Row 13, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| 13 |
import Medium from '../../presentation/typography/medium-text'; |
| 14 |
import Regular from '../../presentation/typography/regular-text'; |
| Warning |
Row 15, Column 8: "'InternationalDelivery' is defined but never used."
no-unused-vars
|
| 15 |
import InternationalDelivery from '../international-delivery/international-delivery'; |
| 16 |
import SVGS from '../../../resource/assets/rtl-button-icons'; |
| 17 |
import OrderDestination from '../../components/atoms/OrderDestination'; |
| 18 |
import Aeroplane from './../../../resource/assets/order-car-icons/aeroplane.svg'; |
| Warning |
Row 19, Column 8: "'AeroplaneWhite' is defined but never used."
no-unused-vars
|
| 19 |
import AeroplaneWhite from './../../../resource/assets/order-car-icons/aeroplane-white.svg'; |
| Warning |
Row 20, Column 8: "'Car' is defined but never used."
no-unused-vars
|
| 20 |
import Car from './../../../resource/assets/order-car-icons/car.svg'; |
| Warning |
Row 21, Column 8: "'CarWhite' is defined but never used."
no-unused-vars
|
| 21 |
import CarWhite from './../../../resource/assets/order-car-icons/car-white.svg'; |
| 22 |
// import Location from './../../../resource/assets/order-car-icons/location.svg'; |
| 23 |
import Location from './../../../resource/assets/order-car-icons/location-active.svg'; |
| 24 |
import LocationWhite from './../../../resource/assets/order-car-icons/location-white.svg'; |
| 25 |
import DatePickerModal from '../../components/molecules/modals/date-picker-modal'; |
| Error |
Row 26, Column 23: "Replace `·iconName·=·'flag',·country·=·'Kuwait',·labelStyle·` with `iconName·=·'flag',·country·=·'Kuwait',·labelStyle`"
prettier/prettier
|
| 26 |
const CountryFlag = ({ iconName = 'flag', country = 'Kuwait', labelStyle }) => { |
| 27 |
const Icon = SVGS[iconName]; |
| 28 |
|
| 29 |
return ( |
| Warning |
Row 30, Column 18: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 30, Column 19: "Replace `·flexDirection:·'row'·` with `flexDirection:·'row'`"
prettier/prettier
|
| 30 |
<View style={{ flexDirection: 'row' }}> |
| 31 |
<Icon height={mvs(18)} width={mvs(18)} /> |
| 32 |
<Regular |
| 33 |
label={` ${country}`} |
| Error |
Row 34, Column 17: "Replace `·color:·colors.white,·...labelStyle·` with `color:·colors.white,·...labelStyle`"
prettier/prettier
|
| 34 |
style={{ color: colors.white, ...labelStyle }} |
| 35 |
/> |
| 36 |
</View> |
| 37 |
); |
| 38 |
}; |
| 39 |
const LocDestination = ({ |
| 40 |
local = false, |
| 41 |
style, |
| 42 |
labelStyle, |
| 43 |
isActive = true, |
| 44 |
isReverse = false, |
| Error |
Row 45, Column 14: "Replace `=` with `·=·`"
prettier/prettier
|
| Warning |
Row 45, Column 14: "Operator '=' must be spaced."
space-infix-ops
|
| 45 |
fromCountry='Lebanon', |
| Error |
Row 46, Column 12: "Replace `=` with `·=·`"
prettier/prettier
|
| Warning |
Row 46, Column 12: "Operator '=' must be spaced."
space-infix-ops
|
| 46 |
toCountry='Kuwait', |
| 47 |
}) => ( |
| Error |
Row 48, Column 17: "Replace `·...styles.LOC_DES,·...style·` with `...styles.LOC_DES,·...style`"
prettier/prettier
|
| 48 |
<View style={{ ...styles.LOC_DES, ...style }}> |
| Error |
Row 49, Column 63: "Insert `·`"
prettier/prettier
|
| 49 |
<CountryFlag labelStyle={labelStyle} country={fromCountry}/> |
| Warning |
Row 50, Column 18: "Inline style: { width: '40%', alignContent: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 50, Column 19: "Replace `·width:·'40%',·alignContent:·'center'·` with `width:·'40%',·alignContent:·'center'`"
prettier/prettier
|
| 50 |
<View style={{ width: '40%', alignContent: 'center' }}> |
| 51 |
<OrderDestination |
| 52 |
liveActive={isActive} |
| 53 |
isReverse={isReverse} |
| 54 |
value={0} |
| 55 |
label=" - - - - - - - - - - - - - " |
| 56 |
SVGFirst={Aeroplane} |
| 57 |
SVGSecond={!isActive ? LocationWhite : Location} |
| 58 |
isDeliver={true} |
| 59 |
/> |
| 60 |
</View> |
| Error |
Row 61, Column 61: "Insert `·`"
prettier/prettier
|
| 61 |
<CountryFlag labelStyle={labelStyle} country={toCountry}/> |
| 62 |
</View> |
| 63 |
); |
| 64 |
|
| Error |
Row 65, Column 44: "Replace `toCountry,` with `·toCountry,·`"
prettier/prettier
|
| 65 |
const CountryFlagWIthPlane = ({fromCountry,toCountry,navigation}) => ( |
| Error |
Row 66, Column 8: "Replace `·style={{·marginTop:·mvs(10),·backgroundColor:·colors.white,paddingHorizontal:mvs(22),·paddingVertical:·mvs(15),·borderRadius:·mvs(20)` with `⏎····style={{⏎······marginTop:·mvs(10),⏎······backgroundColor:·colors.white,⏎······paddingHorizontal:·mvs(22),⏎······paddingVertical:·mvs(15),⏎······borderRadius:·mvs(20),⏎···`"
prettier/prettier
|
| 66 |
<View style={{ marginTop: mvs(10), backgroundColor: colors.white,paddingHorizontal:mvs(22), paddingVertical: mvs(15), borderRadius: mvs(20) }}> |
| 67 |
<View activeOpacity={0.5}> |
| 68 |
<LocDestination |
| 69 |
fromCountry={fromCountry} |
| 70 |
toCountry={toCountry} |
| 71 |
local={false} |
| 72 |
labelStyle={{ |
| Error |
Row 73, Column 32: "Insert `,`"
prettier/prettier
|
| Warning |
Row 73, Column 32: "Missing trailing comma."
comma-dangle
|
| 73 |
color: colors.primary |
| 74 |
}} |
| 75 |
style={{ |
| 76 |
...styles.REVERSE_LOC_DES, |
| 77 |
backgroundColor: colors.white, |
| 78 |
}} |
| 79 |
/> |
| 80 |
</View> |
| 81 |
<Buttons.ButtonRTL |
| 82 |
onClick={() => { |
| 83 |
navigation.navigate('searchmap'); |
| 84 |
}} |
| 85 |
iconName={'maptransparent'} |
| 86 |
title={'Search on map'} |
| 87 |
style={styles.SEARCH_MAP} |
| Error |
Row 88, Column 19: "Replace `·color:·colors.white,·fontSize:·mvs(12)·` with `color:·colors.white,·fontSize:·mvs(12)`"
prettier/prettier
|
| 88 |
textStyle={{ color: colors.white, fontSize: mvs(12) }} |
| 89 |
iconStyle={styles.MAP_ICON} |
| 90 |
/> |
| 91 |
</View> |
| 92 |
); |
| 93 |
const AddTrip = props => { |
| 94 |
const [dateOption, setDateOption] = React.useState(''); |
| Warning |
Row 95, Column 10: "'deliveryDestination' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 95, Column 31: "'setDeliveryDestination' is assigned a value but never used."
no-unused-vars
|
| 95 |
const [deliveryDestination, setDeliveryDestination] = React.useState({ |
| 96 |
from: true, |
| 97 |
to: false, |
| 98 |
}); |
| 99 |
const [payload, setPayload] = React.useState({ |
| 100 |
isOneWay: false, |
| 101 |
isRound: true, |
| 102 |
isNinetyDays: false, |
| 103 |
isTwoWeeks: false, |
| 104 |
isUrgent: true, |
| 105 |
isNoDelivery: true, |
| 106 |
maxPrice: '100', |
| 107 |
minPrice: '1000', |
| 108 |
date: '', |
| 109 |
departure: '', |
| 110 |
returning: '', |
| 111 |
}); |
| 112 |
const [isDatePickerVisible, setDatePickerVisibility] = React.useState(false); |
| Warning |
Row 113, Column 10: "'show' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 113, Column 16: "'setShow' is assigned a value but never used."
no-unused-vars
|
| 113 |
const [show, setShow] = React.useState(false); |
| Warning |
Row 114, Column 10: "'dayMonthYear' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 114, Column 24: "'setDayMonthYear' is assigned a value but never used."
no-unused-vars
|
| 114 |
const [dayMonthYear, setDayMonthYear] = React.useState({ |
| 115 |
day: new Date().getDate(), |
| 116 |
month: new Date().getMonth(), |
| 117 |
year: new Date().getFullYear(), |
| Error |
Row 118, Column 5: "Insert `;`"
prettier/prettier
|
| Warning |
Row 118, Column 5: "Missing semicolon."
semi
|
| 118 |
}) |
| 119 |
const [deliveryButton, setDeliveryButton] = React.useState({ |
| 120 |
internationalDelivery: true, |
| 121 |
localDelivery: false, |
| 122 |
}); |
| 123 |
const InternationButton = deliveryButton.internationalDelivery |
| 124 |
? Buttons.ButtonPrimary |
| 125 |
: Buttons.ButtonSecondaryOutline; |
| 126 |
const LocalButtonButton = deliveryButton.localDelivery |
| 127 |
? Buttons.ButtonPrimary |
| 128 |
: Buttons.ButtonSecondaryOutline; |
| 129 |
|
| 130 |
const hideDatePicker = () => { |
| 131 |
setDatePickerVisibility(false); |
| 132 |
}; |
| Error |
Row 133, Column 26: "Replace `(option)` with `option`"
prettier/prettier
|
| 133 |
const showDatePicker = (option) => { |
| 134 |
setDateOption(option); |
| 135 |
setDatePickerVisibility(true); |
| 136 |
}; |
| 137 |
return ( |
| Warning |
Row 138, Column 18: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 138, Column 19: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 138 |
<View style={{ flex: 1, backgroundColor: colors.white }}> |
| 139 |
<Header {...props} title="Deliver" allowBackBtn /> |
| Warning |
Row 140, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 140, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 140 |
<View style={{ flex: 1, backgroundColor: colors.white }}> |
| Error |
Row 141, Column 20: "Replace `·showsVerticalScrollIndicator={false}·contentContainerStyle={{·backgroundColor:·colors.secondary,·paddingBottom:·mvs(20),·flexGrow:·1` with `⏎··········showsVerticalScrollIndicator={false}⏎··········contentContainerStyle={{⏎············backgroundColor:·colors.secondary,⏎············paddingBottom:·mvs(20),⏎············flexGrow:·1,⏎·········`"
prettier/prettier
|
| Warning |
Row 141, Column 81: "Inline style: { flexGrow: 1 }"
react-native/no-inline-styles
|
| 141 |
<ScrollView showsVerticalScrollIndicator={false} contentContainerStyle={{ backgroundColor: colors.secondary, paddingBottom: mvs(20), flexGrow: 1 }}> |
| 142 |
<View style={styles.SUB_CONTAINER}> |
| 143 |
<View |
| Warning |
Row 144, Column 22: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| 144 |
style={{ |
| 145 |
flexDirection: 'row', |
| 146 |
justifyContent: 'space-between', |
| 147 |
marginTop: mvs(2), |
| 148 |
marginBottom: mvs(18), |
| 149 |
}}> |
| 150 |
<InternationButton |
| 151 |
onClick={() => |
| 152 |
setDeliveryButton({ |
| 153 |
internationalDelivery: true, |
| 154 |
localDelivery: false, |
| 155 |
}) |
| 156 |
} |
| 157 |
title={'International'} |
| Warning |
Row 158, Column 24: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 158 |
style={{ |
| 159 |
width: '49%', |
| 160 |
height: mvs(44), |
| 161 |
borderColor: colors.primary, |
| 162 |
}} |
| 163 |
textStyle={{ |
| 164 |
color: deliveryButton.internationalDelivery |
| 165 |
? colors.white |
| 166 |
: colors.primary, |
| 167 |
}} |
| 168 |
/> |
| 169 |
<LocalButtonButton |
| 170 |
onClick={() => |
| 171 |
setDeliveryButton({ |
| 172 |
internationalDelivery: false, |
| 173 |
localDelivery: true, |
| 174 |
}) |
| 175 |
} |
| 176 |
title={'Local'} |
| Warning |
Row 177, Column 24: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 177 |
style={{ |
| 178 |
width: '49%', |
| 179 |
height: mvs(44), |
| 180 |
borderColor: colors.primary, |
| 181 |
}} |
| 182 |
textStyle={{ |
| 183 |
color: deliveryButton.internationalDelivery |
| 184 |
? colors.primary |
| 185 |
: colors.white, |
| 186 |
}} |
| 187 |
/> |
| 188 |
</View> |
| Error |
Row 189, Column 52: "Insert `·(`"
prettier/prettier
|
| 189 |
{deliveryButton.internationalDelivery ? |
| 190 |
<> |
| 191 |
<View |
| Warning |
Row 192, Column 26: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| 192 |
style={{ |
| 193 |
flexDirection: 'row', |
| 194 |
justifyContent: 'space-between', |
| 195 |
}}> |
| 196 |
<CustomRadio |
| 197 |
style={styles.TRIP_TYPE_RADIO} |
| 198 |
status={payload.isRound} |
| 199 |
label={'Round Trip'} |
| Error |
Row 200, Column 34: "Replace `·color:·payload.isRound·?·colors.primary·:·colors.typeHeader` with `⏎······················color:·payload.isRound⏎························?·colors.primary⏎························:·colors.typeHeader,⏎···················`"
prettier/prettier
|
| 200 |
labelStyle={{ color: payload.isRound ? colors.primary : colors.typeHeader }} |
| Error |
Row 201, Column 39: "Replace `·setPayload({·...payload,·isOneWay:·!value,·isRound:·value·})` with `⏎······················setPayload({...payload,·isOneWay:·!value,·isRound:·value})⏎····················`"
prettier/prettier
|
| 201 |
onChange={value => setPayload({ ...payload, isOneWay: !value, isRound: value })} |
| 202 |
/> |
| 203 |
<CustomRadio |
| 204 |
style={styles.TRIP_TYPE_RADIO} |
| 205 |
status={payload.isOneWay} |
| 206 |
label={'One Way'} |
| Error |
Row 207, Column 34: "Replace `·color:·payload.isOneWay·?·colors.primary·:·colors.typeHeader` with `⏎······················color:·payload.isOneWay⏎························?·colors.primary⏎························:·colors.typeHeader,⏎···················`"
prettier/prettier
|
| 207 |
labelStyle={{ color: payload.isOneWay ? colors.primary : colors.typeHeader }} |
| Error |
Row 208, Column 39: "Replace `·setPayload({·...payload,·isOneWay:·value,·isRound:·!value·})` with `⏎······················setPayload({...payload,·isOneWay:·value,·isRound:·!value})⏎····················`"
prettier/prettier
|
| 208 |
onChange={value => setPayload({ ...payload, isOneWay: value, isRound: !value })} |
| 209 |
/> |
| 210 |
</View> |
| Error |
Row 211, Column 31: "Replace `·...styles.DESTINATION_CONTAINER,·` with `...styles.DESTINATION_CONTAINER`"
prettier/prettier
|
| Warning |
Row 211, Column 63: "Unexpected trailing comma."
comma-dangle
|
| 211 |
<View style={{ ...styles.DESTINATION_CONTAINER, }}> |
| 212 |
<Buttons.ButtonRTL |
| Error |
Row 213, Column 29: "Replace `·=·` with `=`"
prettier/prettier
|
| 213 |
disabled = {payload.isOneWay} |
| 214 |
onClick={() => showDatePicker('date')} |
| 215 |
iconName={'date'} |
| 216 |
title={payload.date || 'Departure'} |
| 217 |
style={styles.FLAG_BUTTON} |
| 218 |
iconStyle={styles.RTL_ICON} |
| Error |
Row 219, Column 33: "Replace `·color:·colors.lightgrey2·` with `color:·colors.lightgrey2`"
prettier/prettier
|
| 219 |
textStyle={{ color: colors.lightgrey2 }} |
| 220 |
/> |
| 221 |
<Buttons.ButtonRTL |
| Error |
Row 222, Column 29: "Replace `·=·` with `=`"
prettier/prettier
|
| 222 |
disabled = {payload.isRound} |
| 223 |
onClick={() => showDatePicker('departure')} |
| 224 |
iconName={'date'} |
| 225 |
title={payload.departure || 'Departure'} |
| 226 |
style={styles.FLAG_BUTTON} |
| 227 |
iconStyle={styles.RTL_ICON} |
| Error |
Row 228, Column 33: "Replace `·color:·colors.lightgrey2·` with `color:·colors.lightgrey2`"
prettier/prettier
|
| 228 |
textStyle={{ color: colors.lightgrey2 }} |
| 229 |
/> |
| 230 |
</View> |
| 231 |
<View |
| Warning |
Row 232, Column 26: "Inline style: { justifyContent: 'flex-start' }"
react-native/no-inline-styles
|
| 232 |
style={{ |
| 233 |
...styles.DESTINATION_CONTAINER, |
| 234 |
justifyContent: 'flex-start', |
| 235 |
}}> |
| 236 |
<Buttons.ButtonRTL |
| Error |
Row 237, Column 29: "Replace `·=·` with `=`"
prettier/prettier
|
| 237 |
disabled = {payload.isOneWay} |
| 238 |
onClick={() => showDatePicker('returning')} |
| 239 |
iconName={'date'} |
| 240 |
title={payload.returning || 'Returning'} |
| 241 |
style={styles.FLAG_BUTTON} |
| 242 |
iconStyle={styles.RTL_ICON} |
| Error |
Row 243, Column 33: "Replace `·color:·colors.lightgrey2·` with `color:·colors.lightgrey2`"
prettier/prettier
|
| 243 |
textStyle={{ color: colors.lightgrey2 }} |
| Error |
Row 244, Column 21: "Delete `⏎`"
prettier/prettier
|
| 244 |
/> |
| 245 |
|
| 246 |
</View> |
| 247 |
<> |
| Error |
Row 248, Column 33: "Replace `·...styles.DIV,·` with `...styles.DIV`"
prettier/prettier
|
| Warning |
Row 248, Column 47: "Unexpected trailing comma."
comma-dangle
|
| 248 |
<View style={{ ...styles.DIV, }} /> |
| Error |
Row 249, Column 24: "Insert `⏎···················`"
prettier/prettier
|
| Warning |
Row 249, Column 32: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| 249 |
<View style={{ |
| Error |
Row 250, Column 1: "Replace `····················flexDirection:·'row',` with `······················flexDirection:·'row',⏎·····················`"
prettier/prettier
|
| 250 |
flexDirection: 'row', justifyContent: 'space-between', |
| Error |
Row 251, Column 19: "Insert `··`"
prettier/prettier
|
| 251 |
}}> |
| Error |
Row 252, Column 26: "Replace `·style={{·...styles.DESTINATION_CONTAINER,·marginTop:·0,width:'49%',·flexDirection:·'column',` with `⏎······················style={{⏎························...styles.DESTINATION_CONTAINER,⏎························marginTop:·0,⏎························width:·'49%',⏎························flexDirection:·'column',⏎·····················`"
prettier/prettier
|
| Warning |
Row 252, Column 34: "Inline style: { marginTop: 0, width: '49%', flexDirection: 'column' }"
react-native/no-inline-styles
|
| Warning |
Row 252, Column 118: "Unexpected trailing comma."
comma-dangle
|
| 252 |
<View style={{ ...styles.DESTINATION_CONTAINER, marginTop: 0,width:'49%', flexDirection: 'column', }}> |
| 253 |
<Regular |
| 254 |
label={'Location'} |
| Warning |
Row 255, Column 32: "Inline style: { alignSelf: 'flex-start' }"
react-native/no-inline-styles
|
| Error |
Row 255, Column 33: "Replace `·fontSize:·mvs(15),·marginBottom:·mvs(9),·color:·colors.typeHeader,·alignSelf:·'flex-start'` with `⏎··························fontSize:·mvs(15),⏎··························marginBottom:·mvs(9),⏎··························color:·colors.typeHeader,⏎··························alignSelf:·'flex-start',⏎·······················`"
prettier/prettier
|
| 255 |
style={{ fontSize: mvs(15), marginBottom: mvs(9), color: colors.typeHeader, alignSelf: 'flex-start' }} |
| 256 |
/> |
| 257 |
<Buttons.ButtonRTL |
| Error |
Row 258, Column 41: "Delete `·`"
prettier/prettier
|
| 258 |
onClick={() => { }} |
| 259 |
iconName={'flag'} |
| 260 |
title={'Kuwait'} |
| Error |
Row 261, Column 37: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 261 |
textStyle={{ color: colors.primary }} |
| Warning |
Row 262, Column 32: "Inline style: { width: '100%', alignSelf: 'flex-start' }"
react-native/no-inline-styles
|
| Error |
Row 262, Column 33: "Replace `·...styles.FLAG_BUTTON,width:'100%',·alignSelf:·'flex-start'` with `⏎··························...styles.FLAG_BUTTON,⏎··························width:·'100%',⏎··························alignSelf:·'flex-start',⏎·······················`"
prettier/prettier
|
| 262 |
style={{ ...styles.FLAG_BUTTON,width:'100%', alignSelf: 'flex-start' }} |
| 263 |
iconStyle={{ |
| 264 |
height: mvs(23), |
| 265 |
width: mvs(23), |
| 266 |
}} |
| 267 |
/> |
| 268 |
</View> |
| Error |
Row 269, Column 26: "Replace `·style={{·...styles.DESTINATION_CONTAINER,width:'49%',·marginTop:·0,·flexDirection:·'column',` with `⏎······················style={{⏎························...styles.DESTINATION_CONTAINER,⏎························width:·'49%',⏎························marginTop:·0,⏎························flexDirection:·'column',⏎·····················`"
prettier/prettier
|
| Warning |
Row 269, Column 34: "Inline style: { width: '49%', marginTop: 0, flexDirection: 'column' }"
react-native/no-inline-styles
|
| Warning |
Row 269, Column 118: "Unexpected trailing comma."
comma-dangle
|
| 269 |
<View style={{ ...styles.DESTINATION_CONTAINER,width:'49%', marginTop: 0, flexDirection: 'column', }}> |
| 270 |
<Regular |
| 271 |
label={'Destination'} |
| Warning |
Row 272, Column 32: "Inline style: {
alignSelf: "deliveryButton.internationalDelivery ? 'flex-start' : 'flex-start'"
}"
react-native/no-inline-styles
|
| Error |
Row 272, Column 33: "Replace `·fontSize:·mvs(15),·marginBottom:·mvs(9),·color:·colors.typeHeader,·alignSelf:·deliveryButton.internationalDelivery·?·'flex-start'·:·'flex-start'` with `⏎··························fontSize:·mvs(15),⏎··························marginBottom:·mvs(9),⏎··························color:·colors.typeHeader,⏎··························alignSelf:·deliveryButton.internationalDelivery⏎····························?·'flex-start'⏎····························:·'flex-start',⏎·······················`"
prettier/prettier
|
| 272 |
style={{ fontSize: mvs(15), marginBottom: mvs(9), color: colors.typeHeader, alignSelf: deliveryButton.internationalDelivery ? 'flex-start' : 'flex-start' }} |
| 273 |
/> |
| 274 |
<Buttons.ButtonRTL |
| Error |
Row 275, Column 41: "Delete `·`"
prettier/prettier
|
| 275 |
onClick={() => { }} |
| 276 |
iconName={'flag'} |
| 277 |
title={'Lebanon'} |
| Error |
Row 278, Column 37: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 278 |
textStyle={{ color: colors.primary }} |
| Warning |
Row 279, Column 32: "Inline style: { width: '100%', alignSelf: 'flex-start' }"
react-native/no-inline-styles
|
| Error |
Row 279, Column 33: "Replace `·...styles.FLAG_BUTTON,width:'100%',·alignSelf:·'flex-start'` with `⏎··························...styles.FLAG_BUTTON,⏎··························width:·'100%',⏎··························alignSelf:·'flex-start',⏎·······················`"
prettier/prettier
|
| 279 |
style={{ ...styles.FLAG_BUTTON,width:'100%', alignSelf: 'flex-start' }} |
| 280 |
iconStyle={{ |
| 281 |
height: mvs(23), |
| 282 |
width: mvs(23), |
| 283 |
}} |
| 284 |
/> |
| 285 |
</View> |
| 286 |
</View> |
| Error |
Row 287, Column 1: "Delete `⏎`"
prettier/prettier
|
| 287 |
|
| 288 |
</> |
| Error |
Row 289, Column 1: "Replace `⏎··············>·:` with `··············>⏎············)·:·(`"
prettier/prettier
|
| 289 |
|
| 290 |
</> : |
| 291 |
<> |
| Error |
Row 292, Column 22: "Replace `·style={{·flexDirection:·'column',·justifyContent:·'space-between'` with `⏎··················style={{⏎····················flexDirection:·'column',⏎····················justifyContent:·'space-between',⏎·················`"
prettier/prettier
|
| Warning |
Row 292, Column 30: "Inline style: { flexDirection: 'column', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| 292 |
<View style={{ flexDirection: 'column', justifyContent: 'space-between' }}> |
| Error |
Row 293, Column 24: "Replace `·style={{·...styles.DESTINATION_CONTAINER,·marginTop:·0,marginBottom:mvs(9),·flexDirection:·'row',` with `⏎····················style={{⏎······················...styles.DESTINATION_CONTAINER,⏎······················marginTop:·0,⏎······················marginBottom:·mvs(9),⏎······················flexDirection:·'row',⏎···················`"
prettier/prettier
|
| Warning |
Row 293, Column 32: "Inline style: { marginTop: 0, flexDirection: 'row' }"
react-native/no-inline-styles
|
| Warning |
Row 293, Column 121: "Unexpected trailing comma."
comma-dangle
|
| 293 |
<View style={{ ...styles.DESTINATION_CONTAINER, marginTop: 0,marginBottom:mvs(9), flexDirection: 'row', }}> |
| 294 |
<Regular |
| 295 |
label={'Location'} |
| Warning |
Row 296, Column 30: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 296, Column 31: "Replace `·fontSize:·mvs(15),·color:·colors.typeHeader,·alignSelf:·'center'` with `⏎························fontSize:·mvs(15),⏎························color:·colors.typeHeader,⏎························alignSelf:·'center',⏎·····················`"
prettier/prettier
|
| 296 |
style={{ fontSize: mvs(15), color: colors.typeHeader, alignSelf: 'center' }} |
| 297 |
/> |
| 298 |
<Buttons.ButtonRTL |
| Error |
Row 299, Column 39: "Delete `·`"
prettier/prettier
|
| 299 |
onClick={() => { }} |
| 300 |
iconName={'flag'} |
| 301 |
title={'Kuwait'} |
| Error |
Row 302, Column 35: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 302 |
textStyle={{ color: colors.primary }} |
| Warning |
Row 303, Column 30: "Inline style: { alignSelf: 'flex-start' }"
react-native/no-inline-styles
|
| Error |
Row 303, Column 31: "Replace `·...styles.FLAG_BUTTON,·alignSelf:·'flex-start'·` with `...styles.FLAG_BUTTON,·alignSelf:·'flex-start'`"
prettier/prettier
|
| 303 |
style={{ ...styles.FLAG_BUTTON, alignSelf: 'flex-start' }} |
| 304 |
iconStyle={{ |
| 305 |
height: mvs(23), |
| 306 |
width: mvs(23), |
| 307 |
}} |
| 308 |
/> |
| 309 |
</View> |
| Error |
Row 310, Column 24: "Replace `·style={{·...styles.DESTINATION_CONTAINER,·marginTop:·0,marginBottom:mvs(0),·flexDirection:·'row',` with `⏎····················style={{⏎······················...styles.DESTINATION_CONTAINER,⏎······················marginTop:·0,⏎······················marginBottom:·mvs(0),⏎······················flexDirection:·'row',⏎···················`"
prettier/prettier
|
| Warning |
Row 310, Column 32: "Inline style: { marginTop: 0, flexDirection: 'row' }"
react-native/no-inline-styles
|
| Warning |
Row 310, Column 121: "Unexpected trailing comma."
comma-dangle
|
| 310 |
<View style={{ ...styles.DESTINATION_CONTAINER, marginTop: 0,marginBottom:mvs(0), flexDirection: 'row', }}> |
| 311 |
<Regular |
| 312 |
label={'Destination'} |
| Warning |
Row 313, Column 30: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 313, Column 31: "Replace `·fontSize:·mvs(15),·color:·colors.typeHeader,·alignSelf:·'center'` with `⏎························fontSize:·mvs(15),⏎························color:·colors.typeHeader,⏎························alignSelf:·'center',⏎·····················`"
prettier/prettier
|
| 313 |
style={{ fontSize: mvs(15), color: colors.typeHeader, alignSelf: 'center' }} |
| 314 |
/> |
| 315 |
<Buttons.ButtonRTL |
| Error |
Row 316, Column 39: "Delete `·`"
prettier/prettier
|
| 316 |
onClick={() => { }} |
| 317 |
iconName={'flag'} |
| 318 |
title={'Shuwaikh'} |
| Error |
Row 319, Column 35: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 319 |
textStyle={{ color: colors.primary }} |
| Warning |
Row 320, Column 30: "Inline style: { alignSelf: 'flex-start' }"
react-native/no-inline-styles
|
| Error |
Row 320, Column 31: "Replace `·...styles.FLAG_BUTTON,·alignSelf:·'flex-start'·` with `...styles.FLAG_BUTTON,·alignSelf:·'flex-start'`"
prettier/prettier
|
| 320 |
style={{ ...styles.FLAG_BUTTON, alignSelf: 'flex-start' }} |
| 321 |
iconStyle={{ |
| 322 |
height: mvs(23), |
| 323 |
width: mvs(23), |
| 324 |
}} |
| 325 |
/> |
| 326 |
</View> |
| 327 |
</View> |
| 328 |
<Buttons.ButtonRTL |
| 329 |
onClick={() => { |
| 330 |
props.navigation.navigate('searchmap'); |
| 331 |
}} |
| 332 |
iconName={'maptransparent'} |
| 333 |
title={'Search on map'} |
| 334 |
style={styles.SEARCH_MAP} |
| Error |
Row 335, Column 31: "Replace `·color:·colors.white,·fontSize:·mvs(12)·` with `color:·colors.white,·fontSize:·mvs(12)`"
prettier/prettier
|
| 335 |
textStyle={{ color: colors.white, fontSize: mvs(12) }} |
| 336 |
iconStyle={styles.MAP_ICON} |
| 337 |
/> |
| 338 |
</> |
| Error |
Row 339, Column 13: "Replace `}⏎` with `)}`"
prettier/prettier
|
| 339 |
} |
| 340 |
|
| 341 |
</View> |
| Error |
Row 342, Column 12: "Replace `·deliveryButton.internationalDelivery·&&` with `deliveryButton.internationalDelivery·&&·(⏎············`"
prettier/prettier
|
| Warning |
Row 342, Column 50: "Operator '&&' must be spaced."
space-infix-ops
|
| 342 |
{ deliveryButton.internationalDelivery &&<> |
| Error |
Row 343, Column 1: "Replace `············prettier/prettier
|
| 343 |
<CountryFlagWIthPlane fromCountry={'Lebanon'} toCountry={'Kuwait'} navigation={props?.navigation}/> |
| Error |
Row 344, Column 1: "Replace `············prettier/prettier
|
| 344 |
<CountryFlagWIthPlane fromCountry={'Kuwait'} toCountry={'Lebanon'} navigation={props?.navigation}/> |
| Error |
Row 345, Column 1: "Replace `··········>` with `············>⏎··········)`"
prettier/prettier
|
| 345 |
</>} |
| 346 |
{/* {deliveryButton.internationalDelivery && |
| 347 |
<Calendar style={{ paddingHorizontal: mvs(22) }} dayMonthYear={dayMonthYear} setDayMonthYear={setDayMonthYear} />} */} |
| 348 |
<Buttons.ButtonPrimary |
| 349 |
onClick={() => |
| 350 |
props.navigation.navigate('internationaldelivery', { |
| 351 |
isLocalOrder: deliveryButton.localDelivery, |
| 352 |
}) |
| 353 |
} |
| 354 |
title={'Search'} |
| Warning |
Row 355, Column 20: "Inline style: { width: '90%', alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 355, Column 21: "Replace `·marginTop:·deliveryButton.internationalDelivery·?·mvs(47)·:·mvs(403.5),·width:·'90%',·alignSelf:·'center'` with `⏎··············marginTop:·deliveryButton.internationalDelivery⏎················?·mvs(47)⏎················:·mvs(403.5),⏎··············width:·'90%',⏎··············alignSelf:·'center',⏎···········`"
prettier/prettier
|
| 355 |
style={{ marginTop: deliveryButton.internationalDelivery ? mvs(47) : mvs(403.5), width: '90%', alignSelf: 'center' }} |
| 356 |
/> |
| 357 |
</ScrollView> |
| Error |
Row 358, Column 13: "Delete `·`"
prettier/prettier
|
| 358 |
</View > |
| 359 |
|
| 360 |
{/* <DateTimePicker |
| 361 |
isVisible={isDatePickerVisible} |
| 362 |
onCancel={hideDatePicker} |
| 363 |
mode="date" |
| 364 |
maximumDate={new Date()} |
| 365 |
isDarkModeEnabled={false} |
| 366 |
// backdropStyleIOS={colors.black} |
| 367 |
onConfirm={date => { |
| 368 |
setPayload({ ...payload, [dateOption]: moment(date).format('MM / DD / YYYY') }); |
| 369 |
setDatePickerVisibility(false); |
| 370 |
}} |
| 371 |
/> */} |
| Error |
Row 372, Column 23: "Insert `⏎·······`"
prettier/prettier
|
| 372 |
<DatePickerModal onChangeDMY={date => { |
| Error |
Row 373, Column 23: "Replace `·...payload,·[dateOption]:`${(date?.month*1+1)}·/·${date?.day}·/·${date.year}`` with `⏎············...payload,⏎············[dateOption]:·`${date?.month·*·1·+·1}·/·${date?.day}·/·${⏎··············date.year⏎············}`,⏎··········`"
prettier/prettier
|
| Warning |
Row 373, Column 64: "Operator '*' must be spaced."
space-infix-ops
|
| Warning |
Row 373, Column 66: "Operator '+' must be spaced."
space-infix-ops
|
| 373 |
setPayload({ ...payload, [dateOption]:`${(date?.month*1+1)} / ${date?.day} / ${date.year}`}); |
| 374 |
setDatePickerVisibility(false); |
| Error |
Row 375, Column 11: "Replace `··onClose={hideDatePicker}·visible={isDatePickerVisible}` with `⏎········onClose={hideDatePicker}⏎········visible={isDatePickerVisible}⏎······`"
prettier/prettier
|
| 375 |
}} onClose={hideDatePicker} visible={isDatePickerVisible}/> |
| Error |
Row 376, Column 11: "Delete `·`"
prettier/prettier
|
| 376 |
</View > |
| 377 |
); |
| 378 |
}; |
| 379 |
|
| 380 |
export default AddTrip; |
| 381 |
const styles = StyleSheet.create({ |
| 382 |
SUB_CONTAINER: { |
| 383 |
paddingHorizontal: mvs(22), |
| 384 |
borderBottomStartRadius: mvs(20), |
| 385 |
borderBottomEndRadius: mvs(20), |
| 386 |
paddingBottom: mvs(15), |
| 387 |
backgroundColor: colors.white, |
| 388 |
}, |
| 389 |
LOC_DES_CONTAINER: { |
| 390 |
borderBottomStartRadius: mvs(20), |
| 391 |
borderBottomEndRadius: mvs(20), |
| 392 |
}, |
| 393 |
LOC_DES: { |
| 394 |
justifyContent: 'space-between', |
| 395 |
flexDirection: 'row', |
| 396 |
alignItems: 'center', |
| 397 |
paddingHorizontal: mvs(13), |
| 398 |
paddingVertical: mvs(12), |
| 399 |
borderRadius: mvs(13), |
| 400 |
backgroundColor: colors.primary, |
| 401 |
}, |
| 402 |
REVERSE_LOC_DES: { |
| 403 |
backgroundColor: colors.white, |
| 404 |
borderWidth: StyleSheet.hairlineWidth, |
| 405 |
borderColor: colors.primary, |
| 406 |
}, |
| 407 |
DESTINATION_CONTAINER: { |
| 408 |
alignItems: 'center', |
| 409 |
flexDirection: 'row', |
| 410 |
justifyContent: 'space-between', |
| 411 |
marginTop: mvs(10), |
| 412 |
}, |
| 413 |
FLAG_BUTTON: { |
| 414 |
width: '49%', |
| 415 |
height: mvs(38), |
| 416 |
flexDirection: 'row-reverse', |
| 417 |
backgroundColor: colors.secondary, |
| 418 |
}, |
| 419 |
DIV: { |
| 420 |
marginTop: mvs(15), |
| 421 |
marginBottom: mvs(15), |
| 422 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 423 |
borderColor: colors.price_border, |
| 424 |
}, |
| 425 |
RADIO_CONTAINER: { |
| 426 |
marginBottom: mvs(30), |
| 427 |
}, |
| 428 |
RADIO_LABEL: { |
| 429 |
color: colors.headerTitle, |
| 430 |
fontSize: mvs(15), |
| 431 |
}, |
| 432 |
BUTTON_CONTAINER: { |
| 433 |
flexDirection: 'row', |
| 434 |
justifyContent: 'space-between', |
| 435 |
}, |
| 436 |
BUTTON: { |
| 437 |
width: mvs(161), |
| 438 |
}, |
| 439 |
TRIP_TYPE_RADIO: { |
| 440 |
width: '49%', |
| 441 |
}, |
| 442 |
RTL_ICON: { |
| 443 |
height: mvs(23), |
| 444 |
width: mvs(23), |
| 445 |
}, |
| 446 |
SEARCH_MAP: { |
| 447 |
marginTop: mvs(15), |
| 448 |
alignSelf: 'flex-end', |
| 449 |
width: '49%', |
| 450 |
height: mvs(38), |
| 451 |
flexDirection: 'row', |
| 452 |
backgroundColor: colors.primary, |
| 453 |
paddingHorizontal: mvs(23), |
| 454 |
}, |
| 455 |
MAP_ICON: { |
| 456 |
height: mvs(18), |
| 457 |
width: mvs(14), |
| 458 |
}, |
| 459 |
}); |
| 460 |
|
|
|
|
/src/screens/auth/sign-up-screen.js
|
4 problems (3 errors, 1 warning)
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 2 |
import React from 'react'; |
| Error |
Row 3, Column 9: "Replace `·View·` with `View`"
prettier/prettier
|
| 3 |
import { View } from 'react-native'; |
| Error |
Row 4, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 4 |
import { connect } from 'react-redux'; |
| Error |
Row 5, Column 9: "Replace `·SignUpPage·` with `SignUpPage`"
prettier/prettier
|
| 5 |
import { SignUpPage } from '../../components/pages'; |
| 6 |
|
| 7 |
const SignUpScreen = props => { |
| 8 |
return ( |
| Warning |
Row 9, Column 18: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 9 |
<View style={{flex: 1}}> |
| 10 |
<SignUpPage {...props} /> |
| 11 |
</View> |
| 12 |
); |
| 13 |
}; |
| 14 |
|
| 15 |
const mapStateToProps = state => { |
| 16 |
return { |
| 17 |
userData: state.auth, |
| 18 |
langauge: state.common?.langauge, |
| 19 |
}; |
| 20 |
}; |
| 21 |
|
| 22 |
const mapDispatchToProps = dispatch => ({ |
| 23 |
postRegisterData: payload => |
| 24 |
dispatch(TAKE_TO_ACTIONS.postRegisterData(payload)), |
| 25 |
}); |
| 26 |
|
| 27 |
export default connect(mapStateToProps, mapDispatchToProps)(SignUpScreen); |
| 28 |
|
|
|
|
/src/screens/chat/chat-dispute.js
|
213 problems (124 errors, 89 warnings)
|
| Severity |
Rule |
| Warning |
Row 1, Column 8: "'services' is defined but never used."
no-unused-vars
|
| Warning |
Row 5, Column 8: "'moment' is defined but never used."
no-unused-vars
|
| Error |
Row 6, Column 16: "Replace `·useEffect,·useRef,·useState·` with `useEffect,·useRef,·useState`"
prettier/prettier
|
| Warning |
Row 6, Column 17: "'useEffect' is defined but never used."
no-unused-vars
|
| Error |
Row 9, Column 9: "Replace `·KeyboardAvoidingView,` with `⏎··KeyboardAvoidingView,⏎·`"
prettier/prettier
|
| Error |
Row 15, Column 7: "Insert `,`"
prettier/prettier
|
| Warning |
Row 15, Column 7: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 21, Column 8: "'TrackPlayer' is defined but never used."
no-unused-vars
|
| Error |
Row 21, Column 22: "Replace `⏎··useProgress⏎` with `useProgress`"
prettier/prettier
|
| Warning |
Row 22, Column 14: "Missing trailing comma."
comma-dangle
|
| Error |
Row 24, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 27, Column 9: "Replace `·Camera·` with `Camera`"
prettier/prettier
|
| Warning |
Row 30, Column 8: "'OrderStatusCard' is defined but never used."
no-unused-vars
|
| Error |
Row 35, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 39, Column 24: "Delete `⏎⏎⏎`"
prettier/prettier
|
| Warning |
Row 44, Column 7: "'SendReceipt' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 51, Column 54: "Inline style: { alignItems: 'flex-end' }"
react-native/no-inline-styles
|
| Error |
Row 51, Column 55: "Replace `·alignItems:·'flex-end'·` with `alignItems:·'flex-end'`"
prettier/prettier
|
| Warning |
Row 55, Column 14: "Inline style: {
borderWidth: 1,
justifyContent: 'center',
alignItems: 'center',
overflow: 'hidden'
}"
react-native/no-inline-styles
|
| Error |
Row 68, Column 25: "Replace `·uri·}}·style={{·height:·'100%',·width:·'100%'·` with `uri}}·style={{height:·'100%',·width:·'100%'`"
prettier/prettier
|
| Warning |
Row 68, Column 40: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| Warning |
Row 79, Column 14: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 79, Column 15: "Replace `·width:·'49%',·height:·mvs(52),·backgroundColor:·colors.green·` with `width:·'49%',·height:·mvs(52),·backgroundColor:·colors.green`"
prettier/prettier
|
| Warning |
Row 84, Column 7: "'SendProduct' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 91, Column 54: "Inline style: { alignItems: 'flex-end' }"
react-native/no-inline-styles
|
| Error |
Row 91, Column 55: "Replace `·alignItems:·'flex-end'·` with `alignItems:·'flex-end'`"
prettier/prettier
|
| Warning |
Row 95, Column 14: "Inline style: {
borderWidth: 1,
justifyContent: 'center',
alignItems: 'center',
overflow: 'hidden'
}"
react-native/no-inline-styles
|
| Error |
Row 108, Column 25: "Replace `·uri·}}·style={{·height:·'100%',·width:·'100%'·` with `uri}}·style={{height:·'100%',·width:·'100%'`"
prettier/prettier
|
| Warning |
Row 108, Column 40: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| Warning |
Row 119, Column 14: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 119, Column 15: "Replace `·width:·'49%',·height:·mvs(52),·backgroundColor:·colors.green·` with `width:·'49%',·height:·mvs(52),·backgroundColor:·colors.green`"
prettier/prettier
|
| Warning |
Row 125, Column 9: "'Play1' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 125, Column 22: "["Play1"] is better written in dot notation."
dot-notation
|
| Warning |
Row 126, Column 9: "'Play2' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 126, Column 22: "["Play2"] is better written in dot notation."
dot-notation
|
| Warning |
Row 127, Column 9: "'Pause1' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 127, Column 23: "["Pause1"] is better written in dot notation."
dot-notation
|
| Warning |
Row 128, Column 9: "'Pause2' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 128, Column 23: "["Pause2"] is better written in dot notation."
dot-notation
|
| Warning |
Row 129, Column 21: "["doc1"] is better written in dot notation."
dot-notation
|
| Warning |
Row 130, Column 21: "["doc2"] is better written in dot notation."
dot-notation
|
| Warning |
Row 131, Column 21: "["seened"] is better written in dot notation."
dot-notation
|
| Warning |
Row 132, Column 9: "'SeenWhite' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 132, Column 26: "["seened_white"] is better written in dot notation."
dot-notation
|
| Warning |
Row 133, Column 24: "["delivered"] is better written in dot notation."
dot-notation
|
| Error |
Row 135, Column 10: "Replace `·config,·fs·}·=·RNFetchBlob;⏎` with `config,·fs}·=·RNFetchBlob;`"
prettier/prettier
|
| Warning |
Row 138, Column 9: "'progress' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 142, Column 5: "'navigation' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 144, Column 5: "'fetchActiveChat' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 145, Column 5: "'active_chat' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 147, Column 5: "'showDeliveryAddressModal' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 148, Column 5: "'toggleDeliveryAddressModal' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 150, Column 10: "Replace `⏎····participant_name·=·profileData?.user_name,⏎····dispute_id` with `participant_name·=·profileData?.user_name,·dispute_id}·=`"
prettier/prettier
|
| Warning |
Row 151, Column 5: "'participant_name' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 152, Column 15: "Missing trailing comma."
comma-dangle
|
| Error |
Row 153, Column 3: "Replace `}·=` with `·`"
prettier/prettier
|
| Error |
Row 155, Column 28: "Delete `⏎`"
prettier/prettier
|
| Warning |
Row 158, Column 10: "'sendImageLoading' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 163, Column 18: "'setImages' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 167, Column 10: "'imagePicker' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 171, Column 10: "'selectedFile' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 173, Column 1: "Delete `⏎⏎⏎⏎⏎⏎⏎⏎`"
prettier/prettier
|
| Error |
Row 185, Column 1: "Replace `⏎⏎⏎··const·sendDoc·=·async·getData·=>·{⏎` with `··const·sendDoc·=·async·getData·=>·{`"
prettier/prettier
|
| Error |
Row 192, Column 46: "Insert `;`"
prettier/prettier
|
| Warning |
Row 192, Column 46: "Missing semicolon."
semi
|
| Error |
Row 193, Column 58: "Insert `;`"
prettier/prettier
|
| Warning |
Row 193, Column 58: "Missing semicolon."
semi
|
| Error |
Row 195, Column 33: "'client' is not defined."
no-undef
|
| Error |
Row 195, Column 71: "Insert `;`"
prettier/prettier
|
| Warning |
Row 195, Column 71: "Missing semicolon."
semi
|
| Error |
Row 200, Column 49: "Insert `,`"
prettier/prettier
|
| Warning |
Row 200, Column 49: "Missing trailing comma."
comma-dangle
|
| Error |
Row 201, Column 10: "Insert `,`"
prettier/prettier
|
| Warning |
Row 201, Column 10: "Missing trailing comma."
comma-dangle
|
| Error |
Row 202, Column 9: "Insert `;`"
prettier/prettier
|
| Warning |
Row 202, Column 9: "Missing semicolon."
semi
|
| Error |
Row 203, Column 21: "Insert `;`"
prettier/prettier
|
| Warning |
Row 203, Column 21: "Missing semicolon."
semi
|
| Error |
Row 212, Column 5: "Delete `⏎⏎⏎`"
prettier/prettier
|
| Error |
Row 244, Column 35: "Replace `(setLoadingChat)` with `setLoadingChat`"
prettier/prettier
|
| Warning |
Row 244, Column 36: "'setLoadingChat' is already declared in the upper scope."
no-shadow
|
| Error |
Row 247, Column 33: "'client' is not defined."
no-undef
|
| Error |
Row 247, Column 76: "Insert `;`"
prettier/prettier
|
| Warning |
Row 247, Column 76: "Missing semicolon."
semi
|
| Error |
Row 248, Column 1: "Replace `········if(messageList?.data?.length·>·0·||·Object.keys(messageList?.data).length>0)·{` with `······if·(⏎········messageList?.data?.length·>·0·||⏎········Object.keys(messageList?.data).length·>·0⏎······)·{⏎·······`"
prettier/prettier
|
| Warning |
Row 248, Column 9: "Expected space(s) after "if"."
keyword-spacing
|
| Warning |
Row 248, Column 82: "Operator '>' must be spaced."
space-infix-ops
|
| Error |
Row 252, Column 51: "Insert `,`"
prettier/prettier
|
| Warning |
Row 252, Column 51: "Missing trailing comma."
comma-dangle
|
| Error |
Row 253, Column 12: "Insert `,`"
prettier/prettier
|
| Warning |
Row 253, Column 12: "Missing trailing comma."
comma-dangle
|
| Error |
Row 254, Column 11: "Insert `;`"
prettier/prettier
|
| Warning |
Row 254, Column 11: "Missing semicolon."
semi
|
| Error |
Row 270, Column 6: "React Hook React.useEffect has a missing dependency: 'fetchChatMessages'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 272, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 275, Column 38: "Insert `;`"
prettier/prettier
|
| Warning |
Row 275, Column 38: "Missing semicolon."
semi
|
| Error |
Row 277, Column 48: "Insert `;`"
prettier/prettier
|
| Warning |
Row 277, Column 48: "Missing semicolon."
semi
|
| Error |
Row 279, Column 33: "'client' is not defined."
no-undef
|
| Error |
Row 279, Column 71: "Insert `;`"
prettier/prettier
|
| Warning |
Row 279, Column 71: "Missing semicolon."
semi
|
| Error |
Row 284, Column 49: "Insert `,`"
prettier/prettier
|
| Warning |
Row 284, Column 49: "Missing trailing comma."
comma-dangle
|
| Error |
Row 285, Column 10: "Insert `,`"
prettier/prettier
|
| Warning |
Row 285, Column 10: "Missing trailing comma."
comma-dangle
|
| Error |
Row 286, Column 9: "Insert `;`"
prettier/prettier
|
| Warning |
Row 286, Column 9: "Missing semicolon."
semi
|
| Error |
Row 287, Column 21: "Insert `;`"
prettier/prettier
|
| Warning |
Row 287, Column 21: "Missing semicolon."
semi
|
| Error |
Row 288, Column 38: "Replace `·animated:·true·` with `animated:·true`"
prettier/prettier
|
| Error |
Row 296, Column 1: "Replace `⏎··};⏎` with `··};`"
prettier/prettier
|
| Warning |
Row 303, Column 15: "'granted' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 308, Column 60: "Replace `PermissionsAndroid.PERMISSIONS.READ_EXTERNAL_STORAGE` with `⏎··········PermissionsAndroid.PERMISSIONS.READ_EXTERNAL_STORAGE,⏎········`"
prettier/prettier
|
| Error |
Row 309, Column 61: "Replace `PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE` with `⏎··········PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE,⏎········`"
prettier/prettier
|
| Error |
Row 326, Column 16: "Replace `·PictureDir·+·'/file_'·+·Math.floor(new·Date().getTime()·+·new·Date().getSeconds()·/·2)·+` with `⏎············PictureDir·+⏎············'/file_'·+⏎············Math.floor(new·Date().getTime()·+·new·Date().getSeconds()·/·2)·+⏎···········`"
prettier/prettier
|
| Error |
Row 328, Column 10: "Insert `,`"
prettier/prettier
|
| Warning |
Row 328, Column 10: "Missing trailing comma."
comma-dangle
|
| Error |
Row 331, Column 46: "Insert `;`"
prettier/prettier
|
| Warning |
Row 331, Column 46: "Missing semicolon."
semi
|
| Error |
Row 333, Column 16: "Replace `⏎··········'GET',⏎··········url,⏎········` with `'GET',·url`"
prettier/prettier
|
| Error |
Row 344, Column 11: "Insert `⏎········`"
prettier/prettier
|
| Warning |
Row 344, Column 18: "Expected error to be handled."
handle-callback-err
|
| Error |
Row 349, Column 33: "'error' is not defined."
no-undef
|
| Error |
Row 351, Column 11: "Insert `;`"
prettier/prettier
|
| Warning |
Row 351, Column 11: "Missing semicolon."
semi
|
| Error |
Row 356, Column 29: "'error' is not defined."
no-undef
|
| Error |
Row 359, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 359, Column 4: "Missing semicolon."
semi
|
| Error |
Row 361, Column 12: "Replace `·item,·index·` with `item,·index`"
prettier/prettier
|
| Warning |
Row 369, Column 18: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 371, Column 25: "Replace `·item?.reply_user_name·!==·profileData?.user_name·?·mvs(0)` with `⏎··············item?.reply_user_name·!==·profileData?.user_name⏎················?·mvs(0)⏎···············`"
prettier/prettier
|
| Error |
Row 372, Column 26: "Replace `·item?.reply_user_name·!==·profileData?.user_name·?·mvs(63)` with `⏎··············item?.reply_user_name·!==·profileData?.user_name⏎················?·mvs(63)⏎···············`"
prettier/prettier
|
| Warning |
Row 378, Column 20: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 383, Column 65: "Replace `·?·mvs(15)` with `⏎··················?·mvs(15)⏎·················`"
prettier/prettier
|
| Error |
Row 385, Column 65: "Replace `·?·mvs(0)` with `⏎··················?·mvs(0)⏎·················`"
prettier/prettier
|
| Error |
Row 386, Column 31: "Insert `,`"
prettier/prettier
|
| Warning |
Row 386, Column 31: "Missing trailing comma."
comma-dangle
|
| Error |
Row 388, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 389, Column 59: "Replace `item?.reply_user_name` with `⏎················item?.reply_user_name,⏎··············`"
prettier/prettier
|
| Error |
Row 392, Column 36: "Insert `,`"
prettier/prettier
|
| Warning |
Row 392, Column 36: "Missing trailing comma."
comma-dangle
|
| Error |
Row 399, Column 36: "Insert `,`"
prettier/prettier
|
| Warning |
Row 399, Column 36: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 404, Column 20: "Inline style: {
position: 'absolute',
left: 'item?.reply_user_name !== profileData?.user_name ? null : 0',
right: 'item?.reply_user_name !== profileData?.user_name ? 0 : null',
bottom: 0,
alignItems: 'center'
}"
react-native/no-inline-styles
|
| Error |
Row 407, Column 21: "Insert `⏎···············`"
prettier/prettier
|
| Warning |
Row 428, Column 18: "Inline style: {
alignSelf: "item?.reply_user_name === profileData?.user_name ? 'flex-end' : 'flex-start'",
flexDirection: 'column',
alignItems: 'flex-start',
justifyContent: 'flex-start'
}"
react-native/no-inline-styles
|
| Error |
Row 431, Column 63: "Replace `·?·'flex-end'` with `⏎················?·'flex-end'⏎···············`"
prettier/prettier
|
| Error |
Row 437, Column 1: "Replace `flexDirection:` with `············flexDirection:·`"
prettier/prettier
|
| Error |
Row 438, Column 1: "Replace `alignItems:` with `············alignItems:·`"
prettier/prettier
|
| Warning |
Row 442, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 442, Column 11: "Delete `··⏎············`"
prettier/prettier
|
| Error |
Row 444, Column 1: "Replace `··············label={`${TAKE_TO_CONSTANT.convertUpperCase(item?.reply_user_name` with `············label={`${TAKE_TO_CONSTANT.convertUpperCase(⏎··············item?.reply_user_name,⏎············`"
prettier/prettier
|
| Error |
Row 445, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 446, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 447, Column 15: "Replace `··color:·colors.white` with `color:·colors.white,`"
prettier/prettier
|
| Warning |
Row 447, Column 36: "Missing trailing comma."
comma-dangle
|
| Error |
Row 448, Column 13: "Delete `··`"
prettier/prettier
|
| Error |
Row 449, Column 1: "Replace `············` with `··········`"
prettier/prettier
|
| Error |
Row 450, Column 1: "Replace `·········prettier/prettier
|
| Warning |
Row 450, Column 23: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 451, Column 1: "Replace `·········` with `············`"
prettier/prettier
|
| Error |
Row 452, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 453, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 454, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 455, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 456, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 457, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 458, Column 1: "Replace `··············item?.attachment?.split('/')[item?.attachment?.split('/')?.length·-·1` with `················item?.attachment?.split('/')[⏎··················item?.attachment?.split('/')?.length·-·1⏎················`"
prettier/prettier
|
| Error |
Row 459, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 460, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 461, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 462, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 463, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 464, Column 19: "Insert `··`"
prettier/prettier
|
| Error |
Row 465, Column 15: "Replace `fontSize:·mvs(12),⏎` with `··fontSize:·mvs(12),`"
prettier/prettier
|
| Error |
Row 467, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 468, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 469, Column 1: "Delete `·`"
prettier/prettier
|
| Error |
Row 481, Column 30: "Replace `·marginLeft:·mvs(10)·` with `marginLeft:·mvs(10)`"
prettier/prettier
|
| Error |
Row 488, Column 1: "Delete `⏎⏎⏎`"
prettier/prettier
|
| Error |
Row 524, Column 20: "Replace `=>` with `·=>·`"
prettier/prettier
|
| Error |
Row 526, Column 9: "Replace `1000)` with `·1000);`"
prettier/prettier
|
| Warning |
Row 526, Column 14: "Missing semicolon."
semi
|
| Error |
Row 534, Column 15: "Insert `;`"
prettier/prettier
|
| Warning |
Row 534, Column 15: "Missing semicolon."
semi
|
| Error |
Row 551, Column 15: "Insert `;`"
prettier/prettier
|
| Warning |
Row 551, Column 15: "Missing semicolon."
semi
|
| Warning |
Row 564, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 564, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| Warning |
Row 569, Column 5: "Expected { after 'else'."
curly
|
| Error |
Row 572, Column 35: "Replace `"ios"·?·"padding"·:·"height"` with `'ios'·?·'padding'·:·'height'`"
prettier/prettier
|
| Warning |
Row 572, Column 35: "Strings must use singlequote."
quotes
|
| Warning |
Row 572, Column 43: "Strings must use singlequote."
quotes
|
| Warning |
Row 572, Column 55: "Strings must use singlequote."
quotes
|
| Error |
Row 579, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 582, Column 35: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 587, Column 46: "Replace `·animated:·true·` with `animated:·true`"
prettier/prettier
|
| Error |
Row 598, Column 30: "Replace `·item:·element,·index:·index·` with `item:·element,·index:·index`"
prettier/prettier
|
| Error |
Row 599, Column 15: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 607, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 612, Column 28: "'sendAudio' is not defined."
no-undef
|
| Error |
Row 615, Column 46: "Replace `·animated:·true·` with `animated:·true`"
prettier/prettier
|
| Error |
Row 620, Column 1: "Delete `⏎⏎⏎⏎`"
prettier/prettier
|
| Error |
Row 625, Column 17: "Delete `⏎············`"
prettier/prettier
|
| Error |
Row 627, Column 1: "Replace `··············{·icon:·'Camera',·title:·'Camera'·` with `············{icon:·'Camera',·title:·'Camera'`"
prettier/prettier
|
| Error |
Row 628, Column 1: "Replace `··············{·icon:·'Gallery',·title:·'Photo·&·Video·Library'·` with `············{icon:·'Gallery',·title:·'Photo·&·Video·Library'`"
prettier/prettier
|
| Error |
Row 629, Column 13: "Replace `··{·icon:·'doc',·title:·'Document'·` with `{icon:·'doc',·title:·'Document'`"
prettier/prettier
|
| Error |
Row 630, Column 1: "Replace `············]⏎··········` with `··········]`"
prettier/prettier
|
| Error |
Row 636, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}·inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| Error |
Row 651, Column 1: "Delete `⏎⏎`"
prettier/prettier
|
| Error |
Row 664, Column 57: "Insert `,`"
prettier/prettier
|
| Warning |
Row 664, Column 57: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| Warning |
Row 1, Column 8: "'services' is defined but never used."
no-unused-vars
|
| 1 |
import services from '@khan_ahmad786/common/api/services'; |
| 2 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 3 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 4 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| Warning |
Row 5, Column 8: "'moment' is defined but never used."
no-unused-vars
|
| 5 |
import moment from 'moment'; |
| Error |
Row 6, Column 16: "Replace `·useEffect,·useRef,·useState·` with `useEffect,·useRef,·useState`"
prettier/prettier
|
| Warning |
Row 6, Column 17: "'useEffect' is defined but never used."
no-unused-vars
|
| 6 |
import React, { useEffect, useRef, useState } from 'react'; |
| 7 |
import { |
| 8 |
ActivityIndicator, |
| Error |
Row 9, Column 9: "Replace `·KeyboardAvoidingView,` with `⏎··KeyboardAvoidingView,⏎·`"
prettier/prettier
|
| 9 |
Image, KeyboardAvoidingView, LogBox, |
| 10 |
PermissionsAndroid, |
| 11 |
Platform, |
| 12 |
ScrollView, |
| 13 |
StyleSheet, |
| 14 |
TouchableOpacity, |
| Error |
Row 15, Column 7: "Insert `,`"
prettier/prettier
|
| Warning |
Row 15, Column 7: "Missing trailing comma."
comma-dangle
|
| 15 |
View |
| 16 |
} from 'react-native'; |
| 17 |
import DocumentPicker from 'react-native-document-picker'; |
| 18 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 19 |
import ImageView from 'react-native-image-viewing'; |
| 20 |
//import Slider from '@react-native-community/slider'; |
| Warning |
Row 21, Column 8: "'TrackPlayer' is defined but never used."
no-unused-vars
|
| Error |
Row 21, Column 22: "Replace `⏎··useProgress⏎` with `useProgress`"
prettier/prettier
|
| 21 |
import TrackPlayer, { |
| Warning |
Row 22, Column 14: "Missing trailing comma."
comma-dangle
|
| 22 |
useProgress |
| 23 |
} from 'react-native-track-player'; |
| Error |
Row 24, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 24 |
import { connect } from 'react-redux'; |
| 25 |
import RNFetchBlob from 'rn-fetch-blob'; |
| 26 |
import * as SVGS from '../../../resource/assets/common-icons'; |
| Error |
Row 27, Column 9: "Replace `·Camera·` with `Camera`"
prettier/prettier
|
| 27 |
import { Camera } from '../../../resource/assets/common-icons'; |
| 28 |
import Buttons from '../../components/atoms/Button'; |
| 29 |
import InputToolbar from '../../components/molecules/chat_card/input-toolbar'; |
| Warning |
Row 30, Column 8: "'OrderStatusCard' is defined but never used."
no-unused-vars
|
| 30 |
import OrderStatusCard from '../../components/molecules/chat_card/order-status-card'; |
| 31 |
import Header from '../../components/molecules/header/header-1x'; |
| 32 |
import ImagePicker from '../../components/molecules/modals/image-picker/image-picker'; |
| 33 |
import PlusOptionsModal from '../../components/molecules/modals/plus-options-modal'; |
| 34 |
import colors from '../../config/colors'; |
| Error |
Row 35, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 35 |
import { mvs } from '../../config/metrices'; |
| 36 |
import Bold from '../../presentation/typography/bold-text'; |
| 37 |
import Regular from '../../presentation/typography/regular-text'; |
| 38 |
|
| Error |
Row 39, Column 24: "Delete `⏎⏎⏎`"
prettier/prettier
|
| 39 |
LogBox.ignoreAllLogs(); |
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| Warning |
Row 44, Column 7: "'SendReceipt' is assigned a value but never used."
no-unused-vars
|
| 44 |
const SendReceipt = ({ |
| 45 |
disabled, |
| 46 |
uri, |
| 47 |
sendProductImage, |
| 48 |
pickImage, |
| 49 |
sendProductLoading, |
| 50 |
}) => ( |
| Warning |
Row 51, Column 54: "Inline style: { alignItems: 'flex-end' }"
react-native/no-inline-styles
|
| Error |
Row 51, Column 55: "Replace `·alignItems:·'flex-end'·` with `alignItems:·'flex-end'`"
prettier/prettier
|
| 51 |
<View style={[styles.BUTTON_CONTAINER, styles.ROW, { alignItems: 'flex-end' }]}> |
| 52 |
{/* <Buttons.ButtonPrimary disabled textStyle={{ color: colors.headerTitle }} title={'US$ 90'} style={{ width: "49%", height: mvs(52), backgroundColor: colors.white }} /> */} |
| 53 |
<TouchableOpacity |
| 54 |
onPress={pickImage} |
| Warning |
Row 55, Column 14: "Inline style: {
borderWidth: 1,
justifyContent: 'center',
alignItems: 'center',
overflow: 'hidden'
}"
react-native/no-inline-styles
|
| 55 |
style={{ |
| 56 |
height: mvs(73), |
| 57 |
width: mvs(73), |
| 58 |
borderWidth: 1, |
| 59 |
marginLeft: mvs(44), |
| 60 |
borderRadius: mvs(13), |
| 61 |
borderColor: colors.primary, |
| 62 |
backgroundColor: colors.white, |
| 63 |
justifyContent: 'center', |
| 64 |
alignItems: 'center', |
| 65 |
overflow: 'hidden', |
| 66 |
}}> |
| 67 |
{uri ? ( |
| Error |
Row 68, Column 25: "Replace `·uri·}}·style={{·height:·'100%',·width:·'100%'·` with `uri}}·style={{height:·'100%',·width:·'100%'`"
prettier/prettier
|
| Warning |
Row 68, Column 40: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| 68 |
<Image source={{ uri }} style={{ height: '100%', width: '100%' }} /> |
| 69 |
) : ( |
| 70 |
<Camera /> |
| 71 |
)} |
| 72 |
</TouchableOpacity> |
| 73 |
<Buttons.ButtonPrimaryLight |
| 74 |
onClick={() => sendProductImage()} |
| 75 |
disabled={disabled} |
| 76 |
loaderColor={colors.white} |
| 77 |
loading={sendProductLoading} |
| 78 |
title={'Send Receipt'} |
| Warning |
Row 79, Column 14: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 79, Column 15: "Replace `·width:·'49%',·height:·mvs(52),·backgroundColor:·colors.green·` with `width:·'49%',·height:·mvs(52),·backgroundColor:·colors.green`"
prettier/prettier
|
| 79 |
style={{ width: '49%', height: mvs(52), backgroundColor: colors.green }} |
| 80 |
/> |
| 81 |
</View> |
| 82 |
); |
| 83 |
|
| Warning |
Row 84, Column 7: "'SendProduct' is assigned a value but never used."
no-unused-vars
|
| 84 |
const SendProduct = ({ |
| 85 |
disabled, |
| 86 |
uri, |
| 87 |
sendProductImage, |
| 88 |
pickImage, |
| 89 |
sendProductLoading, |
| 90 |
}) => ( |
| Warning |
Row 91, Column 54: "Inline style: { alignItems: 'flex-end' }"
react-native/no-inline-styles
|
| Error |
Row 91, Column 55: "Replace `·alignItems:·'flex-end'·` with `alignItems:·'flex-end'`"
prettier/prettier
|
| 91 |
<View style={[styles.BUTTON_CONTAINER, styles.ROW, { alignItems: 'flex-end' }]}> |
| 92 |
{/* <Buttons.ButtonPrimary disabled textStyle={{ color: colors.headerTitle }} title={'US$ 90'} style={{ width: "49%", height: mvs(52), backgroundColor: colors.white }} /> */} |
| 93 |
<TouchableOpacity |
| 94 |
onPress={pickImage} |
| Warning |
Row 95, Column 14: "Inline style: {
borderWidth: 1,
justifyContent: 'center',
alignItems: 'center',
overflow: 'hidden'
}"
react-native/no-inline-styles
|
| 95 |
style={{ |
| 96 |
height: mvs(73), |
| 97 |
width: mvs(73), |
| 98 |
borderWidth: 1, |
| 99 |
marginLeft: mvs(44), |
| 100 |
borderRadius: mvs(13), |
| 101 |
borderColor: colors.primary, |
| 102 |
backgroundColor: colors.white, |
| 103 |
justifyContent: 'center', |
| 104 |
alignItems: 'center', |
| 105 |
overflow: 'hidden', |
| 106 |
}}> |
| 107 |
{uri ? ( |
| Error |
Row 108, Column 25: "Replace `·uri·}}·style={{·height:·'100%',·width:·'100%'·` with `uri}}·style={{height:·'100%',·width:·'100%'`"
prettier/prettier
|
| Warning |
Row 108, Column 40: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| 108 |
<Image source={{ uri }} style={{ height: '100%', width: '100%' }} /> |
| 109 |
) : ( |
| 110 |
<Camera /> |
| 111 |
)} |
| 112 |
</TouchableOpacity> |
| 113 |
<Buttons.ButtonPrimaryLight |
| 114 |
onClick={() => sendProductImage()} |
| 115 |
disabled={disabled} |
| 116 |
loading={sendProductLoading} |
| 117 |
loaderColor={colors.white} |
| 118 |
title={'Send Product'} |
| Warning |
Row 119, Column 14: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 119, Column 15: "Replace `·width:·'49%',·height:·mvs(52),·backgroundColor:·colors.green·` with `width:·'49%',·height:·mvs(52),·backgroundColor:·colors.green`"
prettier/prettier
|
| 119 |
style={{ width: '49%', height: mvs(52), backgroundColor: colors.green }} |
| 120 |
/> |
| 121 |
</View> |
| 122 |
); |
| 123 |
|
| 124 |
const ChatDispute = props => { |
| Warning |
Row 125, Column 9: "'Play1' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 125, Column 22: "["Play1"] is better written in dot notation."
dot-notation
|
| 125 |
const Play1 = SVGS['Play1']; |
| Warning |
Row 126, Column 9: "'Play2' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 126, Column 22: "["Play2"] is better written in dot notation."
dot-notation
|
| 126 |
const Play2 = SVGS['Play2']; |
| Warning |
Row 127, Column 9: "'Pause1' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 127, Column 23: "["Pause1"] is better written in dot notation."
dot-notation
|
| 127 |
const Pause1 = SVGS['Pause1']; |
| Warning |
Row 128, Column 9: "'Pause2' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 128, Column 23: "["Pause2"] is better written in dot notation."
dot-notation
|
| 128 |
const Pause2 = SVGS['Pause2']; |
| Warning |
Row 129, Column 21: "["doc1"] is better written in dot notation."
dot-notation
|
| 129 |
const Doc1 = SVGS['doc1']; |
| Warning |
Row 130, Column 21: "["doc2"] is better written in dot notation."
dot-notation
|
| 130 |
const Doc2 = SVGS['doc2']; |
| Warning |
Row 131, Column 21: "["seened"] is better written in dot notation."
dot-notation
|
| 131 |
const Seen = SVGS['seened']; |
| Warning |
Row 132, Column 9: "'SeenWhite' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 132, Column 26: "["seened_white"] is better written in dot notation."
dot-notation
|
| 132 |
const SeenWhite = SVGS['seened_white']; |
| Warning |
Row 133, Column 24: "["delivered"] is better written in dot notation."
dot-notation
|
| 133 |
const Deliver = SVGS['delivered']; |
| 134 |
|
| Error |
Row 135, Column 10: "Replace `·config,·fs·}·=·RNFetchBlob;⏎` with `config,·fs}·=·RNFetchBlob;`"
prettier/prettier
|
| 135 |
const { config, fs } = RNFetchBlob; |
| 136 |
|
| 137 |
|
| Warning |
Row 138, Column 9: "'progress' is assigned a value but never used."
no-unused-vars
|
| 138 |
const progress = useProgress(); |
| 139 |
const scrollRef = useRef(); |
| 140 |
|
| 141 |
const { |
| Warning |
Row 142, Column 5: "'navigation' is assigned a value but never used."
no-unused-vars
|
| 142 |
navigation, |
| 143 |
route, |
| Warning |
Row 144, Column 5: "'fetchActiveChat' is assigned a value but never used."
no-unused-vars
|
| 144 |
fetchActiveChat, |
| Warning |
Row 145, Column 5: "'active_chat' is assigned a value but never used."
no-unused-vars
|
| 145 |
active_chat, |
| 146 |
profileData, |
| Warning |
Row 147, Column 5: "'showDeliveryAddressModal' is assigned a value but never used."
no-unused-vars
|
| 147 |
showDeliveryAddressModal, |
| Warning |
Row 148, Column 5: "'toggleDeliveryAddressModal' is assigned a value but never used."
no-unused-vars
|
| 148 |
toggleDeliveryAddressModal, |
| 149 |
} = props; |
| Error |
Row 150, Column 10: "Replace `⏎····participant_name·=·profileData?.user_name,⏎····dispute_id` with `participant_name·=·profileData?.user_name,·dispute_id}·=`"
prettier/prettier
|
| 150 |
const { |
| Warning |
Row 151, Column 5: "'participant_name' is assigned a value but never used."
no-unused-vars
|
| 151 |
participant_name = profileData?.user_name, |
| Warning |
Row 152, Column 15: "Missing trailing comma."
comma-dangle
|
| 152 |
dispute_id |
| Error |
Row 153, Column 3: "Replace `}·=` with `·`"
prettier/prettier
|
| 153 |
} = route?.params || {}; |
| 154 |
const alertRef = React.useRef(); |
| Error |
Row 155, Column 28: "Delete `⏎`"
prettier/prettier
|
| 155 |
//console.log(thread_id); |
| 156 |
|
| 157 |
|
| Warning |
Row 158, Column 10: "'sendImageLoading' is assigned a value but never used."
no-unused-vars
|
| 158 |
const [sendImageLoading, setSendImageLoading] = React.useState(false); |
| 159 |
|
| 160 |
const [messages, setMessages] = React.useState([]); |
| 161 |
const [message, setMessage] = React.useState(''); |
| 162 |
const [plusModal, setPlusModal] = useState(false); |
| Warning |
Row 163, Column 18: "'setImages' is assigned a value but never used."
no-unused-vars
|
| 163 |
const [images, setImages] = React.useState([]); |
| 164 |
const [imageViewer, setImageViewer] = React.useState(false); |
| 165 |
|
| 166 |
const [loadingChat, setLoadingChat] = React.useState(true); |
| Warning |
Row 167, Column 10: "'imagePicker' is assigned a value but never used."
no-unused-vars
|
| 167 |
const [imagePicker, setImagePicker] = React.useState({}); |
| 168 |
const [openPicker, setOpenPicker] = React.useState(false); |
| 169 |
|
| 170 |
const [downState, setDownState] = React.useState(''); |
| Warning |
Row 171, Column 10: "'selectedFile' is assigned a value but never used."
no-unused-vars
|
| 171 |
const [selectedFile, setSelectedFile] = React.useState(''); |
| 172 |
|
| Error |
Row 173, Column 1: "Delete `⏎⏎⏎⏎⏎⏎⏎⏎`"
prettier/prettier
|
| 173 |
|
| 174 |
|
| 175 |
|
| 176 |
|
| 177 |
|
| 178 |
|
| 179 |
|
| 180 |
|
| 181 |
const updatePayload = getData => { |
| 182 |
setImagePicker(getData?.profile_image); |
| 183 |
}; |
| 184 |
|
| Error |
Row 185, Column 1: "Replace `⏎⏎⏎··const·sendDoc·=·async·getData·=>·{⏎` with `··const·sendDoc·=·async·getData·=>·{`"
prettier/prettier
|
| 185 |
|
| 186 |
|
| 187 |
|
| 188 |
const sendDoc = async getData => { |
| 189 |
|
| 190 |
const formData = new FormData(); |
| 191 |
formData.append('reply', message); |
| Error |
Row 192, Column 46: "Insert `;`"
prettier/prettier
|
| Warning |
Row 192, Column 46: "Missing semicolon."
semi
|
| 192 |
formData.append('dispute_id', dispute_id) |
| Error |
Row 193, Column 58: "Insert `;`"
prettier/prettier
|
| Warning |
Row 193, Column 58: "Missing semicolon."
semi
|
| 193 |
formData.append('attachment', getData?.profile_image) |
| 194 |
try { |
| Error |
Row 195, Column 33: "'client' is not defined."
no-undef
|
| Error |
Row 195, Column 71: "Insert `;`"
prettier/prettier
|
| Warning |
Row 195, Column 71: "Missing semicolon."
semi
|
| 195 |
const sendMessage = await client.post('dispute-reply', formData) |
| 196 |
setMessages({ |
| 197 |
...sendMessage?.data, |
| 198 |
replies: { |
| 199 |
data: [...sendMessage?.data?.replies?.data?.reverse()], |
| Error |
Row 200, Column 49: "Insert `,`"
prettier/prettier
|
| Warning |
Row 200, Column 49: "Missing trailing comma."
comma-dangle
|
| 200 |
meta: sendMessage?.data?.replies?.meta |
| Error |
Row 201, Column 10: "Insert `,`"
prettier/prettier
|
| Warning |
Row 201, Column 10: "Missing trailing comma."
comma-dangle
|
| 201 |
} |
| Error |
Row 202, Column 9: "Insert `;`"
prettier/prettier
|
| Warning |
Row 202, Column 9: "Missing semicolon."
semi
|
| 202 |
}) |
| Error |
Row 203, Column 21: "Insert `;`"
prettier/prettier
|
| Warning |
Row 203, Column 21: "Missing semicolon."
semi
|
| 203 |
setMessage('') |
| 204 |
} catch (error) { |
| 205 |
setSendImageLoading(false); |
| 206 |
alertRef.current.alertWithType( |
| 207 |
'error', |
| 208 |
'Error', |
| 209 |
UI_API._returnError(error), |
| 210 |
); |
| 211 |
} |
| Error |
Row 212, Column 5: "Delete `⏎⏎⏎`"
prettier/prettier
|
| 212 |
}; |
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
const openCamera = send => { |
| 218 |
// launchCamera({mediaType: 'photo', includeBase64: false}, response => |
| 219 |
UI_API._openCamera(send ? sendDoc : updatePayload, alertRef); |
| 220 |
// ); |
| 221 |
}; |
| 222 |
const openGallery = send => { |
| 223 |
// launchImageLibrary({mediaType: 'photo', includeBase64: false}, response => |
| 224 |
UI_API._openGallery(send ? sendDoc : updatePayload, alertRef); |
| 225 |
// ); |
| 226 |
}; |
| 227 |
const onImageModalSelection = type => { |
| 228 |
//type :: Camera,Gallery,Delete |
| 229 |
setOpenPicker(false); |
| 230 |
setTimeout(() => { |
| 231 |
if (type === 'Camera') { |
| 232 |
openCamera(false); |
| 233 |
} else if (type === 'Gallery') { |
| 234 |
openGallery(false); |
| 235 |
} else { |
| 236 |
// setPayload({ |
| 237 |
// ...payload, |
| 238 |
// profile_image:'' |
| 239 |
// }) |
| 240 |
} |
| 241 |
}, 1000); |
| 242 |
}; |
| 243 |
|
| Error |
Row 244, Column 35: "Replace `(setLoadingChat)` with `setLoadingChat`"
prettier/prettier
|
| Warning |
Row 244, Column 36: "'setLoadingChat' is already declared in the upper scope."
no-shadow
|
| 244 |
const fetchChatMessages = async (setLoadingChat) => { |
| 245 |
try { |
| 246 |
setLoadingChat(true); |
| Error |
Row 247, Column 33: "'client' is not defined."
no-undef
|
| Error |
Row 247, Column 76: "Insert `;`"
prettier/prettier
|
| Warning |
Row 247, Column 76: "Missing semicolon."
semi
|
| 247 |
const messageList = await client.get(`dispute-replies/${dispute_id}`) |
| Error |
Row 248, Column 1: "Replace `········if(messageList?.data?.length·>·0·||·Object.keys(messageList?.data).length>0)·{` with `······if·(⏎········messageList?.data?.length·>·0·||⏎········Object.keys(messageList?.data).length·>·0⏎······)·{⏎·······`"
prettier/prettier
|
| Warning |
Row 248, Column 9: "Expected space(s) after "if"."
keyword-spacing
|
| Warning |
Row 248, Column 82: "Operator '>' must be spaced."
space-infix-ops
|
| 248 |
if(messageList?.data?.length > 0 || Object.keys(messageList?.data).length>0) { setMessages({ |
| 249 |
...messageList?.data, |
| 250 |
replies: { |
| 251 |
data: [...messageList?.data?.replies?.data?.reverse()], |
| Error |
Row 252, Column 51: "Insert `,`"
prettier/prettier
|
| Warning |
Row 252, Column 51: "Missing trailing comma."
comma-dangle
|
| 252 |
meta: messageList?.data?.replies?.meta |
| Error |
Row 253, Column 12: "Insert `,`"
prettier/prettier
|
| Warning |
Row 253, Column 12: "Missing trailing comma."
comma-dangle
|
| 253 |
} |
| Error |
Row 254, Column 11: "Insert `;`"
prettier/prettier
|
| Warning |
Row 254, Column 11: "Missing semicolon."
semi
|
| 254 |
}) |
| 255 |
} |
| 256 |
|
| 257 |
setLoadingChat(false); |
| 258 |
} catch (error) { |
| 259 |
setLoadingChat(false); |
| 260 |
alertRef.current.alertWithType( |
| 261 |
'error', |
| 262 |
'Error', |
| 263 |
UI_API._returnError(error), |
| 264 |
); |
| 265 |
} |
| 266 |
}; |
| 267 |
|
| 268 |
React.useEffect(() => { |
| 269 |
fetchChatMessages(setLoadingChat); |
| Error |
Row 270, Column 6: "React Hook React.useEffect has a missing dependency: 'fetchChatMessages'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 270 |
}, []); |
| 271 |
|
| Error |
Row 272, Column 1: "Delete `⏎`"
prettier/prettier
|
| 272 |
|
| 273 |
const onSendMessage = async () => { |
| 274 |
try { |
| Error |
Row 275, Column 38: "Insert `;`"
prettier/prettier
|
| Warning |
Row 275, Column 38: "Missing semicolon."
semi
|
| 275 |
const formData = new FormData() |
| 276 |
formData.append('reply', message); |
| Error |
Row 277, Column 48: "Insert `;`"
prettier/prettier
|
| Warning |
Row 277, Column 48: "Missing semicolon."
semi
|
| 277 |
formData.append('dispute_id', dispute_id) |
| 278 |
// console.log(JSON.stringify(formData)) |
| Error |
Row 279, Column 33: "'client' is not defined."
no-undef
|
| Error |
Row 279, Column 71: "Insert `;`"
prettier/prettier
|
| Warning |
Row 279, Column 71: "Missing semicolon."
semi
|
| 279 |
const sendMessage = await client.post('dispute-reply', formData) |
| 280 |
setMessages({ |
| 281 |
...sendMessage?.data, |
| 282 |
replies: { |
| 283 |
data: [...sendMessage?.data?.replies?.data?.reverse()], |
| Error |
Row 284, Column 49: "Insert `,`"
prettier/prettier
|
| Warning |
Row 284, Column 49: "Missing trailing comma."
comma-dangle
|
| 284 |
meta: sendMessage?.data?.replies?.meta |
| Error |
Row 285, Column 10: "Insert `,`"
prettier/prettier
|
| Warning |
Row 285, Column 10: "Missing trailing comma."
comma-dangle
|
| 285 |
} |
| Error |
Row 286, Column 9: "Insert `;`"
prettier/prettier
|
| Warning |
Row 286, Column 9: "Missing semicolon."
semi
|
| 286 |
}) |
| Error |
Row 287, Column 21: "Insert `;`"
prettier/prettier
|
| Warning |
Row 287, Column 21: "Missing semicolon."
semi
|
| 287 |
setMessage('') |
| Error |
Row 288, Column 38: "Replace `·animated:·true·` with `animated:·true`"
prettier/prettier
|
| 288 |
scrollRef.current.scrollToEnd({ animated: true }); |
| 289 |
} catch (error) { |
| 290 |
alertRef.current.alertWithType( |
| 291 |
'error', |
| 292 |
'Error', |
| 293 |
UI_API._returnError(error), |
| 294 |
); |
| 295 |
} |
| Error |
Row 296, Column 1: "Replace `⏎··};⏎` with `··};`"
prettier/prettier
|
| 296 |
|
| 297 |
}; |
| 298 |
|
| 299 |
|
| 300 |
const downloadFileHandler = async (item, index) => { |
| 301 |
try { |
| 302 |
if (Platform.OS === 'android') { |
| Warning |
Row 303, Column 15: "'granted' is assigned a value but never used."
no-unused-vars
|
| 303 |
const granted = await PermissionsAndroid.requestMultiple([ |
| 304 |
PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE, |
| 305 |
PermissionsAndroid.PERMISSIONS.READ_EXTERNAL_STORAGE, |
| 306 |
]); |
| 307 |
|
| Error |
Row 308, Column 60: "Replace `PermissionsAndroid.PERMISSIONS.READ_EXTERNAL_STORAGE` with `⏎··········PermissionsAndroid.PERMISSIONS.READ_EXTERNAL_STORAGE,⏎········`"
prettier/prettier
|
| 308 |
const readGranted = await PermissionsAndroid.check(PermissionsAndroid.PERMISSIONS.READ_EXTERNAL_STORAGE); |
| Error |
Row 309, Column 61: "Replace `PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE` with `⏎··········PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE,⏎········`"
prettier/prettier
|
| 309 |
const writeGranted = await PermissionsAndroid.check(PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE); |
| 310 |
if (!readGranted || !writeGranted) { |
| 311 |
throw new Error('Read and write permissions have not been granted'); |
| 312 |
} |
| 313 |
} |
| 314 |
const temp = item?.attachment?.split('/'); |
| 315 |
const name = temp[temp.length - 1]; |
| 316 |
const type = '.' + name.split('.')[1]; |
| 317 |
setSelectedFile(index); |
| 318 |
setDownState('Downloading...'); |
| 319 |
|
| 320 |
let PictureDir = fs.dirs.DownloadDir; |
| 321 |
let optionsA = { |
| 322 |
fileCache: true, |
| 323 |
addAndroidDownloads: { |
| 324 |
useDownloadManager: true, // setting it to true will use the device's native download manager and will be shown in the notification bar. |
| 325 |
notification: false, |
| Error |
Row 326, Column 16: "Replace `·PictureDir·+·'/file_'·+·Math.floor(new·Date().getTime()·+·new·Date().getSeconds()·/·2)·+` with `⏎············PictureDir·+⏎············'/file_'·+⏎············Math.floor(new·Date().getTime()·+·new·Date().getSeconds()·/·2)·+⏎···········`"
prettier/prettier
|
| 326 |
path: PictureDir + '/file_' + Math.floor(new Date().getTime() + new Date().getSeconds() / 2) + type, |
| 327 |
description: 'Downloading document.', |
| Error |
Row 328, Column 10: "Insert `,`"
prettier/prettier
|
| Warning |
Row 328, Column 10: "Missing trailing comma."
comma-dangle
|
| 328 |
} |
| 329 |
}; |
| 330 |
|
| Error |
Row 331, Column 46: "Insert `;`"
prettier/prettier
|
| Warning |
Row 331, Column 46: "Missing semicolon."
semi
|
| 331 |
const url = encodeURI(item?.attachment) |
| 332 |
config(optionsA) |
| Error |
Row 333, Column 16: "Replace `⏎··········'GET',⏎··········url,⏎········` with `'GET',·url`"
prettier/prettier
|
| 333 |
.fetch( |
| 334 |
'GET', |
| 335 |
url, |
| 336 |
) |
| 337 |
.then(() => { |
| 338 |
setDownState(''); |
| 339 |
alertRef.current.alertWithType( |
| 340 |
'success', |
| 341 |
'File Download', |
| 342 |
'File Download succesfully', |
| 343 |
); |
| Error |
Row 344, Column 11: "Insert `⏎········`"
prettier/prettier
|
| Warning |
Row 344, Column 18: "Expected error to be handled."
handle-callback-err
|
| 344 |
}).catch(err => { |
| 345 |
setDownState(''); |
| 346 |
alertRef.current.alertWithType( |
| 347 |
'error', |
| 348 |
'Error', |
| Error |
Row 349, Column 33: "'error' is not defined."
no-undef
|
| 349 |
UI_API._returnError(error), |
| 350 |
); |
| Error |
Row 351, Column 11: "Insert `;`"
prettier/prettier
|
| Warning |
Row 351, Column 11: "Missing semicolon."
semi
|
| 351 |
}) |
| 352 |
} catch (err) { |
| 353 |
alertRef.current.alertWithType( |
| 354 |
'error', |
| 355 |
'Error', |
| Error |
Row 356, Column 29: "'error' is not defined."
no-undef
|
| 356 |
UI_API._returnError(error), |
| 357 |
); |
| 358 |
} |
| Error |
Row 359, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 359, Column 4: "Missing semicolon."
semi
|
| 359 |
} |
| 360 |
const renderMessage = itemData => { |
| Error |
Row 361, Column 12: "Replace `·item,·index·` with `item,·index`"
prettier/prettier
|
| 361 |
const { item, index } = itemData; |
| 362 |
|
| 363 |
// {console.log("item:", item)} |
| 364 |
if (item?.attachment === null) { |
| 365 |
//this sections only used for chatting purpose |
| 366 |
return ( |
| 367 |
<View |
| 368 |
key={item.key} |
| Warning |
Row 369, Column 18: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| 369 |
style={{ |
| 370 |
width: '100%', |
| Error |
Row 371, Column 25: "Replace `·item?.reply_user_name·!==·profileData?.user_name·?·mvs(0)` with `⏎··············item?.reply_user_name·!==·profileData?.user_name⏎················?·mvs(0)⏎···············`"
prettier/prettier
|
| 371 |
paddingLeft: item?.reply_user_name !== profileData?.user_name ? mvs(0) : mvs(63), |
| Error |
Row 372, Column 26: "Replace `·item?.reply_user_name·!==·profileData?.user_name·?·mvs(63)` with `⏎··············item?.reply_user_name·!==·profileData?.user_name⏎················?·mvs(63)⏎···············`"
prettier/prettier
|
| 372 |
paddingRight: item?.reply_user_name !== profileData?.user_name ? mvs(63) : mvs(0), |
| 373 |
marginTop: mvs(15), |
| 374 |
// flexDirection: |
| 375 |
// item?.owner_id !== profileData?.id ? 'row' : 'row-reverse', |
| 376 |
}}> |
| 377 |
<View |
| Warning |
Row 378, Column 20: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| 378 |
style={{ |
| 379 |
width: '100%', |
| 380 |
backgroundColor: colors.primary, |
| 381 |
borderRadius: mvs(15), |
| 382 |
borderBottomRightRadius: |
| Error |
Row 383, Column 65: "Replace `·?·mvs(15)` with `⏎··················?·mvs(15)⏎·················`"
prettier/prettier
|
| 383 |
item?.reply_user_name === profileData?.user_name ? mvs(15) : mvs(0), |
| 384 |
borderBottomLeftRadius: |
| Error |
Row 385, Column 65: "Replace `·?·mvs(0)` with `⏎··················?·mvs(0)⏎·················`"
prettier/prettier
|
| 385 |
item?.reply_user_name === profileData?.user_name ? mvs(0) : mvs(15), |
| Error |
Row 386, Column 31: "Insert `,`"
prettier/prettier
|
| Warning |
Row 386, Column 31: "Missing trailing comma."
comma-dangle
|
| 386 |
padding: mvs(10) |
| 387 |
}}> |
| Error |
Row 388, Column 1: "Delete `··`"
prettier/prettier
|
| 388 |
<Bold |
| Error |
Row 389, Column 59: "Replace `item?.reply_user_name` with `⏎················item?.reply_user_name,⏎··············`"
prettier/prettier
|
| 389 |
label={`${TAKE_TO_CONSTANT.convertUpperCase(item?.reply_user_name)}`} |
| 390 |
style={{ |
| 391 |
fontSize: mvs(12), |
| Error |
Row 392, Column 36: "Insert `,`"
prettier/prettier
|
| Warning |
Row 392, Column 36: "Missing trailing comma."
comma-dangle
|
| 392 |
color: colors.white |
| 393 |
}} |
| 394 |
/> |
| 395 |
<Regular |
| 396 |
label={item?.reply} |
| 397 |
style={{ |
| 398 |
fontSize: mvs(12), |
| Error |
Row 399, Column 36: "Insert `,`"
prettier/prettier
|
| Warning |
Row 399, Column 36: "Missing trailing comma."
comma-dangle
|
| 399 |
color: colors.white |
| 400 |
}} |
| 401 |
/> |
| 402 |
</View> |
| 403 |
<View |
| Warning |
Row 404, Column 20: "Inline style: {
position: 'absolute',
left: 'item?.reply_user_name !== profileData?.user_name ? null : 0',
right: 'item?.reply_user_name !== profileData?.user_name ? 0 : null',
bottom: 0,
alignItems: 'center'
}"
react-native/no-inline-styles
|
| 404 |
style={{ |
| 405 |
position: 'absolute', |
| 406 |
left: item?.reply_user_name !== profileData?.user_name ? null : 0, |
| Error |
Row 407, Column 21: "Insert `⏎···············`"
prettier/prettier
|
| 407 |
right: item?.reply_user_name !== profileData?.user_name ? 0 : null, |
| 408 |
bottom: 0, |
| 409 |
//borderWidth : 1, |
| 410 |
alignItems: 'center', |
| 411 |
}}> |
| 412 |
<Seen /> |
| 413 |
<Regular |
| 414 |
label={TAKE_TO_CONSTANT.getConversationTime(item?.created_at)} |
| 415 |
style={{ |
| 416 |
fontSize: mvs(10), |
| 417 |
marginTop: mvs(10), |
| 418 |
}} |
| 419 |
/> |
| 420 |
</View> |
| 421 |
</View> |
| 422 |
); |
| 423 |
} else { |
| 424 |
return ( |
| 425 |
<TouchableOpacity |
| 426 |
onPress={() => downloadFileHandler(item, index)} |
| 427 |
disabled={downState !== ''} |
| Warning |
Row 428, Column 18: "Inline style: {
alignSelf: "item?.reply_user_name === profileData?.user_name ? 'flex-end' : 'flex-start'",
flexDirection: 'column',
alignItems: 'flex-start',
justifyContent: 'flex-start'
}"
react-native/no-inline-styles
|
| 428 |
style={{ |
| 429 |
...styles.playerMainContainer, |
| 430 |
alignSelf: |
| Error |
Row 431, Column 63: "Replace `·?·'flex-end'` with `⏎················?·'flex-end'⏎···············`"
prettier/prettier
|
| 431 |
item?.reply_user_name === profileData?.user_name ? 'flex-end' : 'flex-start', |
| 432 |
backgroundColor: |
| 433 |
item?.reply_user_name === profileData?.user_name |
| 434 |
? colors?.primary |
| 435 |
: colors.secondary, |
| 436 |
width: mvs(268), |
| Error |
Row 437, Column 1: "Replace `flexDirection:` with `············flexDirection:·`"
prettier/prettier
|
| 437 |
flexDirection:'column', |
| Error |
Row 438, Column 1: "Replace `alignItems:` with `············alignItems:·`"
prettier/prettier
|
| 438 |
alignItems:'flex-start', |
| 439 |
// height: mvs(52), |
| 440 |
justifyContent: 'flex-start', |
| 441 |
}}> |
| Warning |
Row 442, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 442, Column 11: "Delete `··⏎············`"
prettier/prettier
|
| 442 |
|
| 443 |
<Bold |
| Error |
Row 444, Column 1: "Replace `··············label={`${TAKE_TO_CONSTANT.convertUpperCase(item?.reply_user_name` with `············label={`${TAKE_TO_CONSTANT.convertUpperCase(⏎··············item?.reply_user_name,⏎············`"
prettier/prettier
|
| 444 |
label={`${TAKE_TO_CONSTANT.convertUpperCase(item?.reply_user_name)}`} |
| Error |
Row 445, Column 1: "Delete `··`"
prettier/prettier
|
| 445 |
style={{ |
| Error |
Row 446, Column 1: "Delete `··`"
prettier/prettier
|
| 446 |
fontSize: mvs(12), |
| Error |
Row 447, Column 15: "Replace `··color:·colors.white` with `color:·colors.white,`"
prettier/prettier
|
| Warning |
Row 447, Column 36: "Missing trailing comma."
comma-dangle
|
| 447 |
color: colors.white |
| Error |
Row 448, Column 13: "Delete `··`"
prettier/prettier
|
| 448 |
}} |
| Error |
Row 449, Column 1: "Replace `············` with `··········`"
prettier/prettier
|
| 449 |
/> |
| Error |
Row 450, Column 1: "Replace `·········prettier/prettier
|
| Warning |
Row 450, Column 23: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| 450 |
<View style={{marginVertical:mvs(5),flexDirection:'row'}}> |
| Error |
Row 451, Column 1: "Replace `·········` with `············`"
prettier/prettier
|
| 451 |
{item?.reply_user_name === profileData?.user_name ? ( |
| Error |
Row 452, Column 13: "Insert `··`"
prettier/prettier
|
| 452 |
<Doc1 height={mvs(20)} width={mvs(20)} /> |
| Error |
Row 453, Column 11: "Insert `··`"
prettier/prettier
|
| 453 |
) : ( |
| Error |
Row 454, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 454 |
<Doc2 height={mvs(20)} width={mvs(20)} /> |
| Error |
Row 455, Column 11: "Insert `··`"
prettier/prettier
|
| 455 |
)} |
| Error |
Row 456, Column 1: "Insert `··`"
prettier/prettier
|
| 456 |
<Regular |
| Error |
Row 457, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 457 |
label={ |
| Error |
Row 458, Column 1: "Replace `··············item?.attachment?.split('/')[item?.attachment?.split('/')?.length·-·1` with `················item?.attachment?.split('/')[⏎··················item?.attachment?.split('/')?.length·-·1⏎················`"
prettier/prettier
|
| 458 |
item?.attachment?.split('/')[item?.attachment?.split('/')?.length - 1] |
| Error |
Row 459, Column 1: "Insert `··`"
prettier/prettier
|
| 459 |
} |
| Error |
Row 460, Column 13: "Insert `··`"
prettier/prettier
|
| 460 |
style={{ |
| Error |
Row 461, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 461 |
color: |
| Error |
Row 462, Column 1: "Insert `··`"
prettier/prettier
|
| 462 |
item?.reply_user_name === profileData?.user_name |
| Error |
Row 463, Column 1: "Insert `··`"
prettier/prettier
|
| 463 |
? colors.white |
| Error |
Row 464, Column 19: "Insert `··`"
prettier/prettier
|
| 464 |
: colors.typeHeader, |
| Error |
Row 465, Column 15: "Replace `fontSize:·mvs(12),⏎` with `··fontSize:·mvs(12),`"
prettier/prettier
|
| 465 |
fontSize: mvs(12), |
| 466 |
|
| Error |
Row 467, Column 13: "Insert `··`"
prettier/prettier
|
| 467 |
}} |
| Error |
Row 468, Column 1: "Insert `··`"
prettier/prettier
|
| 468 |
/> |
| Error |
Row 469, Column 1: "Delete `·`"
prettier/prettier
|
| 469 |
</View> |
| 470 |
<View style={styles.timeContainer}> |
| 471 |
<Regular |
| 472 |
label={TAKE_TO_CONSTANT.getConversationTime(item?.created_at)} |
| 473 |
style={{ |
| 474 |
color: |
| 475 |
item?.reply_user_name === profileData?.user_name |
| 476 |
? colors.white |
| 477 |
: colors.typeHeader, |
| 478 |
fontSize: mvs(10), |
| 479 |
}} |
| 480 |
/> |
| Error |
Row 481, Column 30: "Replace `·marginLeft:·mvs(10)·` with `marginLeft:·mvs(10)`"
prettier/prettier
|
| 481 |
<Deliver style={{ marginLeft: mvs(10) }} /> |
| 482 |
</View> |
| 483 |
</TouchableOpacity> |
| 484 |
); |
| 485 |
} |
| 486 |
}; |
| 487 |
|
| Error |
Row 488, Column 1: "Delete `⏎⏎⏎`"
prettier/prettier
|
| 488 |
|
| 489 |
|
| 490 |
|
| 491 |
const openFilePiker = async (types, doc) => { |
| 492 |
try { |
| 493 |
const res = await DocumentPicker.pickSingle({ |
| 494 |
type: types, |
| 495 |
}); |
| 496 |
const data = { |
| 497 |
profile_image: { |
| 498 |
name: res.name, |
| 499 |
type: res.type, |
| 500 |
uri: res.uri, |
| 501 |
}, |
| 502 |
}; |
| 503 |
if (!doc) { |
| 504 |
sendDoc(data); |
| 505 |
} else { |
| 506 |
sendDoc(data); |
| 507 |
} |
| 508 |
} catch (err) { |
| 509 |
//Handling any exception (If any) |
| 510 |
if (DocumentPicker.isCancel(err)) { |
| 511 |
//If user canceled the document selection |
| 512 |
// console.log('Canceled from single doc picker'); |
| 513 |
} else { |
| 514 |
//For Unknown Error |
| 515 |
//console.log('Unknown Error: ' + JSON.stringify(err)); |
| 516 |
throw err; |
| 517 |
} |
| 518 |
} |
| 519 |
}; |
| 520 |
|
| 521 |
const onPressPlusOptions = title => { |
| 522 |
setPlusModal(false); |
| 523 |
if (title === 'Camera') { |
| Error |
Row 524, Column 20: "Replace `=>` with `·=>·`"
prettier/prettier
|
| 524 |
setTimeout(()=>{ |
| 525 |
openCamera(true); |
| Error |
Row 526, Column 9: "Replace `1000)` with `·1000);`"
prettier/prettier
|
| Warning |
Row 526, Column 14: "Missing semicolon."
semi
|
| 526 |
},1000) |
| 527 |
} else if (title === 'Photo & Video Library') { |
| 528 |
//openGallery(true); |
| 529 |
setTimeout(() => { |
| 530 |
openFilePiker( |
| 531 |
[DocumentPicker.types.images, DocumentPicker.types.video], |
| 532 |
false, |
| 533 |
); |
| Error |
Row 534, Column 15: "Insert `;`"
prettier/prettier
|
| Warning |
Row 534, Column 15: "Missing semicolon."
semi
|
| 534 |
}, 1000) |
| 535 |
} else if (title === 'Document') { |
| 536 |
setTimeout(() => { |
| 537 |
openFilePiker( |
| 538 |
[ |
| 539 |
DocumentPicker.types.pdf, |
| 540 |
DocumentPicker.types.zip, |
| 541 |
DocumentPicker.types.csv, |
| 542 |
DocumentPicker.types.doc, |
| 543 |
DocumentPicker.types.docx, |
| 544 |
DocumentPicker.types.ppt, |
| 545 |
DocumentPicker.types.pptx, |
| 546 |
DocumentPicker.types.xls, |
| 547 |
DocumentPicker.types.xlsx, |
| 548 |
], |
| 549 |
true, |
| 550 |
); |
| Error |
Row 551, Column 15: "Insert `;`"
prettier/prettier
|
| Warning |
Row 551, Column 15: "Missing semicolon."
semi
|
| 551 |
}, 1000) |
| 552 |
} |
| 553 |
}; |
| 554 |
|
| 555 |
if (loadingChat) { |
| 556 |
return ( |
| 557 |
<View style={styles.CONTAINER}> |
| 558 |
<Header |
| 559 |
{...props} |
| 560 |
title={profileData?.user_name} |
| 561 |
allowBackBtn |
| 562 |
userIcon={false} |
| 563 |
/> |
| Warning |
Row 564, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 564, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| 564 |
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> |
| 565 |
<ActivityIndicator size="small" color={colors.primary} /> |
| 566 |
</View> |
| 567 |
</View> |
| 568 |
); |
| Warning |
Row 569, Column 5: "Expected { after 'else'."
curly
|
| 569 |
} else |
| 570 |
return ( |
| 571 |
<KeyboardAvoidingView |
| Error |
Row 572, Column 35: "Replace `"ios"·?·"padding"·:·"height"` with `'ios'·?·'padding'·:·'height'`"
prettier/prettier
|
| Warning |
Row 572, Column 35: "Strings must use singlequote."
quotes
|
| Warning |
Row 572, Column 43: "Strings must use singlequote."
quotes
|
| Warning |
Row 572, Column 55: "Strings must use singlequote."
quotes
|
| 572 |
behavior={Platform.OS === "ios" ? "padding" : "height"} |
| 573 |
style={styles.CONTAINER}> |
| 574 |
<Header |
| 575 |
{...props} |
| 576 |
title={profileData?.user_name} |
| 577 |
allowBackBtn |
| 578 |
userIcon={false} |
| Error |
Row 579, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 579 |
// callIcons |
| 580 |
/> |
| 581 |
|
| Error |
Row 582, Column 35: "Delete `⏎`"
prettier/prettier
|
| 582 |
<View style={styles.BODY}> |
| 583 |
|
| 584 |
<ScrollView |
| 585 |
ref={scrollRef} |
| 586 |
onContentSizeChange={() => |
| Error |
Row 587, Column 46: "Replace `·animated:·true·` with `animated:·true`"
prettier/prettier
|
| 587 |
scrollRef.current.scrollToEnd({ animated: true }) |
| 588 |
} |
| 589 |
contentContainerStyle={{ |
| 590 |
paddingBottom: mvs(50), |
| 591 |
paddingHorizontal: mvs(20), |
| 592 |
//borderWidth:1, |
| 593 |
//flex:1, |
| 594 |
//justifyContent : 'flex-end' |
| 595 |
}}> |
| 596 |
{console.log(messages)} |
| 597 |
{messages?.replies?.data?.map((element, index) => |
| Error |
Row 598, Column 30: "Replace `·item:·element,·index:·index·` with `item:·element,·index:·index`"
prettier/prettier
|
| 598 |
renderMessage({ item: element, index: index }), |
| Error |
Row 599, Column 15: "Delete `⏎`"
prettier/prettier
|
| 599 |
)} |
| 600 |
|
| 601 |
</ScrollView> |
| 602 |
|
| 603 |
<InputToolbar |
| 604 |
onChangeText={txt => { |
| 605 |
setMessage(txt); |
| 606 |
}} |
| Error |
Row 607, Column 1: "Delete `⏎`"
prettier/prettier
|
| 607 |
|
| 608 |
value={message} |
| 609 |
send={true} |
| 610 |
onPlus={() => setPlusModal(true)} |
| 611 |
onSendMessage={() => message?.trim() && onSendMessage()} |
| Error |
Row 612, Column 28: "'sendAudio' is not defined."
no-undef
|
| 612 |
onStop={res => sendAudio(res)} |
| 613 |
onFocus={() => { |
| 614 |
// console.log('onFocus'); |
| Error |
Row 615, Column 46: "Replace `·animated:·true·` with `animated:·true`"
prettier/prettier
|
| 615 |
scrollRef.current.scrollToEnd({ animated: true }); |
| 616 |
}} |
| 617 |
/> |
| 618 |
</View> |
| 619 |
|
| Error |
Row 620, Column 1: "Delete `⏎⏎⏎⏎`"
prettier/prettier
|
| 620 |
|
| 621 |
|
| 622 |
|
| 623 |
|
| 624 |
<PlusOptionsModal |
| Error |
Row 625, Column 17: "Delete `⏎············`"
prettier/prettier
|
| 625 |
list={ |
| 626 |
[ |
| Error |
Row 627, Column 1: "Replace `··············{·icon:·'Camera',·title:·'Camera'·` with `············{icon:·'Camera',·title:·'Camera'`"
prettier/prettier
|
| 627 |
{ icon: 'Camera', title: 'Camera' }, |
| Error |
Row 628, Column 1: "Replace `··············{·icon:·'Gallery',·title:·'Photo·&·Video·Library'·` with `············{icon:·'Gallery',·title:·'Photo·&·Video·Library'`"
prettier/prettier
|
| 628 |
{ icon: 'Gallery', title: 'Photo & Video Library' }, |
| Error |
Row 629, Column 13: "Replace `··{·icon:·'doc',·title:·'Document'·` with `{icon:·'doc',·title:·'Document'`"
prettier/prettier
|
| 629 |
{ icon: 'doc', title: 'Document' }, |
| Error |
Row 630, Column 1: "Replace `············]⏎··········` with `··········]`"
prettier/prettier
|
| 630 |
] |
| 631 |
} |
| 632 |
onPress={onPressPlusOptions} |
| 633 |
visible={plusModal} |
| 634 |
onClose={() => setPlusModal(false)} |
| 635 |
/> |
| Error |
Row 636, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}·inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| 636 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 637 |
|
| 638 |
<ImagePicker |
| 639 |
visible={openPicker} |
| 640 |
showDelete={false} |
| 641 |
onClose={setOpenPicker} |
| 642 |
onSubmit={onImageModalSelection} |
| 643 |
/> |
| 644 |
|
| 645 |
<ImageView |
| 646 |
images={images} |
| 647 |
imageIndex={0} |
| 648 |
visible={imageViewer} |
| 649 |
onRequestClose={() => setImageViewer(false)} |
| 650 |
/> |
| Error |
Row 651, Column 1: "Delete `⏎⏎`"
prettier/prettier
|
| 651 |
|
| 652 |
|
| 653 |
</KeyboardAvoidingView> |
| 654 |
); |
| 655 |
}; |
| 656 |
const mapStateToProps = state => { |
| 657 |
return { |
| 658 |
active_chat: state.inbox.active_chat, |
| 659 |
profileData: state.auth.userInfo?.profile || {}, |
| 660 |
}; |
| 661 |
}; |
| 662 |
const mapDispatchToProps = dispatch => ({ |
| 663 |
fetchActiveChat: thread_id => |
| Error |
Row 664, Column 57: "Insert `,`"
prettier/prettier
|
| Warning |
Row 664, Column 57: "Missing trailing comma."
comma-dangle
|
| 664 |
dispatch(TAKE_TO_ACTIONS.fetchActiveChat(thread_id)) |
| 665 |
}); |
| 666 |
export default connect(mapStateToProps, mapDispatchToProps)(ChatDispute); |
| 667 |
const styles = StyleSheet.create({ |
| 668 |
CONTAINER: { |
| 669 |
flex: 1, |
| 670 |
backgroundColor: colors.white, |
| 671 |
}, |
| 672 |
BODY: { |
| 673 |
backgroundColor: colors.white, |
| 674 |
flex: 1, |
| 675 |
// justifyContent:'flex-end', |
| 676 |
// backgroundColor : 'red' |
| 677 |
//justifyContent:'space-between' |
| 678 |
}, |
| 679 |
BUTTON_CONTAINER: { |
| 680 |
paddingTop: mvs(30), |
| 681 |
}, |
| 682 |
ROW: { |
| 683 |
flexDirection: 'row', |
| 684 |
justifyContent: 'space-between', |
| 685 |
alignItems: 'center', |
| 686 |
}, |
| 687 |
playerMainContainer: { |
| 688 |
// height : mvs(52), |
| 689 |
maxWidth: mvs(268), |
| 690 |
//width : mvs(270), |
| 691 |
borderRadius: mvs(10), |
| 692 |
backgroundColor: colors.primary, |
| 693 |
marginTop: mvs(15), |
| 694 |
paddingHorizontal: mvs(10), |
| 695 |
paddingVertical: mvs(11), |
| 696 |
flexDirection: 'row', |
| 697 |
alignItems: 'center', |
| 698 |
}, |
| 699 |
timeContainer: { |
| 700 |
//height: mvs(20), |
| 701 |
//width: mvs(50), |
| 702 |
//borderWidth:1, |
| 703 |
position: 'absolute', |
| 704 |
bottom: mvs(7), |
| 705 |
right: mvs(10), |
| 706 |
flexDirection: 'row', |
| 707 |
alignItems: 'center', |
| 708 |
}, |
| 709 |
}); |
| 710 |
|
|
|
|
/src/screens/chat/chat.js
|
477 problems (357 errors, 120 warnings)
|
| Severity |
Rule |
| Error |
Row 7, Column 9: "Replace `·useIsFocused·` with `useIsFocused`"
prettier/prettier
|
| Warning |
Row 18, Column 3: "'BackHandler' is defined but never used."
no-unused-vars
|
| Warning |
Row 19, Column 3: "'Alert' is defined but never used."
no-unused-vars
|
| Error |
Row 25, Column 9: "Replace `·showLocation·` with `showLocation`"
prettier/prettier
|
| Error |
Row 31, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 34, Column 9: "Replace `·Camera·` with `Camera`"
prettier/prettier
|
| Error |
Row 51, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 53, Column 8: "'AsyncStorage' is defined but never used."
no-unused-vars
|
| Warning |
Row 54, Column 8: "'Pusher' is defined but never used."
no-unused-vars
|
| Error |
Row 55, Column 9: "Replace `·connectEcho·` with `connectEcho`"
prettier/prettier
|
| Warning |
Row 55, Column 10: "'connectEcho' is defined but never used."
no-unused-vars
|
| Warning |
Row 56, Column 8: "'monent' is defined but never used."
no-unused-vars
|
| Error |
Row 57, Column 9: "Replace `·forEach·` with `forEach`"
prettier/prettier
|
| Warning |
Row 57, Column 10: "'forEach' is defined but never used."
no-unused-vars
|
| Error |
Row 61, Column 27: "Replace `·onPress,·title,·price·` with `onPress,·title,·price`"
prettier/prettier
|
| Error |
Row 65, Column 19: "Replace `·color:·colors.headerTitle·` with `color:·colors.headerTitle`"
prettier/prettier
|
| Warning |
Row 67, Column 14: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 67, Column 15: "Replace `·width:·'49%',·height:·mvs(52),·backgroundColor:·colors.white·` with `width:·'49%',·height:·mvs(52),·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 72, Column 14: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 72, Column 15: "Replace `·width:·'49%',·height:·mvs(52),·backgroundColor:·colors.green·` with `width:·'49%',·height:·mvs(52),·backgroundColor:·colors.green`"
prettier/prettier
|
| Warning |
Row 90, Column 14: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 90, Column 15: "Replace `·width:·'49%',·height:·mvs(52),·backgroundColor:·colors.green·` with `width:·'49%',·height:·mvs(52),·backgroundColor:·colors.green`"
prettier/prettier
|
| Warning |
Row 98, Column 14: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 98, Column 15: "Replace `·width:·'49%',·height:·mvs(52),·backgroundColor:·colors.disputes·` with `width:·'49%',·height:·mvs(52),·backgroundColor:·colors.disputes`"
prettier/prettier
|
| Error |
Row 99, Column 19: "Replace `·color:·colors.headerTitle·` with `color:·colors.headerTitle`"
prettier/prettier
|
| Warning |
Row 111, Column 54: "Inline style: { alignItems: 'flex-end' }"
react-native/no-inline-styles
|
| Error |
Row 111, Column 55: "Replace `·alignItems:·'flex-end'·` with `alignItems:·'flex-end'`"
prettier/prettier
|
| Warning |
Row 114, Column 14: "Inline style: {
borderWidth: 1,
justifyContent: 'center',
alignItems: 'center',
overflow: 'hidden'
}"
react-native/no-inline-styles
|
| Error |
Row 127, Column 25: "Replace `·uri·}}·style={{·height:·'100%',·width:·'100%'·` with `uri}}·style={{height:·'100%',·width:·'100%'`"
prettier/prettier
|
| Warning |
Row 127, Column 40: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| Warning |
Row 138, Column 14: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 138, Column 15: "Replace `·width:·'49%',·height:·mvs(52),·backgroundColor:·colors.green·` with `width:·'49%',·height:·mvs(52),·backgroundColor:·colors.green`"
prettier/prettier
|
| Warning |
Row 150, Column 54: "Inline style: { alignItems: 'flex-end' }"
react-native/no-inline-styles
|
| Error |
Row 150, Column 55: "Replace `·alignItems:·'flex-end'·` with `alignItems:·'flex-end'`"
prettier/prettier
|
| Warning |
Row 153, Column 14: "Inline style: {
borderWidth: 1,
justifyContent: 'center',
alignItems: 'center',
overflow: 'hidden'
}"
react-native/no-inline-styles
|
| Error |
Row 166, Column 25: "Replace `·uri·}}·style={{·height:·'100%',·width:·'100%'·` with `uri}}·style={{height:·'100%',·width:·'100%'`"
prettier/prettier
|
| Warning |
Row 166, Column 40: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| Warning |
Row 177, Column 14: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 177, Column 15: "Replace `·width:·'49%',·height:·mvs(52),·backgroundColor:·colors.green·` with `width:·'49%',·height:·mvs(52),·backgroundColor:·colors.green`"
prettier/prettier
|
| Error |
Row 183, Column 1: "Replace `⏎··let·isFocus·=·useIsFocused()` with `··let·isFocus·=·useIsFocused();`"
prettier/prettier
|
| Warning |
Row 184, Column 31: "Missing semicolon."
semi
|
| Warning |
Row 186, Column 22: "["Play1"] is better written in dot notation."
dot-notation
|
| Warning |
Row 187, Column 22: "["Play2"] is better written in dot notation."
dot-notation
|
| Warning |
Row 188, Column 23: "["Pause1"] is better written in dot notation."
dot-notation
|
| Warning |
Row 189, Column 23: "["Pause2"] is better written in dot notation."
dot-notation
|
| Warning |
Row 190, Column 21: "["doc1"] is better written in dot notation."
dot-notation
|
| Warning |
Row 191, Column 21: "["doc2"] is better written in dot notation."
dot-notation
|
| Warning |
Row 192, Column 21: "["seened"] is better written in dot notation."
dot-notation
|
| Warning |
Row 193, Column 26: "["seened_white"] is better written in dot notation."
dot-notation
|
| Warning |
Row 194, Column 24: "["delivered"] is better written in dot notation."
dot-notation
|
| Warning |
Row 195, Column 9: "'Sent' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 195, Column 21: "["sent"] is better written in dot notation."
dot-notation
|
| Error |
Row 197, Column 10: "Replace `·config,·fs·` with `config,·fs`"
prettier/prettier
|
| Warning |
Row 201, Column 9: "'playbackStack' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 221, Column 5: "'order_step' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 222, Column 11: "'messageOnwerType' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 223, Column 5: "'order_by' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 230, Column 50: "Replace `'messenger.thread.'+·thread_id` with `⏎····'messenger.thread.'·+·thread_id,⏎··`"
prettier/prettier
|
| Warning |
Row 230, Column 69: "Operator '+' must be spaced."
space-infix-ops
|
| Warning |
Row 236, Column 10: "'sendImageLoading' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 243, Column 10: "'songs' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 243, Column 17: "'setSongs' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 246, Column 10: "'modal' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 246, Column 17: "'setModal' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 250, Column 10: "'statusModal' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 250, Column 23: "'setStatusModal' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 252, Column 10: "'deliveryAddressRequestedModal' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 252, Column 41: "'setDeliveryAddressRequestedModal' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 258, Column 10: "'file' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 258, Column 16: "'setFile' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 262, Column 10: "'downloading' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 262, Column 23: "'setDownloading' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 263, Column 15: "'setMin' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 277, Column 6: "React Hook useEffect has missing dependencies: 'playing' and 'progress.duration'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 279, Column 1: "Delete `⏎⏎`"
prettier/prettier
|
| Error |
Row 282, Column 36: "Replace `>0&&` with `·>·0·&&⏎·····`"
prettier/prettier
|
| Warning |
Row 282, Column 36: "Operator '>' must be spaced."
space-infix-ops
|
| Warning |
Row 282, Column 38: "Operator '&&' must be spaced."
space-infix-ops
|
| Error |
Row 283, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 284, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 285, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 286, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 287, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 288, Column 5: "Insert `··`"
prettier/prettier
|
| Error |
Row 289, Column 1: "Insert `·`"
prettier/prettier
|
| Error |
Row 290, Column 6: "React Hook useEffect has missing dependencies: 'profileData?.id', 'thread_id', and 'updateInboxList'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 290, Column 21: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 295, Column 29: "'messangerClient' is not defined."
no-undef
|
| Error |
Row 304, Column 6: "React Hook useEffect has missing dependencies: 'profileData?.id' and 'thread_id'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 306, Column 1: "Replace `⏎··useEffect(()=>` with `··useEffect(()·=>·`"
prettier/prettier
|
| Error |
Row 308, Column 46: "Replace `(data)` with `·(data)·`"
prettier/prettier
|
| Error |
Row 309, Column 20: "Replace `=>` with `·=>·`"
prettier/prettier
|
| Error |
Row 310, Column 28: "Insert `;`"
prettier/prettier
|
| Warning |
Row 310, Column 28: "Missing semicolon."
semi
|
| Error |
Row 311, Column 9: "Replace `1000)` with `·1000);`"
prettier/prettier
|
| Warning |
Row 311, Column 14: "Missing semicolon."
semi
|
| Error |
Row 312, Column 19: "Replace `"READ:",·data)⏎······` with `'READ:',·data);`"
prettier/prettier
|
| Warning |
Row 312, Column 19: "Strings must use singlequote."
quotes
|
| Warning |
Row 312, Column 33: "Missing semicolon."
semi
|
| Warning |
Row 313, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 315, Column 5: "Replace `[])` with `·[]);`"
prettier/prettier
|
| Error |
Row 315, Column 5: "React Hook useEffect has missing dependencies: 'channel' and 'updateMessage'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 315, Column 8: "Missing semicolon."
semi
|
| Warning |
Row 323, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 323, Column 1: "Delete `········`"
prettier/prettier
|
| Warning |
Row 358, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 358, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 359, Column 11: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 363, Column 5: "'markReadChat' is not defined."
no-undef
|
| Error |
Row 363, Column 19: "Insert `;`"
prettier/prettier
|
| Warning |
Row 363, Column 19: "Missing semicolon."
semi
|
| Error |
Row 364, Column 31: "Delete `⏎⏎⏎·`"
prettier/prettier
|
| Warning |
Row 367, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 391, Column 15: "Insert `·`"
prettier/prettier
|
| Warning |
Row 392, Column 5: "Expected space(s) after "if"."
keyword-spacing
|
| Error |
Row 392, Column 7: "Replace `(Object.keys(isRead).length·>·0)` with `·(Object.keys(isRead).length·>·0)·`"
prettier/prettier
|
| Error |
Row 393, Column 6: "Insert `·`"
prettier/prettier
|
| Error |
Row 394, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 395, Column 1: "Replace `······` with `········`"
prettier/prettier
|
| Error |
Row 396, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 397, Column 1: "Replace `······` with `········`"
prettier/prettier
|
| Error |
Row 398, Column 5: "Insert `··`"
prettier/prettier
|
| Error |
Row 399, Column 1: "Replace `····setIsRead({})` with `······setIsRead({});`"
prettier/prettier
|
| Warning |
Row 399, Column 18: "Missing semicolon."
semi
|
| Error |
Row 400, Column 4: "Insert `·`"
prettier/prettier
|
| Error |
Row 401, Column 5: "Replace `[isRead])⏎⏎` with `·[isRead]);`"
prettier/prettier
|
| Error |
Row 401, Column 5: "React Hook useEffect has a missing dependency: 'channel'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 401, Column 14: "Missing semicolon."
semi
|
| Error |
Row 406, Column 65: "Insert `;`"
prettier/prettier
|
| Warning |
Row 406, Column 65: "Missing semicolon."
semi
|
| Warning |
Row 408, Column 27: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 409, Column 9: "Replace `·setIsRead(data)` with `setIsRead(data);`"
prettier/prettier
|
| Warning |
Row 409, Column 25: "Missing semicolon."
semi
|
| Error |
Row 422, Column 44: "Delete `·`"
prettier/prettier
|
| Error |
Row 424, Column 6: "React Hook useEffect has missing dependencies: 'anotherEcho?.newChannel', 'fetchActiveChat', 'newMessageArrived', 'profileData?.id', 'thread_id', and 'updateInboxList'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 424, Column 17: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 427, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 441, Column 10: "Replace `·type_verbose:·'IMAGE_MESSAGE',·body:·'',·owner_id:·profileData?.id,·unread:·true` with `⏎··········type_verbose:·'IMAGE_MESSAGE',⏎··········body:·'',⏎··········owner_id:·profileData?.id,⏎··········unread:·true,⏎·······`"
prettier/prettier
|
| Error |
Row 443, Column 13: "'messangerClient' is not defined."
no-undef
|
| Error |
Row 468, Column 10: "Replace `·type_verbose:·'VIDEO_MESSAGE',·body:·'',·owner_id:·profileData?.id,·unread:·true` with `⏎··········type_verbose:·'VIDEO_MESSAGE',⏎··········body:·'',⏎··········owner_id:·profileData?.id,⏎··········unread:·true,⏎·······`"
prettier/prettier
|
| Error |
Row 470, Column 13: "'messangerClient' is not defined."
no-undef
|
| Error |
Row 495, Column 10: "Replace `·type_verbose:·'DOCUMENT_MESSAGE',·body:·'',·owner_id:·profileData?.id,·unread:·true` with `⏎··········type_verbose:·'DOCUMENT_MESSAGE',⏎··········body:·'',⏎··········owner_id:·profileData?.id,⏎··········unread:·true,⏎·······`"
prettier/prettier
|
| Error |
Row 497, Column 13: "'messangerClient' is not defined."
no-undef
|
| Error |
Row 521, Column 10: "Replace `·type_verbose:·'AUDIO_MESSAGE',·audio:·'',·owner_id:·profileData?.id,·unread:·true` with `⏎··········type_verbose:·'AUDIO_MESSAGE',⏎··········audio:·'',⏎··········owner_id:·profileData?.id,⏎··········unread:·true,⏎·······`"
prettier/prettier
|
| Error |
Row 523, Column 13: "'messangerClient' is not defined."
no-undef
|
| Warning |
Row 542, Column 11: "'type' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 545, Column 13: "Strings must use singlequote."
quotes
|
| Error |
Row 558, Column 10: "Replace `·type_verbose:·'AUDIO_MESSAGE',·audio:·'',·owner_id:·profileData?.id,·unread:·true` with `⏎··········type_verbose:·'AUDIO_MESSAGE',⏎··········audio:·'',⏎··········owner_id:·profileData?.id,⏎··········unread:·true,⏎·······`"
prettier/prettier
|
| Error |
Row 560, Column 13: "'messangerClient' is not defined."
no-undef
|
| Error |
Row 599, Column 11: "'messangerClient' is not defined."
no-undef
|
| Error |
Row 601, Column 8: "Replace `·message:·message,·temporary_id:·'123-456-789'·` with `message:·message,·temporary_id:·'123-456-789'`"
prettier/prettier
|
| Error |
Row 603, Column 42: "Insert `;`"
prettier/prettier
|
| Warning |
Row 603, Column 42: "Missing semicolon."
semi
|
| Error |
Row 611, Column 6: "React Hook React.useEffect has a missing dependency: 'fetchChatMessages'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 617, Column 39: "Strings must use singlequote."
quotes
|
| Warning |
Row 617, Column 52: "Strings must use singlequote."
quotes
|
| Error |
Row 625, Column 10: "Replace `·type_verbose:·'MAP',·body:·'',·owner_id:·profileData?.id,·unread:·true` with `⏎··········type_verbose:·'MAP',⏎··········body:·'',⏎··········owner_id:·profileData?.id,⏎··········unread:·true,⏎·······`"
prettier/prettier
|
| Error |
Row 627, Column 13: "'messangerClient' is not defined."
no-undef
|
| Warning |
Row 692, Column 42: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 699, Column 13: "'client' is not defined."
no-undef
|
| Error |
Row 724, Column 13: "'client' is not defined."
no-undef
|
| Warning |
Row 724, Column 25: "Strings must use singlequote."
quotes
|
| Warning |
Row 817, Column 11: "'type' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 843, Column 26: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 845, Column 20: "Replace `·interval:·250·` with `interval:·250`"
prettier/prettier
|
| Warning |
Row 864, Column 19: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 871, Column 12: "Replace `·item,·index·` with `item,·index`"
prettier/prettier
|
| Warning |
Row 876, Column 18: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Warning |
Row 883, Column 20: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Warning |
Row 886, Column 30: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 888, Column 34: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 889, Column 19: "Delete `··`"
prettier/prettier
|
| Error |
Row 890, Column 1: "Replace `····················` with `··················`"
prettier/prettier
|
| Error |
Row 891, Column 19: "Delete `····`"
prettier/prettier
|
| Error |
Row 892, Column 1: "Replace `······················` with `··················`"
prettier/prettier
|
| Warning |
Row 906, Column 32: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 908, Column 36: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 909, Column 21: "Delete `··`"
prettier/prettier
|
| Error |
Row 910, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 911, Column 21: "Delete `····`"
prettier/prettier
|
| Error |
Row 912, Column 1: "Replace `························` with `····················`"
prettier/prettier
|
| Warning |
Row 917, Column 20: "Inline style: {
position: 'absolute',
left: 'item?.owner_id !== profileData?.id ? null : 0',
right: 'item?.owner_id !== profileData?.id ? 0 : null',
bottom: 0,
alignItems: 'center'
}"
react-native/no-inline-styles
|
| Warning |
Row 953, Column 18: "Inline style: {
flexDirection: "item?.owner_id === profileData?.id ? 'row' : 'row-reverse'"
}"
react-native/no-inline-styles
|
| Warning |
Row 974, Column 18: "Inline style: {
flexDirection: "item?.owner_id === profileData?.id ? 'row' : 'row-reverse'",
borderColor: 'red'
}"
react-native/no-inline-styles
|
| Warning |
Row 982, Column 23: "Inline style: { paddingVertical: 0, paddingHorizontal: 0 }"
react-native/no-inline-styles
|
| Warning |
Row 1001, Column 18: "Inline style: {
alignSelf: "item?.owner_id === profileData?.id ? 'flex-end' : 'flex-start'",
justifyContent: "item?.audio === '' ? 'center' : null"
}"
react-native/no-inline-styles
|
| Warning |
Row 1021, Column 28: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 1023, Column 32: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 1026, Column 21: "Delete `··`"
prettier/prettier
|
| Error |
Row 1027, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 1029, Column 30: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 1030, Column 17: "Delete `··`"
prettier/prettier
|
| Error |
Row 1031, Column 1: "Replace `··················` with `················`"
prettier/prettier
|
| Error |
Row 1032, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 1033, Column 1: "Replace `····················` with `················`"
prettier/prettier
|
| Error |
Row 1057, Column 34: "Replace `·marginLeft:·mvs(10)·` with `marginLeft:·mvs(10)`"
prettier/prettier
|
| Error |
Row 1059, Column 36: "Replace `·marginLeft:·mvs(10)·` with `marginLeft:·mvs(10)`"
prettier/prettier
|
| Error |
Row 1076, Column 1: "Replace `··············` with `············`"
prettier/prettier
|
| Error |
Row 1083, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 1101, Column 18: "Inline style: {
flexDirection: "item?.owner_id === profileData?.id ? 'row' : 'row-reverse'"
}"
react-native/no-inline-styles
|
| Error |
Row 1121, Column 13: "Delete `··`"
prettier/prettier
|
| Warning |
Row 1126, Column 18: "Inline style: {
flexDirection: "item?.owner_id === profileData?.id ? 'row' : 'row-reverse'"
}"
react-native/no-inline-styles
|
| Error |
Row 1134, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 1185, Column 18: "Inline style: {
flexDirection: "item?.owner_id === profileData?.id ? 'row' : 'row-reverse'"
}"
react-native/no-inline-styles
|
| Warning |
Row 1196, Column 38: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 1225, Column 18: "Inline style: {
flexDirection: "item?.owner_id === profileData?.id ? 'row' : 'row-reverse'"
}"
react-native/no-inline-styles
|
| Warning |
Row 1235, Column 27: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 1245, Column 27: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 1246, Column 75: "Delete `·`"
prettier/prettier
|
| Warning |
Row 1247, Column 27: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 1255, Column 27: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 1279, Column 18: "Inline style: {
flexDirection: "item?.owner_id === profileData?.id ? 'row' : 'row-reverse'"
}"
react-native/no-inline-styles
|
| Warning |
Row 1289, Column 35: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 1292, Column 18: "Inline style: {
alignSelf: "item?.owner_id === profileData?.id ? 'flex-end' : 'flex-start'",
width: "item?.audio === '' ? mvs(268) : null",
justifyContent: "item?.audio === '' ? 'center' : null"
}"
react-native/no-inline-styles
|
| Error |
Row 1325, Column 31: "Replace `·marginLeft:·mvs(20)·` with `marginLeft:·mvs(20)`"
prettier/prettier
|
| Error |
Row 1333, Column 31: "Replace `·marginLeft:·mvs(20)·` with `marginLeft:·mvs(20)`"
prettier/prettier
|
| Error |
Row 1344, Column 29: "Replace `·marginLeft:·mvs(20)·` with `marginLeft:·mvs(20)`"
prettier/prettier
|
| Error |
Row 1354, Column 29: "Replace `·marginLeft:·mvs(20)·` with `marginLeft:·mvs(20)`"
prettier/prettier
|
| Warning |
Row 1370, Column 27: "Strings must use singlequote."
quotes
|
| Error |
Row 1376, Column 27: "Replace `·marginLeft:·mvs(20)·` with `marginLeft:·mvs(20)`"
prettier/prettier
|
| Error |
Row 1393, Column 27: "Replace `·marginLeft:·mvs(20)·` with `marginLeft:·mvs(20)`"
prettier/prettier
|
| Warning |
Row 1397, Column 24: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 1397, Column 25: "Replace `·flex:·1,·marginLeft:·mvs(18)·` with `flex:·1,·marginLeft:·mvs(18)`"
prettier/prettier
|
| Warning |
Row 1398, Column 33: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 1399, Column 29: "Inline style: { height: 15, width: 15 }"
react-native/no-inline-styles
|
| Error |
Row 1399, Column 30: "Replace `·height:·15,·width:·15·` with `height:·15,·width:·15`"
prettier/prettier
|
| Error |
Row 1436, Column 38: "Replace `·marginLeft:·mvs(10)·` with `marginLeft:·mvs(10)`"
prettier/prettier
|
| Error |
Row 1438, Column 40: "Replace `·marginLeft:·mvs(10)·` with `marginLeft:·mvs(10)`"
prettier/prettier
|
| Warning |
Row 1447, Column 27: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 1462, Column 19: "Replace `·marginBottom:·mvs(40),·marginTop:·mvs(15)·` with `marginBottom:·mvs(40),·marginTop:·mvs(15)`"
prettier/prettier
|
| Warning |
Row 1478, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 1478, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| Warning |
Row 1483, Column 5: "Expected { after 'else'."
curly
|
| Error |
Row 1504, Column 46: "Replace `·animated:·true·` with `animated:·true`"
prettier/prettier
|
| Error |
Row 1511, Column 30: "Replace `·item:·element,·index:·index·` with `item:·element,·index:·index`"
prettier/prettier
|
| Error |
Row 1515, Column 15: "Delete `··`"
prettier/prettier
|
| Error |
Row 1516, Column 1: "Replace `··················` with `················`"
prettier/prettier
|
| Error |
Row 1517, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1518, Column 1: "Replace `····················` with `··················`"
prettier/prettier
|
| Warning |
Row 1518, Column 53: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 1519, Column 21: "Delete `··`"
prettier/prettier
|
| Error |
Row 1520, Column 1: "Replace `························` with `······················`"
prettier/prettier
|
| Error |
Row 1521, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1522, Column 1: "Replace `··························` with `························`"
prettier/prettier
|
| Error |
Row 1523, Column 25: "Delete `··`"
prettier/prettier
|
| Error |
Row 1524, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| Error |
Row 1525, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1526, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| Error |
Row 1527, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1528, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| Error |
Row 1529, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1530, Column 29: "Delete `··`"
prettier/prettier
|
| Error |
Row 1531, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1532, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1533, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1534, Column 29: "Delete `··`"
prettier/prettier
|
| Error |
Row 1534, Column 37: "'messangerClient' is not defined."
no-undef
|
| Error |
Row 1535, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1536, Column 31: "Delete `··`"
prettier/prettier
|
| Error |
Row 1537, Column 29: "Delete `··`"
prettier/prettier
|
| Error |
Row 1538, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1539, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1540, Column 29: "Delete `··`"
prettier/prettier
|
| Error |
Row 1541, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1542, Column 29: "Delete `··`"
prettier/prettier
|
| Error |
Row 1543, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1544, Column 31: "Delete `··`"
prettier/prettier
|
| Error |
Row 1545, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1546, Column 31: "Delete `··`"
prettier/prettier
|
| Error |
Row 1547, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1548, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1549, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1550, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1551, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1552, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1553, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1554, Column 29: "Delete `··`"
prettier/prettier
|
| Error |
Row 1555, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1556, Column 23: "Delete `··`"
prettier/prettier
|
| Error |
Row 1557, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1558, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 1558, Column 53: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 1559, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1560, Column 23: "Delete `··`"
prettier/prettier
|
| Error |
Row 1561, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1562, Column 25: "Delete `··`"
prettier/prettier
|
| Error |
Row 1563, Column 1: "Replace `··························` with `························`"
prettier/prettier
|
| Error |
Row 1564, Column 1: "Replace `··························onPressImage={()·=>·{·` with `························onPressImage={()·=>·{`"
prettier/prettier
|
| Error |
Row 1565, Column 23: "Delete `··`"
prettier/prettier
|
| Error |
Row 1566, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1567, Column 19: "Delete `··`"
prettier/prettier
|
| Error |
Row 1569, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1570, Column 19: "Delete `··`"
prettier/prettier
|
| Warning |
Row 1570, Column 53: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 1571, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1572, Column 23: "Delete `··`"
prettier/prettier
|
| Error |
Row 1573, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1574, Column 25: "Delete `··`"
prettier/prettier
|
| Error |
Row 1575, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1576, Column 25: "Replace `··onPressImage={()·=>·{·` with `onPressImage={()·=>·{`"
prettier/prettier
|
| Error |
Row 1577, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1578, Column 21: "Delete `··`"
prettier/prettier
|
| Error |
Row 1579, Column 1: "Replace `····················` with `··················`"
prettier/prettier
|
| Warning |
Row 1579, Column 53: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 1580, Column 21: "Delete `··`"
prettier/prettier
|
| Error |
Row 1581, Column 1: "Replace `························` with `······················`"
prettier/prettier
|
| Error |
Row 1582, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1583, Column 1: "Replace `··························` with `························`"
prettier/prettier
|
| Error |
Row 1584, Column 25: "Delete `··`"
prettier/prettier
|
| Error |
Row 1585, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| Error |
Row 1586, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1587, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| Error |
Row 1588, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1589, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| Error |
Row 1590, Column 29: "Delete `··`"
prettier/prettier
|
| Error |
Row 1591, Column 1: "Replace `······························` with `····························`"
prettier/prettier
|
| Error |
Row 1592, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1593, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1594, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1595, Column 29: "Delete `··`"
prettier/prettier
|
| Error |
Row 1595, Column 37: "'messangerClient' is not defined."
no-undef
|
| Error |
Row 1596, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1597, Column 31: "Delete `··`"
prettier/prettier
|
| Error |
Row 1598, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1599, Column 29: "Delete `··`"
prettier/prettier
|
| Error |
Row 1600, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1601, Column 29: "Delete `··`"
prettier/prettier
|
| Error |
Row 1602, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1603, Column 29: "Delete `··`"
prettier/prettier
|
| Error |
Row 1604, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1605, Column 31: "Delete `··`"
prettier/prettier
|
| Error |
Row 1606, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1607, Column 31: "Delete `··`"
prettier/prettier
|
| Error |
Row 1608, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1609, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1610, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1611, Column 25: "Delete `··`"
prettier/prettier
|
| Error |
Row 1612, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1613, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1614, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1615, Column 29: "Delete `··`"
prettier/prettier
|
| Error |
Row 1616, Column 25: "Delete `··`"
prettier/prettier
|
| Error |
Row 1617, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1618, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1619, Column 19: "Delete `··`"
prettier/prettier
|
| Error |
Row 1621, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1622, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1629, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1631, Column 19: "Delete `··`"
prettier/prettier
|
| Error |
Row 1632, Column 19: "Delete `··`"
prettier/prettier
|
| Warning |
Row 1632, Column 53: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 1633, Column 21: "Delete `··`"
prettier/prettier
|
| Error |
Row 1634, Column 1: "Replace `························` with `······················`"
prettier/prettier
|
| Error |
Row 1635, Column 25: "Delete `··`"
prettier/prettier
|
| Error |
Row 1636, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| Error |
Row 1637, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1638, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| Error |
Row 1639, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1640, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1641, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1642, Column 1: "Replace `······························` with `····························`"
prettier/prettier
|
| Error |
Row 1643, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1644, Column 1: "Replace `··························` with `························`"
prettier/prettier
|
| Error |
Row 1645, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1646, Column 1: "Replace `··························` with `························`"
prettier/prettier
|
| Error |
Row 1647, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1648, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1649, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1650, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| Error |
Row 1651, Column 1: "Replace `····························onPressImage={()·=>·{·` with `··························onPressImage={()·=>·{`"
prettier/prettier
|
| Error |
Row 1652, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1653, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1654, Column 29: "Delete `··`"
prettier/prettier
|
| Error |
Row 1655, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1656, Column 25: "Delete `··`"
prettier/prettier
|
| Error |
Row 1657, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1658, Column 21: "Delete `··`"
prettier/prettier
|
| Error |
Row 1659, Column 19: "Delete `··`"
prettier/prettier
|
| Error |
Row 1660, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1662, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1663, Column 19: "Delete `··`"
prettier/prettier
|
| Error |
Row 1664, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1666, Column 19: "Delete `··`"
prettier/prettier
|
| Error |
Row 1668, Column 1: "Replace `····················` with `··················`"
prettier/prettier
|
| Error |
Row 1680, Column 19: "Delete `··`"
prettier/prettier
|
| Warning |
Row 1680, Column 53: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 1681, Column 21: "Delete `··`"
prettier/prettier
|
| Error |
Row 1682, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1683, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1684, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1685, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1686, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1687, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| Error |
Row 1688, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1689, Column 1: "Replace `····························style={{·marginBottom:·mvs(40),·marginTop:·mvs(30)·` with `··························style={{marginBottom:·mvs(40),·marginTop:·mvs(30)`"
prettier/prettier
|
| Error |
Row 1690, Column 1: "Replace `··························` with `························`"
prettier/prettier
|
| Error |
Row 1691, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1692, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1693, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1694, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| Error |
Row 1695, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1696, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| Error |
Row 1697, Column 1: "Replace `····························onPressImage={()·=>·{·` with `··························onPressImage={()·=>·{`"
prettier/prettier
|
| Error |
Row 1698, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1699, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1700, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1701, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1702, Column 23: "Delete `··`"
prettier/prettier
|
| Error |
Row 1703, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1704, Column 19: "Delete `··`"
prettier/prettier
|
| Error |
Row 1705, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1707, Column 19: "Delete `··`"
prettier/prettier
|
| Error |
Row 1708, Column 19: "Delete `··`"
prettier/prettier
|
| Warning |
Row 1708, Column 53: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 1709, Column 21: "Delete `··`"
prettier/prettier
|
| Error |
Row 1710, Column 1: "Replace `························` with `······················`"
prettier/prettier
|
| Error |
Row 1711, Column 25: "Delete `··`"
prettier/prettier
|
| Error |
Row 1712, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| Error |
Row 1713, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1714, Column 1: "Replace `······························` with `····························`"
prettier/prettier
|
| Error |
Row 1715, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1716, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| Error |
Row 1717, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1718, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| Error |
Row 1719, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1720, Column 1: "Replace `····························style={{·marginBottom:·mvs(40),·marginTop:·mvs(30)·` with `··························style={{marginBottom:·mvs(40),·marginTop:·mvs(30)`"
prettier/prettier
|
| Error |
Row 1721, Column 1: "Replace `··························` with `························`"
prettier/prettier
|
| Error |
Row 1722, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1723, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1724, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1725, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| Error |
Row 1726, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1727, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| Error |
Row 1728, Column 1: "Replace `····························onPressImage={()·=>·{·` with `··························onPressImage={()·=>·{`"
prettier/prettier
|
| Error |
Row 1729, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1730, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1731, Column 29: "Delete `··`"
prettier/prettier
|
| Error |
Row 1732, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1733, Column 25: "Delete `··`"
prettier/prettier
|
| Error |
Row 1734, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1735, Column 21: "Delete `··`"
prettier/prettier
|
| Error |
Row 1736, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1737, Column 19: "Delete `··`"
prettier/prettier
|
| Error |
Row 1739, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1740, Column 19: "Delete `··`"
prettier/prettier
|
| Warning |
Row 1740, Column 53: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 1741, Column 1: "Replace `······················` with `····················`"
prettier/prettier
|
| Error |
Row 1742, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1743, Column 1: "Replace `··························` with `························`"
prettier/prettier
|
| Error |
Row 1744, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1745, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| Error |
Row 1746, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1747, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| Error |
Row 1748, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1749, Column 1: "Replace `····························style={{·marginBottom:·mvs(40),·marginTop:·mvs(30)·` with `··························style={{marginBottom:·mvs(40),·marginTop:·mvs(30)`"
prettier/prettier
|
| Error |
Row 1750, Column 1: "Replace `··························` with `························`"
prettier/prettier
|
| Error |
Row 1751, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1752, Column 1: "Replace `··························` with `························`"
prettier/prettier
|
| Error |
Row 1753, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1754, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1755, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1756, Column 27: "Delete `··`"
prettier/prettier
|
| Error |
Row 1757, Column 1: "Replace `····························onPressImage={()·=>·{·` with `··························onPressImage={()·=>·{`"
prettier/prettier
|
| Error |
Row 1758, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1759, Column 1: "Replace `······························` with `····························`"
prettier/prettier
|
| Error |
Row 1760, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1761, Column 25: "Delete `··`"
prettier/prettier
|
| Error |
Row 1762, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1763, Column 1: "Replace `······················` with `····················`"
prettier/prettier
|
| Error |
Row 1764, Column 19: "Delete `··`"
prettier/prettier
|
| Error |
Row 1765, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1766, Column 17: "Delete `··`"
prettier/prettier
|
| Error |
Row 1767, Column 1: "Replace `················` with `··············`"
prettier/prettier
|
| Error |
Row 1768, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 1776, Column 19: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 1783, Column 46: "Replace `·animated:·true·` with `animated:·true`"
prettier/prettier
|
| Warning |
Row 1893, Column 44: "Expected '===' and instead saw '=='."
eqeqeq
|
| Line |
Source |
| 1 |
import services from '@khan_ahmad786/common/api/services'; |
| 2 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 3 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 4 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 5 |
import moment from 'moment'; |
| 6 |
import React, {useEffect, useRef, useState, Fragment} from 'react'; |
| Error |
Row 7, Column 9: "Replace `·useIsFocused·` with `useIsFocused`"
prettier/prettier
|
| 7 |
import { useIsFocused } from '@react-navigation/core'; |
| 8 |
import { |
| 9 |
ActivityIndicator, |
| 10 |
Image, |
| 11 |
KeyboardAvoidingView, |
| 12 |
LogBox, |
| 13 |
Platform, |
| 14 |
ScrollView, |
| 15 |
StyleSheet, |
| 16 |
TouchableOpacity, |
| 17 |
View, |
| Warning |
Row 18, Column 3: "'BackHandler' is defined but never used."
no-unused-vars
|
| 18 |
BackHandler, |
| Warning |
Row 19, Column 3: "'Alert' is defined but never used."
no-unused-vars
|
| 19 |
Alert, |
| 20 |
} from 'react-native'; |
| 21 |
import DocumentPicker from 'react-native-document-picker'; |
| 22 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 23 |
import RNFS from 'react-native-fs'; |
| 24 |
import ImageView from 'react-native-image-viewing'; |
| Error |
Row 25, Column 9: "Replace `·showLocation·` with `showLocation`"
prettier/prettier
|
| 25 |
import { showLocation } from 'react-native-map-link'; |
| 26 |
import Slider from 'react-native-slider'; |
| 27 |
import TrackPlayer, { |
| 28 |
usePlaybackState, |
| 29 |
useProgress, |
| 30 |
} from 'react-native-track-player'; |
| Error |
Row 31, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 31 |
import { connect } from 'react-redux'; |
| 32 |
import RNFetchBlob from 'rn-fetch-blob'; |
| 33 |
import * as SVGS from '../../../resource/assets/common-icons'; |
| Error |
Row 34, Column 9: "Replace `·Camera·` with `Camera`"
prettier/prettier
|
| 34 |
import { Camera } from '../../../resource/assets/common-icons'; |
| 35 |
import Buttons from '../../components/atoms/Button'; |
| 36 |
import ImagePlaceholder from '../../components/atoms/Placeholder'; |
| 37 |
import InputToolbar from '../../components/molecules/chat_card/input-toolbar'; |
| 38 |
import OrderStatusCard from '../../components/molecules/chat_card/order-status-card'; |
| 39 |
import ProductStatusCard from '../../components/molecules/chat_card/product-status-card'; |
| 40 |
import ShareLocation from '../../components/molecules/chat_card/share-location'; |
| 41 |
import Header from '../../components/molecules/header/header-1x'; |
| 42 |
import DeliveryAddressRequested from '../../components/molecules/modals/delivery-address-requested'; |
| 43 |
import DeliveryConfirmedModal from '../../components/molecules/modals/dilivery-confirmed-modal'; |
| 44 |
import DeliveryDisputedModal from '../../components/molecules/modals/dilivery-disputed-modal'; |
| 45 |
import ImagePicker from '../../components/molecules/modals/image-picker/image-picker'; |
| 46 |
import PlusOptionsModal from '../../components/molecules/modals/plus-options-modal'; |
| 47 |
import RewardAcceptedModal from '../../components/molecules/modals/reward-accepted-modal'; |
| 48 |
import StatusModal from '../../components/molecules/modals/status-modal'; |
| 49 |
import VideoPlayer from '../../components/molecules/modals/video-player'; |
| 50 |
import colors from '../../config/colors'; |
| Error |
Row 51, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 51 |
import { mvs } from '../../config/metrices'; |
| 52 |
import Regular from '../../presentation/typography/regular-text'; |
| Warning |
Row 53, Column 8: "'AsyncStorage' is defined but never used."
no-unused-vars
|
| 53 |
import AsyncStorage from '@react-native-async-storage/async-storage'; |
| Warning |
Row 54, Column 8: "'Pusher' is defined but never used."
no-unused-vars
|
| 54 |
import Pusher from 'pusher-js/react-native'; |
| Error |
Row 55, Column 9: "Replace `·connectEcho·` with `connectEcho`"
prettier/prettier
|
| Warning |
Row 55, Column 10: "'connectEcho' is defined but never used."
no-unused-vars
|
| 55 |
import { connectEcho } from '../../config/sockets'; |
| Warning |
Row 56, Column 8: "'monent' is defined but never used."
no-unused-vars
|
| 56 |
import monent from 'moment'; |
| Error |
Row 57, Column 9: "Replace `·forEach·` with `forEach`"
prettier/prettier
|
| Warning |
Row 57, Column 10: "'forEach' is defined but never used."
no-unused-vars
|
| 57 |
import { forEach } from 'lodash'; |
| 58 |
|
| 59 |
LogBox.ignoreAllLogs(); |
| 60 |
|
| Error |
Row 61, Column 27: "Replace `·onPress,·title,·price·` with `onPress,·title,·price`"
prettier/prettier
|
| 61 |
const ButtonWithPrice = ({ onPress, title, price }) => ( |
| 62 |
<View style={[styles.BUTTON_CONTAINER, styles.ROW]}> |
| 63 |
<Buttons.ButtonPrimary |
| 64 |
disabled |
| Error |
Row 65, Column 19: "Replace `·color:·colors.headerTitle·` with `color:·colors.headerTitle`"
prettier/prettier
|
| 65 |
textStyle={{ color: colors.headerTitle }} |
| 66 |
title={`US$ ${price}`} |
| Warning |
Row 67, Column 14: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 67, Column 15: "Replace `·width:·'49%',·height:·mvs(52),·backgroundColor:·colors.white·` with `width:·'49%',·height:·mvs(52),·backgroundColor:·colors.white`"
prettier/prettier
|
| 67 |
style={{ width: '49%', height: mvs(52), backgroundColor: colors.white }} |
| 68 |
/> |
| 69 |
<Buttons.ButtonPrimaryLight |
| 70 |
onClick={onPress} |
| 71 |
title={title} |
| Warning |
Row 72, Column 14: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 72, Column 15: "Replace `·width:·'49%',·height:·mvs(52),·backgroundColor:·colors.green·` with `width:·'49%',·height:·mvs(52),·backgroundColor:·colors.green`"
prettier/prettier
|
| 72 |
style={{ width: '49%', height: mvs(52), backgroundColor: colors.green }} |
| 73 |
/> |
| 74 |
</View> |
| 75 |
); |
| 76 |
|
| 77 |
const TwoButtons = ({ |
| 78 |
onPress1, |
| 79 |
onPress2, |
| 80 |
sendProductLoading, |
| 81 |
sendDisputeoading, |
| 82 |
}) => ( |
| 83 |
<View style={[styles.BUTTON_CONTAINER, styles.ROW]}> |
| 84 |
<Buttons.ButtonPrimaryLight |
| 85 |
onClick={onPress1} |
| 86 |
loaderColor={colors.white} |
| 87 |
loading={sendProductLoading} |
| 88 |
disabled={sendProductLoading} |
| 89 |
title={'Confirm Delivery'} |
| Warning |
Row 90, Column 14: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 90, Column 15: "Replace `·width:·'49%',·height:·mvs(52),·backgroundColor:·colors.green·` with `width:·'49%',·height:·mvs(52),·backgroundColor:·colors.green`"
prettier/prettier
|
| 90 |
style={{ width: '49%', height: mvs(52), backgroundColor: colors.green }} |
| 91 |
/> |
| 92 |
<Buttons.ButtonPrimaryLight |
| 93 |
onClick={onPress2} |
| 94 |
title={'Dispute Delivery'} |
| 95 |
loading={sendDisputeoading} |
| 96 |
disabled={sendDisputeoading} |
| 97 |
loaderColor={colors.white} |
| Warning |
Row 98, Column 14: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 98, Column 15: "Replace `·width:·'49%',·height:·mvs(52),·backgroundColor:·colors.disputes·` with `width:·'49%',·height:·mvs(52),·backgroundColor:·colors.disputes`"
prettier/prettier
|
| 98 |
style={{ width: '49%', height: mvs(52), backgroundColor: colors.disputes }} |
| Error |
Row 99, Column 19: "Replace `·color:·colors.headerTitle·` with `color:·colors.headerTitle`"
prettier/prettier
|
| 99 |
textStyle={{ color: colors.headerTitle }} |
| 100 |
/> |
| 101 |
</View> |
| 102 |
); |
| 103 |
|
| 104 |
const SendReceipt = ({ |
| 105 |
disabled, |
| 106 |
uri, |
| 107 |
sendProductImage, |
| 108 |
pickImage, |
| 109 |
sendProductLoading, |
| 110 |
}) => ( |
| Warning |
Row 111, Column 54: "Inline style: { alignItems: 'flex-end' }"
react-native/no-inline-styles
|
| Error |
Row 111, Column 55: "Replace `·alignItems:·'flex-end'·` with `alignItems:·'flex-end'`"
prettier/prettier
|
| 111 |
<View style={[styles.BUTTON_CONTAINER, styles.ROW, { alignItems: 'flex-end' }]}> |
| 112 |
<TouchableOpacity |
| 113 |
onPress={pickImage} |
| Warning |
Row 114, Column 14: "Inline style: {
borderWidth: 1,
justifyContent: 'center',
alignItems: 'center',
overflow: 'hidden'
}"
react-native/no-inline-styles
|
| 114 |
style={{ |
| 115 |
height: mvs(73), |
| 116 |
width: mvs(73), |
| 117 |
borderWidth: 1, |
| 118 |
marginLeft: mvs(44), |
| 119 |
borderRadius: mvs(13), |
| 120 |
borderColor: colors.primary, |
| 121 |
backgroundColor: colors.white, |
| 122 |
justifyContent: 'center', |
| 123 |
alignItems: 'center', |
| 124 |
overflow: 'hidden', |
| 125 |
}}> |
| 126 |
{uri ? ( |
| Error |
Row 127, Column 25: "Replace `·uri·}}·style={{·height:·'100%',·width:·'100%'·` with `uri}}·style={{height:·'100%',·width:·'100%'`"
prettier/prettier
|
| Warning |
Row 127, Column 40: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| 127 |
<Image source={{ uri }} style={{ height: '100%', width: '100%' }} /> |
| 128 |
) : ( |
| 129 |
<Camera /> |
| 130 |
)} |
| 131 |
</TouchableOpacity> |
| 132 |
<Buttons.ButtonPrimaryLight |
| 133 |
onClick={() => sendProductImage()} |
| 134 |
disabled={disabled} |
| 135 |
loaderColor={colors.white} |
| 136 |
loading={sendProductLoading} |
| 137 |
title={'Send Receipt'} |
| Warning |
Row 138, Column 14: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 138, Column 15: "Replace `·width:·'49%',·height:·mvs(52),·backgroundColor:·colors.green·` with `width:·'49%',·height:·mvs(52),·backgroundColor:·colors.green`"
prettier/prettier
|
| 138 |
style={{ width: '49%', height: mvs(52), backgroundColor: colors.green }} |
| 139 |
/> |
| 140 |
</View> |
| 141 |
); |
| 142 |
|
| 143 |
const SendProduct = ({ |
| 144 |
disabled, |
| 145 |
uri, |
| 146 |
sendProductImage, |
| 147 |
pickImage, |
| 148 |
sendProductLoading, |
| 149 |
}) => ( |
| Warning |
Row 150, Column 54: "Inline style: { alignItems: 'flex-end' }"
react-native/no-inline-styles
|
| Error |
Row 150, Column 55: "Replace `·alignItems:·'flex-end'·` with `alignItems:·'flex-end'`"
prettier/prettier
|
| 150 |
<View style={[styles.BUTTON_CONTAINER, styles.ROW, { alignItems: 'flex-end' }]}> |
| 151 |
<TouchableOpacity |
| 152 |
onPress={pickImage} |
| Warning |
Row 153, Column 14: "Inline style: {
borderWidth: 1,
justifyContent: 'center',
alignItems: 'center',
overflow: 'hidden'
}"
react-native/no-inline-styles
|
| 153 |
style={{ |
| 154 |
height: mvs(73), |
| 155 |
width: mvs(73), |
| 156 |
borderWidth: 1, |
| 157 |
marginLeft: mvs(44), |
| 158 |
borderRadius: mvs(13), |
| 159 |
borderColor: colors.primary, |
| 160 |
backgroundColor: colors.white, |
| 161 |
justifyContent: 'center', |
| 162 |
alignItems: 'center', |
| 163 |
overflow: 'hidden', |
| 164 |
}}> |
| 165 |
{uri ? ( |
| Error |
Row 166, Column 25: "Replace `·uri·}}·style={{·height:·'100%',·width:·'100%'·` with `uri}}·style={{height:·'100%',·width:·'100%'`"
prettier/prettier
|
| Warning |
Row 166, Column 40: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| 166 |
<Image source={{ uri }} style={{ height: '100%', width: '100%' }} /> |
| 167 |
) : ( |
| 168 |
<Camera /> |
| 169 |
)} |
| 170 |
</TouchableOpacity> |
| 171 |
<Buttons.ButtonPrimaryLight |
| 172 |
onClick={() => sendProductImage()} |
| 173 |
disabled={disabled} |
| 174 |
loading={sendProductLoading} |
| 175 |
loaderColor={colors.white} |
| 176 |
title={'Send Product'} |
| Warning |
Row 177, Column 14: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 177, Column 15: "Replace `·width:·'49%',·height:·mvs(52),·backgroundColor:·colors.green·` with `width:·'49%',·height:·mvs(52),·backgroundColor:·colors.green`"
prettier/prettier
|
| 177 |
style={{ width: '49%', height: mvs(52), backgroundColor: colors.green }} |
| 178 |
/> |
| 179 |
</View> |
| 180 |
); |
| 181 |
|
| 182 |
const Chat = props => { |
| Error |
Row 183, Column 1: "Replace `⏎··let·isFocus·=·useIsFocused()` with `··let·isFocus·=·useIsFocused();`"
prettier/prettier
|
| 183 |
|
| Warning |
Row 184, Column 31: "Missing semicolon."
semi
|
| 184 |
let isFocus = useIsFocused() |
| 185 |
|
| Warning |
Row 186, Column 22: "["Play1"] is better written in dot notation."
dot-notation
|
| 186 |
const Play1 = SVGS['Play1']; |
| Warning |
Row 187, Column 22: "["Play2"] is better written in dot notation."
dot-notation
|
| 187 |
const Play2 = SVGS['Play2']; |
| Warning |
Row 188, Column 23: "["Pause1"] is better written in dot notation."
dot-notation
|
| 188 |
const Pause1 = SVGS['Pause1']; |
| Warning |
Row 189, Column 23: "["Pause2"] is better written in dot notation."
dot-notation
|
| 189 |
const Pause2 = SVGS['Pause2']; |
| Warning |
Row 190, Column 21: "["doc1"] is better written in dot notation."
dot-notation
|
| 190 |
const Doc1 = SVGS['doc1']; |
| Warning |
Row 191, Column 21: "["doc2"] is better written in dot notation."
dot-notation
|
| 191 |
const Doc2 = SVGS['doc2']; |
| Warning |
Row 192, Column 21: "["seened"] is better written in dot notation."
dot-notation
|
| 192 |
const Seen = SVGS['seened']; |
| Warning |
Row 193, Column 26: "["seened_white"] is better written in dot notation."
dot-notation
|
| 193 |
const SeenWhite = SVGS['seened_white']; |
| Warning |
Row 194, Column 24: "["delivered"] is better written in dot notation."
dot-notation
|
| 194 |
const Deliver = SVGS['delivered']; |
| Warning |
Row 195, Column 9: "'Sent' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 195, Column 21: "["sent"] is better written in dot notation."
dot-notation
|
| 195 |
const Sent = SVGS['sent']; |
| 196 |
|
| Error |
Row 197, Column 10: "Replace `·config,·fs·` with `config,·fs`"
prettier/prettier
|
| 197 |
const { config, fs } = RNFetchBlob; |
| 198 |
const android = RNFetchBlob.android; |
| 199 |
const ios = RNFetchBlob.ios; |
| 200 |
|
| Warning |
Row 201, Column 9: "'playbackStack' is assigned a value but never used."
no-unused-vars
|
| 201 |
const playbackStack = usePlaybackState(); |
| 202 |
const progress = useProgress(); |
| 203 |
const scrollRef = useRef(); |
| 204 |
|
| 205 |
const { |
| 206 |
navigation, |
| 207 |
route, |
| 208 |
fetchActiveChat, |
| 209 |
active_chat, |
| 210 |
profileData, |
| 211 |
showDeliveryAddressModal, |
| 212 |
toggleDeliveryAddressModal, |
| 213 |
onSaveDeliveryAddressToRedux, |
| 214 |
newMessageArrived, |
| 215 |
anotherEcho, |
| 216 |
updateInboxList, |
| 217 |
updateMessage, |
| 218 |
} = props; |
| 219 |
|
| 220 |
const { |
| Warning |
Row 221, Column 5: "'order_step' is assigned a value but never used."
no-unused-vars
|
| 221 |
order_step, |
| Warning |
Row 222, Column 11: "'messageOnwerType' is assigned a value but never used."
no-unused-vars
|
| 222 |
type: messageOnwerType, |
| Warning |
Row 223, Column 5: "'order_by' is assigned a value but never used."
no-unused-vars
|
| 223 |
order_by, |
| 224 |
participant_name, |
| 225 |
thread_id, |
| 226 |
} = route?.params || {}; |
| 227 |
|
| 228 |
const alertRef = useRef(); |
| 229 |
|
| Error |
Row 230, Column 50: "Replace `'messenger.thread.'+·thread_id` with `⏎····'messenger.thread.'·+·thread_id,⏎··`"
prettier/prettier
|
| Warning |
Row 230, Column 69: "Operator '+' must be spaced."
space-infix-ops
|
| 230 |
const channel = anotherEcho?.anotherEcho?.join('messenger.thread.'+ thread_id); |
| 231 |
|
| 232 |
const [openDeliveryReq, setOpenDeliveryReq] = useState(false); |
| 233 |
const [playerId, setPlayerId] = useState(''); |
| 234 |
const [playing, setPlaying] = useState(false); |
| 235 |
const [sendProductLoading, setSendProductLoading] = useState(false); |
| Warning |
Row 236, Column 10: "'sendImageLoading' is assigned a value but never used."
no-unused-vars
|
| 236 |
const [sendImageLoading, setSendImageLoading] = useState(false); |
| 237 |
const [sendDisputeoading, setSendDisputeLoading] = useState(false); |
| 238 |
const [messages, setMessages] = useState([]); |
| 239 |
const [message, setMessage] = useState(''); |
| 240 |
const [rewardAccepted, setRewardAccepted] = useState(false); |
| 241 |
const [plusModal, setPlusModal] = useState(false); |
| 242 |
const [rejectDealModal, setRejectDealModal] = useState(false); |
| Warning |
Row 243, Column 10: "'songs' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 243, Column 17: "'setSongs' is assigned a value but never used."
no-unused-vars
|
| 243 |
const [songs, setSongs] = useState([]); |
| 244 |
const [sendProductModal, setSendProductModal] = useState(false); |
| 245 |
const [sendReceiptModal, setSendReceiptModal] = useState(false); |
| Warning |
Row 246, Column 10: "'modal' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 246, Column 17: "'setModal' is assigned a value but never used."
no-unused-vars
|
| 246 |
const [modal, setModal] = useState(false); |
| 247 |
const [images, setImages] = useState([]); |
| 248 |
const [imageViewer, setImageViewer] = useState(false); |
| 249 |
const [deliveryConfirmedModal, setDeliveryConfirmedModal] = useState(false); |
| Warning |
Row 250, Column 10: "'statusModal' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 250, Column 23: "'setStatusModal' is assigned a value but never used."
no-unused-vars
|
| 250 |
const [statusModal, setStatusModal] = useState(true); |
| 251 |
const [deliveryDisputedModal, setDeliveryDisputedModal] = useState(false); |
| Warning |
Row 252, Column 10: "'deliveryAddressRequestedModal' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 252, Column 41: "'setDeliveryAddressRequestedModal' is assigned a value but never used."
no-unused-vars
|
| 252 |
const [deliveryAddressRequestedModal, setDeliveryAddressRequestedModal] = |
| 253 |
useState(true); |
| 254 |
const [loadingChat, setLoadingChat] = useState(true); |
| 255 |
const [imagePicker, setImagePicker] = useState({}); |
| 256 |
const [openPicker, setOpenPicker] = useState(false); |
| 257 |
const [playingVideo, setPlayingVideo] = useState(false); |
| Warning |
Row 258, Column 10: "'file' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 258, Column 16: "'setFile' is assigned a value but never used."
no-unused-vars
|
| 258 |
const [file, setFile] = useState(''); |
| 259 |
const [video, setVideo] = useState(''); |
| 260 |
const [downState, setDownState] = useState(''); |
| 261 |
const [selectedFile, setSelectedFile] = useState(''); |
| Warning |
Row 262, Column 10: "'downloading' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 262, Column 23: "'setDownloading' is assigned a value but never used."
no-unused-vars
|
| 262 |
const [downloading, setDownloading] = useState(false); |
| Warning |
Row 263, Column 15: "'setMin' is assigned a value but never used."
no-unused-vars
|
| 263 |
const [min, setMin] = useState(0); |
| 264 |
const [locflag, setlocflag] = useState(false); |
| 265 |
const [lastRead, setLastRead] = useState({}); |
| 266 |
const [isRead, setIsRead] = useState({}); |
| 267 |
|
| 268 |
useEffect(() => { |
| 269 |
if (playing) { |
| 270 |
if (progress.position > 0 && progress.position >= progress.duration) { |
| 271 |
//console.log("playing...") |
| 272 |
TrackPlayer.reset(); |
| 273 |
setPlaying(false); |
| 274 |
setPlayerId(-1); |
| 275 |
} |
| 276 |
} |
| Error |
Row 277, Column 6: "React Hook useEffect has missing dependencies: 'playing' and 'progress.duration'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| 277 |
}, [progress.position]); |
| 278 |
|
| Error |
Row 279, Column 1: "Delete `⏎⏎`"
prettier/prettier
|
| 279 |
|
| 280 |
|
| 281 |
useEffect(() => { |
| Error |
Row 282, Column 36: "Replace `>0&&` with `·>·0·&&⏎·····`"
prettier/prettier
|
| Warning |
Row 282, Column 36: "Operator '>' must be spaced."
space-infix-ops
|
| Warning |
Row 282, Column 38: "Operator '&&' must be spaced."
space-infix-ops
|
| 282 |
Object.keys(active_chat).length>0&& updateInboxList( |
| Error |
Row 283, Column 1: "Insert `··`"
prettier/prettier
|
| 283 |
{ |
| Error |
Row 284, Column 9: "Insert `··`"
prettier/prettier
|
| 284 |
thread_id: thread_id, |
| Error |
Row 285, Column 1: "Insert `··`"
prettier/prettier
|
| 285 |
}, |
| Error |
Row 286, Column 7: "Insert `··`"
prettier/prettier
|
| 286 |
profileData?.id, |
| Error |
Row 287, Column 1: "Insert `··`"
prettier/prettier
|
| 287 |
true, |
| Error |
Row 288, Column 5: "Insert `··`"
prettier/prettier
|
| 288 |
); |
| Error |
Row 289, Column 1: "Insert `·`"
prettier/prettier
|
| 289 |
// console.log("chat:", active_chat) |
| Error |
Row 290, Column 6: "React Hook useEffect has missing dependencies: 'profileData?.id', 'thread_id', and 'updateInboxList'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 290, Column 21: "Delete `⏎`"
prettier/prettier
|
| 290 |
}, [active_chat]); |
| 291 |
|
| 292 |
|
| 293 |
useEffect(() => { |
| 294 |
(async () => { |
| Error |
Row 295, Column 29: "'messangerClient' is not defined."
no-undef
|
| 295 |
const request = await messangerClient.get( |
| 296 |
`${services.messanger.open_chat}/${thread_id}/load`, |
| 297 |
); |
| 298 |
setLastRead( |
| 299 |
request?.data?.resources?.participants?.data?.find( |
| 300 |
x => x.owner_id !== profileData?.id, |
| 301 |
)?.last_read, |
| 302 |
); |
| 303 |
})(); |
| Error |
Row 304, Column 6: "React Hook useEffect has missing dependencies: 'profileData?.id' and 'thread_id'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| 304 |
}, []); |
| 305 |
|
| Error |
Row 306, Column 1: "Replace `⏎··useEffect(()=>` with `··useEffect(()·=>·`"
prettier/prettier
|
| 306 |
|
| 307 |
useEffect(()=>{ |
| Error |
Row 308, Column 46: "Replace `(data)` with `·(data)·`"
prettier/prettier
|
| 308 |
channel.listenForWhisper('read', function(data){ |
| Error |
Row 309, Column 20: "Replace `=>` with `·=>·`"
prettier/prettier
|
| 309 |
setTimeout(()=>{ |
| Error |
Row 310, Column 28: "Insert `;`"
prettier/prettier
|
| Warning |
Row 310, Column 28: "Missing semicolon."
semi
|
| 310 |
updateMessage(data) |
| Error |
Row 311, Column 9: "Replace `1000)` with `·1000);`"
prettier/prettier
|
| Warning |
Row 311, Column 14: "Missing semicolon."
semi
|
| 311 |
},1000) |
| Error |
Row 312, Column 19: "Replace `"READ:",·data)⏎······` with `'READ:',·data);`"
prettier/prettier
|
| Warning |
Row 312, Column 19: "Strings must use singlequote."
quotes
|
| Warning |
Row 312, Column 33: "Missing semicolon."
semi
|
| 312 |
console.log("READ:", data) |
| Warning |
Row 313, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| 313 |
|
| 314 |
}); |
| Error |
Row 315, Column 5: "Replace `[])` with `·[]);`"
prettier/prettier
|
| Error |
Row 315, Column 5: "React Hook useEffect has missing dependencies: 'channel' and 'updateMessage'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 315, Column 8: "Missing semicolon."
semi
|
| 315 |
},[]) |
| 316 |
|
| 317 |
// useEffect(() => { |
| 318 |
// (async () => { |
| 319 |
// if (active_chat && lastRead) { |
| 320 |
// // channel.listenForWhisper('read', function(data){ |
| 321 |
// // updateMessage(data) |
| 322 |
// // }); |
| Warning |
Row 323, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 323, Column 1: "Delete `········`"
prettier/prettier
|
| 323 |
|
| 324 |
// //let msgs = []; |
| 325 |
// // active_chat?.data?.forEach(item => { |
| 326 |
// // if ( |
| 327 |
// // lastRead?.message_id === item?.id || |
| 328 |
// // item?.created_at < lastRead?.time |
| 329 |
// // ) { |
| 330 |
// // let newItem = {...item, unread: false}; |
| 331 |
// // msgs = [...msgs, newItem]; |
| 332 |
// // } else { |
| 333 |
// // let newItem = {...item, unread: true}; |
| 334 |
// // msgs = [...msgs, newItem]; |
| 335 |
// // } |
| 336 |
// // }); |
| 337 |
// // await messangerClient.get( |
| 338 |
// // `${services.messanger.open_chat}/${thread_id}/mark-read`, |
| 339 |
// // ); |
| 340 |
// // let allMsgs = msgs |
| 341 |
// // allMsgs.filter(x => x.unread == true).forEach(item => { |
| 342 |
// // channel.whisper('read', { |
| 343 |
// // provider_id: '1212', |
| 344 |
// // provider_alias: 'alskalsa', |
| 345 |
// // avatar: 'aslakas', |
| 346 |
// // message_id: item?.id, |
| 347 |
// // }); |
| 348 |
// // }) |
| 349 |
// setMessages(active_chat?.data); |
| 350 |
// } |
| 351 |
// } catch (error) { |
| 352 |
// alertRef.current.alertWithType( |
| 353 |
// 'error', |
| 354 |
// 'Error', |
| 355 |
// UI_API._returnError(error), |
| 356 |
// ) |
| 357 |
// }) |
| Warning |
Row 358, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 358, Column 1: "Delete `··`"
prettier/prettier
|
| 358 |
|
| Error |
Row 359, Column 11: "Delete `⏎`"
prettier/prettier
|
| 359 |
// },[]) |
| 360 |
|
| 361 |
|
| 362 |
useEffect(() => { |
| Error |
Row 363, Column 5: "'markReadChat' is not defined."
no-undef
|
| Error |
Row 363, Column 19: "Insert `;`"
prettier/prettier
|
| Warning |
Row 363, Column 19: "Missing semicolon."
semi
|
| 363 |
markReadChat() |
| Error |
Row 364, Column 31: "Delete `⏎⏎⏎·`"
prettier/prettier
|
| 364 |
}, [active_chat, lastRead]); |
| 365 |
|
| 366 |
|
| Warning |
Row 367, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| 367 |
|
| 368 |
|
| 369 |
// useEffect(() => { |
| 370 |
// (async () => { |
| 371 |
// if(props?.route?.params?.anotherEcho){ |
| 372 |
// props?.route?.params?.anotherEcho?.listen('.new.message', function (data) { |
| 373 |
// if(data?.thread_id == thread_id){ |
| 374 |
// newMessageArrived(data) |
| 375 |
// } |
| 376 |
// }); |
| 377 |
// }else{ |
| 378 |
// alert('here...') |
| 379 |
// connectEcho(profileData?.id) |
| 380 |
// .then((newChannel) => { |
| 381 |
// newChannel.listen('.new.message', function (data) { |
| 382 |
// if(data?.thread_id == thread_id){ |
| 383 |
// newMessageArrived(data) |
| 384 |
// } |
| 385 |
// }); |
| 386 |
// }) |
| 387 |
// } |
| 388 |
// })(); |
| 389 |
// }, []) |
| 390 |
|
| Error |
Row 391, Column 15: "Insert `·`"
prettier/prettier
|
| 391 |
useEffect(()=> { |
| Warning |
Row 392, Column 5: "Expected space(s) after "if"."
keyword-spacing
|
| Error |
Row 392, Column 7: "Replace `(Object.keys(isRead).length·>·0)` with `·(Object.keys(isRead).length·>·0)·`"
prettier/prettier
|
| 392 |
if(Object.keys(isRead).length > 0){ |
| Error |
Row 393, Column 6: "Insert `·`"
prettier/prettier
|
| 393 |
channel.whisper('read', { |
| Error |
Row 394, Column 7: "Insert `··`"
prettier/prettier
|
| 394 |
provider_id: '1212', |
| Error |
Row 395, Column 1: "Replace `······` with `········`"
prettier/prettier
|
| 395 |
provider_alias: 'alskalsa', |
| Error |
Row 396, Column 7: "Insert `··`"
prettier/prettier
|
| 396 |
avatar: 'aslakas', |
| Error |
Row 397, Column 1: "Replace `······` with `········`"
prettier/prettier
|
| 397 |
message_id: isRead?.id, |
| Error |
Row 398, Column 5: "Insert `··`"
prettier/prettier
|
| 398 |
}); |
| Error |
Row 399, Column 1: "Replace `····setIsRead({})` with `······setIsRead({});`"
prettier/prettier
|
| Warning |
Row 399, Column 18: "Missing semicolon."
semi
|
| 399 |
setIsRead({}) |
| Error |
Row 400, Column 4: "Insert `·`"
prettier/prettier
|
| 400 |
} |
| Error |
Row 401, Column 5: "Replace `[isRead])⏎⏎` with `·[isRead]);`"
prettier/prettier
|
| Error |
Row 401, Column 5: "React Hook useEffect has a missing dependency: 'channel'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 401, Column 14: "Missing semicolon."
semi
|
| 401 |
},[isRead]) |
| 402 |
|
| 403 |
|
| 404 |
|
| 405 |
useEffect(() => { |
| Error |
Row 406, Column 65: "Insert `;`"
prettier/prettier
|
| Warning |
Row 406, Column 65: "Missing semicolon."
semi
|
| 406 |
anotherEcho?.newChannel?.stopListening('.new.message', null) |
| 407 |
anotherEcho?.newChannel?.listen('.new.message', function (data) { |
| Warning |
Row 408, Column 27: "Expected '===' and instead saw '=='."
eqeqeq
|
| 408 |
if (data?.thread_id == thread_id && profileData?.id !== data?.owner_id) { |
| Error |
Row 409, Column 9: "Replace `·setIsRead(data)` with `setIsRead(data);`"
prettier/prettier
|
| Warning |
Row 409, Column 25: "Missing semicolon."
semi
|
| 409 |
setIsRead(data) |
| 410 |
if ( |
| 411 |
data?.type_verbose !== 'MESSAGE' && |
| 412 |
data?.type_verbose !== 'IMAGE_MESSAGE' && |
| 413 |
data?.type_verbose !== 'VIDEO_MESSAGE' && |
| 414 |
data?.type_verbose !== 'AUDIO_MESSAGE' && |
| 415 |
data?.type_verbose !== 'DOCUMENT_MESSAGE' |
| 416 |
) { |
| 417 |
fetchActiveChat(thread_id); |
| 418 |
} else { |
| 419 |
newMessageArrived(data); |
| 420 |
} |
| 421 |
} |
| Error |
Row 422, Column 44: "Delete `·`"
prettier/prettier
|
| 422 |
updateInboxList(data, profileData?.id , false); |
| 423 |
}); |
| Error |
Row 424, Column 6: "React Hook useEffect has missing dependencies: 'anotherEcho?.newChannel', 'fetchActiveChat', 'newMessageArrived', 'profileData?.id', 'thread_id', and 'updateInboxList'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 424, Column 17: "Delete `⏎`"
prettier/prettier
|
| 424 |
}, [isFocus]); |
| 425 |
|
| 426 |
|
| Error |
Row 427, Column 1: "Delete `⏎`"
prettier/prettier
|
| 427 |
|
| 428 |
const updatePayload = getData => { |
| 429 |
setImagePicker(getData?.profile_image); |
| 430 |
}; |
| 431 |
|
| 432 |
const sendImage = async getData => { |
| 433 |
setImagePicker(getData?.profile_image); |
| 434 |
const formData = new FormData(); |
| 435 |
formData.append('image', getData?.profile_image); |
| 436 |
formData.append('temporary_id', '123-456-789'); |
| 437 |
try { |
| 438 |
setSendImageLoading(true); |
| 439 |
setMessages([ |
| 440 |
...messages, |
| Error |
Row 441, Column 10: "Replace `·type_verbose:·'IMAGE_MESSAGE',·body:·'',·owner_id:·profileData?.id,·unread:·true` with `⏎··········type_verbose:·'IMAGE_MESSAGE',⏎··········body:·'',⏎··········owner_id:·profileData?.id,⏎··········unread:·true,⏎·······`"
prettier/prettier
|
| 441 |
{ type_verbose: 'IMAGE_MESSAGE', body: '', owner_id: profileData?.id, unread: true }, |
| 442 |
]); |
| Error |
Row 443, Column 13: "'messangerClient' is not defined."
no-undef
|
| 443 |
await messangerClient.post( |
| 444 |
`${services.messanger.open_chat}/${thread_id}/images`, |
| 445 |
formData, |
| 446 |
); |
| 447 |
await fetchActiveChat(`${thread_id}`); |
| 448 |
//setSendProductModal(true); |
| 449 |
setSendImageLoading(false); |
| 450 |
} catch (error) { |
| 451 |
setSendImageLoading(false); |
| 452 |
alertRef.current.alertWithType( |
| 453 |
'error', |
| 454 |
'Error', |
| 455 |
UI_API._returnError(error), |
| 456 |
); |
| 457 |
} |
| 458 |
}; |
| 459 |
|
| 460 |
const sendVideo = async getData => { |
| 461 |
const formData = new FormData(); |
| 462 |
formData.append('video', getData?.profile_image); |
| 463 |
formData.append('temporary_id', '123-456-789'); |
| 464 |
try { |
| 465 |
setSendImageLoading(true); |
| 466 |
setMessages([ |
| 467 |
...messages, |
| Error |
Row 468, Column 10: "Replace `·type_verbose:·'VIDEO_MESSAGE',·body:·'',·owner_id:·profileData?.id,·unread:·true` with `⏎··········type_verbose:·'VIDEO_MESSAGE',⏎··········body:·'',⏎··········owner_id:·profileData?.id,⏎··········unread:·true,⏎·······`"
prettier/prettier
|
| 468 |
{ type_verbose: 'VIDEO_MESSAGE', body: '', owner_id: profileData?.id, unread: true }, |
| 469 |
]); |
| Error |
Row 470, Column 13: "'messangerClient' is not defined."
no-undef
|
| 470 |
await messangerClient.post( |
| 471 |
`${services.messanger.open_chat}/${thread_id}/videos`, |
| 472 |
formData, |
| 473 |
); |
| 474 |
await fetchActiveChat(`${thread_id}`); |
| 475 |
//setSendProductModal(true); |
| 476 |
setSendImageLoading(false); |
| 477 |
} catch (error) { |
| 478 |
setSendImageLoading(false); |
| 479 |
alertRef.current.alertWithType( |
| 480 |
'error', |
| 481 |
'Error', |
| 482 |
UI_API._returnError(error), |
| 483 |
); |
| 484 |
} |
| 485 |
}; |
| 486 |
|
| 487 |
const sendDoc = async getData => { |
| 488 |
const formData = new FormData(); |
| 489 |
formData.append('document', getData?.profile_image); |
| 490 |
formData.append('temporary_id', '123-456-789'); |
| 491 |
try { |
| 492 |
setSendImageLoading(true); |
| 493 |
setMessages([ |
| 494 |
...messages, |
| Error |
Row 495, Column 10: "Replace `·type_verbose:·'DOCUMENT_MESSAGE',·body:·'',·owner_id:·profileData?.id,·unread:·true` with `⏎··········type_verbose:·'DOCUMENT_MESSAGE',⏎··········body:·'',⏎··········owner_id:·profileData?.id,⏎··········unread:·true,⏎·······`"
prettier/prettier
|
| 495 |
{ type_verbose: 'DOCUMENT_MESSAGE', body: '', owner_id: profileData?.id, unread: true }, |
| 496 |
]); |
| Error |
Row 497, Column 13: "'messangerClient' is not defined."
no-undef
|
| 497 |
await messangerClient.post( |
| 498 |
`${services.messanger.open_chat}/${thread_id}/documents`, |
| 499 |
formData, |
| 500 |
); |
| 501 |
await fetchActiveChat(`${thread_id}`); |
| 502 |
setSendImageLoading(false); |
| 503 |
} catch (error) { |
| 504 |
setSendImageLoading(false); |
| 505 |
alertRef.current.alertWithType( |
| 506 |
'error', |
| 507 |
'Error', |
| 508 |
UI_API._returnError(error), |
| 509 |
); |
| 510 |
} |
| 511 |
}; |
| 512 |
|
| 513 |
const sendPickedAudio = async getData => { |
| 514 |
const formData = new FormData(); |
| 515 |
formData.append('audio', getData?.profile_image); |
| 516 |
formData.append('temporary_id', '123-456-789'); |
| 517 |
try { |
| 518 |
setSendImageLoading(true); |
| 519 |
setMessages([ |
| 520 |
...messages, |
| Error |
Row 521, Column 10: "Replace `·type_verbose:·'AUDIO_MESSAGE',·audio:·'',·owner_id:·profileData?.id,·unread:·true` with `⏎··········type_verbose:·'AUDIO_MESSAGE',⏎··········audio:·'',⏎··········owner_id:·profileData?.id,⏎··········unread:·true,⏎·······`"
prettier/prettier
|
| 521 |
{ type_verbose: 'AUDIO_MESSAGE', audio: '', owner_id: profileData?.id, unread: true }, |
| 522 |
]); |
| Error |
Row 523, Column 13: "'messangerClient' is not defined."
no-undef
|
| 523 |
await messangerClient.post( |
| 524 |
`${services.messanger.open_chat}/${thread_id}/audio`, |
| 525 |
formData, |
| 526 |
); |
| 527 |
await fetchActiveChat(`${thread_id}`); |
| 528 |
setSendImageLoading(false); |
| 529 |
} catch (error) { |
| 530 |
setSendImageLoading(false); |
| 531 |
alertRef.current.alertWithType( |
| 532 |
'error', |
| 533 |
'Error', |
| 534 |
UI_API._returnError(error), |
| 535 |
); |
| 536 |
} |
| 537 |
}; |
| 538 |
|
| 539 |
const sendAudio = async audio => { |
| 540 |
const temp = audio?.split('/'); |
| 541 |
const name = temp[temp.length - 1]; |
| Warning |
Row 542, Column 11: "'type' is assigned a value but never used."
no-unused-vars
|
| 542 |
const type = name.split('.')[1]; |
| 543 |
const data = { |
| 544 |
name: name, |
| Warning |
Row 545, Column 13: "Strings must use singlequote."
quotes
|
| 545 |
type: `application/octet-stream`, |
| 546 |
uri: |
| 547 |
Platform.OS === 'android' |
| 548 |
? audio //`file://${audio}` |
| 549 |
: audio.replace('file://', ''), //`file://${audio}/${name}`, |
| 550 |
}; |
| 551 |
const formData = new FormData(); |
| 552 |
formData.append('audio', data); |
| 553 |
formData.append('temporary_id', '123-456-789'); |
| 554 |
try { |
| 555 |
setSendImageLoading(true); |
| 556 |
setMessages([ |
| 557 |
...messages, |
| Error |
Row 558, Column 10: "Replace `·type_verbose:·'AUDIO_MESSAGE',·audio:·'',·owner_id:·profileData?.id,·unread:·true` with `⏎··········type_verbose:·'AUDIO_MESSAGE',⏎··········audio:·'',⏎··········owner_id:·profileData?.id,⏎··········unread:·true,⏎·······`"
prettier/prettier
|
| 558 |
{ type_verbose: 'AUDIO_MESSAGE', audio: '', owner_id: profileData?.id, unread: true }, |
| 559 |
]); |
| Error |
Row 560, Column 13: "'messangerClient' is not defined."
no-undef
|
| 560 |
await messangerClient.post( |
| 561 |
`${services.messanger.open_chat}/${thread_id}/audio`, |
| 562 |
formData, |
| 563 |
); |
| 564 |
await fetchActiveChat(`${thread_id}`); |
| 565 |
setSendImageLoading(false); |
| 566 |
} catch (error) { |
| 567 |
setSendImageLoading(false); |
| 568 |
alertRef.current.alertWithType( |
| 569 |
'error', |
| 570 |
'Error', |
| 571 |
UI_API._returnError(error), |
| 572 |
); |
| 573 |
} |
| 574 |
}; |
| 575 |
|
| 576 |
const onSendMessage = async () => { |
| 577 |
const msg = { |
| 578 |
body: message, |
| 579 |
created_at: moment(), |
| 580 |
edited: false, |
| 581 |
embeds: true, |
| 582 |
extra: null, |
| 583 |
from_bot: false, |
| 584 |
id: '956ecc60-340f-4690-9ae4-1ce7df11e03b', |
| 585 |
meta: [], |
| 586 |
owner: [], |
| 587 |
owner_id: profileData?.id, |
| 588 |
owner_type: 'App\\Containers\\AppSection\\User\\Models\\User', |
| 589 |
reacted: false, |
| 590 |
system_message: false, |
| 591 |
thread_id: thread_id, |
| 592 |
type: 0, |
| 593 |
type_verbose: 'MESSAGE', |
| 594 |
updated_at: '2022-01-24T13:31:17.980568Z', |
| 595 |
unread: true, |
| 596 |
}; |
| 597 |
setMessages([...messages, msg]); |
| 598 |
setMessage(''); |
| Error |
Row 599, Column 11: "'messangerClient' is not defined."
no-undef
|
| 599 |
await messangerClient.post( |
| 600 |
`${services.messanger.open_chat}/${thread_id}/messages`, |
| Error |
Row 601, Column 8: "Replace `·message:·message,·temporary_id:·'123-456-789'·` with `message:·message,·temporary_id:·'123-456-789'`"
prettier/prettier
|
| 601 |
{ message: message, temporary_id: '123-456-789' }, |
| 602 |
); |
| Error |
Row 603, Column 42: "Insert `;`"
prettier/prettier
|
| Warning |
Row 603, Column 42: "Missing semicolon."
semi
|
| 603 |
await fetchActiveChat(`${thread_id}`) |
| 604 |
scrollRef.current.scrollToEnd({animated: true}); |
| 605 |
}; |
| 606 |
|
| 607 |
React.useEffect(() => { |
| 608 |
//toggleDeliveryAddressModal(true); |
| 609 |
fetchChatMessages(); |
| 610 |
TrackPlayer.setupPlayer(); |
| Error |
Row 611, Column 6: "React Hook React.useEffect has a missing dependency: 'fetchChatMessages'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 611 |
}, []); |
| 612 |
|
| 613 |
const sendDeliveryAddress = async location => { |
| 614 |
toggleDeliveryAddressModal(false); |
| 615 |
const formData = new FormData(); |
| 616 |
formData.append('message', `${location?.latitude},${location.longitude}`); |
| Warning |
Row 617, Column 39: "Strings must use singlequote."
quotes
|
| Warning |
Row 617, Column 52: "Strings must use singlequote."
quotes
|
| 617 |
formData.append('type', locflag ? `location` : `map`); |
| 618 |
formData.append('temporary_id', '123-456-789'); |
| 619 |
formData.append('order_id', active_chat?.order?.order_id); |
| 620 |
onSaveDeliveryAddressToRedux({}); |
| 621 |
try { |
| 622 |
setSendProductLoading(true); |
| 623 |
setMessages([ |
| 624 |
...messages, |
| Error |
Row 625, Column 10: "Replace `·type_verbose:·'MAP',·body:·'',·owner_id:·profileData?.id,·unread:·true` with `⏎··········type_verbose:·'MAP',⏎··········body:·'',⏎··········owner_id:·profileData?.id,⏎··········unread:·true,⏎·······`"
prettier/prettier
|
| 625 |
{ type_verbose: 'MAP', body: '', owner_id: profileData?.id, unread: true }, |
| 626 |
]); |
| Error |
Row 627, Column 13: "'messangerClient' is not defined."
no-undef
|
| 627 |
await messangerClient.post( |
| 628 |
`${services.messanger.open_chat}/${thread_id}/messages`, |
| 629 |
formData, |
| 630 |
); |
| 631 |
await fetchActiveChat(`${thread_id}`); |
| 632 |
!locflag && |
| 633 |
alertRef.current.alertWithType( |
| 634 |
'success', |
| 635 |
'Succesfull', |
| 636 |
'Delivery location succesfully sent. You are almost done', |
| 637 |
); |
| 638 |
setSendProductLoading(false); |
| 639 |
setlocflag(false); |
| 640 |
} catch (error) { |
| 641 |
setlocflag(false); |
| 642 |
setSendProductLoading(false); |
| 643 |
alertRef.current.alertWithType( |
| 644 |
'error', |
| 645 |
'Error', |
| 646 |
UI_API._returnError(error), |
| 647 |
); |
| 648 |
} |
| 649 |
}; |
| 650 |
|
| 651 |
const openCamera = send => { |
| 652 |
UI_API._openCamera(send ? sendImage : updatePayload, alertRef); |
| 653 |
}; |
| 654 |
|
| 655 |
const openGallery = send => { |
| 656 |
UI_API._openGallery(send ? sendImage : updatePayload, alertRef); |
| 657 |
}; |
| 658 |
|
| 659 |
const onImageModalSelection = type => { |
| 660 |
setOpenPicker(false); |
| 661 |
setTimeout(() => { |
| 662 |
if (type === 'Camera') { |
| 663 |
openCamera(false); |
| 664 |
} else if (type === 'Gallery') { |
| 665 |
openGallery(false); |
| 666 |
} else { |
| 667 |
} |
| 668 |
}, 1000); |
| 669 |
}; |
| 670 |
|
| 671 |
const fetchChatMessages = async () => { |
| 672 |
try { |
| 673 |
setLoadingChat(true); |
| 674 |
await fetchActiveChat(`${thread_id}`); |
| 675 |
setLoadingChat(false); |
| 676 |
} catch (error) { |
| 677 |
setLoadingChat(false); |
| 678 |
alertRef.current.alertWithType( |
| 679 |
'error', |
| 680 |
'Error', |
| 681 |
UI_API._returnError(error), |
| 682 |
); |
| 683 |
} |
| 684 |
}; |
| 685 |
|
| 686 |
const requestDeliveryAddress = async () => { |
| 687 |
try { |
| 688 |
setSendProductLoading(true); |
| 689 |
const payload = { |
| 690 |
id: active_chat?.order?.order_id, |
| 691 |
status: |
| Warning |
Row 692, Column 42: "Expected '===' and instead saw '=='."
eqeqeq
|
| 692 |
active_chat?.order?.order_step == 'order_step_5' |
| 693 |
? 'order_step_6' |
| 694 |
: 'order_step_8', |
| 695 |
reason: 'This is dummy text', |
| 696 |
status_approved: 0, |
| 697 |
thread_id: thread_id, |
| 698 |
}; |
| Error |
Row 699, Column 13: "'client' is not defined."
no-undef
|
| 699 |
await client.post(services.create_order.update_order_status, payload); |
| 700 |
await fetchActiveChat(`${thread_id}`); |
| 701 |
setSendProductLoading(false); |
| 702 |
setOpenDeliveryReq(true); |
| 703 |
} catch (error) { |
| 704 |
setSendProductLoading(false); |
| 705 |
alertRef.current.alertWithType( |
| 706 |
'error', |
| 707 |
'Error', |
| 708 |
UI_API._returnError(error), |
| 709 |
); |
| 710 |
} |
| 711 |
}; |
| 712 |
|
| 713 |
const confirmDeliveryLocation = async (confirm = true, reason = null) => { |
| 714 |
!confirm && setDeliveryDisputedModal(false); |
| 715 |
const payload = { |
| 716 |
id: active_chat?.order?.order_id, |
| 717 |
status: confirm ? 'completed' : 'Disputed', |
| 718 |
reason: reason ? reason : '', |
| 719 |
status_approved: confirm ? 0 : 2, |
| 720 |
thread_id: thread_id, |
| 721 |
}; |
| 722 |
try { |
| 723 |
confirm ? setSendProductLoading(true) : setSendDisputeLoading(true); |
| Error |
Row 724, Column 13: "'client' is not defined."
no-undef
|
| Warning |
Row 724, Column 25: "Strings must use singlequote."
quotes
|
| 724 |
await client.post(`update-order-status`, payload); |
| 725 |
await fetchActiveChat(thread_id); |
| 726 |
// setSendProductModal(true);//SHOW Location send |
| 727 |
confirm && setDeliveryConfirmedModal(true); |
| 728 |
confirm ? setSendProductLoading(false) : setSendDisputeLoading(false); |
| 729 |
} catch (error) { |
| 730 |
confirm ? setSendProductLoading(false) : setSendDisputeLoading(false); |
| 731 |
alertRef.current.alertWithType( |
| 732 |
'error', |
| 733 |
'Error', |
| 734 |
UI_API._returnError(error), |
| 735 |
); |
| 736 |
} |
| 737 |
}; |
| 738 |
|
| 739 |
const openFilePiker = async (types, doc) => { |
| 740 |
try { |
| 741 |
const res = await DocumentPicker.pickSingle({ |
| 742 |
type: types, |
| 743 |
}); |
| 744 |
const data = { |
| 745 |
profile_image: { |
| 746 |
name: res.name, |
| 747 |
type: res.type, |
| 748 |
uri: res.uri, |
| 749 |
}, |
| 750 |
}; |
| 751 |
if (!doc) { |
| 752 |
if (data?.profile_image?.type?.includes('video')) { |
| 753 |
sendVideo(data); |
| 754 |
} else if (data?.profile_image?.type?.includes('audio')) { |
| 755 |
sendPickedAudio(data); |
| 756 |
} else { |
| 757 |
sendImage(data); |
| 758 |
} |
| 759 |
} else { |
| 760 |
sendDoc(data); |
| 761 |
} |
| 762 |
} catch (err) { |
| 763 |
if (DocumentPicker.isCancel(err)) { |
| 764 |
} else { |
| 765 |
throw err; |
| 766 |
} |
| 767 |
} |
| 768 |
}; |
| 769 |
|
| 770 |
const onPressPlusOptions = title => { |
| 771 |
setPlusModal(false); |
| 772 |
if (title === 'Voice Call') { |
| 773 |
} else if (title === 'Video Call') { |
| 774 |
} else if (title === 'Camera') { |
| 775 |
setTimeout(() => { |
| 776 |
openCamera(true); |
| 777 |
}, 1000); |
| 778 |
} else if (title === 'Photo & Video Library') { |
| 779 |
setTimeout(() => { |
| 780 |
openFilePiker( |
| 781 |
[DocumentPicker.types.images, DocumentPicker.types.video], |
| 782 |
false, |
| 783 |
); |
| 784 |
}, 1000); |
| 785 |
} else if (title === 'Audio') { |
| 786 |
setTimeout(() => { |
| 787 |
openFilePiker([DocumentPicker.types.audio], false); |
| 788 |
}, 1000); |
| 789 |
} else if (title === 'Document') { |
| 790 |
setTimeout(() => { |
| 791 |
openFilePiker( |
| 792 |
[ |
| 793 |
DocumentPicker.types.pdf, |
| 794 |
DocumentPicker.types.zip, |
| 795 |
DocumentPicker.types.csv, |
| 796 |
DocumentPicker.types.doc, |
| 797 |
DocumentPicker.types.docx, |
| 798 |
DocumentPicker.types.ppt, |
| 799 |
DocumentPicker.types.pptx, |
| 800 |
DocumentPicker.types.xls, |
| 801 |
DocumentPicker.types.xlsx, |
| 802 |
], |
| 803 |
true, |
| 804 |
); |
| 805 |
}, 1000); |
| 806 |
} else { |
| 807 |
setlocflag(true); |
| 808 |
setTimeout(() => { |
| 809 |
toggleDeliveryAddressModal(true); |
| 810 |
}, 1000); |
| 811 |
} |
| 812 |
}; |
| 813 |
|
| 814 |
const onOpenDoc = async (item, index) => { |
| 815 |
const temp = item?.body?.split('/'); |
| 816 |
const name = temp[temp.length - 1]; |
| Warning |
Row 817, Column 11: "'type' is assigned a value but never used."
no-unused-vars
|
| 817 |
const type = '.' + name.split('.')[1]; |
| 818 |
|
| 819 |
const path = fs.dirs.DownloadDir + '/' + name; |
| 820 |
|
| 821 |
setSelectedFile(index); |
| 822 |
|
| 823 |
let exists = await RNFS.exists(path); |
| 824 |
|
| 825 |
if (!exists) { |
| 826 |
setDownState('Downloading...'); |
| 827 |
let optionsA = { |
| 828 |
fileCache: true, |
| 829 |
addAndroidDownloads: { |
| 830 |
useDownloadManager: true, |
| 831 |
notification: false, |
| 832 |
path: path, |
| 833 |
description: 'Downloading document.', |
| 834 |
}, |
| 835 |
}; |
| 836 |
let optionI = { |
| 837 |
fileCache: true, |
| 838 |
path: path, |
| 839 |
}; |
| 840 |
const url = encodeURI( |
| 841 |
`https://api.taketo.exodevs.com/storage/threads/${thread_id}/documents/${item?.body}`, |
| 842 |
); |
| Warning |
Row 843, Column 26: "Expected '===' and instead saw '=='."
eqeqeq
|
| 843 |
config(Platform.OS == 'ios' ? optionI : optionsA) |
| 844 |
.fetch('GET', url) |
| Error |
Row 845, Column 20: "Replace `·interval:·250·` with `interval:·250`"
prettier/prettier
|
| 845 |
.progress({ interval: 250 }, (received, total) => { |
| 846 |
console.log('progress', received / total); |
| 847 |
// this.setState({ |
| 848 |
// downloadProgress:(received/total)*100 |
| 849 |
// }) |
| 850 |
}) |
| 851 |
.then(res => { |
| 852 |
alertRef.current.alertWithType( |
| 853 |
'success', |
| 854 |
'Download Successfully', |
| 855 |
'', |
| 856 |
); |
| 857 |
setDownState(''); |
| 858 |
}) |
| 859 |
.catch(err => { |
| 860 |
console.log('err', err); |
| 861 |
setDownState(''); |
| 862 |
}); |
| 863 |
} else { |
| Warning |
Row 864, Column 19: "Expected '===' and instead saw '=='."
eqeqeq
|
| 864 |
Platform.OS == 'android' |
| 865 |
? android.actionViewIntent(path) |
| 866 |
: ios.openDocument(path); |
| 867 |
} |
| 868 |
}; |
| 869 |
|
| 870 |
const renderMessage = itemData => { |
| Error |
Row 871, Column 12: "Replace `·item,·index·` with `item,·index`"
prettier/prettier
|
| 871 |
const { item, index } = itemData; |
| 872 |
if (item?.type_verbose === 'MESSAGE') { |
| 873 |
return ( |
| 874 |
<View |
| 875 |
key={item.key} |
| Warning |
Row 876, Column 18: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| 876 |
style={{ |
| 877 |
width: '100%', |
| 878 |
paddingLeft: item?.owner_id !== profileData?.id ? mvs(0) : mvs(63), |
| 879 |
paddingRight: item?.owner_id !== profileData?.id ? mvs(63) : mvs(0), |
| 880 |
marginTop: mvs(15), |
| 881 |
}}> |
| 882 |
<View |
| Warning |
Row 883, Column 20: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| 883 |
style={{ |
| 884 |
width: '100%', |
| 885 |
backgroundColor: |
| Warning |
Row 886, Column 30: "Expected '===' and instead saw '=='."
eqeqeq
|
| 886 |
item?.status == 'Disputed' |
| 887 |
? colors.disputes |
| Warning |
Row 888, Column 34: "Expected '===' and instead saw '=='."
eqeqeq
|
| 888 |
: item?.status == 'Rejected' |
| Error |
Row 889, Column 19: "Delete `··`"
prettier/prettier
|
| 889 |
? colors.pink |
| Error |
Row 890, Column 1: "Replace `····················` with `··················`"
prettier/prettier
|
| 890 |
: item?.owner_id !== profileData?.id |
| Error |
Row 891, Column 19: "Delete `····`"
prettier/prettier
|
| 891 |
? colors?.secondary |
| Error |
Row 892, Column 1: "Replace `······················` with `··················`"
prettier/prettier
|
| 892 |
: colors.primary, |
| 893 |
borderRadius: mvs(15), |
| 894 |
borderBottomRightRadius: |
| 895 |
item?.owner_id === profileData?.id ? mvs(15) : mvs(0), |
| 896 |
borderBottomLeftRadius: |
| 897 |
item?.owner_id === profileData?.id ? mvs(0) : mvs(15), |
| 898 |
padding: mvs(10), |
| 899 |
paddingBottom: mvs(14), |
| 900 |
}}> |
| 901 |
<Regular |
| 902 |
label={item?.body} |
| 903 |
style={{ |
| 904 |
fontSize: mvs(12), |
| 905 |
color: |
| Warning |
Row 906, Column 32: "Expected '===' and instead saw '=='."
eqeqeq
|
| 906 |
item?.status == 'Disputed' |
| 907 |
? colors.headerTitle |
| Warning |
Row 908, Column 36: "Expected '===' and instead saw '=='."
eqeqeq
|
| 908 |
: item?.status == 'Rejected' |
| Error |
Row 909, Column 21: "Delete `··`"
prettier/prettier
|
| 909 |
? colors.white |
| Error |
Row 910, Column 1: "Delete `··`"
prettier/prettier
|
| 910 |
: item?.owner_id !== profileData?.id |
| Error |
Row 911, Column 21: "Delete `····`"
prettier/prettier
|
| 911 |
? colors.headerTitle |
| Error |
Row 912, Column 1: "Replace `························` with `····················`"
prettier/prettier
|
| 912 |
: colors.white, |
| 913 |
}} |
| 914 |
/> |
| 915 |
</View> |
| 916 |
<View |
| Warning |
Row 917, Column 20: "Inline style: {
position: 'absolute',
left: 'item?.owner_id !== profileData?.id ? null : 0',
right: 'item?.owner_id !== profileData?.id ? 0 : null',
bottom: 0,
alignItems: 'center'
}"
react-native/no-inline-styles
|
| 917 |
style={{ |
| 918 |
position: 'absolute', |
| 919 |
left: item?.owner_id !== profileData?.id ? null : 0, |
| 920 |
right: item?.owner_id !== profileData?.id ? 0 : null, |
| 921 |
bottom: 0, |
| 922 |
alignItems: 'center', |
| 923 |
}}> |
| 924 |
{item?.owner_id === profileData?.id && |
| 925 |
(item?.unread ? <Deliver /> : <Seen />)} |
| 926 |
<Regular |
| 927 |
label={TAKE_TO_CONSTANT.getConversationTime(item?.created_at)} |
| 928 |
style={{ |
| 929 |
fontSize: mvs(10), |
| 930 |
marginTop: mvs(10), |
| 931 |
}} |
| 932 |
/> |
| 933 |
</View> |
| 934 |
</View> |
| 935 |
); |
| 936 |
} else if (item?.type_verbose === 'IMAGE_MESSAGE') { |
| 937 |
return ( |
| 938 |
<ProductStatusCard |
| 939 |
image={`${active_chat?.image_base_url}${item?.body}`} |
| 940 |
sending={item?.body !== '' ? false : true} |
| 941 |
onPressImage={() => { |
| 942 |
if (item?.body !== '') { |
| 943 |
setImages([ |
| 944 |
{ |
| 945 |
uri: `${active_chat?.image_base_url}${item?.body}`, |
| 946 |
}, |
| 947 |
]); |
| 948 |
setImageViewer(true); |
| 949 |
} |
| 950 |
}} |
| 951 |
profileData={profileData} |
| 952 |
item={item} |
| Warning |
Row 953, Column 18: "Inline style: {
flexDirection: "item?.owner_id === profileData?.id ? 'row' : 'row-reverse'"
}"
react-native/no-inline-styles
|
| 953 |
style={{ |
| 954 |
flexDirection: |
| 955 |
item?.owner_id === profileData?.id ? 'row' : 'row-reverse', |
| 956 |
}} |
| 957 |
imageStyle={{ |
| 958 |
marginLeft: item?.owner_id !== profileData?.id ? mvs(19) : mvs(0), |
| 959 |
marginRight: item?.owner_id !== profileData?.id ? mvs(0) : mvs(19), |
| 960 |
}} |
| 961 |
/> |
| 962 |
); |
| 963 |
} else if (item?.type_verbose === 'VIDEO_MESSAGE') { |
| 964 |
return ( |
| 965 |
<ProductStatusCard |
| 966 |
image={`${active_chat?.image_base_url}${item?.body}`} |
| 967 |
sending={item?.body !== '' ? false : true} |
| 968 |
onPressImage={() => { |
| 969 |
setVideo( |
| 970 |
`https://api.taketo.exodevs.com/storage/threads/${thread_id}/videos/${item?.body}`, |
| 971 |
); |
| 972 |
setPlayingVideo(true); |
| 973 |
}} |
| Warning |
Row 974, Column 18: "Inline style: {
flexDirection: "item?.owner_id === profileData?.id ? 'row' : 'row-reverse'",
borderColor: 'red'
}"
react-native/no-inline-styles
|
| 974 |
style={{ |
| 975 |
flexDirection: |
| 976 |
item?.owner_id === profileData?.id ? 'row' : 'row-reverse', |
| 977 |
borderColor: 'red', |
| 978 |
}} |
| 979 |
profileData={profileData} |
| 980 |
item={item} |
| 981 |
video |
| Warning |
Row 982, Column 23: "Inline style: { paddingVertical: 0, paddingHorizontal: 0 }"
react-native/no-inline-styles
|
| 982 |
imageStyle={{ |
| 983 |
height: mvs(150), |
| 984 |
width: mvs(200), |
| 985 |
paddingVertical: 0, |
| 986 |
paddingHorizontal: 0, |
| 987 |
marginLeft: item?.owner_id !== profileData?.id ? mvs(19) : mvs(0), |
| 988 |
marginRight: item?.owner_id !== profileData?.id ? mvs(0) : mvs(19), |
| 989 |
borderColor: |
| 990 |
item?.owner_id !== profileData?.id |
| 991 |
? colors.lightgrey1 |
| 992 |
: colors.primary, |
| 993 |
}} |
| 994 |
/> |
| 995 |
); |
| 996 |
} else if (item?.type_verbose === 'DOCUMENT_MESSAGE') { |
| 997 |
return ( |
| 998 |
<TouchableOpacity |
| 999 |
onPress={() => onOpenDoc(item, index)} |
| 1000 |
disabled={downState !== ''} |
| Warning |
Row 1001, Column 18: "Inline style: {
alignSelf: "item?.owner_id === profileData?.id ? 'flex-end' : 'flex-start'",
justifyContent: "item?.audio === '' ? 'center' : null"
}"
react-native/no-inline-styles
|
| 1001 |
style={{ |
| 1002 |
...styles.playerMainContainer, |
| 1003 |
alignSelf: |
| 1004 |
item?.owner_id === profileData?.id ? 'flex-end' : 'flex-start', |
| 1005 |
backgroundColor: |
| 1006 |
item?.owner_id === profileData?.id |
| 1007 |
? colors?.primary |
| 1008 |
: colors.secondary, |
| 1009 |
width: mvs(268), |
| 1010 |
height: mvs(52), |
| 1011 |
justifyContent: item?.audio === '' ? 'center' : null, |
| 1012 |
// borderWidth : RNFS.exists(fs.dirs.DownloadDir + '/' + item?.boby) ? 1 : 0 |
| 1013 |
}}> |
| 1014 |
{item?.owner_id === profileData?.id ? ( |
| 1015 |
<Doc1 height={mvs(20)} width={mvs(20)} /> |
| 1016 |
) : ( |
| 1017 |
<Doc2 height={mvs(20)} width={mvs(20)} /> |
| 1018 |
)} |
| 1019 |
<Regular |
| 1020 |
label={ |
| Warning |
Row 1021, Column 28: "Expected '===' and instead saw '=='."
eqeqeq
|
| 1021 |
selectedFile == index |
| 1022 |
? downState === '' |
| Warning |
Row 1023, Column 32: "Expected '===' and instead saw '=='."
eqeqeq
|
| 1023 |
? item?.body == '' |
| 1024 |
? 'Sending ...' |
| 1025 |
: item?.body?.length > 20 |
| Error |
Row 1026, Column 21: "Delete `··`"
prettier/prettier
|
| 1026 |
? `${item?.body?.substring(0, 20)} ...` |
| Error |
Row 1027, Column 1: "Delete `··`"
prettier/prettier
|
| 1027 |
: item?.body |
| 1028 |
: downState |
| Warning |
Row 1029, Column 30: "Expected '===' and instead saw '=='."
eqeqeq
|
| 1029 |
: item?.body == '' |
| Error |
Row 1030, Column 17: "Delete `··`"
prettier/prettier
|
| 1030 |
? 'Sending ...' |
| Error |
Row 1031, Column 1: "Replace `··················` with `················`"
prettier/prettier
|
| 1031 |
: item?.body?.length > 20 |
| Error |
Row 1032, Column 1: "Delete `····`"
prettier/prettier
|
| 1032 |
? `${item?.body?.substring(0, 20)} ...` |
| Error |
Row 1033, Column 1: "Replace `····················` with `················`"
prettier/prettier
|
| 1033 |
: item?.body |
| 1034 |
} |
| 1035 |
style={{ |
| 1036 |
color: |
| 1037 |
item?.owner_id === profileData?.id |
| 1038 |
? colors.white |
| 1039 |
: colors.typeHeader, |
| 1040 |
fontSize: mvs(12), |
| 1041 |
marginLeft: mvs(5), |
| 1042 |
}} |
| 1043 |
/> |
| 1044 |
<View style={styles.timeContainer}> |
| 1045 |
<Regular |
| 1046 |
label={TAKE_TO_CONSTANT.getConversationTime(item?.created_at)} |
| 1047 |
style={{ |
| 1048 |
color: |
| 1049 |
item?.owner_id === profileData?.id |
| 1050 |
? colors.white |
| 1051 |
: colors.typeHeader, |
| 1052 |
fontSize: mvs(10), |
| 1053 |
}} |
| 1054 |
/> |
| 1055 |
{item?.owner_id === profileData?.id && |
| 1056 |
(item?.unread ? ( |
| Error |
Row 1057, Column 34: "Replace `·marginLeft:·mvs(10)·` with `marginLeft:·mvs(10)`"
prettier/prettier
|
| 1057 |
<Deliver style={{ marginLeft: mvs(10) }} /> |
| 1058 |
) : ( |
| Error |
Row 1059, Column 36: "Replace `·marginLeft:·mvs(10)·` with `marginLeft:·mvs(10)`"
prettier/prettier
|
| 1059 |
<SeenWhite style={{ marginLeft: mvs(10) }} /> |
| 1060 |
))} |
| 1061 |
</View> |
| 1062 |
</TouchableOpacity> |
| 1063 |
); |
| 1064 |
} else if ( |
| 1065 |
active_chat?.order?.order_step !== 'order_step_1' && |
| 1066 |
active_chat?.order?.order_step !== 'order_step_2' && |
| 1067 |
active_chat?.order?.order_step !== 'order_step_3' && |
| 1068 |
active_chat?.order?.order_step !== 'order_step_4' && |
| 1069 |
item?.type_verbose === 'RECEIPT_IMAGE_MESSAGE' |
| 1070 |
) { |
| 1071 |
return ( |
| 1072 |
<ProductStatusCard |
| 1073 |
showStatus={true} |
| 1074 |
status={ |
| 1075 |
active_chat?.order?.order_step === 'Disputed' && |
| Error |
Row 1076, Column 1: "Replace `··············` with `············`"
prettier/prettier
|
| 1076 |
messages[messages?.length - 1]?.type_verbose === |
| 1077 |
'RECEIPT_IMAGE_MESSAGE' |
| 1078 |
? 'Disputed' |
| 1079 |
: '' |
| 1080 |
} |
| 1081 |
label={ |
| 1082 |
active_chat?.order?.order_step === 'Disputed' && |
| Error |
Row 1083, Column 1: "Delete `··`"
prettier/prettier
|
| 1083 |
messages[messages?.length - 1]?.type_verbose === |
| 1084 |
'RECEIPT_IMAGE_MESSAGE' |
| 1085 |
? 'Reciept Disputed' |
| 1086 |
: 'Reciept Approved' |
| 1087 |
} |
| 1088 |
profileData={profileData} |
| 1089 |
item={item} |
| 1090 |
image={`${active_chat?.image_base_url}${item?.body}`} |
| 1091 |
onPressImage={() => { |
| 1092 |
if (item?.body !== '') { |
| 1093 |
setImages([ |
| 1094 |
{ |
| 1095 |
uri: `${active_chat?.image_base_url}${item?.body}`, |
| 1096 |
}, |
| 1097 |
]); |
| 1098 |
setImageViewer(true); |
| 1099 |
} |
| 1100 |
}} |
| Warning |
Row 1101, Column 18: "Inline style: {
flexDirection: "item?.owner_id === profileData?.id ? 'row' : 'row-reverse'"
}"
react-native/no-inline-styles
|
| 1101 |
style={{ |
| 1102 |
flexDirection: |
| 1103 |
item?.owner_id === profileData?.id ? 'row' : 'row-reverse', |
| 1104 |
}} |
| 1105 |
imageStyle={{ |
| 1106 |
marginLeft: item?.owner_id !== profileData?.id ? mvs(19) : mvs(0), |
| 1107 |
marginRight: item?.owner_id !== profileData?.id ? mvs(0) : mvs(19), |
| 1108 |
}} |
| 1109 |
/> |
| 1110 |
); |
| 1111 |
} else if ( |
| 1112 |
active_chat?.order?.order_step !== 'order_step_1' && |
| 1113 |
active_chat?.order?.order_step !== 'order_step_2' && |
| 1114 |
item?.type_verbose === 'PRODUCT_IMAGE_MESSAGE' |
| 1115 |
) { |
| 1116 |
return ( |
| 1117 |
<ProductStatusCard |
| 1118 |
showStatus={true} |
| 1119 |
status={ |
| 1120 |
active_chat?.order?.order_step === 'Disputed' && |
| Error |
Row 1121, Column 13: "Delete `··`"
prettier/prettier
|
| 1121 |
messages[messages?.length - 1]?.type_verbose === |
| 1122 |
'PRODUCT_IMAGE_MESSAGE' |
| 1123 |
? 'Disputed' |
| 1124 |
: '' |
| 1125 |
} |
| Warning |
Row 1126, Column 18: "Inline style: {
flexDirection: "item?.owner_id === profileData?.id ? 'row' : 'row-reverse'"
}"
react-native/no-inline-styles
|
| 1126 |
style={{ |
| 1127 |
flexDirection: |
| 1128 |
item?.owner_id === profileData?.id ? 'row' : 'row-reverse', |
| 1129 |
}} |
| 1130 |
profileData={profileData} |
| 1131 |
item={item} |
| 1132 |
label={ |
| 1133 |
active_chat?.order?.order_step === 'Disputed' && |
| Error |
Row 1134, Column 1: "Delete `··`"
prettier/prettier
|
| 1134 |
messages[messages?.length - 1]?.type_verbose === |
| 1135 |
'PRODUCT_IMAGE_MESSAGE' |
| 1136 |
? 'Product Disputed' |
| 1137 |
: 'Product Approved' |
| 1138 |
} |
| 1139 |
image={`${active_chat?.image_base_url}${item?.body}`} |
| 1140 |
onPressImage={() => { |
| 1141 |
if (item?.body !== '') { |
| 1142 |
setImages([ |
| 1143 |
{ |
| 1144 |
uri: `${active_chat?.image_base_url}${item?.body}`, |
| 1145 |
}, |
| 1146 |
]); |
| 1147 |
setImageViewer(true); |
| 1148 |
} |
| 1149 |
}} |
| 1150 |
imageStyle={{ |
| 1151 |
marginLeft: item?.owner_id !== profileData?.id ? mvs(19) : mvs(0), |
| 1152 |
marginRight: item?.owner_id !== profileData?.id ? mvs(0) : mvs(19), |
| 1153 |
}} |
| 1154 |
/> |
| 1155 |
); |
| 1156 |
} else if ( |
| 1157 |
active_chat?.order?.order_step !== 'order_step_2' && |
| 1158 |
active_chat?.order?.order_step !== 'order_step_3' && |
| 1159 |
item?.type_verbose === 'RECEIPT_IMAGE_MESSAGE' |
| 1160 |
) { |
| 1161 |
return ( |
| 1162 |
<ProductStatusCard |
| 1163 |
showStatus={true} |
| 1164 |
label={ |
| 1165 |
active_chat?.order?.is_buyer |
| 1166 |
? 'Approve Reciept' |
| 1167 |
: 'Pending Approval Reciept' |
| 1168 |
} |
| 1169 |
profileData={profileData} |
| 1170 |
item={item} |
| 1171 |
image={`${active_chat?.image_base_url}${item?.body}`} |
| 1172 |
onPressImage={() => { |
| 1173 |
active_chat?.order?.is_buyer && |
| 1174 |
navigation.navigate('approve', { |
| 1175 |
type: 'receipt', |
| 1176 |
order_data: { |
| 1177 |
...active_chat?.order, |
| 1178 |
product_img: '', |
| 1179 |
thread_id, |
| 1180 |
product_image: `${active_chat?.image_base_url}${item?.body}`, |
| 1181 |
participant_name: active_chat?.order?.participant_name, |
| 1182 |
}, |
| 1183 |
}); |
| 1184 |
}} |
| Warning |
Row 1185, Column 18: "Inline style: {
flexDirection: "item?.owner_id === profileData?.id ? 'row' : 'row-reverse'"
}"
react-native/no-inline-styles
|
| 1185 |
style={{ |
| 1186 |
flexDirection: |
| 1187 |
item?.owner_id === profileData?.id ? 'row' : 'row-reverse', |
| 1188 |
}} |
| 1189 |
imageStyle={{ |
| 1190 |
marginLeft: item?.owner_id !== profileData?.id ? mvs(19) : mvs(0), |
| 1191 |
marginRight: item?.owner_id !== profileData?.id ? mvs(0) : mvs(19), |
| 1192 |
}} |
| 1193 |
/> |
| 1194 |
); |
| 1195 |
} else if ( |
| Warning |
Row 1196, Column 38: "Expected '===' and instead saw '=='."
eqeqeq
|
| 1196 |
active_chat?.order?.order_step == 'order_step_2' && |
| 1197 |
item?.type_verbose === 'PRODUCT_IMAGE_MESSAGE' |
| 1198 |
) { |
| 1199 |
return ( |
| 1200 |
<ProductStatusCard |
| 1201 |
{...props} |
| 1202 |
showStatus={true} |
| 1203 |
status={item?.status} |
| 1204 |
label={ |
| 1205 |
active_chat?.order?.is_buyer |
| 1206 |
? 'Approve Product Image' |
| 1207 |
: 'Pending Approval Product Image' |
| 1208 |
} |
| 1209 |
profileData={profileData} |
| 1210 |
item={item} |
| 1211 |
image={`${active_chat?.image_base_url}${item?.body}`} |
| 1212 |
onPressImage={() => { |
| 1213 |
active_chat?.order?.is_buyer && |
| 1214 |
navigation.navigate('approve', { |
| 1215 |
type: 'product', |
| 1216 |
order_data: { |
| 1217 |
...active_chat?.order, |
| 1218 |
product_img: '', |
| 1219 |
thread_id, |
| 1220 |
product_image: `${active_chat?.image_base_url}${item?.body}`, |
| 1221 |
participant_name: active_chat?.order?.participant_name, |
| 1222 |
}, |
| 1223 |
}); |
| 1224 |
}} |
| Warning |
Row 1225, Column 18: "Inline style: {
flexDirection: "item?.owner_id === profileData?.id ? 'row' : 'row-reverse'"
}"
react-native/no-inline-styles
|
| 1225 |
style={{ |
| 1226 |
flexDirection: |
| 1227 |
item?.owner_id === profileData?.id ? 'row' : 'row-reverse', |
| 1228 |
}} |
| 1229 |
imageStyle={{ |
| 1230 |
marginLeft: item?.owner_id !== profileData?.id ? mvs(19) : mvs(0), |
| 1231 |
marginRight: item?.owner_id !== profileData?.id ? mvs(0) : mvs(19), |
| 1232 |
}} |
| 1233 |
/> |
| 1234 |
); |
| Warning |
Row 1235, Column 27: "Expected '===' and instead saw '=='."
eqeqeq
|
| 1235 |
} else if (item?.type == 'acceptButton') { |
| 1236 |
return ( |
| 1237 |
<ButtonWithPrice |
| 1238 |
price={'90'} |
| 1239 |
title={'Approve'} |
| 1240 |
onPress={() => { |
| 1241 |
setRewardAccepted(true); |
| 1242 |
}} |
| 1243 |
/> |
| 1244 |
); |
| Warning |
Row 1245, Column 27: "Expected '===' and instead saw '=='."
eqeqeq
|
| 1245 |
} else if (item?.type == 'sendButton') { |
| Error |
Row 1246, Column 75: "Delete `·`"
prettier/prettier
|
| 1246 |
return <ButtonWithPrice price={'90'} title={'Send'} onPress={() => { }} />; |
| Warning |
Row 1247, Column 27: "Expected '===' and instead saw '=='."
eqeqeq
|
| 1247 |
} else if (item?.type == 'sendReceipt') { |
| 1248 |
return ( |
| 1249 |
<SendReceipt |
| 1250 |
onPress={() => { |
| 1251 |
setSendReceiptModal(true); |
| 1252 |
}} |
| 1253 |
/> |
| 1254 |
); |
| Warning |
Row 1255, Column 27: "Expected '===' and instead saw '=='."
eqeqeq
|
| 1255 |
} else if (item?.type == 'twoButtons') { |
| 1256 |
return ( |
| 1257 |
<TwoButtons |
| 1258 |
sendProductLoading={sendProductLoading} |
| 1259 |
onPress1={() => { |
| 1260 |
setDeliveryConfirmedModal(true); |
| 1261 |
}} |
| 1262 |
onPress2={() => { |
| 1263 |
setDeliveryDisputedModal(true); |
| 1264 |
}} |
| 1265 |
/> |
| 1266 |
); |
| 1267 |
} else if (item?.type_verbose === 'MAP') { |
| 1268 |
return ( |
| 1269 |
<ShareLocation |
| 1270 |
{...props} |
| 1271 |
profileData={profileData} |
| 1272 |
item={item} |
| 1273 |
onPress={() => { |
| 1274 |
showLocation({ |
| 1275 |
latitude: item?.body?.split(',')[0], |
| 1276 |
longitude: item?.body?.split(',')[1], |
| 1277 |
}); |
| 1278 |
}} |
| Warning |
Row 1279, Column 18: "Inline style: {
flexDirection: "item?.owner_id === profileData?.id ? 'row' : 'row-reverse'"
}"
react-native/no-inline-styles
|
| 1279 |
style={{ |
| 1280 |
flexDirection: |
| 1281 |
item?.owner_id === profileData?.id ? 'row' : 'row-reverse', |
| 1282 |
}} |
| 1283 |
mapStyles={{ |
| 1284 |
marginLeft: item?.owner_id !== profileData?.id ? mvs(19) : mvs(0), |
| 1285 |
marginRight: item?.owner_id !== profileData?.id ? mvs(0) : mvs(19), |
| 1286 |
}} |
| 1287 |
/> |
| 1288 |
); |
| Warning |
Row 1289, Column 35: "Expected '===' and instead saw '=='."
eqeqeq
|
| 1289 |
} else if (item?.type_verbose == 'AUDIO_MESSAGE') { |
| 1290 |
return ( |
| 1291 |
<View |
| Warning |
Row 1292, Column 18: "Inline style: {
alignSelf: "item?.owner_id === profileData?.id ? 'flex-end' : 'flex-start'",
width: "item?.audio === '' ? mvs(268) : null",
justifyContent: "item?.audio === '' ? 'center' : null"
}"
react-native/no-inline-styles
|
| 1292 |
style={{ |
| 1293 |
...styles.playerMainContainer, |
| 1294 |
alignSelf: |
| 1295 |
item?.owner_id === profileData?.id ? 'flex-end' : 'flex-start', |
| 1296 |
backgroundColor: |
| 1297 |
item?.owner_id === profileData?.id |
| 1298 |
? colors?.primary |
| 1299 |
: colors.secondary, |
| 1300 |
width: item?.audio === '' ? mvs(268) : null, |
| 1301 |
justifyContent: item?.audio === '' ? 'center' : null, |
| 1302 |
}}> |
| 1303 |
{item?.audio !== '' ? ( |
| 1304 |
<> |
| 1305 |
<ImagePlaceholder |
| 1306 |
bg_img={ |
| 1307 |
item?.owner_id !== profileData?.id |
| 1308 |
? active_chat?.order?.participant_profile_picture |
| 1309 |
: profileData?.profile_picture |
| 1310 |
} |
| 1311 |
containerStyle={{ |
| 1312 |
height: mvs(30), |
| 1313 |
width: mvs(30), |
| 1314 |
borderRadius: mvs(30 / 2), |
| 1315 |
}} |
| 1316 |
/> |
| 1317 |
{playerId === index ? ( |
| 1318 |
!playing ? ( |
| 1319 |
item?.owner_id === profileData?.id ? ( |
| 1320 |
<Play1 |
| 1321 |
onPress={async () => { |
| 1322 |
setPlaying(true); |
| 1323 |
await TrackPlayer.play(); |
| 1324 |
}} |
| Error |
Row 1325, Column 31: "Replace `·marginLeft:·mvs(20)·` with `marginLeft:·mvs(20)`"
prettier/prettier
|
| 1325 |
style={{ marginLeft: mvs(20) }} |
| 1326 |
/> |
| 1327 |
) : ( |
| 1328 |
<Play2 |
| 1329 |
onPress={async () => { |
| 1330 |
setPlaying(true); |
| 1331 |
await TrackPlayer.play(); |
| 1332 |
}} |
| Error |
Row 1333, Column 31: "Replace `·marginLeft:·mvs(20)·` with `marginLeft:·mvs(20)`"
prettier/prettier
|
| 1333 |
style={{ marginLeft: mvs(20) }} |
| 1334 |
/> |
| 1335 |
) |
| 1336 |
) : item?.owner_id === profileData?.id ? ( |
| 1337 |
<Pause1 |
| 1338 |
onPress={async () => { |
| 1339 |
setPlaying(false); |
| 1340 |
await TrackPlayer.pause(); |
| 1341 |
}} |
| 1342 |
height={mvs(17)} |
| 1343 |
width={mvs(17)} |
| Error |
Row 1344, Column 29: "Replace `·marginLeft:·mvs(20)·` with `marginLeft:·mvs(20)`"
prettier/prettier
|
| 1344 |
style={{ marginLeft: mvs(20) }} |
| 1345 |
/> |
| 1346 |
) : ( |
| 1347 |
<Pause2 |
| 1348 |
onPress={async () => { |
| 1349 |
await setPlaying(false); |
| 1350 |
TrackPlayer.pause(); |
| 1351 |
}} |
| 1352 |
height={mvs(17)} |
| 1353 |
width={mvs(17)} |
| Error |
Row 1354, Column 29: "Replace `·marginLeft:·mvs(20)·` with `marginLeft:·mvs(20)`"
prettier/prettier
|
| 1354 |
style={{ marginLeft: mvs(20) }} |
| 1355 |
/> |
| 1356 |
) |
| 1357 |
) : item?.owner_id === profileData?.id ? ( |
| 1358 |
<Play1 |
| 1359 |
onPress={async () => { |
| 1360 |
setPlayerId(index); |
| 1361 |
setPlaying(true); |
| 1362 |
const temp = item?.audio?.split(/[\s/]+/); |
| 1363 |
const audio = temp[temp.length - 1]; |
| 1364 |
await TrackPlayer.reset(); |
| 1365 |
await TrackPlayer.add({ |
| 1366 |
url: { |
| 1367 |
uri: `https://api.taketo.exodevs.com/storage/threads/${thread_id}/audio/${audio}`, |
| 1368 |
}, |
| 1369 |
artist: 'index', |
| Warning |
Row 1370, Column 27: "Strings must use singlequote."
quotes
|
| 1370 |
id: `index`, |
| 1371 |
title: 'hj', |
| 1372 |
genre: 'Phish', |
| 1373 |
}); |
| 1374 |
await TrackPlayer.play(); |
| 1375 |
}} |
| Error |
Row 1376, Column 27: "Replace `·marginLeft:·mvs(20)·` with `marginLeft:·mvs(20)`"
prettier/prettier
|
| 1376 |
style={{ marginLeft: mvs(20) }} |
| 1377 |
/> |
| 1378 |
) : ( |
| 1379 |
<Play2 |
| 1380 |
onPress={async () => { |
| 1381 |
setPlayerId(index); |
| 1382 |
setPlaying(true); |
| 1383 |
const temp = item?.audio?.split(/[\s/]+/); |
| 1384 |
const audio = temp[temp.length - 1]; |
| 1385 |
TrackPlayer.reset(); |
| 1386 |
TrackPlayer.add({ |
| 1387 |
url: { |
| 1388 |
uri: `https://api.taketo.exodevs.com/storage/threads/${thread_id}/audio/${audio}`, |
| 1389 |
}, |
| 1390 |
}); |
| 1391 |
await TrackPlayer.play(); |
| 1392 |
}} |
| Error |
Row 1393, Column 27: "Replace `·marginLeft:·mvs(20)·` with `marginLeft:·mvs(20)`"
prettier/prettier
|
| 1393 |
style={{ marginLeft: mvs(20) }} |
| 1394 |
/> |
| 1395 |
)} |
| 1396 |
<Slider |
| Warning |
Row 1397, Column 24: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 1397, Column 25: "Replace `·flex:·1,·marginLeft:·mvs(18)·` with `flex:·1,·marginLeft:·mvs(18)`"
prettier/prettier
|
| 1397 |
style={{ flex: 1, marginLeft: mvs(18) }} |
| Warning |
Row 1398, Column 33: "Expected '===' and instead saw '=='."
eqeqeq
|
| 1398 |
value={playerId == index ? progress.position : 0} |
| Warning |
Row 1399, Column 29: "Inline style: { height: 15, width: 15 }"
react-native/no-inline-styles
|
| Error |
Row 1399, Column 30: "Replace `·height:·15,·width:·15·` with `height:·15,·width:·15`"
prettier/prettier
|
| 1399 |
thumbStyle={{ height: 15, width: 15 }} |
| 1400 |
minimumValue={min} |
| 1401 |
thumbTintColor={ |
| 1402 |
item?.owner_id === profileData?.id |
| 1403 |
? colors.white |
| 1404 |
: colors.primary |
| 1405 |
} |
| 1406 |
maximumValue={progress.duration} |
| 1407 |
minimumTrackTintColor={ |
| 1408 |
item?.owner_id === profileData?.id |
| 1409 |
? '#8AB9FD' |
| 1410 |
: colors.lightgrey1 |
| 1411 |
} |
| 1412 |
maximumTrackTintColor={ |
| 1413 |
item?.owner_id === profileData?.id |
| 1414 |
? '#8AB9FD' |
| 1415 |
: colors.lightgrey1 |
| 1416 |
} |
| 1417 |
onSlidingComplete={async v => { |
| 1418 |
await TrackPlayer.seekTo(v); |
| 1419 |
}} |
| 1420 |
/> |
| 1421 |
<View style={styles.timeContainer}> |
| 1422 |
<Regular |
| 1423 |
label={TAKE_TO_CONSTANT.getConversationTime(item?.created_at)} |
| 1424 |
style={{ |
| 1425 |
color: |
| 1426 |
item?.owner_id === profileData?.id |
| 1427 |
? colors.white |
| 1428 |
: colors.typeHeader, |
| 1429 |
fontSize: mvs(10), |
| 1430 |
}} |
| 1431 |
/> |
| 1432 |
{item?.owner_id === profileData?.id && |
| 1433 |
// <SeenWhite style={{marginLeft: mvs(10)}} /> |
| 1434 |
// ) : ( |
| 1435 |
(item?.unread ? ( |
| Error |
Row 1436, Column 38: "Replace `·marginLeft:·mvs(10)·` with `marginLeft:·mvs(10)`"
prettier/prettier
|
| 1436 |
<Deliver style={{ marginLeft: mvs(10) }} /> |
| 1437 |
) : ( |
| Error |
Row 1438, Column 40: "Replace `·marginLeft:·mvs(10)·` with `marginLeft:·mvs(10)`"
prettier/prettier
|
| 1438 |
<SeenWhite style={{ marginLeft: mvs(10) }} /> |
| 1439 |
))} |
| 1440 |
</View> |
| 1441 |
</> |
| 1442 |
) : ( |
| 1443 |
<ActivityIndicator size={'small'} color={colors.white} /> |
| 1444 |
)} |
| 1445 |
</View> |
| 1446 |
); |
| Warning |
Row 1447, Column 27: "Expected '===' and instead saw '=='."
eqeqeq
|
| 1447 |
} else if (item?.type == 'deliveryLocationDetails') { |
| 1448 |
return ( |
| 1449 |
<Buttons.ButtonPrimary |
| 1450 |
onClick={() => |
| 1451 |
navigation.navigate('newaddress', { |
| 1452 |
region: { |
| 1453 |
latitude: 37.78825, |
| 1454 |
latitudeDelta: 0.015, |
| 1455 |
longitude: -122.4324, |
| 1456 |
longitudeDelta: 0.0121, |
| 1457 |
}, |
| 1458 |
isChat: true, |
| 1459 |
}) |
| 1460 |
} |
| 1461 |
title={'Delivery location details'} |
| Error |
Row 1462, Column 19: "Replace `·marginBottom:·mvs(40),·marginTop:·mvs(15)·` with `marginBottom:·mvs(40),·marginTop:·mvs(15)`"
prettier/prettier
|
| 1462 |
style={{ marginBottom: mvs(40), marginTop: mvs(15) }} |
| 1463 |
/> |
| 1464 |
); |
| 1465 |
} |
| 1466 |
}; |
| 1467 |
|
| 1468 |
if (loadingChat) { |
| 1469 |
return ( |
| 1470 |
<View style={styles.CONTAINER}> |
| 1471 |
<Header |
| 1472 |
{...props} |
| 1473 |
title={participant_name || 'Inbox'} |
| 1474 |
allowBackBtn |
| 1475 |
userIcon={false} |
| 1476 |
callIcons |
| 1477 |
/> |
| Warning |
Row 1478, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 1478, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| 1478 |
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> |
| 1479 |
<ActivityIndicator size="small" color={colors.primary} /> |
| 1480 |
</View> |
| 1481 |
</View> |
| 1482 |
); |
| Warning |
Row 1483, Column 5: "Expected { after 'else'."
curly
|
| 1483 |
} else |
| 1484 |
return ( |
| 1485 |
<KeyboardAvoidingView |
| 1486 |
behavior={Platform.OS === 'ios' ? 'padding' : 'height'} |
| 1487 |
style={styles.CONTAINER}> |
| 1488 |
<Header |
| 1489 |
{...props} |
| 1490 |
title={active_chat?.order?.participant_name} |
| 1491 |
allowBackBtn |
| 1492 |
userIcon={false} |
| 1493 |
callIcons |
| 1494 |
/> |
| 1495 |
|
| 1496 |
<View style={styles.BODY}> |
| 1497 |
<OrderStatusCard |
| 1498 |
{...props} |
| 1499 |
message={messages[messages?.length - 1]} |
| 1500 |
/> |
| 1501 |
<ScrollView |
| 1502 |
ref={scrollRef} |
| 1503 |
onContentSizeChange={() => |
| Error |
Row 1504, Column 46: "Replace `·animated:·true·` with `animated:·true`"
prettier/prettier
|
| 1504 |
scrollRef.current.scrollToEnd({ animated: true }) |
| 1505 |
} |
| 1506 |
contentContainerStyle={{ |
| 1507 |
paddingBottom: mvs(50), |
| 1508 |
paddingHorizontal: mvs(20), |
| 1509 |
}}> |
| 1510 |
{messages?.map((element, index) => |
| Error |
Row 1511, Column 30: "Replace `·item:·element,·index:·index·` with `item:·element,·index:·index`"
prettier/prettier
|
| 1511 |
renderMessage({ item: element, index: index }), |
| 1512 |
)} |
| 1513 |
{(active_chat?.order?.order_step !== 'Disputed' || |
| 1514 |
active_chat?.order?.order_step !== 'completed') && ( |
| Error |
Row 1515, Column 15: "Delete `··`"
prettier/prettier
|
| 1515 |
<Fragment> |
| Error |
Row 1516, Column 1: "Replace `··················` with `················`"
prettier/prettier
|
| 1516 |
<> |
| Error |
Row 1517, Column 1: "Delete `··`"
prettier/prettier
|
| 1517 |
{/* ================= START SEND PRODUCT IMAGE =================== */} |
| Error |
Row 1518, Column 1: "Replace `····················` with `··················`"
prettier/prettier
|
| Warning |
Row 1518, Column 53: "Expected '===' and instead saw '=='."
eqeqeq
|
| 1518 |
{active_chat?.order?.order_step == 'order_step_1' && |
| Error |
Row 1519, Column 21: "Delete `··`"
prettier/prettier
|
| 1519 |
!active_chat?.order?.is_buyer && ( |
| Error |
Row 1520, Column 1: "Replace `························` with `······················`"
prettier/prettier
|
| 1520 |
<SendProduct |
| Error |
Row 1521, Column 1: "Delete `··`"
prettier/prettier
|
| 1521 |
uri={imagePicker?.uri || null} |
| Error |
Row 1522, Column 1: "Replace `··························` with `························`"
prettier/prettier
|
| 1522 |
pickImage={() => setOpenPicker(true)} |
| Error |
Row 1523, Column 25: "Delete `··`"
prettier/prettier
|
| 1523 |
sendProductImage={async () => { |
| Error |
Row 1524, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| 1524 |
const formData = new FormData(); |
| Error |
Row 1525, Column 1: "Delete `··`"
prettier/prettier
|
| 1525 |
formData.append('image', imagePicker); |
| Error |
Row 1526, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| 1526 |
formData.append('temporary_id', '123-456-789'); |
| Error |
Row 1527, Column 27: "Delete `··`"
prettier/prettier
|
| 1527 |
formData.append('type', 'product'); |
| Error |
Row 1528, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| 1528 |
formData.append( |
| Error |
Row 1529, Column 1: "Delete `··`"
prettier/prettier
|
| 1529 |
'order_id', |
| Error |
Row 1530, Column 29: "Delete `··`"
prettier/prettier
|
| 1530 |
active_chat?.order?.order_id, |
| Error |
Row 1531, Column 1: "Delete `··`"
prettier/prettier
|
| 1531 |
); |
| Error |
Row 1532, Column 27: "Delete `··`"
prettier/prettier
|
| 1532 |
try { |
| Error |
Row 1533, Column 1: "Delete `··`"
prettier/prettier
|
| 1533 |
setSendProductLoading(true); |
| Error |
Row 1534, Column 29: "Delete `··`"
prettier/prettier
|
| Error |
Row 1534, Column 37: "'messangerClient' is not defined."
no-undef
|
| 1534 |
await messangerClient.post( |
| Error |
Row 1535, Column 1: "Delete `··`"
prettier/prettier
|
| 1535 |
`${services.messanger.open_chat}/${thread_id}/images`, |
| Error |
Row 1536, Column 31: "Delete `··`"
prettier/prettier
|
| 1536 |
formData, |
| Error |
Row 1537, Column 29: "Delete `··`"
prettier/prettier
|
| 1537 |
); |
| Error |
Row 1538, Column 1: "Delete `··`"
prettier/prettier
|
| 1538 |
await fetchActiveChat(`${thread_id}`); |
| Error |
Row 1539, Column 1: "Delete `··`"
prettier/prettier
|
| 1539 |
setSendProductModal(true); |
| Error |
Row 1540, Column 29: "Delete `··`"
prettier/prettier
|
| 1540 |
setSendProductLoading(false); |
| Error |
Row 1541, Column 1: "Delete `··`"
prettier/prettier
|
| 1541 |
} catch (error) { |
| Error |
Row 1542, Column 29: "Delete `··`"
prettier/prettier
|
| 1542 |
setSendProductLoading(false); |
| Error |
Row 1543, Column 1: "Delete `··`"
prettier/prettier
|
| 1543 |
alertRef.current.alertWithType( |
| Error |
Row 1544, Column 31: "Delete `··`"
prettier/prettier
|
| 1544 |
'error', |
| Error |
Row 1545, Column 1: "Delete `··`"
prettier/prettier
|
| 1545 |
'Error', |
| Error |
Row 1546, Column 31: "Delete `··`"
prettier/prettier
|
| 1546 |
UI_API._returnError(error), |
| Error |
Row 1547, Column 1: "Delete `··`"
prettier/prettier
|
| 1547 |
); |
| Error |
Row 1548, Column 27: "Delete `··`"
prettier/prettier
|
| 1548 |
} |
| Error |
Row 1549, Column 1: "Delete `··`"
prettier/prettier
|
| 1549 |
}} |
| Error |
Row 1550, Column 1: "Delete `··`"
prettier/prettier
|
| 1550 |
sendProductLoading={sendProductLoading} |
| Error |
Row 1551, Column 1: "Delete `··`"
prettier/prettier
|
| 1551 |
disabled={ |
| Error |
Row 1552, Column 27: "Delete `··`"
prettier/prettier
|
| 1552 |
imagePicker?.uri === undefined |
| Error |
Row 1553, Column 1: "Delete `··`"
prettier/prettier
|
| 1553 |
? true |
| Error |
Row 1554, Column 29: "Delete `··`"
prettier/prettier
|
| 1554 |
: false || sendProductLoading |
| Error |
Row 1555, Column 1: "Delete `··`"
prettier/prettier
|
| 1555 |
} |
| Error |
Row 1556, Column 23: "Delete `··`"
prettier/prettier
|
| 1556 |
/> |
| Error |
Row 1557, Column 1: "Delete `··`"
prettier/prettier
|
| 1557 |
)} |
| Error |
Row 1558, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 1558, Column 53: "Expected '===' and instead saw '=='."
eqeqeq
|
| 1558 |
{active_chat?.order?.order_step == 'order_step_1' && |
| Error |
Row 1559, Column 1: "Delete `··`"
prettier/prettier
|
| 1559 |
active_chat?.order?.is_buyer && ( |
| Error |
Row 1560, Column 23: "Delete `··`"
prettier/prettier
|
| 1560 |
<ProductStatusCard |
| Error |
Row 1561, Column 1: "Delete `··`"
prettier/prettier
|
| 1561 |
showStatus={true} |
| Error |
Row 1562, Column 25: "Delete `··`"
prettier/prettier
|
| 1562 |
label="Pending Product Image" |
| Error |
Row 1563, Column 1: "Replace `··························` with `························`"
prettier/prettier
|
| 1563 |
image={null} |
| Error |
Row 1564, Column 1: "Replace `··························onPressImage={()·=>·{·` with `························onPressImage={()·=>·{`"
prettier/prettier
|
| 1564 |
onPressImage={() => { }} |
| Error |
Row 1565, Column 23: "Delete `··`"
prettier/prettier
|
| 1565 |
/> |
| Error |
Row 1566, Column 1: "Delete `··`"
prettier/prettier
|
| 1566 |
)} |
| Error |
Row 1567, Column 19: "Delete `··`"
prettier/prettier
|
| 1567 |
{/* ================= END SEND PRODUCT IMAGE =================== */} |
| 1568 |
|
| Error |
Row 1569, Column 1: "Delete `··`"
prettier/prettier
|
| 1569 |
{/* ================= START SEND RECIEPT IMAGE =================== */} |
| Error |
Row 1570, Column 19: "Delete `··`"
prettier/prettier
|
| Warning |
Row 1570, Column 53: "Expected '===' and instead saw '=='."
eqeqeq
|
| 1570 |
{active_chat?.order?.order_step == 'order_step_3' && |
| Error |
Row 1571, Column 1: "Delete `··`"
prettier/prettier
|
| 1571 |
active_chat?.order?.is_buyer && ( |
| Error |
Row 1572, Column 23: "Delete `··`"
prettier/prettier
|
| 1572 |
<ProductStatusCard |
| Error |
Row 1573, Column 1: "Delete `··`"
prettier/prettier
|
| 1573 |
showStatus={true} |
| Error |
Row 1574, Column 25: "Delete `··`"
prettier/prettier
|
| 1574 |
label="Pending Reciept Image" |
| Error |
Row 1575, Column 1: "Delete `··`"
prettier/prettier
|
| 1575 |
image={null} |
| Error |
Row 1576, Column 25: "Replace `··onPressImage={()·=>·{·` with `onPressImage={()·=>·{`"
prettier/prettier
|
| 1576 |
onPressImage={() => { }} |
| Error |
Row 1577, Column 1: "Delete `··`"
prettier/prettier
|
| 1577 |
/> |
| Error |
Row 1578, Column 21: "Delete `··`"
prettier/prettier
|
| 1578 |
)} |
| Error |
Row 1579, Column 1: "Replace `····················` with `··················`"
prettier/prettier
|
| Warning |
Row 1579, Column 53: "Expected '===' and instead saw '=='."
eqeqeq
|
| 1579 |
{active_chat?.order?.order_step == 'order_step_3' && |
| Error |
Row 1580, Column 21: "Delete `··`"
prettier/prettier
|
| 1580 |
!active_chat?.order?.is_buyer && ( |
| Error |
Row 1581, Column 1: "Replace `························` with `······················`"
prettier/prettier
|
| 1581 |
<SendReceipt |
| Error |
Row 1582, Column 1: "Delete `··`"
prettier/prettier
|
| 1582 |
uri={imagePicker?.uri || null} |
| Error |
Row 1583, Column 1: "Replace `··························` with `························`"
prettier/prettier
|
| 1583 |
pickImage={() => setOpenPicker(true)} |
| Error |
Row 1584, Column 25: "Delete `··`"
prettier/prettier
|
| 1584 |
sendProductImage={async () => { |
| Error |
Row 1585, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| 1585 |
const formData = new FormData(); |
| Error |
Row 1586, Column 1: "Delete `··`"
prettier/prettier
|
| 1586 |
formData.append('image', imagePicker); |
| Error |
Row 1587, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| 1587 |
formData.append('temporary_id', '123-456-789'); |
| Error |
Row 1588, Column 27: "Delete `··`"
prettier/prettier
|
| 1588 |
formData.append('type', 'receipt'); |
| Error |
Row 1589, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| 1589 |
formData.append( |
| Error |
Row 1590, Column 29: "Delete `··`"
prettier/prettier
|
| 1590 |
'order_id', |
| Error |
Row 1591, Column 1: "Replace `······························` with `····························`"
prettier/prettier
|
| 1591 |
active_chat?.order?.order_id, |
| Error |
Row 1592, Column 27: "Delete `··`"
prettier/prettier
|
| 1592 |
); |
| Error |
Row 1593, Column 1: "Delete `··`"
prettier/prettier
|
| 1593 |
try { |
| Error |
Row 1594, Column 1: "Delete `··`"
prettier/prettier
|
| 1594 |
setSendProductLoading(true); |
| Error |
Row 1595, Column 29: "Delete `··`"
prettier/prettier
|
| Error |
Row 1595, Column 37: "'messangerClient' is not defined."
no-undef
|
| 1595 |
await messangerClient.post( |
| Error |
Row 1596, Column 1: "Delete `··`"
prettier/prettier
|
| 1596 |
`${services.messanger.open_chat}/${thread_id}/images`, |
| Error |
Row 1597, Column 31: "Delete `··`"
prettier/prettier
|
| 1597 |
formData, |
| Error |
Row 1598, Column 1: "Delete `··`"
prettier/prettier
|
| 1598 |
); |
| Error |
Row 1599, Column 29: "Delete `··`"
prettier/prettier
|
| 1599 |
await fetchActiveChat(`${thread_id}`); |
| Error |
Row 1600, Column 1: "Delete `··`"
prettier/prettier
|
| 1600 |
setSendReceiptModal(true); |
| Error |
Row 1601, Column 29: "Delete `··`"
prettier/prettier
|
| 1601 |
setSendProductLoading(false); |
| Error |
Row 1602, Column 1: "Delete `··`"
prettier/prettier
|
| 1602 |
} catch (error) { |
| Error |
Row 1603, Column 29: "Delete `··`"
prettier/prettier
|
| 1603 |
setSendProductLoading(false); |
| Error |
Row 1604, Column 1: "Delete `··`"
prettier/prettier
|
| 1604 |
alertRef.current.alertWithType( |
| Error |
Row 1605, Column 31: "Delete `··`"
prettier/prettier
|
| 1605 |
'error', |
| Error |
Row 1606, Column 1: "Delete `··`"
prettier/prettier
|
| 1606 |
'Error', |
| Error |
Row 1607, Column 31: "Delete `··`"
prettier/prettier
|
| 1607 |
UI_API._returnError(error), |
| Error |
Row 1608, Column 1: "Delete `··`"
prettier/prettier
|
| 1608 |
); |
| Error |
Row 1609, Column 27: "Delete `··`"
prettier/prettier
|
| 1609 |
} |
| Error |
Row 1610, Column 1: "Delete `··`"
prettier/prettier
|
| 1610 |
}} |
| Error |
Row 1611, Column 25: "Delete `··`"
prettier/prettier
|
| 1611 |
sendProductLoading={sendProductLoading} |
| Error |
Row 1612, Column 1: "Delete `··`"
prettier/prettier
|
| 1612 |
disabled={ |
| Error |
Row 1613, Column 27: "Delete `··`"
prettier/prettier
|
| 1613 |
imagePicker?.uri === undefined |
| Error |
Row 1614, Column 1: "Delete `··`"
prettier/prettier
|
| 1614 |
? true |
| Error |
Row 1615, Column 29: "Delete `··`"
prettier/prettier
|
| 1615 |
: false || sendProductLoading |
| Error |
Row 1616, Column 25: "Delete `··`"
prettier/prettier
|
| 1616 |
} |
| Error |
Row 1617, Column 1: "Delete `··`"
prettier/prettier
|
| 1617 |
/> |
| Error |
Row 1618, Column 1: "Delete `··`"
prettier/prettier
|
| 1618 |
)} |
| Error |
Row 1619, Column 19: "Delete `··`"
prettier/prettier
|
| 1619 |
{/* ================= END SEND RECIEPT IMAGE =================== */} |
| 1620 |
|
| Error |
Row 1621, Column 1: "Delete `··`"
prettier/prettier
|
| 1621 |
{/* ================= START APPROVE ORDER PRICE =================== */} |
| Error |
Row 1622, Column 1: "Delete `··`"
prettier/prettier
|
| 1622 |
{/* <ButtonWithPrice |
| 1623 |
price={'90'} |
| 1624 |
title={'Approve'} |
| 1625 |
onPress={() => { |
| 1626 |
setRewardAccepted(true); |
| 1627 |
}} |
| 1628 |
/> */} |
| Error |
Row 1629, Column 1: "Delete `··`"
prettier/prettier
|
| 1629 |
{/* ================= END APPROVE ORDER PRICE =================== */} |
| 1630 |
|
| Error |
Row 1631, Column 19: "Delete `··`"
prettier/prettier
|
| 1631 |
{/* ================= START SECTION BUTTON (CONFIRM AND DISPUTE DELIVERY) =================== */} |
| Error |
Row 1632, Column 19: "Delete `··`"
prettier/prettier
|
| Warning |
Row 1632, Column 53: "Expected '===' and instead saw '=='."
eqeqeq
|
| 1632 |
{active_chat?.order?.order_step == 'order_step_8' && ( |
| Error |
Row 1633, Column 21: "Delete `··`"
prettier/prettier
|
| 1633 |
<> |
| Error |
Row 1634, Column 1: "Replace `························` with `······················`"
prettier/prettier
|
| 1634 |
{active_chat?.order?.is_buyer ? ( |
| Error |
Row 1635, Column 25: "Delete `··`"
prettier/prettier
|
| 1635 |
<TwoButtons |
| Error |
Row 1636, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| 1636 |
sendProductLoading={sendProductLoading} |
| Error |
Row 1637, Column 27: "Delete `··`"
prettier/prettier
|
| 1637 |
sendDisputeoading={sendDisputeoading} |
| Error |
Row 1638, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| 1638 |
onPress1={() => { |
| Error |
Row 1639, Column 1: "Delete `··`"
prettier/prettier
|
| 1639 |
confirmDeliveryLocation(true); //setDeliveryConfirmedModal(true); |
| Error |
Row 1640, Column 27: "Delete `··`"
prettier/prettier
|
| 1640 |
}} |
| Error |
Row 1641, Column 1: "Delete `··`"
prettier/prettier
|
| 1641 |
onPress2={() => { |
| Error |
Row 1642, Column 1: "Replace `······························` with `····························`"
prettier/prettier
|
| 1642 |
setDeliveryDisputedModal(true); |
| Error |
Row 1643, Column 27: "Delete `··`"
prettier/prettier
|
| 1643 |
}} |
| Error |
Row 1644, Column 1: "Replace `··························` with `························`"
prettier/prettier
|
| 1644 |
/> |
| Error |
Row 1645, Column 1: "Delete `··`"
prettier/prettier
|
| 1645 |
) : ( |
| Error |
Row 1646, Column 1: "Replace `··························` with `························`"
prettier/prettier
|
| 1646 |
<ProductStatusCard |
| Error |
Row 1647, Column 27: "Delete `··`"
prettier/prettier
|
| 1647 |
showStatus={true} |
| Error |
Row 1648, Column 1: "Delete `··`"
prettier/prettier
|
| 1648 |
label="Pending Delivery Confirmation" |
| Error |
Row 1649, Column 27: "Delete `··`"
prettier/prettier
|
| 1649 |
image={null} |
| Error |
Row 1650, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| 1650 |
show_img={false} |
| Error |
Row 1651, Column 1: "Replace `····························onPressImage={()·=>·{·` with `··························onPressImage={()·=>·{`"
prettier/prettier
|
| 1651 |
onPressImage={() => { }} |
| Error |
Row 1652, Column 27: "Delete `··`"
prettier/prettier
|
| 1652 |
style={{ |
| Error |
Row 1653, Column 1: "Delete `··`"
prettier/prettier
|
| 1653 |
//borderWidth:1, |
| Error |
Row 1654, Column 29: "Delete `··`"
prettier/prettier
|
| 1654 |
height: mvs(52), |
| Error |
Row 1655, Column 1: "Delete `··`"
prettier/prettier
|
| 1655 |
}} |
| Error |
Row 1656, Column 25: "Delete `··`"
prettier/prettier
|
| 1656 |
/> |
| Error |
Row 1657, Column 1: "Delete `··`"
prettier/prettier
|
| 1657 |
)} |
| Error |
Row 1658, Column 21: "Delete `··`"
prettier/prettier
|
| 1658 |
</> |
| Error |
Row 1659, Column 19: "Delete `··`"
prettier/prettier
|
| 1659 |
)} |
| Error |
Row 1660, Column 1: "Delete `··`"
prettier/prettier
|
| 1660 |
{/* ================= END SECTION BUTTON (CONFIRM AND DISPUTE DELIVERY) =================== */} |
| 1661 |
|
| Error |
Row 1662, Column 1: "Delete `··`"
prettier/prettier
|
| 1662 |
{/* ================= START SEND CUSTOME OFFER =================== */} |
| Error |
Row 1663, Column 19: "Delete `··`"
prettier/prettier
|
| 1663 |
{/* <ButtonWithPrice price={'90'} title={'Send'} onPress={() => {}} /> */} |
| Error |
Row 1664, Column 1: "Delete `··`"
prettier/prettier
|
| 1664 |
{/* ================= END SEND CUSTOME OFFER =================== */} |
| 1665 |
|
| Error |
Row 1666, Column 19: "Delete `··`"
prettier/prettier
|
| 1666 |
{/* ================= START DELIVERY LOCATION PICKER =================== */} |
| 1667 |
|
| Error |
Row 1668, Column 1: "Replace `····················` with `··················`"
prettier/prettier
|
| 1668 |
{/* {active_chat?.order?.order_step == 'order_step_5' && |
| 1669 |
!active_chat?.order?.is_buyer && ( |
| 1670 |
<Buttons.ButtonPrimary |
| 1671 |
onClick={requestDeliveryAddress} |
| 1672 |
loading={sendProductLoading} |
| 1673 |
loaderColor={colors.white} |
| 1674 |
disabled={sendProductLoading} |
| 1675 |
title={'Request Delivery Address'} |
| 1676 |
style={{marginBottom: mvs(40), marginTop: mvs(15)}} |
| 1677 |
/> |
| 1678 |
)} */} |
| 1679 |
|
| Error |
Row 1680, Column 19: "Delete `··`"
prettier/prettier
|
| Warning |
Row 1680, Column 53: "Expected '===' and instead saw '=='."
eqeqeq
|
| 1680 |
{active_chat?.order?.order_step == 'order_step_5' && ( |
| Error |
Row 1681, Column 21: "Delete `··`"
prettier/prettier
|
| 1681 |
<> |
| Error |
Row 1682, Column 1: "Delete `··`"
prettier/prettier
|
| 1682 |
{!active_chat?.order?.is_buyer ? ( |
| Error |
Row 1683, Column 1: "Delete `··`"
prettier/prettier
|
| 1683 |
<Buttons.ButtonPrimary |
| Error |
Row 1684, Column 27: "Delete `··`"
prettier/prettier
|
| 1684 |
onClick={() => requestDeliveryAddress()} |
| Error |
Row 1685, Column 1: "Delete `··`"
prettier/prettier
|
| 1685 |
loading={sendProductLoading} |
| Error |
Row 1686, Column 27: "Delete `··`"
prettier/prettier
|
| 1686 |
loaderColor={colors.white} |
| Error |
Row 1687, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| 1687 |
disabled={sendProductLoading} |
| Error |
Row 1688, Column 1: "Delete `··`"
prettier/prettier
|
| 1688 |
title={'Request Delivery Address'} |
| Error |
Row 1689, Column 1: "Replace `····························style={{·marginBottom:·mvs(40),·marginTop:·mvs(30)·` with `··························style={{marginBottom:·mvs(40),·marginTop:·mvs(30)`"
prettier/prettier
|
| 1689 |
style={{ marginBottom: mvs(40), marginTop: mvs(30) }} |
| Error |
Row 1690, Column 1: "Replace `··························` with `························`"
prettier/prettier
|
| 1690 |
/> |
| Error |
Row 1691, Column 1: "Delete `··`"
prettier/prettier
|
| 1691 |
) : ( |
| Error |
Row 1692, Column 1: "Delete `··`"
prettier/prettier
|
| 1692 |
<ProductStatusCard |
| Error |
Row 1693, Column 27: "Delete `··`"
prettier/prettier
|
| 1693 |
showStatus={true} |
| Error |
Row 1694, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| 1694 |
label="Pending Delivery Address" |
| Error |
Row 1695, Column 27: "Delete `··`"
prettier/prettier
|
| 1695 |
image={null} |
| Error |
Row 1696, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| 1696 |
show_img={false} |
| Error |
Row 1697, Column 1: "Replace `····························onPressImage={()·=>·{·` with `··························onPressImage={()·=>·{`"
prettier/prettier
|
| 1697 |
onPressImage={() => { }} |
| Error |
Row 1698, Column 27: "Delete `··`"
prettier/prettier
|
| 1698 |
style={{ |
| Error |
Row 1699, Column 1: "Delete `··`"
prettier/prettier
|
| 1699 |
height: mvs(52), |
| Error |
Row 1700, Column 27: "Delete `··`"
prettier/prettier
|
| 1700 |
}} |
| Error |
Row 1701, Column 1: "Delete `··`"
prettier/prettier
|
| 1701 |
/> |
| Error |
Row 1702, Column 23: "Delete `··`"
prettier/prettier
|
| 1702 |
)} |
| Error |
Row 1703, Column 1: "Delete `··`"
prettier/prettier
|
| 1703 |
</> |
| Error |
Row 1704, Column 19: "Delete `··`"
prettier/prettier
|
| 1704 |
)} |
| Error |
Row 1705, Column 1: "Delete `··`"
prettier/prettier
|
| 1705 |
{/* ================= END DELIVERY LOCATION PICKER =================== */} |
| 1706 |
|
| Error |
Row 1707, Column 19: "Delete `··`"
prettier/prettier
|
| 1707 |
{/* ================= START DELIVERY LOCATION PICKER =================== */} |
| Error |
Row 1708, Column 19: "Delete `··`"
prettier/prettier
|
| Warning |
Row 1708, Column 53: "Expected '===' and instead saw '=='."
eqeqeq
|
| 1708 |
{active_chat?.order?.order_step == 'order_step_6' && ( |
| Error |
Row 1709, Column 21: "Delete `··`"
prettier/prettier
|
| 1709 |
<> |
| Error |
Row 1710, Column 1: "Replace `························` with `······················`"
prettier/prettier
|
| 1710 |
{active_chat?.order?.is_buyer ? ( |
| Error |
Row 1711, Column 25: "Delete `··`"
prettier/prettier
|
| 1711 |
<Buttons.ButtonPrimary |
| Error |
Row 1712, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| 1712 |
onClick={() => { |
| Error |
Row 1713, Column 1: "Delete `··`"
prettier/prettier
|
| 1713 |
setlocflag(false); |
| Error |
Row 1714, Column 1: "Replace `······························` with `····························`"
prettier/prettier
|
| 1714 |
toggleDeliveryAddressModal(true); |
| Error |
Row 1715, Column 27: "Delete `··`"
prettier/prettier
|
| 1715 |
}} |
| Error |
Row 1716, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| 1716 |
loading={sendProductLoading} |
| Error |
Row 1717, Column 27: "Delete `··`"
prettier/prettier
|
| 1717 |
loaderColor={colors.white} |
| Error |
Row 1718, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| 1718 |
disabled={sendProductLoading} |
| Error |
Row 1719, Column 1: "Delete `··`"
prettier/prettier
|
| 1719 |
title={'Send Delivery Address'} |
| Error |
Row 1720, Column 1: "Replace `····························style={{·marginBottom:·mvs(40),·marginTop:·mvs(30)·` with `··························style={{marginBottom:·mvs(40),·marginTop:·mvs(30)`"
prettier/prettier
|
| 1720 |
style={{ marginBottom: mvs(40), marginTop: mvs(30) }} |
| Error |
Row 1721, Column 1: "Replace `··························` with `························`"
prettier/prettier
|
| 1721 |
/> |
| Error |
Row 1722, Column 1: "Delete `··`"
prettier/prettier
|
| 1722 |
) : ( |
| Error |
Row 1723, Column 1: "Delete `··`"
prettier/prettier
|
| 1723 |
<ProductStatusCard |
| Error |
Row 1724, Column 27: "Delete `··`"
prettier/prettier
|
| 1724 |
showStatus={true} |
| Error |
Row 1725, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| 1725 |
label="Pending Delivery Address" |
| Error |
Row 1726, Column 27: "Delete `··`"
prettier/prettier
|
| 1726 |
image={null} |
| Error |
Row 1727, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| 1727 |
show_img={false} |
| Error |
Row 1728, Column 1: "Replace `····························onPressImage={()·=>·{·` with `··························onPressImage={()·=>·{`"
prettier/prettier
|
| 1728 |
onPressImage={() => { }} |
| Error |
Row 1729, Column 27: "Delete `··`"
prettier/prettier
|
| 1729 |
style={{ |
| Error |
Row 1730, Column 1: "Delete `··`"
prettier/prettier
|
| 1730 |
//borderWidth:1, |
| Error |
Row 1731, Column 29: "Delete `··`"
prettier/prettier
|
| 1731 |
height: mvs(52), |
| Error |
Row 1732, Column 1: "Delete `··`"
prettier/prettier
|
| 1732 |
}} |
| Error |
Row 1733, Column 25: "Delete `··`"
prettier/prettier
|
| 1733 |
/> |
| Error |
Row 1734, Column 1: "Delete `··`"
prettier/prettier
|
| 1734 |
)} |
| Error |
Row 1735, Column 21: "Delete `··`"
prettier/prettier
|
| 1735 |
</> |
| Error |
Row 1736, Column 1: "Delete `··`"
prettier/prettier
|
| 1736 |
)} |
| Error |
Row 1737, Column 19: "Delete `··`"
prettier/prettier
|
| 1737 |
{/* ================= END DELIVERY LOCATION PICKER =================== */} |
| 1738 |
|
| Error |
Row 1739, Column 1: "Delete `··`"
prettier/prettier
|
| 1739 |
{/* ================= START DELIVERY REQUEST CONFIRM & PENDING =================== */} |
| Error |
Row 1740, Column 19: "Delete `··`"
prettier/prettier
|
| Warning |
Row 1740, Column 53: "Expected '===' and instead saw '=='."
eqeqeq
|
| 1740 |
{active_chat?.order?.order_step == 'order_step_7' && ( |
| Error |
Row 1741, Column 1: "Replace `······················` with `····················`"
prettier/prettier
|
| 1741 |
<> |
| Error |
Row 1742, Column 1: "Delete `··`"
prettier/prettier
|
| 1742 |
{!active_chat?.order?.is_buyer ? ( |
| Error |
Row 1743, Column 1: "Replace `··························` with `························`"
prettier/prettier
|
| 1743 |
<Buttons.ButtonPrimary |
| Error |
Row 1744, Column 1: "Delete `··`"
prettier/prettier
|
| 1744 |
onClick={requestDeliveryAddress} |
| Error |
Row 1745, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| 1745 |
loading={sendProductLoading} |
| Error |
Row 1746, Column 27: "Delete `··`"
prettier/prettier
|
| 1746 |
loaderColor={colors.white} |
| Error |
Row 1747, Column 1: "Replace `····························` with `··························`"
prettier/prettier
|
| 1747 |
disabled={sendProductLoading} |
| Error |
Row 1748, Column 1: "Delete `··`"
prettier/prettier
|
| 1748 |
title={'Request Delivery Confirmation'} |
| Error |
Row 1749, Column 1: "Replace `····························style={{·marginBottom:·mvs(40),·marginTop:·mvs(30)·` with `··························style={{marginBottom:·mvs(40),·marginTop:·mvs(30)`"
prettier/prettier
|
| 1749 |
style={{ marginBottom: mvs(40), marginTop: mvs(30) }} |
| Error |
Row 1750, Column 1: "Replace `··························` with `························`"
prettier/prettier
|
| 1750 |
/> |
| Error |
Row 1751, Column 1: "Delete `··`"
prettier/prettier
|
| 1751 |
) : ( |
| Error |
Row 1752, Column 1: "Replace `··························` with `························`"
prettier/prettier
|
| 1752 |
<ProductStatusCard |
| Error |
Row 1753, Column 1: "Delete `··`"
prettier/prettier
|
| 1753 |
showStatus={true} |
| Error |
Row 1754, Column 27: "Delete `··`"
prettier/prettier
|
| 1754 |
label="Pending Delivery Confirmation" |
| Error |
Row 1755, Column 1: "Delete `··`"
prettier/prettier
|
| 1755 |
image={null} |
| Error |
Row 1756, Column 27: "Delete `··`"
prettier/prettier
|
| 1756 |
show_img={false} |
| Error |
Row 1757, Column 1: "Replace `····························onPressImage={()·=>·{·` with `··························onPressImage={()·=>·{`"
prettier/prettier
|
| 1757 |
onPressImage={() => { }} |
| Error |
Row 1758, Column 1: "Delete `··`"
prettier/prettier
|
| 1758 |
style={{ |
| Error |
Row 1759, Column 1: "Replace `······························` with `····························`"
prettier/prettier
|
| 1759 |
height: mvs(52), |
| Error |
Row 1760, Column 1: "Delete `··`"
prettier/prettier
|
| 1760 |
}} |
| Error |
Row 1761, Column 25: "Delete `··`"
prettier/prettier
|
| 1761 |
/> |
| Error |
Row 1762, Column 1: "Delete `··`"
prettier/prettier
|
| 1762 |
)} |
| Error |
Row 1763, Column 1: "Replace `······················` with `····················`"
prettier/prettier
|
| 1763 |
</> |
| Error |
Row 1764, Column 19: "Delete `··`"
prettier/prettier
|
| 1764 |
)} |
| Error |
Row 1765, Column 1: "Delete `··`"
prettier/prettier
|
| 1765 |
{/* ================= END DELIVERY REQUEST CONFIRM & PENDING =================== */} |
| Error |
Row 1766, Column 17: "Delete `··`"
prettier/prettier
|
| 1766 |
</> |
| Error |
Row 1767, Column 1: "Replace `················` with `··············`"
prettier/prettier
|
| 1767 |
</Fragment> |
| Error |
Row 1768, Column 1: "Delete `··`"
prettier/prettier
|
| 1768 |
)} |
| 1769 |
</ScrollView> |
| 1770 |
|
| 1771 |
<InputToolbar |
| 1772 |
onChangeText={txt => { |
| 1773 |
setMessage(txt); |
| 1774 |
}} |
| 1775 |
value={message} |
| Error |
Row 1776, Column 19: "Replace `·=·` with `=`"
prettier/prettier
|
| 1776 |
status = {active_chat?.order?.order_step} |
| 1777 |
send={message.trim() !== '' ? true : false} |
| 1778 |
onPlus={() => setPlusModal(true)} |
| 1779 |
onSendMessage={onSendMessage} |
| 1780 |
onStop={res => sendAudio(res)} |
| 1781 |
onFocus={() => { |
| 1782 |
// console.log('onFocus'); |
| Error |
Row 1783, Column 46: "Replace `·animated:·true·` with `animated:·true`"
prettier/prettier
|
| 1783 |
scrollRef.current.scrollToEnd({ animated: true }); |
| 1784 |
}} |
| 1785 |
/> |
| 1786 |
</View> |
| 1787 |
|
| 1788 |
{/* <DeliveryConfirmedModal |
| 1789 |
visible={deliveryConfirmedModal} |
| 1790 |
user_name={active_chat?.order?.participant_name} |
| 1791 |
onClose={() => setDeliveryConfirmedModal(false)} |
| 1792 |
isRateUser |
| 1793 |
onPrimary={() => { |
| 1794 |
setDeliveryConfirmedModal(false); |
| 1795 |
navigation.navigate('userprofile', { |
| 1796 |
user_id: active_chat?.order?.participant_id, |
| 1797 |
is_review: true, |
| 1798 |
order_id: active_chat?.order?.order_id, |
| 1799 |
}); |
| 1800 |
}} |
| 1801 |
/> */} |
| 1802 |
|
| 1803 |
{/* <ReceiptDisputedModal |
| 1804 |
visible={deliveryDisputedModal} |
| 1805 |
dispute |
| 1806 |
onClose={() => setDeliveryDisputedModal(false)} |
| 1807 |
onSubmit={() => setDeliveryDisputedModal(false)} |
| 1808 |
onAttach={() => { }} |
| 1809 |
/> */} |
| 1810 |
|
| 1811 |
<RewardAcceptedModal |
| 1812 |
visible={rewardAccepted} |
| 1813 |
onSendButton={() => { |
| 1814 |
setRewardAccepted(false); |
| 1815 |
setRejectDealModal(true); |
| 1816 |
}} |
| 1817 |
onClose={() => { |
| 1818 |
setRewardAccepted(false); |
| 1819 |
}} |
| 1820 |
/> |
| 1821 |
|
| 1822 |
<StatusModal |
| 1823 |
visible={rejectDealModal} |
| 1824 |
title="Deal Rejected" |
| 1825 |
onClose={() => { |
| 1826 |
setRejectDealModal(false); |
| 1827 |
}} |
| 1828 |
buttonTitle={'Back to Delivery History'} |
| 1829 |
/> |
| 1830 |
|
| 1831 |
<StatusModal |
| 1832 |
visible={sendProductModal} |
| 1833 |
title="Product Sent" |
| 1834 |
onClose={() => { |
| 1835 |
setSendProductModal(false); |
| 1836 |
}} |
| 1837 |
buttonTitle={'Back to Delivery History'} |
| 1838 |
endButton |
| 1839 |
endButtonTitle={'Back'} |
| 1840 |
btnColor={colors.primary} |
| 1841 |
/> |
| 1842 |
|
| 1843 |
<StatusModal |
| 1844 |
visible={sendReceiptModal} |
| 1845 |
onConfirm={() => { |
| 1846 |
setSendReceiptModal(false); |
| 1847 |
}} |
| 1848 |
title="Receipt Sent" |
| 1849 |
onClose={() => { |
| 1850 |
setSendReceiptModal(false); |
| 1851 |
}} |
| 1852 |
buttonTitle={'Back to Delivery History'} |
| 1853 |
endButton |
| 1854 |
endButtonTitle={'Back'} |
| 1855 |
btnColor={colors.primary} |
| 1856 |
/> |
| 1857 |
|
| 1858 |
{/* <StatusModal |
| 1859 |
visible = {true} |
| 1860 |
title = "Receipt Accepted" |
| 1861 |
onClose = {() => {}} |
| 1862 |
buttonTitle = {"Request Delivery Address"} |
| 1863 |
/> */} |
| 1864 |
|
| 1865 |
{/* <ProductAcceptedModal |
| 1866 |
visible = {true} |
| 1867 |
onClose = {() => {}} |
| 1868 |
/> */} |
| 1869 |
|
| 1870 |
{/* <ReceiptDisputedModal |
| 1871 |
visible = {true} |
| 1872 |
userInfo |
| 1873 |
onClose = {() => {}} |
| 1874 |
/> */} |
| 1875 |
|
| 1876 |
{/* <ProductRejectedModal |
| 1877 |
visible = {true} |
| 1878 |
onClose = {() => {}} |
| 1879 |
/> */} |
| 1880 |
|
| 1881 |
<DeliveryAddressRequested |
| 1882 |
onClose={toggleDeliveryAddressModal} |
| 1883 |
onNext={sendDeliveryAddress} |
| 1884 |
visible={showDeliveryAddressModal} |
| 1885 |
step={1} |
| 1886 |
/> |
| 1887 |
|
| 1888 |
<DeliveryAddressRequested |
| 1889 |
onClose={setOpenDeliveryReq} |
| 1890 |
onNext={() => setOpenDeliveryReq(false)} |
| 1891 |
visible={openDeliveryReq} |
| 1892 |
order_step={ |
| Warning |
Row 1893, Column 44: "Expected '===' and instead saw '=='."
eqeqeq
|
| 1893 |
active_chat?.order?.order_step == 'order_step_8' ? true : false |
| 1894 |
} |
| 1895 |
step={3} |
| 1896 |
/> |
| 1897 |
|
| 1898 |
<DeliveryConfirmedModal |
| 1899 |
onPrimary={() => { |
| 1900 |
setDeliveryConfirmedModal(false); |
| 1901 |
navigation.navigate('userprofile', { |
| 1902 |
user_id: active_chat?.order?.participant_id, |
| 1903 |
is_review: true, |
| 1904 |
order_id: active_chat?.order?.order_id, |
| 1905 |
}); |
| 1906 |
}} |
| 1907 |
visible={deliveryConfirmedModal} |
| 1908 |
user_name={active_chat?.order?.participant_name} |
| 1909 |
onClose={() => setDeliveryConfirmedModal(false)} |
| 1910 |
/> |
| 1911 |
|
| 1912 |
<DeliveryDisputedModal |
| 1913 |
visible={deliveryDisputedModal} |
| 1914 |
onClose={() => setDeliveryDisputedModal(false)} |
| 1915 |
isRateUser |
| 1916 |
onPrimary={reason => confirmDeliveryLocation(false, reason)} |
| 1917 |
/> |
| 1918 |
|
| 1919 |
<PlusOptionsModal |
| 1920 |
onPress={onPressPlusOptions} |
| 1921 |
visible={plusModal} |
| 1922 |
onClose={() => setPlusModal(false)} |
| 1923 |
/> |
| 1924 |
<DropdownAlert |
| 1925 |
translucent |
| 1926 |
activeStatusBarStyle={'light-content'} |
| 1927 |
inactiveStatusBarBackgroundColor={colors.primary} |
| 1928 |
ref={alertRef} |
| 1929 |
/> |
| 1930 |
|
| 1931 |
<ImagePicker |
| 1932 |
visible={openPicker} |
| 1933 |
showDelete={false} |
| 1934 |
onClose={setOpenPicker} |
| 1935 |
onSubmit={onImageModalSelection} |
| 1936 |
/> |
| 1937 |
|
| 1938 |
<ImageView |
| 1939 |
images={images} |
| 1940 |
imageIndex={0} |
| 1941 |
visible={imageViewer} |
| 1942 |
onRequestClose={() => setImageViewer(false)} |
| 1943 |
/> |
| 1944 |
|
| 1945 |
<VideoPlayer |
| 1946 |
visible={playingVideo} |
| 1947 |
video={video} |
| 1948 |
onClose={() => { |
| 1949 |
setPlayingVideo(false); |
| 1950 |
}} |
| 1951 |
/> |
| 1952 |
</KeyboardAvoidingView> |
| 1953 |
); |
| 1954 |
}; |
| 1955 |
|
| 1956 |
const mapStateToProps = state => { |
| 1957 |
return { |
| 1958 |
active_chat: state.inbox.active_chat, |
| 1959 |
profileData: state.auth.userInfo?.profile || {}, |
| 1960 |
showDeliveryAddressModal: state.common?.showDeliveryAddressModal, |
| 1961 |
deliveryAddress: state.common.deliveryAddress || {}, |
| 1962 |
anotherEcho: state.common?.anotherEcho || {}, |
| 1963 |
}; |
| 1964 |
}; |
| 1965 |
|
| 1966 |
const mapDispatchToProps = dispatch => ({ |
| 1967 |
fetchActiveChat: thread_id => |
| 1968 |
dispatch(TAKE_TO_ACTIONS.fetchActiveChat(thread_id)), |
| 1969 |
newMessageArrived: msg => dispatch(TAKE_TO_ACTIONS.newMessageArrived(msg)), |
| 1970 |
updateMessage: msg => dispatch(TAKE_TO_ACTIONS.updateMessage(msg)), |
| 1971 |
toggleDeliveryAddressModal: bool => |
| 1972 |
dispatch(TAKE_TO_ACTIONS.toggleDeliveryAddressModal(bool)), |
| 1973 |
onSaveDeliveryAddressToRedux: payload => |
| 1974 |
dispatch(TAKE_TO_ACTIONS.onSaveDeliveryAddressToRedux(payload)), |
| 1975 |
updateInboxList: (list, id, counterOnly) => |
| 1976 |
dispatch(TAKE_TO_ACTIONS?.updateInboxList(list, id, counterOnly)), |
| 1977 |
}); |
| 1978 |
|
| 1979 |
export default connect(mapStateToProps, mapDispatchToProps)(Chat); |
| 1980 |
|
| 1981 |
const styles = StyleSheet.create({ |
| 1982 |
CONTAINER: { |
| 1983 |
flex: 1, |
| 1984 |
backgroundColor: colors.white, |
| 1985 |
}, |
| 1986 |
BODY: { |
| 1987 |
backgroundColor: colors.white, |
| 1988 |
flex: 1, |
| 1989 |
}, |
| 1990 |
BUTTON_CONTAINER: { |
| 1991 |
paddingTop: mvs(30), |
| 1992 |
}, |
| 1993 |
ROW: { |
| 1994 |
flexDirection: 'row', |
| 1995 |
justifyContent: 'space-between', |
| 1996 |
alignItems: 'center', |
| 1997 |
}, |
| 1998 |
playerMainContainer: { |
| 1999 |
maxWidth: mvs(268), |
| 2000 |
borderRadius: mvs(10), |
| 2001 |
backgroundColor: colors.primary, |
| 2002 |
marginTop: mvs(15), |
| 2003 |
paddingHorizontal: mvs(10), |
| 2004 |
paddingVertical: mvs(11), |
| 2005 |
flexDirection: 'row', |
| 2006 |
alignItems: 'center', |
| 2007 |
}, |
| 2008 |
timeContainer: { |
| 2009 |
position: 'absolute', |
| 2010 |
bottom: mvs(7), |
| 2011 |
right: mvs(10), |
| 2012 |
flexDirection: 'row', |
| 2013 |
alignItems: 'center', |
| 2014 |
}, |
| 2015 |
}); |
| 2016 |
|
|
|
|
/src/screens/chat/delivery-address.js
|
49 problems (15 errors, 34 warnings)
|
| Severity |
Rule |
| Warning |
Row 8, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| Error |
Row 24, Column 10: "Replace `route,·navigation,onSaveDeliveryAddressToRedux,toggleDeliveryAddressModal` with `⏎····route,⏎····navigation,⏎····onSaveDeliveryAddressToRedux,⏎····toggleDeliveryAddressModal,⏎··`"
prettier/prettier
|
| Warning |
Row 24, Column 17: "'navigation' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 25, Column 9: "'Pointer' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 25, Column 24: "["pointer"] is better written in dot notation."
dot-notation
|
| Warning |
Row 26, Column 10: "'loading' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 28, Column 9: "'phoneInput' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 98, Column 6: "React Hook useEffect has a missing dependency: 'getCurrentLocation'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 128, Column 9: "'onContinue' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 139, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 140, Column 13: "["Home"] is better written in dot notation."
dot-notation
|
| Warning |
Row 142, Column 12: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 162, Column 24: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 167, Column 15: "Duplicate key 'addressType'."
no-dupe-keys
|
| Warning |
Row 171, Column 23: "Inline style: { marginLeft: 0 }"
react-native/no-inline-styles
|
| Warning |
Row 175, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 178, Column 18: "Inline style: {
flexDirection: 'column',
justifyContent: 'space-between',
alignItems: 'center',
zIndex: 1001
}"
react-native/no-inline-styles
|
| Error |
Row 197, Column 14: "Replace `·{...props}·title="Delivery·Address"·allowBackBtn·userIcon={false}` with `⏎········{...props}⏎········title="Delivery·Address"⏎········allowBackBtn⏎········userIcon={false}⏎·····`"
prettier/prettier
|
| Warning |
Row 207, Column 20: "Inline style: { overflow: 'hidden', justifyContent: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 221, Column 24: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Warning |
Row 230, Column 20: "Inline style: {
flexDirection: 'row',
width: '100%',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| Warning |
Row 241, Column 24: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Warning |
Row 244, Column 31: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Warning |
Row 245, Column 22: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 252, Column 15: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Warning |
Row 256, Column 31: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Warning |
Row 257, Column 22: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 262, Column 15: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Warning |
Row 268, Column 20: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 273, Column 13: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Warning |
Row 278, Column 24: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Warning |
Row 280, Column 35: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Warning |
Row 281, Column 26: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 288, Column 19: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Warning |
Row 292, Column 37: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Warning |
Row 293, Column 28: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 298, Column 21: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Warning |
Row 302, Column 37: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Warning |
Row 303, Column 28: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 310, Column 21: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Error |
Row 324, Column 19: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Warning |
Row 330, Column 22: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Warning |
Row 332, Column 33: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Warning |
Row 333, Column 24: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 340, Column 17: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Warning |
Row 344, Column 11: "Empty components are self-closing"
react/self-closing-comp
|
| Error |
Row 344, Column 46: "Delete `⏎··········`"
prettier/prettier
|
| Error |
Row 375, Column 21: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎········translucent⏎········activeStatusBarStyle={'light-content'}⏎········inactiveStatusBarBackgroundColor={colors.primary}⏎········ref={alertRef}⏎·····`"
prettier/prettier
|
| Error |
Row 384, Column 1: "Delete `··`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 2 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 3 |
import React, {useEffect} from 'react'; |
| 4 |
import {ScrollView, StyleSheet, TouchableOpacity, View} from 'react-native'; |
| 5 |
import Geocoder from 'react-native-geocoding'; |
| 6 |
import MapView from 'react-native-maps'; |
| 7 |
import {connect} from 'react-redux'; |
| Warning |
Row 8, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| 8 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 9 |
import * as Icons from '../../../resource/assets/new-address-icons'; |
| 10 |
import {TAKE_TO_INPUT_FIELD} from '../../components/atoms'; |
| 11 |
import Buttons from '../../components/atoms/Button'; |
| 12 |
import CustomRadio from '../../components/atoms/RadioButton'; |
| 13 |
import Header from '../../components/molecules/header/header-1x'; |
| 14 |
import AddressTypeModal from '../../components/molecules/modals/address-type-modal'; |
| 15 |
import colors from '../../config/colors'; |
| 16 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 17 |
import {mvs} from '../../config/metrices'; |
| 18 |
import * as SVGS from '../../../resource/assets/order-car-icons'; |
| 19 |
|
| 20 |
Geocoder.init('AIzaSyCHIlIvmsXf-sllfpXK0Q-1dV7uzgyFvfw'); |
| 21 |
|
| 22 |
const DeliveryAddress = props => { |
| 23 |
const alertRef = React.useRef(null); |
| Error |
Row 24, Column 10: "Replace `route,·navigation,onSaveDeliveryAddressToRedux,toggleDeliveryAddressModal` with `⏎····route,⏎····navigation,⏎····onSaveDeliveryAddressToRedux,⏎····toggleDeliveryAddressModal,⏎··`"
prettier/prettier
|
| Warning |
Row 24, Column 17: "'navigation' is assigned a value but never used."
no-unused-vars
|
| 24 |
const {route, navigation,onSaveDeliveryAddressToRedux,toggleDeliveryAddressModal} = props; |
| Warning |
Row 25, Column 9: "'Pointer' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 25, Column 24: "["pointer"] is better written in dot notation."
dot-notation
|
| 25 |
const Pointer = SVGS['pointer']; |
| Warning |
Row 26, Column 10: "'loading' is assigned a value but never used."
no-unused-vars
|
| 26 |
const [loading, setLoading] = React.useState(false); |
| 27 |
const [visible, setVisible] = React.useState(false); |
| Warning |
Row 28, Column 9: "'phoneInput' is assigned a value but never used."
no-unused-vars
|
| 28 |
const phoneInput = React.useRef(null); |
| 29 |
const [payload, setPayload] = React.useState({ |
| 30 |
addressNickName: '', |
| 31 |
area: '', |
| 32 |
block: '', |
| 33 |
street: '', |
| 34 |
building: '', |
| 35 |
floor: '', |
| 36 |
otpCode: '', |
| 37 |
addressType: 'House', |
| 38 |
houseNumber: '', |
| 39 |
officeNumber: '', |
| 40 |
appartmentNumber: '', |
| 41 |
verifiedPhone: '', |
| 42 |
city: '', |
| 43 |
country: '', |
| 44 |
fulladdress: '', |
| 45 |
place_id: '', |
| 46 |
region: { |
| 47 |
latitude: 37.78825, |
| 48 |
latitudeDelta: 0.015, |
| 49 |
longitude: -122.4324, |
| 50 |
longitudeDelta: 0.0121, |
| 51 |
}, |
| 52 |
}); |
| 53 |
const getCurrentLocation = async () => { |
| 54 |
try { |
| 55 |
let location = route?.params?.region |
| 56 |
? {} |
| 57 |
: await UI_API._get_current_location(); |
| 58 |
location = |
| 59 |
Object?.keys(location).length > 0 |
| 60 |
? location |
| 61 |
: {...route?.params?.region}; |
| 62 |
Geocoder.from(location.latitude, location.longitude) |
| 63 |
.then(json => { |
| 64 |
var addressComponent = UI_API._returnAddress(json); |
| 65 |
setPayload({ |
| 66 |
...payload, |
| 67 |
country: addressComponent?.country, |
| 68 |
city: addressComponent?.city, |
| 69 |
region: location, |
| 70 |
area: addressComponent?.area || '', |
| 71 |
block: '', |
| 72 |
street: addressComponent?.street_number || '', |
| 73 |
building: '', |
| 74 |
floor: '', |
| 75 |
otpCode: '', |
| 76 |
addressType: 'House', |
| 77 |
houseNumber: addressComponent?.street_address || '', |
| 78 |
officeNumber: '', |
| 79 |
appartmentNumber: '', |
| 80 |
verifiedPhone: '', |
| 81 |
fulladdress: addressComponent?.fulladdress, |
| 82 |
place_id: addressComponent?.place_id, |
| 83 |
}); |
| 84 |
}) |
| 85 |
.catch(error => console.warn(error)); |
| 86 |
} catch (error) { |
| 87 |
//alert(UI_API._returnError(error)); |
| 88 |
alertRef.current.alertWithType( |
| 89 |
'error', |
| 90 |
'Error', |
| 91 |
UI_API._returnError(error), |
| 92 |
); |
| 93 |
} |
| 94 |
}; |
| 95 |
|
| 96 |
useEffect(() => { |
| 97 |
getCurrentLocation(); |
| Error |
Row 98, Column 6: "React Hook useEffect has a missing dependency: 'getCurrentLocation'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 98 |
}, [route]); |
| 99 |
|
| 100 |
// console.log('payload in deilvery address:::',payload); |
| 101 |
|
| 102 |
const onSaveAddressToRedux = async () => { |
| 103 |
try { |
| 104 |
// setLoading(true); |
| 105 |
try { |
| 106 |
onSaveDeliveryAddressToRedux(payload); |
| 107 |
props.navigation.goBack(); |
| 108 |
toggleDeliveryAddressModal(true); |
| 109 |
} catch (error) { |
| 110 |
//alert(UI_API._returnError(error)); |
| 111 |
alertRef.current.alertWithType( |
| 112 |
'error', |
| 113 |
'Error', |
| 114 |
UI_API._returnError(error), |
| 115 |
); |
| 116 |
} |
| 117 |
} catch (error) { |
| 118 |
setLoading(false); |
| 119 |
//alert(UI_API._returnError(error)); |
| 120 |
alertRef.current.alertWithType( |
| 121 |
'error', |
| 122 |
'Error', |
| 123 |
UI_API._returnError(error), |
| 124 |
); |
| 125 |
} |
| 126 |
}; |
| 127 |
|
| Warning |
Row 128, Column 9: "'onContinue' is assigned a value but never used."
no-unused-vars
|
| 128 |
const onContinue = async () => { |
| 129 |
// fetchDeliveryAddress({ |
| 130 |
// ...payload, |
| 131 |
// latitude: payload?.region?.latitude, |
| 132 |
// longitude: payload?.region?.longitude, |
| 133 |
// }); |
| 134 |
// props.navigation.pop(2); |
| 135 |
}; |
| 136 |
|
| 137 |
const AddressType = ({item, index, iconName = 'Home'}) => { |
| 138 |
const Icon = |
| Warning |
Row 139, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| 139 |
Icons[item == payload.addressType ? `${item}active` : item] || |
| Warning |
Row 140, Column 13: "["Home"] is better written in dot notation."
dot-notation
|
| 140 |
Icons['Home']; |
| 141 |
const style = |
| Warning |
Row 142, Column 12: "Expected '===' and instead saw '=='."
eqeqeq
|
| 142 |
item == payload.addressType |
| 143 |
? { |
| 144 |
shadowColor: '#000', |
| 145 |
shadowOffset: { |
| 146 |
width: 0, |
| 147 |
height: 2, |
| 148 |
}, |
| 149 |
shadowOpacity: 0.25, |
| 150 |
shadowRadius: 3.84, |
| 151 |
elevation: 5, |
| 152 |
} |
| 153 |
: {borderWidth: StyleSheet.hairlineWidth, borderColor: colors.doted}; |
| 154 |
|
| 155 |
return ( |
| 156 |
<TouchableOpacity |
| 157 |
onPress={() => |
| 158 |
setPayload({...payload, addressType: item, addressNickName: item}) |
| 159 |
} |
| 160 |
style={{}}> |
| 161 |
<CustomRadio |
| Warning |
Row 162, Column 24: "Expected '===' and instead saw '=='."
eqeqeq
|
| 162 |
status={item == payload.addressType} |
| 163 |
onChange={v => |
| 164 |
setPayload({ |
| 165 |
...payload, |
| 166 |
addressType: item, |
| Error |
Row 167, Column 15: "Duplicate key 'addressType'."
no-dupe-keys
|
| 167 |
addressType: item, |
| 168 |
addressNickName: item, |
| 169 |
}) |
| 170 |
} |
| Warning |
Row 171, Column 23: "Inline style: { marginLeft: 0 }"
react-native/no-inline-styles
|
| 171 |
labelStyle={{ |
| 172 |
marginLeft: 0, |
| 173 |
fontSize: mvs(14), |
| 174 |
color: |
| Warning |
Row 175, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| 175 |
item == payload.addressType ? colors.primary : colors.typeHeader, |
| 176 |
}} |
| 177 |
label={item} |
| Warning |
Row 178, Column 18: "Inline style: {
flexDirection: 'column',
justifyContent: 'space-between',
alignItems: 'center',
zIndex: 1001
}"
react-native/no-inline-styles
|
| 178 |
style={{ |
| 179 |
flexDirection: 'column', |
| 180 |
justifyContent: 'space-between', |
| 181 |
backgroundColor: colors.white, |
| 182 |
width: mvs(106), |
| 183 |
height: mvs(97), |
| 184 |
alignItems: 'center', |
| 185 |
borderRadius: mvs(10), |
| 186 |
padding: mvs(8), |
| 187 |
zIndex: 1001, |
| 188 |
...style, |
| 189 |
}}> |
| 190 |
<Icon /> |
| 191 |
</CustomRadio> |
| 192 |
</TouchableOpacity> |
| 193 |
); |
| 194 |
}; |
| 195 |
return ( |
| 196 |
<View style={styles.CONTAINER}> |
| Error |
Row 197, Column 14: "Replace `·{...props}·title="Delivery·Address"·allowBackBtn·userIcon={false}` with `⏎········{...props}⏎········title="Delivery·Address"⏎········allowBackBtn⏎········userIcon={false}⏎·····`"
prettier/prettier
|
| 197 |
<Header {...props} title="Delivery Address" allowBackBtn userIcon={false} /> |
| 198 |
<View style={styles.BODY}> |
| 199 |
<ScrollView showsVerticalScrollIndicator={false} style={styles.SCROLL}> |
| 200 |
<TouchableOpacity |
| 201 |
activeOpacity={0.5} |
| 202 |
onPress={() => |
| 203 |
props.navigation.navigate('deliverylocation', { |
| 204 |
type: 'deliveryaddress', |
| 205 |
}) |
| 206 |
} |
| Warning |
Row 207, Column 20: "Inline style: { overflow: 'hidden', justifyContent: 'center' }"
react-native/no-inline-styles
|
| 207 |
style={{ |
| 208 |
backgroundColor: colors.secondary, |
| 209 |
height: mvs(95), |
| 210 |
borderRadius: mvs(20), |
| 211 |
marginBottom: mvs(20), |
| 212 |
overflow: 'hidden', |
| 213 |
justifyContent: 'center', |
| 214 |
}}> |
| 215 |
{payload?.region && ( |
| 216 |
<MapView |
| 217 |
initialRegion={payload.region} |
| 218 |
//provider='google' |
| 219 |
region={payload?.region} |
| 220 |
scrollEnabled={false} |
| Warning |
Row 221, Column 24: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 221 |
style={{flex: 1}} |
| 222 |
zoomEnabled={false} |
| 223 |
showsMyLocationButton={false} |
| 224 |
/> |
| 225 |
)} |
| 226 |
|
| 227 |
<View style={styles.pointer} /> |
| 228 |
</TouchableOpacity> |
| 229 |
<View |
| Warning |
Row 230, Column 20: "Inline style: {
flexDirection: 'row',
width: '100%',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| 230 |
style={{ |
| 231 |
flexDirection: 'row', |
| 232 |
width: '100%', |
| 233 |
justifyContent: 'space-between', |
| 234 |
paddingHorizontal: mvs(1), |
| 235 |
marginBottom: mvs(18), |
| 236 |
}}> |
| 237 |
{['House', 'Appartment', 'Office'].map((ele, index) => ( |
| 238 |
<AddressType item={ele} key={index} index={index} /> |
| 239 |
))} |
| 240 |
</View> |
| Warning |
Row 241, Column 24: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| 241 |
<View style={{flexDirection: 'row', justifyContent: 'space-between'}}> |
| 242 |
<TAKE_TO_INPUT_FIELD.InputSecondary |
| 243 |
placeholderColor={colors.doted} |
| Warning |
Row 244, Column 31: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 244 |
containerStyle={{marginBottom: mvs(13), width: '49%'}} |
| Warning |
Row 245, Column 22: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| 245 |
style={{width: '100%'}} |
| 246 |
value={payload.addressNickName} |
| 247 |
onChangeText={text => |
| 248 |
setPayload({...payload, addressNickName: text}) |
| 249 |
} |
| 250 |
label={'Address Nickname'} |
| 251 |
placeholder={'Address title'} |
| Error |
Row 252, Column 15: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 252 |
value={payload.addressNickName} |
| 253 |
/> |
| 254 |
<TAKE_TO_INPUT_FIELD.InputSecondary |
| 255 |
placeholderColor={colors.doted} |
| Warning |
Row 256, Column 31: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 256 |
containerStyle={{marginBottom: mvs(13), width: '49%'}} |
| Warning |
Row 257, Column 22: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| 257 |
style={{width: '100%'}} |
| 258 |
value={payload.area} |
| 259 |
onChangeText={text => setPayload({...payload, area: text})} |
| 260 |
label={'Area'} |
| 261 |
placeholder={'Area'} |
| Error |
Row 262, Column 15: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 262 |
value={payload.area} |
| 263 |
/> |
| 264 |
</View> |
| 265 |
<TAKE_TO_INPUT_FIELD.InputSecondary |
| 266 |
placeholderColor={colors.doted} |
| 267 |
containerStyle={{marginBottom: mvs(13)}} |
| Warning |
Row 268, Column 20: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| 268 |
style={{width: '100%'}} |
| 269 |
value={payload.street} |
| 270 |
onChangeText={text => setPayload({...payload, street: text})} |
| 271 |
label={'Street'} |
| 272 |
placeholder={'Street'} |
| Error |
Row 273, Column 13: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 273 |
value={payload.street} |
| 274 |
/> |
| 275 |
{payload.addressType !== 'House' ? ( |
| 276 |
<> |
| 277 |
<View |
| Warning |
Row 278, Column 24: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| 278 |
style={{flexDirection: 'row', justifyContent: 'space-between'}}> |
| 279 |
<TAKE_TO_INPUT_FIELD.InputSecondary |
| Warning |
Row 280, Column 35: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 280 |
containerStyle={{marginBottom: mvs(13), width: '49%'}} |
| Warning |
Row 281, Column 26: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| 281 |
style={{width: '100%'}} |
| 282 |
value={payload.building} |
| 283 |
onChangeText={text => |
| 284 |
setPayload({...payload, building: text}) |
| 285 |
} |
| 286 |
label={'Building'} |
| 287 |
placeholder={'Building name'} |
| Error |
Row 288, Column 19: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 288 |
value={payload.building} |
| 289 |
/> |
| 290 |
{payload.addressType === 'Appartment' ? ( |
| 291 |
<TAKE_TO_INPUT_FIELD.InputSecondary |
| Warning |
Row 292, Column 37: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 292 |
containerStyle={{marginBottom: mvs(13), width: '49%'}} |
| Warning |
Row 293, Column 28: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| 293 |
style={{width: '100%'}} |
| 294 |
value={payload.floor} |
| 295 |
onChangeText={text => setPayload({...payload, floor: text})} |
| 296 |
label={'Floor'} |
| 297 |
placeholder={'Floor number'} |
| Error |
Row 298, Column 21: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 298 |
value={payload.floor} |
| 299 |
/> |
| 300 |
) : ( |
| 301 |
<TAKE_TO_INPUT_FIELD.InputSecondary |
| Warning |
Row 302, Column 37: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 302 |
containerStyle={{marginBottom: mvs(0), width: '49%'}} |
| Warning |
Row 303, Column 28: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| 303 |
style={{width: '100%'}} |
| 304 |
value={payload.officeNumber} |
| 305 |
onChangeText={text => |
| 306 |
setPayload({...payload, officeNumber: text}) |
| 307 |
} |
| 308 |
label={'Office number'} |
| 309 |
placeholder={'Office number'} |
| Error |
Row 310, Column 21: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 310 |
value={payload.officeNumber} |
| 311 |
/> |
| 312 |
)} |
| 313 |
</View> |
| 314 |
{payload.addressType === 'Appartment' && ( |
| 315 |
<TAKE_TO_INPUT_FIELD.InputSecondary |
| 316 |
containerStyle={{marginBottom: mvs(0)}} |
| 317 |
style={{width: mvs(161)}} |
| 318 |
value={payload.appartmentNumber} |
| 319 |
onChangeText={text => |
| 320 |
setPayload({...payload, appartmentNumber: text}) |
| 321 |
} |
| 322 |
label={'Apartment number'} |
| 323 |
placeholder={'Apartment number'} |
| Error |
Row 324, Column 19: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 324 |
value={payload.appartmentNumber} |
| 325 |
/> |
| 326 |
)} |
| 327 |
</> |
| 328 |
) : ( |
| 329 |
<View |
| Warning |
Row 330, Column 22: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| 330 |
style={{flexDirection: 'row', justifyContent: 'space-between'}}> |
| 331 |
<TAKE_TO_INPUT_FIELD.InputSecondary |
| Warning |
Row 332, Column 33: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 332 |
containerStyle={{marginBottom: mvs(13), width: '49%'}} |
| Warning |
Row 333, Column 24: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| 333 |
style={{width: '100%'}} |
| 334 |
value={payload.houseNumber} |
| 335 |
onChangeText={text => |
| 336 |
setPayload({...payload, houseNumber: text}) |
| 337 |
} |
| 338 |
label={'House'} |
| 339 |
placeholder={'House Number'} |
| Error |
Row 340, Column 17: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 340 |
value={payload.houseNumber} |
| 341 |
/> |
| 342 |
</View> |
| 343 |
)} |
| Warning |
Row 344, Column 11: "Empty components are self-closing"
react/self-closing-comp
|
| Error |
Row 344, Column 46: "Delete `⏎··········`"
prettier/prettier
|
| 344 |
<View style={{marginTop: mvs(13)}}> |
| 345 |
</View> |
| 346 |
{ |
| 347 |
<Buttons.ButtonPrimary |
| 348 |
onClick={onSaveAddressToRedux} |
| 349 |
title={'Mark as Delivered'} |
| 350 |
style={{ |
| 351 |
marginTop: mvs(85), |
| 352 |
marginBottom: mvs(40), |
| 353 |
backgroundColor: colors.primary, |
| 354 |
}} |
| 355 |
/> |
| 356 |
} |
| 357 |
|
| 358 |
{/* {route.params.type == 'deliveryto' && ( |
| 359 |
<Buttons.ButtonPrimary |
| 360 |
onClick={onContinue} |
| 361 |
title={'Continue without save'} |
| 362 |
style={{marginTop: mvs(10), marginBottom: mvs(40)}} |
| 363 |
/> |
| 364 |
)} */} |
| 365 |
</ScrollView> |
| 366 |
</View> |
| 367 |
{visible && ( |
| 368 |
<AddressTypeModal |
| 369 |
visible={visible} |
| 370 |
onClose={setVisible} |
| 371 |
onChangeValue={type => setPayload({...payload, addressType: type})} |
| 372 |
/> |
| 373 |
)} |
| 374 |
|
| Error |
Row 375, Column 21: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎········translucent⏎········activeStatusBarStyle={'light-content'}⏎········inactiveStatusBarBackgroundColor={colors.primary}⏎········ref={alertRef}⏎·····`"
prettier/prettier
|
| 375 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 376 |
</View> |
| 377 |
); |
| 378 |
}; |
| 379 |
|
| 380 |
const mapDispatchToProps = dispatch => ({ |
| 381 |
onSaveDeliveryAddressToRedux: payload => |
| 382 |
dispatch(TAKE_TO_ACTIONS.onSaveDeliveryAddressToRedux(payload)), |
| 383 |
|
| Error |
Row 384, Column 1: "Delete `··`"
prettier/prettier
|
| 384 |
toggleDeliveryAddressModal: bool => |
| 385 |
dispatch(TAKE_TO_ACTIONS.toggleDeliveryAddressModal(bool)), |
| 386 |
}); |
| 387 |
export default connect(null, mapDispatchToProps)(DeliveryAddress); |
| 388 |
|
| 389 |
const styles = StyleSheet.create({ |
| 390 |
CONTAINER: { |
| 391 |
flex: 1, |
| 392 |
backgroundColor: colors.white, |
| 393 |
}, |
| 394 |
BODY: { |
| 395 |
flex: 1, |
| 396 |
}, |
| 397 |
SCROLL: { |
| 398 |
paddingHorizontal: mvs(22), |
| 399 |
paddingBottom: mvs(60), |
| 400 |
}, |
| 401 |
LABEL: {}, |
| 402 |
LIST_CONTAINER: { |
| 403 |
paddingBottom: mvs(9), |
| 404 |
marginBottom: mvs(15), |
| 405 |
borderColor: colors.price_border, |
| 406 |
}, |
| 407 |
pointer: { |
| 408 |
height: mvs(21), |
| 409 |
width: mvs(21), |
| 410 |
backgroundColor: colors.primary, |
| 411 |
borderRadius: mvs(21 / 2), |
| 412 |
position: 'absolute', |
| 413 |
alignSelf: 'center', |
| 414 |
shadowColor: '#000', |
| 415 |
shadowOffset: { |
| 416 |
width: 0, |
| 417 |
height: 12, |
| 418 |
}, |
| 419 |
shadowOpacity: 0.58, |
| 420 |
shadowRadius: 16.0, |
| 421 |
|
| 422 |
elevation: 24, |
| 423 |
}, |
| 424 |
}); |
| 425 |
|
|
|
|
/src/screens/index.js
|
3 problems (1 error, 2 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 1: "Replace `⏎⏎⏎export·*·from·'./onboarding'` with `export·*·from·'./onboarding';⏎`"
prettier/prettier
|
| Warning |
Row 4, Column 29: "Newline required at end of file but not found."
eol-last
|
| Warning |
Row 4, Column 29: "Missing semicolon."
semi
|
| Line |
Source |
| Error |
Row 1, Column 1: "Replace `⏎⏎⏎export·*·from·'./onboarding'` with `export·*·from·'./onboarding';⏎`"
prettier/prettier
|
| 1 |
|
| 2 |
|
| 3 |
|
| Warning |
Row 4, Column 29: "Newline required at end of file but not found."
eol-last
|
| Warning |
Row 4, Column 29: "Missing semicolon."
semi
|
| 4 |
export * from './onboarding' |
|
|
|
/src/screens/international-delivery/browse-orders.js
|
81 problems (54 errors, 27 warnings)
|
| Severity |
Rule |
| Error |
Row 6, Column 12: "Replace `·Linking,·StyleSheet,·View` with `⏎··Linking,⏎··StyleSheet,⏎··View,`"
prettier/prettier
|
| Warning |
Row 6, Column 13: "'Linking' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 38: "Missing trailing comma."
comma-dangle
|
| Error |
Row 9, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Warning |
Row 11, Column 8: "'InternationalOrderDateFilterModal' is defined but never used."
no-unused-vars
|
| Warning |
Row 13, Column 8: "'OrderTypeHeader' is defined but never used."
no-unused-vars
|
| Error |
Row 15, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| Error |
Row 18, Column 1: "Replace `⏎const·BrowseOrders·=·(props)` with `const·BrowseOrders·=·props`"
prettier/prettier
|
| Error |
Row 20, Column 10: "Replace `·navigation,·route,·heigh_paid_orders_by_city,·fetchHeighPaidOrdersListByCity,profileData·}·=·props` with `⏎····navigation,⏎····route,⏎····heigh_paid_orders_by_city,⏎····fetchHeighPaidOrdersListByCity,⏎····profileData,⏎··}·=·props;`"
prettier/prettier
|
| Warning |
Row 20, Column 11: "'navigation' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 20, Column 109: "Missing semicolon."
semi
|
| Error |
Row 21, Column 10: "Replace `·order·}·=·route.params` with `order}·=·route.params;`"
prettier/prettier
|
| Warning |
Row 21, Column 33: "Missing semicolon."
semi
|
| Error |
Row 29, Column 44: "Replace `order?.city_to,·order?.country_to,·order?.to_country_short_name);` with `⏎········order?.city_to,⏎········order?.country_to,⏎········order?.to_country_short_name,⏎······);·`"
prettier/prettier
|
| Error |
Row 31, Column 7: "Delete `··`"
prettier/prettier
|
| Error |
Row 32, Column 1: "Replace `··········` with `········`"
prettier/prettier
|
| Error |
Row 33, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 34, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 35, Column 7: "Replace `··);⏎⏎····` with `);`"
prettier/prettier
|
| Warning |
Row 37, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 41, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 41, Column 4: "Missing semicolon."
semi
|
| Error |
Row 45, Column 6: "React Hook React.useEffect has a missing dependency: 'getHighPaidByCity'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 45, Column 13: "Replace `profileData?.currency])` with `·profileData?.currency]);`"
prettier/prettier
|
| Warning |
Row 45, Column 36: "Missing semicolon."
semi
|
| Warning |
Row 49, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 49, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 56, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 56, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| Error |
Row 61, Column 4: "Replace `else·if·(!loading·&&·Object.keys(heigh_paid_orders_by_city).length·<=·0||heigh_paid_orders_by_city?.data?.length<=0` with `·else·if·(⏎····(!loading·&&·Object.keys(heigh_paid_orders_by_city).length·<=·0)·||⏎····heigh_paid_orders_by_city?.data?.length·<=·0⏎··`"
prettier/prettier
|
| Warning |
Row 61, Column 4: "Expected space(s) before "else"."
keyword-spacing
|
| Warning |
Row 61, Column 75: "Operator '||' must be spaced."
space-infix-ops
|
| Warning |
Row 61, Column 116: "Operator '<=' must be spaced."
space-infix-ops
|
| Warning |
Row 63, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 63, Column 21: "Delete `·`"
prettier/prettier
|
| Warning |
Row 71, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 78, Column 20: "Strings must use singlequote."
quotes
|
| Warning |
Row 79, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 84, Column 5: "Expected { after 'else'."
curly
|
| Error |
Row 85, Column 3: "Insert `··`"
prettier/prettier
|
| Error |
Row 86, Column 1: "Replace `····prettier/prettier
|
| Warning |
Row 86, Column 18: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 87, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 88, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 89, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 90, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 91, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 92, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 93, Column 1: "Replace `······prettier/prettier
|
| Warning |
Row 93, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 94, Column 9: "Replace `prettier/prettier
|
| Warning |
Row 94, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Warning |
Row 94, Column 31: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 95, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 96, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 97, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 98, Column 1: "Replace `············renderItem={({·item,·index·})·=>` with `··············renderItem={({item,·index})·=>·(`"
prettier/prettier
|
| Error |
Row 99, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 100, Column 17: "Insert `··`"
prettier/prettier
|
| Error |
Row 101, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| Error |
Row 102, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 103, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| Error |
Row 104, Column 17: "Insert `··`"
prettier/prettier
|
| Error |
Row 105, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 106, Column 19: "Replace `marginTop:·mvs(20)` with `··marginTop:·mvs(20),`"
prettier/prettier
|
| Warning |
Row 106, Column 37: "Missing trailing comma."
comma-dangle
|
| Error |
Row 107, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| Error |
Row 108, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 109, Column 13: "Insert `··)`"
prettier/prettier
|
| Error |
Row 110, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 111, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 112, Column 1: "Replace `⏎` with `··`"
prettier/prettier
|
| Error |
Row 114, Column 1: "Replace `······prettier/prettier
|
| Error |
Row 115, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 116, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 119, Column 29: "Insert `⏎···`"
prettier/prettier
|
| Error |
Row 124, Column 36: "Replace `city_to,country_to,to_country_short_name)·=>` with `⏎····city_to,⏎····country_to,⏎····to_country_short_name,⏎··)·=>·`"
prettier/prettier
|
| Error |
Row 125, Column 1: "Replace `···return·TAKE_TO_ACTIONS.fetchHeighPaidOrdersListByCity(city_to,country_to,to_country_short_name)` with `····return·TAKE_TO_ACTIONS.fetchHeighPaidOrdersListByCity(⏎······city_to,⏎······country_to,⏎······to_country_short_name,⏎····);`"
prettier/prettier
|
| Warning |
Row 125, Column 99: "Missing semicolon."
semi
|
| Error |
Row 126, Column 4: "Insert `,`"
prettier/prettier
|
| Warning |
Row 126, Column 4: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 2 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 3 |
import React from 'react'; |
| 4 |
import { |
| 5 |
ActivityIndicator, |
| Error |
Row 6, Column 12: "Replace `·Linking,·StyleSheet,·View` with `⏎··Linking,⏎··StyleSheet,⏎··View,`"
prettier/prettier
|
| Warning |
Row 6, Column 13: "'Linking' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 38: "Missing trailing comma."
comma-dangle
|
| 6 |
FlatList, Linking, StyleSheet, View |
| 7 |
} from 'react-native'; |
| 8 |
import DropdownAlert from 'react-native-dropdownalert'; |
| Error |
Row 9, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 9 |
import { connect } from 'react-redux'; |
| 10 |
import Header from '../../components/molecules/header/header-1x'; |
| Warning |
Row 11, Column 8: "'InternationalOrderDateFilterModal' is defined but never used."
no-unused-vars
|
| 11 |
import InternationalOrderDateFilterModal from '../../components/molecules/modals/international-order-date-filter-modal'; |
| 12 |
import MakeOfferOrderCard from '../../components/molecules/order_card/make-offer-card'; |
| Warning |
Row 13, Column 8: "'OrderTypeHeader' is defined but never used."
no-unused-vars
|
| 13 |
import OrderTypeHeader from '../../components/molecules/order_card/order-type-header'; |
| 14 |
import colors from '../../config/colors'; |
| Error |
Row 15, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| 15 |
import { mvs, width } from '../../config/metrices'; |
| 16 |
import Regular from '../../presentation/typography/regular-text'; |
| 17 |
|
| Error |
Row 18, Column 1: "Replace `⏎const·BrowseOrders·=·(props)` with `const·BrowseOrders·=·props`"
prettier/prettier
|
| 18 |
|
| 19 |
const BrowseOrders = (props) => { |
| Error |
Row 20, Column 10: "Replace `·navigation,·route,·heigh_paid_orders_by_city,·fetchHeighPaidOrdersListByCity,profileData·}·=·props` with `⏎····navigation,⏎····route,⏎····heigh_paid_orders_by_city,⏎····fetchHeighPaidOrdersListByCity,⏎····profileData,⏎··}·=·props;`"
prettier/prettier
|
| Warning |
Row 20, Column 11: "'navigation' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 20, Column 109: "Missing semicolon."
semi
|
| 20 |
const { navigation, route, heigh_paid_orders_by_city, fetchHeighPaidOrdersListByCity,profileData } = props |
| Error |
Row 21, Column 10: "Replace `·order·}·=·route.params` with `order}·=·route.params;`"
prettier/prettier
|
| Warning |
Row 21, Column 33: "Missing semicolon."
semi
|
| 21 |
const { order } = route.params |
| 22 |
const [loading, setLoading] = React.useState(false); |
| 23 |
const alertRef = React.useRef(); |
| 24 |
|
| 25 |
const getHighPaidByCity = async () => { |
| 26 |
try { |
| 27 |
setLoading(true); |
| 28 |
|
| Error |
Row 29, Column 44: "Replace `order?.city_to,·order?.country_to,·order?.to_country_short_name);` with `⏎········order?.city_to,⏎········order?.country_to,⏎········order?.to_country_short_name,⏎······);·`"
prettier/prettier
|
| 29 |
await fetchHeighPaidOrdersListByCity(order?.city_to, order?.country_to, order?.to_country_short_name);//city_to,country_to,to_country_short_name |
| 30 |
} catch (error) { |
| Error |
Row 31, Column 7: "Delete `··`"
prettier/prettier
|
| 31 |
alertRef.current.alertWithType( |
| Error |
Row 32, Column 1: "Replace `··········` with `········`"
prettier/prettier
|
| 32 |
'error', |
| Error |
Row 33, Column 1: "Delete `··`"
prettier/prettier
|
| 33 |
'Error', |
| Error |
Row 34, Column 1: "Delete `··`"
prettier/prettier
|
| 34 |
UI_API._returnError(error), |
| Error |
Row 35, Column 7: "Replace `··);⏎⏎····` with `);`"
prettier/prettier
|
| 35 |
); |
| 36 |
|
| Warning |
Row 37, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| 37 |
|
| 38 |
} finally { |
| 39 |
setLoading(false); |
| 40 |
} |
| Error |
Row 41, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 41, Column 4: "Missing semicolon."
semi
|
| 41 |
} |
| 42 |
React.useEffect(() => { |
| 43 |
getHighPaidByCity(); |
| 44 |
//console.log("orders:", heigh_paid_orders_by_city) |
| Error |
Row 45, Column 6: "React Hook React.useEffect has a missing dependency: 'getHighPaidByCity'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 45, Column 13: "Replace `profileData?.currency])` with `·profileData?.currency]);`"
prettier/prettier
|
| Warning |
Row 45, Column 36: "Missing semicolon."
semi
|
| 45 |
}, [order,profileData?.currency]) |
| 46 |
|
| 47 |
if (loading) { |
| 48 |
return ( |
| Warning |
Row 49, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 49, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 49 |
<View style={{ flex: 1, backgroundColor: colors.white }}> |
| 50 |
<Header |
| 51 |
bellIcon |
| 52 |
{...props} |
| 53 |
title={`${order?.destination}`} |
| 54 |
allowBackBtn |
| 55 |
/> |
| Warning |
Row 56, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 56, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| 56 |
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> |
| 57 |
<ActivityIndicator size="small" color={colors.primary} /> |
| 58 |
</View> |
| 59 |
</View> |
| 60 |
); |
| Error |
Row 61, Column 4: "Replace `else·if·(!loading·&&·Object.keys(heigh_paid_orders_by_city).length·<=·0||heigh_paid_orders_by_city?.data?.length<=0` with `·else·if·(⏎····(!loading·&&·Object.keys(heigh_paid_orders_by_city).length·<=·0)·||⏎····heigh_paid_orders_by_city?.data?.length·<=·0⏎··`"
prettier/prettier
|
| Warning |
Row 61, Column 4: "Expected space(s) before "else"."
keyword-spacing
|
| Warning |
Row 61, Column 75: "Operator '||' must be spaced."
space-infix-ops
|
| Warning |
Row 61, Column 116: "Operator '<=' must be spaced."
space-infix-ops
|
| 61 |
}else if (!loading && Object.keys(heigh_paid_orders_by_city).length <= 0||heigh_paid_orders_by_city?.data?.length<=0) { |
| 62 |
return ( |
| Warning |
Row 63, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 63, Column 21: "Delete `·`"
prettier/prettier
|
| 63 |
<View style={{ flex: 1, backgroundColor: colors.white}}> |
| 64 |
<Header |
| 65 |
bellIcon |
| 66 |
{...props} |
| 67 |
title={`${order?.destination}`} |
| 68 |
allowBackBtn |
| 69 |
/> |
| 70 |
<View |
| Warning |
Row 71, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 71 |
style={{ |
| 72 |
flex: 1, |
| 73 |
justifyContent: 'center', |
| 74 |
alignItems: 'center', |
| 75 |
paddingHorizontal: mvs(20), |
| 76 |
}}> |
| 77 |
<Regular |
| Warning |
Row 78, Column 20: "Strings must use singlequote."
quotes
|
| 78 |
label={`Oops! it seems no order found`} |
| Warning |
Row 79, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 79 |
style={{textAlign: 'center', color: colors.primary}} |
| 80 |
/> |
| 81 |
</View> |
| 82 |
</View> |
| 83 |
); |
| Warning |
Row 84, Column 5: "Expected { after 'else'."
curly
|
| 84 |
} else |
| Error |
Row 85, Column 3: "Insert `··`"
prettier/prettier
|
| 85 |
return ( |
| Error |
Row 86, Column 1: "Replace `····prettier/prettier
|
| Warning |
Row 86, Column 18: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 86 |
<View style={{ flex: 1, backgroundColor: colors.white }}> |
| Error |
Row 87, Column 1: "Insert `··`"
prettier/prettier
|
| 87 |
<Header |
| Error |
Row 88, Column 9: "Insert `··`"
prettier/prettier
|
| 88 |
bellIcon |
| Error |
Row 89, Column 1: "Insert `··`"
prettier/prettier
|
| 89 |
{...props} |
| Error |
Row 90, Column 1: "Insert `··`"
prettier/prettier
|
| 90 |
title={`${order?.destination}`} |
| Error |
Row 91, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 91 |
allowBackBtn |
| Error |
Row 92, Column 7: "Insert `··`"
prettier/prettier
|
| 92 |
/> |
| Error |
Row 93, Column 1: "Replace `······prettier/prettier
|
| Warning |
Row 93, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 93 |
<View style={{ flex: 1, backgroundColor: colors.white }}> |
| Error |
Row 94, Column 9: "Replace `prettier/prettier
|
| Warning |
Row 94, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Warning |
Row 94, Column 31: "Unexpected trailing comma."
comma-dangle
|
| 94 |
<View style={{ flex: 1, }}> |
| Error |
Row 95, Column 1: "Insert `··`"
prettier/prettier
|
| 95 |
<FlatList |
| Error |
Row 96, Column 13: "Insert `··`"
prettier/prettier
|
| 96 |
data={heigh_paid_orders_by_city?.data} |
| Error |
Row 97, Column 1: "Insert `··`"
prettier/prettier
|
| 97 |
contentContainerStyle={styles.SCROLL_CONTAINER} |
| Error |
Row 98, Column 1: "Replace `············renderItem={({·item,·index·})·=>` with `··············renderItem={({item,·index})·=>·(`"
prettier/prettier
|
| 98 |
renderItem={({ item, index }) => |
| Error |
Row 99, Column 15: "Insert `··`"
prettier/prettier
|
| 99 |
<MakeOfferOrderCard |
| Error |
Row 100, Column 17: "Insert `··`"
prettier/prettier
|
| 100 |
{...props} |
| Error |
Row 101, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| 101 |
{...item} |
| Error |
Row 102, Column 1: "Insert `··`"
prettier/prettier
|
| 102 |
{...UI_API._returnOrderProps(item)} |
| Error |
Row 103, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| 103 |
order_data={item} |
| Error |
Row 104, Column 17: "Insert `··`"
prettier/prettier
|
| 104 |
style={{ |
| Error |
Row 105, Column 1: "Insert `··`"
prettier/prettier
|
| 105 |
width: width - mvs(22) * 2, |
| Error |
Row 106, Column 19: "Replace `marginTop:·mvs(20)` with `··marginTop:·mvs(20),`"
prettier/prettier
|
| Warning |
Row 106, Column 37: "Missing trailing comma."
comma-dangle
|
| 106 |
marginTop: mvs(20) |
| Error |
Row 107, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| 107 |
}} |
| Error |
Row 108, Column 1: "Insert `··`"
prettier/prettier
|
| 108 |
/> |
| Error |
Row 109, Column 13: "Insert `··)`"
prettier/prettier
|
| 109 |
} |
| Error |
Row 110, Column 1: "Insert `··`"
prettier/prettier
|
| 110 |
/> |
| Error |
Row 111, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 111 |
</View> |
| Error |
Row 112, Column 1: "Replace `⏎` with `··`"
prettier/prettier
|
| 112 |
|
| 113 |
</View> |
| Error |
Row 114, Column 1: "Replace `······prettier/prettier
|
| 114 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| Error |
Row 115, Column 1: "Insert `··`"
prettier/prettier
|
| 115 |
</View> |
| Error |
Row 116, Column 1: "Insert `··`"
prettier/prettier
|
| 116 |
); |
| 117 |
}; |
| 118 |
const mapStateToProps = state => ({ |
| Error |
Row 119, Column 29: "Insert `⏎···`"
prettier/prettier
|
| 119 |
heigh_paid_orders_by_city: state.common_orders_list?.heigh_paid_orders_by_city, |
| 120 |
profileData: state.auth.userInfo?.profile || {}, |
| 121 |
}); |
| 122 |
|
| 123 |
const mapDispatchToProps = { |
| Error |
Row 124, Column 36: "Replace `city_to,country_to,to_country_short_name)·=>` with `⏎····city_to,⏎····country_to,⏎····to_country_short_name,⏎··)·=>·`"
prettier/prettier
|
| 124 |
fetchHeighPaidOrdersListByCity: (city_to,country_to,to_country_short_name) =>{ |
| Error |
Row 125, Column 1: "Replace `···return·TAKE_TO_ACTIONS.fetchHeighPaidOrdersListByCity(city_to,country_to,to_country_short_name)` with `····return·TAKE_TO_ACTIONS.fetchHeighPaidOrdersListByCity(⏎······city_to,⏎······country_to,⏎······to_country_short_name,⏎····);`"
prettier/prettier
|
| Warning |
Row 125, Column 99: "Missing semicolon."
semi
|
| 125 |
return TAKE_TO_ACTIONS.fetchHeighPaidOrdersListByCity(city_to,country_to,to_country_short_name) |
| Error |
Row 126, Column 4: "Insert `,`"
prettier/prettier
|
| Warning |
Row 126, Column 4: "Missing trailing comma."
comma-dangle
|
| 126 |
} |
| 127 |
}; |
| 128 |
|
| 129 |
export default connect(mapStateToProps, mapDispatchToProps)(BrowseOrders); |
| 130 |
|
| 131 |
const styles = StyleSheet.create({ |
| 132 |
SCROLL_CONTAINER: { |
| 133 |
paddingBottom: mvs(22), |
| 134 |
paddingHorizontal: mvs(22), |
| 135 |
flexGrow: 1, |
| 136 |
}, |
| 137 |
LOC_DES: { |
| 138 |
justifyContent: 'space-between', |
| 139 |
flexDirection: 'row', |
| 140 |
alignItems: 'center', |
| 141 |
paddingHorizontal: mvs(13), |
| 142 |
paddingVertical: mvs(12), |
| 143 |
borderRadius: mvs(13), |
| 144 |
backgroundColor: colors.primary, |
| 145 |
}, |
| 146 |
REVERSE_LOC_DES: { |
| 147 |
backgroundColor: colors.white, |
| 148 |
borderWidth: StyleSheet.hairlineWidth, |
| 149 |
borderColor: colors.primary, |
| 150 |
}, |
| 151 |
LOC_DES_CONTAINER: { |
| 152 |
backgroundColor: colors.white, |
| 153 |
paddingHorizontal: mvs(22), |
| 154 |
paddingBottom: mvs(20), |
| 155 |
borderBottomStartRadius: mvs(20), |
| 156 |
borderBottomEndRadius: mvs(20), |
| 157 |
}, |
| 158 |
SEARCH_MAP: { |
| 159 |
marginTop: mvs(15), |
| 160 |
alignSelf: 'flex-end', |
| 161 |
width: '49%', |
| 162 |
height: mvs(38), |
| 163 |
flexDirection: 'row', |
| 164 |
backgroundColor: colors.primary, |
| 165 |
paddingHorizontal: mvs(23), |
| 166 |
}, |
| 167 |
MAP_ICON: { |
| 168 |
height: mvs(18), |
| 169 |
width: mvs(14), |
| 170 |
}, |
| 171 |
}); |
| 172 |
|
|
|
|
/src/screens/international-delivery/international-delivery.js
|
163 problems (108 errors, 55 warnings)
|
| Severity |
Rule |
| Warning |
Row 4, Column 3: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 3: "'ScrollView' is defined but never used."
no-unused-vars
|
| Warning |
Row 10, Column 3: "'TextInput' is defined but never used."
no-unused-vars
|
| Warning |
Row 12, Column 8: "'SVGS' is defined but never used."
no-unused-vars
|
| Error |
Row 13, Column 9: "Replace `·useIsFocused·` with `useIsFocused`"
prettier/prettier
|
| Error |
Row 19, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| Warning |
Row 23, Column 8: "'AeroplaneWhite' is defined but never used."
no-unused-vars
|
| Warning |
Row 25, Column 8: "'CarWhite' is defined but never used."
no-unused-vars
|
| Warning |
Row 28, Column 8: "'LocationWhite' is defined but never used."
no-unused-vars
|
| Warning |
Row 30, Column 8: "'InternationalOrderFilterModal' is defined but never used."
no-unused-vars
|
| Warning |
Row 31, Column 8: "'DeliveryFilterModal' is defined but never used."
no-unused-vars
|
| Error |
Row 35, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Warning |
Row 36, Column 8: "'AsyncStorage' is defined but never used."
no-unused-vars
|
| Error |
Row 42, Column 23: "Replace `·iconName·=·'',·country·=·'Kuwait',·labelStyle·})·=>·{⏎` with `iconName·=·'',·country·=·'Kuwait',·labelStyle})·=>·{`"
prettier/prettier
|
| Warning |
Row 45, Column 18: "Inline style: { flexDirection: 'row', width: '28%' }"
react-native/no-inline-styles
|
| Error |
Row 45, Column 19: "Replace `·flexDirection:·'row',·width:·'28%'·` with `flexDirection:·'row',·width:·'28%'`"
prettier/prettier
|
| Error |
Row 46, Column 24: "Replace `·bg_img={iconName·||·services.land_mark}·containerStyle={{·width:·mvs(18),·height:·mvs(18),·borderRadius:·mvs(9)·}}` with `⏎········bg_img={iconName·||·services.land_mark}⏎········containerStyle={{width:·mvs(18),·height:·mvs(18),·borderRadius:·mvs(9)}}⏎·····`"
prettier/prettier
|
| Warning |
Row 50, Column 16: "Inline style: { width: '85%' }"
react-native/no-inline-styles
|
| Error |
Row 50, Column 17: "Replace `·color:·colors.white,·...labelStyle,·width:·'85%',·` with `color:·colors.white,·...labelStyle,·width:·'85%'`"
prettier/prettier
|
| Warning |
Row 50, Column 66: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 66, Column 17: "Replace `·...styles.LOC_DES,·...style,·` with `...styles.LOC_DES,·...style`"
prettier/prettier
|
| Warning |
Row 66, Column 45: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 67, Column 18: "Replace `?:` with `·?·(⏎······⏎····)·:·(⏎······⏎····)`"
prettier/prettier
|
| Warning |
Row 67, Column 18: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 67, Column 118: "Inline style: { width: '28%' }"
react-native/no-inline-styles
|
| Warning |
Row 68, Column 18: "Inline style: { width: '40%' }"
react-native/no-inline-styles
|
| Error |
Row 68, Column 19: "Replace `·width:·'40%',·` with `width:·'40%'`"
prettier/prettier
|
| Warning |
Row 68, Column 32: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 80, Column 13: "Delete `··`"
prettier/prettier
|
| Error |
Row 81, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 86, Column 4: "Replace `{country_to?·:` with `·{country_to·?·(⏎······⏎····)·:·(⏎······⏎····)`"
prettier/prettier
|
| Warning |
Row 86, Column 15: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 86, Column 112: "Inline style: { width: '28%' }"
react-native/no-inline-styles
|
| Error |
Row 89, Column 31: "Replace `(props)` with `props`"
prettier/prettier
|
| Warning |
Row 90, Column 7: "'isFocus' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 90, Column 31: "Insert `;`"
prettier/prettier
|
| Warning |
Row 90, Column 31: "Missing semicolon."
semi
|
| Error |
Row 91, Column 10: "Replace `·navigation,·route,·createOrFilterTrip,·profileData,·filter_Orders·}·=·props` with `navigation,·route,·createOrFilterTrip,·profileData,·filter_Orders}·=⏎····props;`"
prettier/prettier
|
| Warning |
Row 91, Column 86: "Missing semicolon."
semi
|
| Error |
Row 92, Column 10: "Replace `·isLocalOrder,·filterPayload,·flags,·isFilter,radius·}·=` with `isLocalOrder,·filterPayload,·flags,·isFilter,·radius}·=⏎···`"
prettier/prettier
|
| Error |
Row 102, Column 1: "Delete `⏎⏎⏎`"
prettier/prettier
|
| Warning |
Row 106, Column 30: "'setLoading' is already declared in the upper scope."
no-shadow
|
| Error |
Row 108, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 110, Column 19: "Replace `"FILTER:::",·filterPayload)` with `'FILTER:::',·filterPayload);`"
prettier/prettier
|
| Warning |
Row 110, Column 19: "Strings must use singlequote."
quotes
|
| Warning |
Row 110, Column 46: "Missing semicolon."
semi
|
| Warning |
Row 111, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 111, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 116, Column 14: "Replace `=radius!==undefined&&radius>0?{...filterPayload,radius}:` with `·=⏎········radius·!==·undefined·&&·radius·>·0⏎··········?·{...filterPayload,·radius}⏎··········:·`"
prettier/prettier
|
| Warning |
Row 116, Column 14: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 116, Column 21: "Operator '!==' must be spaced."
space-infix-ops
|
| Warning |
Row 116, Column 33: "Operator '&&' must be spaced."
space-infix-ops
|
| Warning |
Row 116, Column 41: "Operator '>' must be spaced."
space-infix-ops
|
| Warning |
Row 116, Column 43: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 119, Column 7: "'alertRef' is not defined."
no-undef
|
| Warning |
Row 130, Column 5: "Expected space(s) after "if"."
keyword-spacing
|
| Error |
Row 130, Column 7: "Replace `(radius===undefined)` with `·(radius·===·undefined)·`"
prettier/prettier
|
| Warning |
Row 130, Column 14: "Operator '===' must be spaced."
space-infix-ops
|
| Error |
Row 133, Column 6: "React Hook React.useEffect has missing dependencies: 'onPagination' and 'radius'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 135, Column 1: "Delete `⏎`"
prettier/prettier
|
| Warning |
Row 138, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 138, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 145, Column 22: "Inline style: { flex: 1, alignItems: 'center', justifyContent: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 145, Column 23: "Replace `·flex:·1,·alignItems:·'center',·justifyContent:·'center'·` with `flex:·1,·alignItems:·'center',·justifyContent:·'center'`"
prettier/prettier
|
| Error |
Row 149, Column 6: "Insert `;`"
prettier/prettier
|
| Warning |
Row 149, Column 6: "Missing semicolon."
semi
|
| Warning |
Row 152, Column 18: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 152, Column 19: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Error |
Row 159, Column 23: "Replace `prettier/prettier
|
| Error |
Row 160, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 161, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 162, Column 1: "Replace `······` with `··········`"
prettier/prettier
|
| Error |
Row 163, Column 1: "Replace `········onSearchMap={()·=>·props.navigation.navigate('searchmap',·{·isLocalOrder:·isLocalOrder,·filterPayload·})}` with `··········onSearchMap={()·=>⏎············props.navigation.navigate('searchmap',·{⏎··············isLocalOrder:·isLocalOrder,⏎··············filterPayload,⏎············})⏎··········}⏎·········`"
prettier/prettier
|
| Error |
Row 164, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 165, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 166, Column 7: "Replace `··:·` with `)·:·(⏎········`"
prettier/prettier
|
| Error |
Row 174, Column 11: "Insert `⏎······)`"
prettier/prettier
|
| Warning |
Row 176, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 176, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Error |
Row 177, Column 23: "Replace `·...styles.LOC_DES_CONTAINER,·` with `...styles.LOC_DES_CONTAINER`"
prettier/prettier
|
| Warning |
Row 177, Column 51: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 180, Column 52: "Replace `·from:·true,·to:·false·` with `from:·true,·to:·false`"
prettier/prettier
|
| Error |
Row 203, Column 54: "Replace `·from:·false,·to:·true·` with `from:·false,·to:·true`"
prettier/prettier
|
| Error |
Row 205, Column 25: "Replace `·to:·flags?.from,·from:·flags?.to·` with `to:·flags?.from,·from:·flags?.to`"
prettier/prettier
|
| Error |
Row 212, Column 48: "Replace `⏎····················?·colors.primary⏎···················` with `·?·colors.primary`"
prettier/prettier
|
| Error |
Row 229, Column 49: "Replace `·isLocalOrder,·filterPayload,·isFilter,·selected` with `⏎················isLocalOrder,⏎················filterPayload,⏎················isFilter,⏎················selected,⏎·············`"
prettier/prettier
|
| Error |
Row 234, Column 25: "Replace `·color:·colors.white,·fontSize:·mvs(12)·` with `color:·colors.white,·fontSize:·mvs(12)`"
prettier/prettier
|
| Error |
Row 238, Column 23: "Replace `·paddingHorizontal:·mvs(22),·` with `paddingHorizontal:·mvs(22)`"
prettier/prettier
|
| Warning |
Row 238, Column 50: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 244, Column 27: "Replace `·navigation.replace(isLocalOrder·?·'localtrip'·:·'internationaltrip',·{·isFilter:·true,·isOnline:·selected·===·0·?·true·:·false·})` with `⏎··············navigation.replace(⏎················isLocalOrder·?·'localtrip'·:·'internationaltrip',⏎················{isFilter:·true,·isOnline:·selected·===·0·?·true·:·false},⏎··············)⏎············`"
prettier/prettier
|
| Warning |
Row 253, Column 41: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 259, Column 33: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 269, Column 41: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 275, Column 33: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 281, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 281, Column 23: "Replace `·flex:·1,·` with `flex:·1`"
prettier/prettier
|
| Warning |
Row 281, Column 31: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 282, Column 29: "Replace `·(filter_Orders?.data?.filter(x·=>·x?.order_site).length·<·1)·&&··x?.order_site).length·<·1·&&·(⏎··············prettier/prettier
|
| Warning |
Row 282, Column 107: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 283, Column 13: "Replace `prettier/prettier
|
| Error |
Row 284, Column 1: "Replace `··········` with `··············⏎············)`"
prettier/prettier
|
| Error |
Row 285, Column 29: "Replace `·(filter_Orders?.data?.filter(x·=>·!x.order_site).length·<·1)·&&··!x.order_site).length·<·1·&&·(⏎··············prettier/prettier
|
| Warning |
Row 285, Column 107: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 286, Column 1: "Replace `············prettier/prettier
|
| Error |
Row 287, Column 1: "Replace `··········` with `··············⏎············)`"
prettier/prettier
|
| Warning |
Row 288, Column 24: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 288, Column 25: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| Error |
Row 289, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 290, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 291, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 292, Column 15: "Insert `··`"
prettier/prettier
|
| Warning |
Row 292, Column 28: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 293, Column 17: "Replace `return·(!x.order_site)` with `··return·!x.order_site;`"
prettier/prettier
|
| Warning |
Row 293, Column 39: "Missing semicolon."
semi
|
| Error |
Row 294, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 295, Column 1: "Replace `················return·(x.order_site)` with `··················return·x.order_site;`"
prettier/prettier
|
| Warning |
Row 295, Column 38: "Missing semicolon."
semi
|
| Error |
Row 296, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 297, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 298, Column 1: "Replace `············renderItem={({·item,·index·` with `··············renderItem={({item,·index`"
prettier/prettier
|
| Error |
Row 299, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 300, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| Error |
Row 301, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 302, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 303, Column 17: "Insert `··`"
prettier/prettier
|
| Error |
Row 304, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 304, Column 17: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Error |
Row 305, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| Error |
Row 306, Column 17: "Insert `··`"
prettier/prettier
|
| Error |
Row 307, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 308, Column 17: "Insert `··`"
prettier/prettier
|
| Error |
Row 309, Column 17: "Replace `shopName={item?.order_shop_name?.length·>·8·?·`${item?.order_shop_name?.substring(0,·8)}·...`·:·item?.order_shop_name` with `··shopName={⏎····················item?.order_shop_name?.length·>·8⏎······················?·`${item?.order_shop_name?.substring(0,·8)}·...`⏎······················:·item?.order_shop_name⏎··················`"
prettier/prettier
|
| Error |
Row 310, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| Error |
Row 311, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 312, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 313, Column 17: "Replace `user_name={⏎··················item.order_by·?·item.order_by.user_name·:·''` with `··user_name={item.order_by·?·item.order_by.user_name·:·''}`"
prettier/prettier
|
| Error |
Row 315, Column 6: "Replace `···········}⏎················user_img={⏎··················item.order_by·?·item.order_by.user_image·:·''` with `·············user_img={item.order_by·?·item.order_by.user_image·:·''}`"
prettier/prettier
|
| Error |
Row 318, Column 3: "Delete `··············}⏎`"
prettier/prettier
|
| Error |
Row 320, Column 17: "Insert `··`"
prettier/prettier
|
| Error |
Row 321, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 322, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| Error |
Row 323, Column 17: "Insert `··`"
prettier/prettier
|
| Error |
Row 324, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 325, Column 19: "Insert `··`"
prettier/prettier
|
| Error |
Row 326, Column 17: "Insert `··`"
prettier/prettier
|
| Error |
Row 327, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 328, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 329, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 330, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 331, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 332, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 333, Column 11: "Insert `··`"
prettier/prettier
|
| Warning |
Row 335, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 335, Column 1: "Delete `·········`"
prettier/prettier
|
| Error |
Row 337, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 338, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 339, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 340, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 341, Column 16: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 353, Column 61: "Insert `⏎···`"
prettier/prettier
|
| Warning |
Row 354, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 354, Column 1: "Delete `·⏎`"
prettier/prettier
|
| Error |
Row 356, Column 24: "Replace `mapStateToProps,·mapDispatchToProps` with `⏎··mapStateToProps,⏎··mapDispatchToProps,⏎`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| 2 |
import { |
| 3 |
StyleSheet, |
| Warning |
Row 4, Column 3: "'Text' is defined but never used."
no-unused-vars
|
| 4 |
Text, |
| 5 |
View, |
| Warning |
Row 6, Column 3: "'ScrollView' is defined but never used."
no-unused-vars
|
| 6 |
ScrollView, |
| 7 |
FlatList, |
| 8 |
TouchableOpacity, |
| 9 |
ActivityIndicator, |
| Warning |
Row 10, Column 3: "'TextInput' is defined but never used."
no-unused-vars
|
| 10 |
TextInput, |
| 11 |
} from 'react-native'; |
| Warning |
Row 12, Column 8: "'SVGS' is defined but never used."
no-unused-vars
|
| 12 |
import SVGS from '../../../resource/assets/rtl-button-icons'; |
| Error |
Row 13, Column 9: "Replace `·useIsFocused·` with `useIsFocused`"
prettier/prettier
|
| 13 |
import { useIsFocused } from '@react-navigation/core'; |
| 14 |
import OrderDestination from '../../components/atoms/OrderDestination'; |
| 15 |
import Header from '../../components/molecules/header/header-1x'; |
| 16 |
import MakeOfferOrderCard from '../../components/molecules/order_card/make-offer-card'; |
| 17 |
import OrderTypeHeader from '../../components/molecules/order_card/order-type-header'; |
| 18 |
import colors from '../../config/colors'; |
| Error |
Row 19, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| 19 |
import { mvs, width } from '../../config/metrices'; |
| 20 |
import Regular from '../../presentation/typography/regular-text'; |
| 21 |
import Aeroplane from './../../../resource/assets/order-car-icons/aeroplane.svg'; |
| 22 |
import aeroplane_deactive from './../../../resource/assets/order-car-icons/aeroplane-deactive.svg'; |
| Warning |
Row 23, Column 8: "'AeroplaneWhite' is defined but never used."
no-unused-vars
|
| 23 |
import AeroplaneWhite from './../../../resource/assets/order-car-icons/aeroplane-white.svg'; |
| 24 |
import Car from './../../../resource/assets/order-car-icons/car.svg'; |
| Warning |
Row 25, Column 8: "'CarWhite' is defined but never used."
no-unused-vars
|
| 25 |
import CarWhite from './../../../resource/assets/order-car-icons/car-white.svg'; |
| 26 |
|
| 27 |
import Location from './../../../resource/assets/order-car-icons/location-active.svg'; |
| Warning |
Row 28, Column 8: "'LocationWhite' is defined but never used."
no-unused-vars
|
| 28 |
import LocationWhite from './../../../resource/assets/order-car-icons/location-white.svg'; |
| 29 |
import location_deactive from './../../../resource/assets/order-car-icons/location-deactive.svg'; |
| Warning |
Row 30, Column 8: "'InternationalOrderFilterModal' is defined but never used."
no-unused-vars
|
| 30 |
import InternationalOrderFilterModal from '../../components/molecules/modals/international-order-filter-modal'; |
| Warning |
Row 31, Column 8: "'DeliveryFilterModal' is defined but never used."
no-unused-vars
|
| 31 |
import DeliveryFilterModal from '../../components/molecules/modals/delivery-filter-modal'; |
| 32 |
import Buttons from '../../components/atoms/Button'; |
| 33 |
import InternationalOrderDateFilterModal from '../../components/molecules/modals/international-order-date-filter-modal'; |
| 34 |
import LocalOrderFilterModal from '../../components/molecules/modals/local-order-filter-modal'; |
| Error |
Row 35, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 35 |
import { connect } from 'react-redux'; |
| Warning |
Row 36, Column 8: "'AsyncStorage' is defined but never used."
no-unused-vars
|
| 36 |
import AsyncStorage from '@react-native-async-storage/async-storage'; |
| 37 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 38 |
import ImagePlaceholder from '../../components/atoms/Placeholder'; |
| 39 |
import services from '@khan_ahmad786/common/api/services'; |
| 40 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 41 |
|
| Error |
Row 42, Column 23: "Replace `·iconName·=·'',·country·=·'Kuwait',·labelStyle·})·=>·{⏎` with `iconName·=·'',·country·=·'Kuwait',·labelStyle})·=>·{`"
prettier/prettier
|
| 42 |
const CountryFlag = ({ iconName = '', country = 'Kuwait', labelStyle }) => { |
| 43 |
|
| 44 |
return ( |
| Warning |
Row 45, Column 18: "Inline style: { flexDirection: 'row', width: '28%' }"
react-native/no-inline-styles
|
| Error |
Row 45, Column 19: "Replace `·flexDirection:·'row',·width:·'28%'·` with `flexDirection:·'row',·width:·'28%'`"
prettier/prettier
|
| 45 |
<View style={{ flexDirection: 'row', width: '28%' }}> |
| Error |
Row 46, Column 24: "Replace `·bg_img={iconName·||·services.land_mark}·containerStyle={{·width:·mvs(18),·height:·mvs(18),·borderRadius:·mvs(9)·}}` with `⏎········bg_img={iconName·||·services.land_mark}⏎········containerStyle={{width:·mvs(18),·height:·mvs(18),·borderRadius:·mvs(9)}}⏎·····`"
prettier/prettier
|
| 46 |
<ImagePlaceholder bg_img={iconName || services.land_mark} containerStyle={{ width: mvs(18), height: mvs(18), borderRadius: mvs(9) }} /> |
| 47 |
<Regular |
| 48 |
numberOfLines={1} |
| 49 |
label={` ${country}`} |
| Warning |
Row 50, Column 16: "Inline style: { width: '85%' }"
react-native/no-inline-styles
|
| Error |
Row 50, Column 17: "Replace `·color:·colors.white,·...labelStyle,·width:·'85%',·` with `color:·colors.white,·...labelStyle,·width:·'85%'`"
prettier/prettier
|
| Warning |
Row 50, Column 66: "Unexpected trailing comma."
comma-dangle
|
| 50 |
style={{ color: colors.white, ...labelStyle, width: '85%', }} |
| 51 |
/> |
| 52 |
</View> |
| 53 |
); |
| 54 |
}; |
| 55 |
|
| 56 |
const LocDestination = ({ |
| 57 |
flags, |
| 58 |
local = false, |
| 59 |
style, |
| 60 |
labelStyle, |
| 61 |
isActive = false, |
| 62 |
isReverse = false, |
| 63 |
country_to = '', |
| 64 |
country_from = '', |
| 65 |
}) => ( |
| Error |
Row 66, Column 17: "Replace `·...styles.LOC_DES,·...style,·` with `...styles.LOC_DES,·...style`"
prettier/prettier
|
| Warning |
Row 66, Column 45: "Unexpected trailing comma."
comma-dangle
|
| 66 |
<View style={{ ...styles.LOC_DES, ...style, }}> |
| Error |
Row 67, Column 18: "Replace `?:` with `·?·(⏎······⏎····)·:·(⏎······⏎····)`"
prettier/prettier
|
| Warning |
Row 67, Column 18: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 67, Column 118: "Inline style: { width: '28%' }"
react-native/no-inline-styles
|
| 67 |
{country_from?<CountryFlag labelStyle={labelStyle} country={country_from} iconName={flags?.from} />:<View style={{width: '28%'}}/>} |
| Warning |
Row 68, Column 18: "Inline style: { width: '40%' }"
react-native/no-inline-styles
|
| Error |
Row 68, Column 19: "Replace `·width:·'40%',·` with `width:·'40%'`"
prettier/prettier
|
| Warning |
Row 68, Column 32: "Unexpected trailing comma."
comma-dangle
|
| 68 |
<View style={{ width: '40%', }}> |
| 69 |
<OrderDestination |
| 70 |
liveActive={isActive} |
| 71 |
isReverse={isReverse} |
| 72 |
value={0} |
| 73 |
label=" - - - - - - - - - - - - - " |
| 74 |
SVGFirst={ |
| 75 |
isActive |
| 76 |
? local |
| 77 |
? Car |
| 78 |
: Aeroplane |
| 79 |
: local |
| Error |
Row 80, Column 13: "Delete `··`"
prettier/prettier
|
| 80 |
? Car |
| Error |
Row 81, Column 1: "Delete `··`"
prettier/prettier
|
| 81 |
: aeroplane_deactive |
| 82 |
} |
| 83 |
SVGSecond={isActive ? Location : location_deactive} |
| 84 |
/> |
| 85 |
</View> |
| Error |
Row 86, Column 4: "Replace `{country_to?·:` with `·{country_to·?·(⏎······⏎····)·:·(⏎······⏎····)`"
prettier/prettier
|
| Warning |
Row 86, Column 15: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 86, Column 112: "Inline style: { width: '28%' }"
react-native/no-inline-styles
|
| 86 |
{country_to? <CountryFlag labelStyle={labelStyle} country={country_to} iconName={flags?.to} />:<View style={{width: '28%'}}/>} |
| 87 |
</View> |
| 88 |
); |
| Error |
Row 89, Column 31: "Replace `(props)` with `props`"
prettier/prettier
|
| 89 |
const InternationalDelivery = (props) => { |
| Warning |
Row 90, Column 7: "'isFocus' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 90, Column 31: "Insert `;`"
prettier/prettier
|
| Warning |
Row 90, Column 31: "Missing semicolon."
semi
|
| 90 |
let isFocus = useIsFocused() |
| Error |
Row 91, Column 10: "Replace `·navigation,·route,·createOrFilterTrip,·profileData,·filter_Orders·}·=·props` with `navigation,·route,·createOrFilterTrip,·profileData,·filter_Orders}·=⏎····props;`"
prettier/prettier
|
| Warning |
Row 91, Column 86: "Missing semicolon."
semi
|
| 91 |
const { navigation, route, createOrFilterTrip, profileData, filter_Orders } = props |
| Error |
Row 92, Column 10: "Replace `·isLocalOrder,·filterPayload,·flags,·isFilter,radius·}·=` with `isLocalOrder,·filterPayload,·flags,·isFilter,·radius}·=⏎···`"
prettier/prettier
|
| 92 |
const { isLocalOrder, filterPayload, flags, isFilter,radius } = route.params || {}; |
| 93 |
const [loading, setLoading] = React.useState(false); |
| 94 |
const [selected, setSelected] = React.useState(0); |
| 95 |
const [deliveryDestination, setDeliveryDestination] = React.useState({ |
| 96 |
from: true, |
| 97 |
to: false, |
| 98 |
}); |
| 99 |
const [openFilter, setOpenFilter] = React.useState(false); |
| 100 |
const [pageLoading, setPageLoading] = React.useState(false); |
| 101 |
|
| Error |
Row 102, Column 1: "Delete `⏎⏎⏎`"
prettier/prettier
|
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
//console.log('radius::',radius); |
| Warning |
Row 106, Column 30: "'setLoading' is already declared in the upper scope."
no-shadow
|
| 106 |
const onPagination = async setLoading => { |
| 107 |
try { |
| Error |
Row 108, Column 1: "Delete `⏎`"
prettier/prettier
|
| 108 |
|
| 109 |
let page = UI_API._returnPage(filter_Orders); |
| Error |
Row 110, Column 19: "Replace `"FILTER:::",·filterPayload)` with `'FILTER:::',·filterPayload);`"
prettier/prettier
|
| Warning |
Row 110, Column 19: "Strings must use singlequote."
quotes
|
| Warning |
Row 110, Column 46: "Missing semicolon."
semi
|
| 110 |
console.log("FILTER:::", filterPayload) |
| Warning |
Row 111, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 111, Column 1: "Delete `······`"
prettier/prettier
|
| 111 |
|
| 112 |
if (!page) { |
| 113 |
return; |
| 114 |
} |
| 115 |
setLoading(true); |
| Error |
Row 116, Column 14: "Replace `=radius!==undefined&&radius>0?{...filterPayload,radius}:` with `·=⏎········radius·!==·undefined·&&·radius·>·0⏎··········?·{...filterPayload,·radius}⏎··········:·`"
prettier/prettier
|
| Warning |
Row 116, Column 14: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 116, Column 21: "Operator '!==' must be spaced."
space-infix-ops
|
| Warning |
Row 116, Column 33: "Operator '&&' must be spaced."
space-infix-ops
|
| Warning |
Row 116, Column 41: "Operator '>' must be spaced."
space-infix-ops
|
| Warning |
Row 116, Column 43: "Operator '?' must be spaced."
space-infix-ops
|
| 116 |
let obj=radius!==undefined&&radius>0?{...filterPayload,radius}:filterPayload; |
| 117 |
await createOrFilterTrip(obj, isLocalOrder, page); |
| 118 |
} catch (error) { |
| Error |
Row 119, Column 7: "'alertRef' is not defined."
no-undef
|
| 119 |
alertRef.current.alertWithType( |
| 120 |
'error', |
| 121 |
'Error', |
| 122 |
UI_API._returnError(error), |
| 123 |
); |
| 124 |
} finally { |
| 125 |
setLoading(false); |
| 126 |
} |
| 127 |
}; |
| 128 |
|
| 129 |
React.useEffect(() => { |
| Warning |
Row 130, Column 5: "Expected space(s) after "if"."
keyword-spacing
|
| Error |
Row 130, Column 7: "Replace `(radius===undefined)` with `·(radius·===·undefined)·`"
prettier/prettier
|
| Warning |
Row 130, Column 14: "Operator '===' must be spaced."
space-infix-ops
|
| 130 |
if(radius===undefined){ |
| 131 |
onPagination(setLoading); |
| 132 |
} |
| Error |
Row 133, Column 6: "React Hook React.useEffect has missing dependencies: 'onPagination' and 'radius'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| 133 |
}, [profileData?.currency]); |
| 134 |
|
| Error |
Row 135, Column 1: "Delete `⏎`"
prettier/prettier
|
| 135 |
|
| 136 |
if (loading) { |
| 137 |
return ( |
| Warning |
Row 138, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 138, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 138 |
<View style={{ flex: 1, backgroundColor: colors.white }}> |
| 139 |
<Header |
| 140 |
{...props} |
| 141 |
title={`${isLocalOrder ? 'local' : 'International'} Orders`} |
| 142 |
allowBackBtn |
| 143 |
bellIcon |
| 144 |
/> |
| Warning |
Row 145, Column 22: "Inline style: { flex: 1, alignItems: 'center', justifyContent: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 145, Column 23: "Replace `·flex:·1,·alignItems:·'center',·justifyContent:·'center'·` with `flex:·1,·alignItems:·'center',·justifyContent:·'center'`"
prettier/prettier
|
| 145 |
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}> |
| 146 |
<ActivityIndicator size={'small'} /> |
| 147 |
</View> |
| 148 |
</View> |
| Error |
Row 149, Column 6: "Insert `;`"
prettier/prettier
|
| Warning |
Row 149, Column 6: "Missing semicolon."
semi
|
| 149 |
) |
| 150 |
} |
| 151 |
return ( |
| Warning |
Row 152, Column 18: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 152, Column 19: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 152 |
<View style={{ flex: 1, backgroundColor: colors.white }}> |
| 153 |
<Header |
| 154 |
{...props} |
| 155 |
title={`${isLocalOrder ? 'local' : 'International'} Orders`} |
| 156 |
allowBackBtn |
| 157 |
bellIcon |
| 158 |
/> |
| Error |
Row 159, Column 23: "Replace `prettier/prettier
|
| 159 |
{isLocalOrder ? <LocalOrderFilterModal onApply={() => { |
| Error |
Row 160, Column 1: "Insert `····`"
prettier/prettier
|
| 160 |
setOpenFilter(false); |
| Error |
Row 161, Column 1: "Insert `····`"
prettier/prettier
|
| 161 |
// props.navigation.navigate('internationaldelivery', { isLocalOrder: true }); |
| Error |
Row 162, Column 1: "Replace `······` with `··········`"
prettier/prettier
|
| 162 |
}} |
| Error |
Row 163, Column 1: "Replace `········onSearchMap={()·=>·props.navigation.navigate('searchmap',·{·isLocalOrder:·isLocalOrder,·filterPayload·})}` with `··········onSearchMap={()·=>⏎············props.navigation.navigate('searchmap',·{⏎··············isLocalOrder:·isLocalOrder,⏎··············filterPayload,⏎············})⏎··········}⏎·········`"
prettier/prettier
|
| 163 |
onSearchMap={() => props.navigation.navigate('searchmap', { isLocalOrder: isLocalOrder, filterPayload })} visible={openFilter} |
| Error |
Row 164, Column 9: "Insert `··`"
prettier/prettier
|
| 164 |
onClose={() => setOpenFilter(false)} |
| Error |
Row 165, Column 7: "Insert `··`"
prettier/prettier
|
| 165 |
/> |
| Error |
Row 166, Column 7: "Replace `··:·` with `)·:·(⏎········`"
prettier/prettier
|
| 166 |
: <InternationalOrderDateFilterModal |
| 167 |
onApply={() => { |
| 168 |
setOpenFilter(false); |
| 169 |
// props.navigation.navigate('internationaldelivery', { isLocalOrder: false }) |
| 170 |
}} |
| 171 |
visible={openFilter} |
| 172 |
onClose={() => setOpenFilter(false)} |
| 173 |
{...props} |
| Error |
Row 174, Column 11: "Insert `⏎······)`"
prettier/prettier
|
| 174 |
/>} |
| 175 |
|
| Warning |
Row 176, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 176, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 176 |
<View style={{ flex: 1, backgroundColor: colors.white }}> |
| Error |
Row 177, Column 23: "Replace `·...styles.LOC_DES_CONTAINER,·` with `...styles.LOC_DES_CONTAINER`"
prettier/prettier
|
| Warning |
Row 177, Column 51: "Unexpected trailing comma."
comma-dangle
|
| 177 |
<View style={{ ...styles.LOC_DES_CONTAINER, }}> |
| 178 |
<TouchableOpacity |
| 179 |
activeOpacity={0.5} |
| Error |
Row 180, Column 52: "Replace `·from:·true,·to:·false·` with `from:·true,·to:·false`"
prettier/prettier
|
| 180 |
onPress={() => setDeliveryDestination({ from: true, to: false })}> |
| 181 |
<LocDestination |
| 182 |
flags={flags} |
| 183 |
country_from={filterPayload?.country_from} |
| 184 |
country_to={filterPayload?.country_to} |
| 185 |
local={isLocalOrder} |
| 186 |
isActive={deliveryDestination.from} |
| 187 |
labelStyle={{ |
| 188 |
color: deliveryDestination.from ? colors.primary : colors.doted, |
| 189 |
}} |
| 190 |
style={{ |
| 191 |
...styles.REVERSE_LOC_DES, |
| 192 |
borderColor: deliveryDestination.from |
| 193 |
? colors.primary |
| 194 |
: colors.doted, |
| 195 |
// marginTop: mvs(30), |
| 196 |
backgroundColor: colors.white, |
| 197 |
}} |
| 198 |
/> |
| 199 |
</TouchableOpacity> |
| 200 |
{!isLocalOrder && filterPayload?.trip_type === 2 && ( |
| 201 |
<TouchableOpacity |
| 202 |
activeOpacity={0.5} |
| Error |
Row 203, Column 54: "Replace `·from:·false,·to:·true·` with `from:·false,·to:·true`"
prettier/prettier
|
| 203 |
onPress={() => setDeliveryDestination({ from: false, to: true })}> |
| 204 |
<LocDestination |
| Error |
Row 205, Column 25: "Replace `·to:·flags?.from,·from:·flags?.to·` with `to:·flags?.from,·from:·flags?.to`"
prettier/prettier
|
| 205 |
flags={{ to: flags?.from, from: flags?.to }} |
| 206 |
country_from={filterPayload?.country_to} |
| 207 |
country_to={filterPayload?.country_from} |
| 208 |
local={isLocalOrder} |
| 209 |
isReverse={false} |
| 210 |
isActive={deliveryDestination.to} |
| 211 |
labelStyle={{ |
| Error |
Row 212, Column 48: "Replace `⏎····················?·colors.primary⏎···················` with `·?·colors.primary`"
prettier/prettier
|
| 212 |
color: deliveryDestination.to |
| 213 |
? colors.primary |
| 214 |
: colors.doted, |
| 215 |
}} |
| 216 |
style={{ |
| 217 |
...styles.REVERSE_LOC_DES, |
| 218 |
borderColor: deliveryDestination.to |
| 219 |
? colors.primary |
| 220 |
: colors.doted, |
| 221 |
marginTop: mvs(15), |
| 222 |
backgroundColor: colors.white, |
| 223 |
}} |
| 224 |
/> |
| 225 |
</TouchableOpacity> |
| 226 |
)} |
| 227 |
<Buttons.ButtonRTL |
| 228 |
onClick={() => { |
| Error |
Row 229, Column 49: "Replace `·isLocalOrder,·filterPayload,·isFilter,·selected` with `⏎················isLocalOrder,⏎················filterPayload,⏎················isFilter,⏎················selected,⏎·············`"
prettier/prettier
|
| 229 |
navigation.navigate('searchmap', { isLocalOrder, filterPayload, isFilter, selected }); |
| 230 |
}} |
| 231 |
iconName={'maptransparent'} |
| 232 |
title={'Search on map'} |
| 233 |
style={styles.SEARCH_MAP} |
| Error |
Row 234, Column 25: "Replace `·color:·colors.white,·fontSize:·mvs(12)·` with `color:·colors.white,·fontSize:·mvs(12)`"
prettier/prettier
|
| 234 |
textStyle={{ color: colors.white, fontSize: mvs(12) }} |
| 235 |
iconStyle={styles.MAP_ICON} |
| 236 |
/> |
| 237 |
</View> |
| Error |
Row 238, Column 23: "Replace `·paddingHorizontal:·mvs(22),·` with `paddingHorizontal:·mvs(22)`"
prettier/prettier
|
| Warning |
Row 238, Column 50: "Unexpected trailing comma."
comma-dangle
|
| 238 |
<View style={{ paddingHorizontal: mvs(22), }}> |
| 239 |
<OrderTypeHeader |
| 240 |
title={'Search Results'} |
| 241 |
filter |
| 242 |
isIcon |
| 243 |
isLocal={isLocalOrder} |
| Error |
Row 244, Column 27: "Replace `·navigation.replace(isLocalOrder·?·'localtrip'·:·'internationaltrip',·{·isFilter:·true,·isOnline:·selected·===·0·?·true·:·false·})` with `⏎··············navigation.replace(⏎················isLocalOrder·?·'localtrip'·:·'internationaltrip',⏎················{isFilter:·true,·isOnline:·selected·===·0·?·true·:·false},⏎··············)⏎············`"
prettier/prettier
|
| 244 |
onPress={() => navigation.replace(isLocalOrder ? 'localtrip' : 'internationaltrip', { isFilter: true, isOnline: selected === 0 ? true : false })} |
| 245 |
/> |
| 246 |
</View> |
| 247 |
|
| 248 |
<View style={styles.buttonsContainer}> |
| 249 |
<TouchableOpacity |
| 250 |
onPress={() => setSelected(0)} |
| 251 |
style={{ |
| 252 |
...styles.topButton, |
| Warning |
Row 253, Column 41: "Expected '===' and instead saw '=='."
eqeqeq
|
| 253 |
backgroundColor: selected == 0 ? colors.primary : colors.white, |
| 254 |
}}> |
| 255 |
{/* {selected == 0 ? <Aeroplane /> : <AeroplaneActive />} */} |
| 256 |
<Regular |
| 257 |
label="Online" |
| 258 |
style={{ |
| Warning |
Row 259, Column 33: "Expected '===' and instead saw '=='."
eqeqeq
|
| 259 |
color: selected == 0 ? colors.white : colors.primary, |
| 260 |
marginLeft: mvs(11), |
| 261 |
}} |
| 262 |
/> |
| 263 |
</TouchableOpacity> |
| 264 |
|
| 265 |
<TouchableOpacity |
| 266 |
onPress={() => setSelected(1)} |
| 267 |
style={{ |
| 268 |
...styles.topButton, |
| Warning |
Row 269, Column 41: "Expected '===' and instead saw '=='."
eqeqeq
|
| 269 |
backgroundColor: selected == 1 ? colors.primary : colors.white, |
| 270 |
}}> |
| 271 |
{/* {selected == 1 ? <Car /> : <CarActive />} */} |
| 272 |
<Regular |
| 273 |
label="Physical" |
| 274 |
style={{ |
| Warning |
Row 275, Column 33: "Expected '===' and instead saw '=='."
eqeqeq
|
| 275 |
color: selected == 1 ? colors.white : colors.primary, |
| 276 |
marginLeft: mvs(11), |
| 277 |
}} |
| 278 |
/> |
| 279 |
</TouchableOpacity> |
| 280 |
</View> |
| Warning |
Row 281, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 281, Column 23: "Replace `·flex:·1,·` with `flex:·1`"
prettier/prettier
|
| Warning |
Row 281, Column 31: "Unexpected trailing comma."
comma-dangle
|
| 281 |
<View style={{ flex: 1, }}> |
| Error |
Row 282, Column 29: "Replace `·(filter_Orders?.data?.filter(x·=>·x?.order_site).length·<·1)·&&··x?.order_site).length·<·1·&&·(⏎··············prettier/prettier
|
| Warning |
Row 282, Column 107: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 282 |
{selected === 0 && (filter_Orders?.data?.filter(x => x?.order_site).length < 1) && <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> |
| Error |
Row 283, Column 13: "Replace `prettier/prettier
|
| 283 |
<Regular style={{ color: colors.primary }} label={'No Result Found'} /> |
| Error |
Row 284, Column 1: "Replace `··········` with `··············⏎············)`"
prettier/prettier
|
| 284 |
</View>} |
| Error |
Row 285, Column 29: "Replace `·(filter_Orders?.data?.filter(x·=>·!x.order_site).length·<·1)·&&··!x.order_site).length·<·1·&&·(⏎··············prettier/prettier
|
| Warning |
Row 285, Column 107: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 285 |
{selected === 1 && (filter_Orders?.data?.filter(x => !x.order_site).length < 1) && <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> |
| Error |
Row 286, Column 1: "Replace `············prettier/prettier
|
| 286 |
<Regular style={{ color: colors.primary }} label={'No Result Found'} /> |
| Error |
Row 287, Column 1: "Replace `··········` with `··············⏎············)`"
prettier/prettier
|
| 287 |
</View>} |
| Warning |
Row 288, Column 24: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 288, Column 25: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| 288 |
<View style={{ flex: 1 }}> |
| Error |
Row 289, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 289 |
<FlatList |
| Error |
Row 290, Column 1: "Insert `··`"
prettier/prettier
|
| 290 |
contentContainerStyle={styles.SCROLL_CONTAINER} |
| Error |
Row 291, Column 1: "Insert `··`"
prettier/prettier
|
| 291 |
data={filter_Orders?.data?.filter(x => { |
| Error |
Row 292, Column 15: "Insert `··`"
prettier/prettier
|
| Warning |
Row 292, Column 28: "Expected '===' and instead saw '=='."
eqeqeq
|
| 292 |
if (selected == 1) { |
| Error |
Row 293, Column 17: "Replace `return·(!x.order_site)` with `··return·!x.order_site;`"
prettier/prettier
|
| Warning |
Row 293, Column 39: "Missing semicolon."
semi
|
| 293 |
return (!x.order_site) |
| Error |
Row 294, Column 1: "Insert `··`"
prettier/prettier
|
| 294 |
} else { |
| Error |
Row 295, Column 1: "Replace `················return·(x.order_site)` with `··················return·x.order_site;`"
prettier/prettier
|
| Warning |
Row 295, Column 38: "Missing semicolon."
semi
|
| 295 |
return (x.order_site) |
| Error |
Row 296, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 296 |
} |
| Error |
Row 297, Column 1: "Insert `··`"
prettier/prettier
|
| 297 |
})} |
| Error |
Row 298, Column 1: "Replace `············renderItem={({·item,·index·` with `··············renderItem={({item,·index`"
prettier/prettier
|
| 298 |
renderItem={({ item, index }) => ( |
| Error |
Row 299, Column 1: "Insert `··`"
prettier/prettier
|
| 299 |
<MakeOfferOrderCard |
| Error |
Row 300, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| 300 |
{...item} |
| Error |
Row 301, Column 1: "Insert `··`"
prettier/prettier
|
| 301 |
local={isLocalOrder} |
| Error |
Row 302, Column 1: "Insert `··`"
prettier/prettier
|
| 302 |
{...props} |
| Error |
Row 303, Column 17: "Insert `··`"
prettier/prettier
|
| 303 |
order_data={item} |
| Error |
Row 304, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 304, Column 17: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 304 |
local={!item?.is_international} |
| Error |
Row 305, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| 305 |
urgent_delivery={item?.is_urgent} |
| Error |
Row 306, Column 17: "Insert `··`"
prettier/prettier
|
| 306 |
time={item.order_created_at} |
| Error |
Row 307, Column 1: "Insert `··`"
prettier/prettier
|
| 307 |
title={`${item.order_title}`} |
| Error |
Row 308, Column 17: "Insert `··`"
prettier/prettier
|
| 308 |
website={`${item.order_site}`} |
| Error |
Row 309, Column 17: "Replace `shopName={item?.order_shop_name?.length·>·8·?·`${item?.order_shop_name?.substring(0,·8)}·...`·:·item?.order_shop_name` with `··shopName={⏎····················item?.order_shop_name?.length·>·8⏎······················?·`${item?.order_shop_name?.substring(0,·8)}·...`⏎······················:·item?.order_shop_name⏎··················`"
prettier/prettier
|
| 309 |
shopName={item?.order_shop_name?.length > 8 ? `${item?.order_shop_name?.substring(0, 8)} ...` : item?.order_shop_name} |
| Error |
Row 310, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| 310 |
price={item.order_price} |
| Error |
Row 311, Column 1: "Insert `··`"
prettier/prettier
|
| 311 |
store_img={item.order_image} |
| Error |
Row 312, Column 1: "Insert `··`"
prettier/prettier
|
| 312 |
reward={item.order_reward_price} |
| Error |
Row 313, Column 17: "Replace `user_name={⏎··················item.order_by·?·item.order_by.user_name·:·''` with `··user_name={item.order_by·?·item.order_by.user_name·:·''}`"
prettier/prettier
|
| 313 |
user_name={ |
| 314 |
item.order_by ? item.order_by.user_name : '' |
| Error |
Row 315, Column 6: "Replace `···········}⏎················user_img={⏎··················item.order_by·?·item.order_by.user_image·:·''` with `·············user_img={item.order_by·?·item.order_by.user_image·:·''}`"
prettier/prettier
|
| 315 |
} |
| 316 |
user_img={ |
| 317 |
item.order_by ? item.order_by.user_image : '' |
| Error |
Row 318, Column 3: "Delete `··············}⏎`"
prettier/prettier
|
| 318 |
} |
| 319 |
order_from={item.order_from} |
| Error |
Row 320, Column 17: "Insert `··`"
prettier/prettier
|
| 320 |
order_to={item.order_to} |
| Error |
Row 321, Column 1: "Insert `··`"
prettier/prettier
|
| 321 |
order_from_flag={item.order_from_flag} |
| Error |
Row 322, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| 322 |
order_to_flag={item.order_to_flag} |
| Error |
Row 323, Column 17: "Insert `··`"
prettier/prettier
|
| 323 |
style={{ |
| Error |
Row 324, Column 1: "Insert `··`"
prettier/prettier
|
| 324 |
width: width - mvs(22) * 2, |
| Error |
Row 325, Column 19: "Insert `··`"
prettier/prettier
|
| 325 |
marginBottom: mvs(20), |
| Error |
Row 326, Column 17: "Insert `··`"
prettier/prettier
|
| 326 |
}} |
| Error |
Row 327, Column 1: "Insert `··`"
prettier/prettier
|
| 327 |
onPress={() => props.navigation.navigate('orderdetails')} |
| Error |
Row 328, Column 15: "Insert `··`"
prettier/prettier
|
| 328 |
/> |
| Error |
Row 329, Column 1: "Insert `··`"
prettier/prettier
|
| 329 |
)} |
| Error |
Row 330, Column 13: "Insert `··`"
prettier/prettier
|
| 330 |
keyExtractor={(item, index) => index + ''} |
| Error |
Row 331, Column 13: "Insert `··`"
prettier/prettier
|
| 331 |
onEndReachedThreshold={0.5} |
| Error |
Row 332, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 332 |
onEndReached={() => onPagination(setPageLoading)} |
| Error |
Row 333, Column 11: "Insert `··`"
prettier/prettier
|
| 333 |
/> |
| 334 |
</View> |
| Warning |
Row 335, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 335, Column 1: "Delete `·········`"
prettier/prettier
|
| 335 |
|
| 336 |
{pageLoading && ( |
| Error |
Row 337, Column 1: "Insert `··`"
prettier/prettier
|
| 337 |
<View style={styles.pageLoader}> |
| Error |
Row 338, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 338 |
<ActivityIndicator size="small" color={colors.primary} /> |
| Error |
Row 339, Column 11: "Insert `··`"
prettier/prettier
|
| 339 |
</View> |
| Error |
Row 340, Column 1: "Insert `··`"
prettier/prettier
|
| 340 |
)} |
| Error |
Row 341, Column 16: "Delete `⏎`"
prettier/prettier
|
| 341 |
</View> |
| 342 |
|
| 343 |
</View> |
| 344 |
</View> |
| 345 |
); |
| 346 |
}; |
| 347 |
export const mapStateToProps = state => ({ |
| 348 |
filter_Orders: state.common_orders_list?.filter_Orders, |
| 349 |
profileData: state.auth.userInfo?.profile || {}, |
| 350 |
}); |
| 351 |
|
| 352 |
export const mapDispatchToProps = { |
| Error |
Row 353, Column 61: "Insert `⏎···`"
prettier/prettier
|
| 353 |
createOrFilterTrip: (filterPayload, isLocalOrder, page) => TAKE_TO_ACTIONS.createOrFilterTrip(filterPayload, isLocalOrder, page), |
| Warning |
Row 354, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 354, Column 1: "Delete `·⏎`"
prettier/prettier
|
| 354 |
|
| 355 |
}; |
| Error |
Row 356, Column 24: "Replace `mapStateToProps,·mapDispatchToProps` with `⏎··mapStateToProps,⏎··mapDispatchToProps,⏎`"
prettier/prettier
|
| 356 |
export default connect(mapStateToProps, mapDispatchToProps)(InternationalDelivery); |
| 357 |
|
| 358 |
const styles = StyleSheet.create({ |
| 359 |
SCROLL_CONTAINER: { |
| 360 |
paddingBottom: mvs(22), |
| 361 |
paddingHorizontal: mvs(22), |
| 362 |
flexGrow: 1, |
| 363 |
}, |
| 364 |
LOC_DES: { |
| 365 |
justifyContent: 'space-between', |
| 366 |
flexDirection: 'row', |
| 367 |
alignItems: 'center', |
| 368 |
paddingHorizontal: mvs(13), |
| 369 |
paddingVertical: mvs(12), |
| 370 |
borderRadius: mvs(13), |
| 371 |
backgroundColor: colors.primary, |
| 372 |
}, |
| 373 |
REVERSE_LOC_DES: { |
| 374 |
backgroundColor: colors.white, |
| 375 |
borderWidth: 1, |
| 376 |
borderColor: colors.primary, |
| 377 |
}, |
| 378 |
LOC_DES_CONTAINER: { |
| 379 |
backgroundColor: colors.white, |
| 380 |
paddingHorizontal: mvs(22), |
| 381 |
paddingBottom: mvs(20), |
| 382 |
borderBottomStartRadius: mvs(20), |
| 383 |
borderBottomEndRadius: mvs(20), |
| 384 |
}, |
| 385 |
SEARCH_MAP: { |
| 386 |
marginTop: mvs(15), |
| 387 |
alignSelf: 'flex-end', |
| 388 |
width: '49%', |
| 389 |
height: mvs(38), |
| 390 |
flexDirection: 'row', |
| 391 |
backgroundColor: colors.primary, |
| 392 |
paddingHorizontal: mvs(23), |
| 393 |
}, |
| 394 |
MAP_ICON: { |
| 395 |
height: mvs(18), |
| 396 |
width: mvs(14), |
| 397 |
}, |
| 398 |
buttonsContainer: { |
| 399 |
//height: mvs(44), |
| 400 |
paddingHorizontal: mvs(22), |
| 401 |
width: '100%', |
| 402 |
//borderWidth : 1, |
| 403 |
// marginTop: mvs(30), |
| 404 |
marginBottom: mvs(2), |
| 405 |
flexDirection: 'row', |
| 406 |
justifyContent: 'space-between', |
| 407 |
paddingBottom: mvs(20), |
| 408 |
}, |
| 409 |
topButton: { |
| 410 |
height: mvs(44), |
| 411 |
width: '48%', |
| 412 |
borderWidth: 1, |
| 413 |
borderRadius: mvs(10), |
| 414 |
justifyContent: 'center', |
| 415 |
alignItems: 'center', |
| 416 |
flexDirection: 'row', |
| 417 |
borderColor: colors.primary, |
| 418 |
}, |
| 419 |
pageLoader: { |
| 420 |
height: mvs(50), |
| 421 |
width: mvs(50), |
| 422 |
borderRadius: mvs(25), |
| 423 |
position: 'absolute', |
| 424 |
bottom: mvs(20), |
| 425 |
alignSelf: 'center', |
| 426 |
justifyContent: 'center', |
| 427 |
alignItems: 'center', |
| 428 |
}, |
| 429 |
}); |
| 430 |
|
|
|
|
/src/screens/make-offer/offer-made.js
|
74 problems (41 errors, 33 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| Error |
Row 2, Column 9: "Replace `·ScrollView,·StyleSheet,·Text,·TextInput,·View·` with `ScrollView,·StyleSheet,·Text,·TextInput,·View`"
prettier/prettier
|
| Warning |
Row 2, Column 10: "'ScrollView' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 34: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 40: "'TextInput' is defined but never used."
no-unused-vars
|
| Warning |
Row 3, Column 8: "'OrderTypeHeader' is defined but never used."
no-unused-vars
|
| Warning |
Row 5, Column 8: "'Header' is defined but never used."
no-unused-vars
|
| Error |
Row 6, Column 9: "Replace `·height,·mvs,·width·` with `height,·mvs,·width`"
prettier/prettier
|
| Warning |
Row 6, Column 10: "'height' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 23: "'width' is defined but never used."
no-unused-vars
|
| Error |
Row 7, Column 9: "Replace `·OfferDetailCard·` with `OfferDetailCard`"
prettier/prettier
|
| Error |
Row 11, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 11, Column 10: "'TAKE_TO_INPUT_FIELD' is defined but never used."
no-unused-vars
|
| Warning |
Row 12, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| Error |
Row 13, Column 9: "Replace `·HeaderLogo,·Map·` with `HeaderLogo,·Map`"
prettier/prettier
|
| Warning |
Row 13, Column 22: "'Map' is defined but never used."
no-unused-vars
|
| Warning |
Row 14, Column 8: "'InputWithTitle' is defined but never used."
no-unused-vars
|
| Warning |
Row 15, Column 8: "'Widthdraw' is defined but never used."
no-unused-vars
|
| Error |
Row 17, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Warning |
Row 18, Column 7: "'Details' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 18, Column 19: "Replace `·text·` with `text`"
prettier/prettier
|
| Error |
Row 19, Column 8: "Replace `·style={{·paddingVertical:·mvs(10),·paddingHorizontal:·mvs(10),·backgroundColor:·colors.secondary,·marginTop:·mvs(10),·borderRadius:·mvs(10)` with `⏎····style={{⏎······paddingVertical:·mvs(10),⏎······paddingHorizontal:·mvs(10),⏎······backgroundColor:·colors.secondary,⏎······marginTop:·mvs(10),⏎······borderRadius:·mvs(10),⏎···`"
prettier/prettier
|
| Error |
Row 20, Column 35: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Error |
Row 22, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 22, Column 2: "Missing semicolon."
semi
|
| Warning |
Row 27, Column 14: "Inline style: { fontSize: 18 }"
react-native/no-inline-styles
|
| Error |
Row 27, Column 15: "Replace `·fontSize:·18,·color:·colors.primary,·marginBottom:·mvs(12)·` with `fontSize:·18,·color:·colors.primary,·marginBottom:·mvs(12)`"
prettier/prettier
|
| Warning |
Row 31, Column 14: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 57, Column 10: "Replace `·isLocalOrder,·orderType,·offerData,visible,onClose,·offeredPrice,profileData·,user_name=''` with `⏎····isLocalOrder,⏎····orderType,⏎····offerData,⏎····visible,⏎····onClose,⏎····offeredPrice,⏎····profileData,⏎····user_name·=·'',⏎··`"
prettier/prettier
|
| Warning |
Row 57, Column 98: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 59, Column 10: "'modal' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 59, Column 17: "'setModal' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 59, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 59, Column 44: "Missing semicolon."
semi
|
| Warning |
Row 60, Column 10: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 60, Column 19: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 65, Column 22: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 65, Column 22: "Delete `·`"
prettier/prettier
|
| Error |
Row 66, Column 1: "Insert `·`"
prettier/prettier
|
| Error |
Row 67, Column 6: "Insert `·`"
prettier/prettier
|
| Error |
Row 68, Column 1: "Insert `·`"
prettier/prettier
|
| Error |
Row 69, Column 1: "Insert `·`"
prettier/prettier
|
| Error |
Row 70, Column 6: "Insert `·`"
prettier/prettier
|
| Warning |
Row 71, Column 14: "Inline style: { margin: 0 }"
react-native/no-inline-styles
|
| Error |
Row 71, Column 15: "Replace `·margin:0,` with `margin:·0`"
prettier/prettier
|
| Warning |
Row 71, Column 24: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 73, Column 20: "Replace `·height={mvs(31)}·width={mvs(175)}·style={{·alignSelf:·'center',·marginTop:·mvs(30),·marginBottom:·mvs(28)·}}` with `⏎··········height={mvs(31)}⏎··········width={mvs(175)}⏎··········style={{⏎············alignSelf:·'center',⏎············marginTop:·mvs(30),⏎············marginBottom:·mvs(28),⏎··········}}⏎·······`"
prettier/prettier
|
| Warning |
Row 73, Column 62: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 74, Column 46: "Insert `·`"
prettier/prettier
|
| Error |
Row 76, Column 19: "Replace `·marginTop:·mvs(26),·` with `marginTop:·mvs(26)`"
prettier/prettier
|
| Warning |
Row 76, Column 38: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 93, Column 9: "Delete `·`"
prettier/prettier
|
| Error |
Row 98, Column 37: "Delete `·`"
prettier/prettier
|
| Warning |
Row 99, Column 11: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 99, Column 11: "Delete `·`"
prettier/prettier
|
| Error |
Row 101, Column 25: "Insert `·`"
prettier/prettier
|
| Warning |
Row 102, Column 18: "Strings must use singlequote."
quotes
|
| Error |
Row 102, Column 25: "Insert `·`"
prettier/prettier
|
| Error |
Row 103, Column 19: "Replace `·marginTop:·mvs(10),·marginBottom:·mvs(20)·` with `marginTop:·mvs(10),·marginBottom:·mvs(20)`"
prettier/prettier
|
| Warning |
Row 104, Column 11: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 104, Column 11: "Delete `·`"
prettier/prettier
|
| Error |
Row 109, Column 22: "Replace `=state=>` with `·=·state·=>·`"
prettier/prettier
|
| Warning |
Row 109, Column 22: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 111, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 111, Column 3: "Missing semicolon."
semi
|
| Error |
Row 112, Column 40: "Insert `·`"
prettier/prettier
|
| Error |
Row 117, Column 21: "Insert `·`"
prettier/prettier
|
| Error |
Row 118, Column 25: "Insert `·`"
prettier/prettier
|
| Error |
Row 119, Column 26: "Insert `·`"
prettier/prettier
|
| Error |
Row 121, Column 14: "Insert `·`"
prettier/prettier
|
| Error |
Row 122, Column 11: "Insert `·`"
prettier/prettier
|
| Error |
Row 123, Column 12: "Insert `·`"
prettier/prettier
|
| Error |
Row 162, Column 10: "Replace `·:·'49%'` with `:·'49%',`"
prettier/prettier
|
| Warning |
Row 162, Column 18: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| Error |
Row 1, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| 1 |
import React, { useState } from 'react'; |
| Error |
Row 2, Column 9: "Replace `·ScrollView,·StyleSheet,·Text,·TextInput,·View·` with `ScrollView,·StyleSheet,·Text,·TextInput,·View`"
prettier/prettier
|
| Warning |
Row 2, Column 10: "'ScrollView' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 34: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 40: "'TextInput' is defined but never used."
no-unused-vars
|
| 2 |
import { ScrollView, StyleSheet, Text, TextInput, View } from 'react-native'; |
| Warning |
Row 3, Column 8: "'OrderTypeHeader' is defined but never used."
no-unused-vars
|
| 3 |
import OrderTypeHeader from '../../components/molecules/order_card/order-type-header'; |
| 4 |
import colors from '../../config/colors'; |
| Warning |
Row 5, Column 8: "'Header' is defined but never used."
no-unused-vars
|
| 5 |
import Header from '../../components/molecules/header/header-1x'; |
| Error |
Row 6, Column 9: "Replace `·height,·mvs,·width·` with `height,·mvs,·width`"
prettier/prettier
|
| Warning |
Row 6, Column 10: "'height' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 23: "'width' is defined but never used."
no-unused-vars
|
| 6 |
import { height, mvs, width } from '../../config/metrices'; |
| Error |
Row 7, Column 9: "Replace `·OfferDetailCard·` with `OfferDetailCard`"
prettier/prettier
|
| 7 |
import { OfferDetailCard } from '../../components/molecules/order_card/order-detail-card/offer-detail-card'; |
| 8 |
import fonts from '../../config/fonts'; |
| 9 |
import Buttons from '../../components/atoms/Button'; |
| 10 |
import Regular from '../../presentation/typography/regular-text'; |
| Error |
Row 11, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 11, Column 10: "'TAKE_TO_INPUT_FIELD' is defined but never used."
no-unused-vars
|
| 11 |
import { TAKE_TO_INPUT_FIELD } from '../../components/atoms'; |
| Warning |
Row 12, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| 12 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| Error |
Row 13, Column 9: "Replace `·HeaderLogo,·Map·` with `HeaderLogo,·Map`"
prettier/prettier
|
| Warning |
Row 13, Column 22: "'Map' is defined but never used."
no-unused-vars
|
| 13 |
import { HeaderLogo, Map } from '../../../resource/assets/common-icons'; |
| Warning |
Row 14, Column 8: "'InputWithTitle' is defined but never used."
no-unused-vars
|
| 14 |
import InputWithTitle from '../../components/molecules/input-with-title'; |
| Warning |
Row 15, Column 8: "'Widthdraw' is defined but never used."
no-unused-vars
|
| 15 |
import Widthdraw from '../../components/molecules/modals/widthdraw'; |
| 16 |
import ReactNativeModal from 'react-native-modal'; |
| Error |
Row 17, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 17 |
import { connect } from 'react-redux'; |
| Warning |
Row 18, Column 7: "'Details' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 18, Column 19: "Replace `·text·` with `text`"
prettier/prettier
|
| 18 |
const Details = ({ text }) => ( |
| Error |
Row 19, Column 8: "Replace `·style={{·paddingVertical:·mvs(10),·paddingHorizontal:·mvs(10),·backgroundColor:·colors.secondary,·marginTop:·mvs(10),·borderRadius:·mvs(10)` with `⏎····style={{⏎······paddingVertical:·mvs(10),⏎······paddingHorizontal:·mvs(10),⏎······backgroundColor:·colors.secondary,⏎······marginTop:·mvs(10),⏎······borderRadius:·mvs(10),⏎···`"
prettier/prettier
|
| 19 |
<View style={{ paddingVertical: mvs(10), paddingHorizontal: mvs(10), backgroundColor: colors.secondary, marginTop: mvs(10), borderRadius: mvs(10) }}> |
| Error |
Row 20, Column 35: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 20 |
<Regular label={text} style={{ color: colors.primary }} /> |
| 21 |
</View> |
| Error |
Row 22, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 22, Column 2: "Missing semicolon."
semi
|
| 22 |
) |
| 23 |
const Congratulation = ({user_name}) => ( |
| 24 |
<View style={styles.CONGRATULATION_CONTAINER}> |
| 25 |
<Regular |
| 26 |
label={'Congratulations'} |
| Warning |
Row 27, Column 14: "Inline style: { fontSize: 18 }"
react-native/no-inline-styles
|
| Error |
Row 27, Column 15: "Replace `·fontSize:·18,·color:·colors.primary,·marginBottom:·mvs(12)·` with `fontSize:·18,·color:·colors.primary,·marginBottom:·mvs(12)`"
prettier/prettier
|
| 27 |
style={{ fontSize: 18, color: colors.primary, marginBottom: mvs(12) }} |
| 28 |
/> |
| 29 |
<Regular |
| 30 |
label={`Your offer was delivered to ${user_name}.\nYou will be notified with the status of your offer.`} |
| Warning |
Row 31, Column 14: "Inline style: { alignSelf: 'center', textAlign: 'center' }"
react-native/no-inline-styles
|
| 31 |
style={{ |
| 32 |
fontSize: mvs(12), |
| 33 |
color: colors.label, |
| 34 |
marginBottom: mvs(14), |
| 35 |
alignSelf: 'center', |
| 36 |
textAlign: 'center', |
| 37 |
}} |
| 38 |
/> |
| 39 |
</View> |
| 40 |
); |
| 41 |
// const InfoField = ({ |
| 42 |
// label = 'label', |
| 43 |
// value = 'value', |
| 44 |
// labelStyle, |
| 45 |
// valueStyle, |
| 46 |
// containerStyle, |
| 47 |
// }) => ( |
| 48 |
// <View style={{ ...styles.FIELD_CONTAINER, ...containerStyle }}> |
| 49 |
// <Regular label={label} style={{ color: colors.label, ...labelStyle }} /> |
| 50 |
// <Regular |
| 51 |
// label={value} |
| 52 |
// style={{ color: colors.headerTitle, ...valueStyle }} |
| 53 |
// /> |
| 54 |
// </View> |
| 55 |
// ); |
| 56 |
const OfferMade = props => { |
| Error |
Row 57, Column 10: "Replace `·isLocalOrder,·orderType,·offerData,visible,onClose,·offeredPrice,profileData·,user_name=''` with `⏎····isLocalOrder,⏎····orderType,⏎····offerData,⏎····visible,⏎····onClose,⏎····offeredPrice,⏎····profileData,⏎····user_name·=·'',⏎··`"
prettier/prettier
|
| Warning |
Row 57, Column 98: "Operator '=' must be spaced."
space-infix-ops
|
| 57 |
const { isLocalOrder, orderType, offerData,visible,onClose, offeredPrice,profileData ,user_name=''} = props; |
| 58 |
//console.log({ isLocalOrder, orderType }); |
| Warning |
Row 59, Column 10: "'modal' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 59, Column 17: "'setModal' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 59, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 59, Column 44: "Missing semicolon."
semi
|
| 59 |
const [modal, setModal] = useState(false) |
| Warning |
Row 60, Column 10: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 60, Column 19: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| 60 |
const [payload, setPayload] = React.useState({ |
| 61 |
rewardPrice: '90', |
| 62 |
offerPrice: '100', |
| 63 |
}); |
| 64 |
return ( |
| Warning |
Row 65, Column 22: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 65, Column 22: "Delete `·`"
prettier/prettier
|
| 65 |
<ReactNativeModal |
| Error |
Row 66, Column 1: "Insert `·`"
prettier/prettier
|
| 66 |
swipeDirection={'down'} |
| Error |
Row 67, Column 6: "Insert `·`"
prettier/prettier
|
| 67 |
onSwipeComplete={onClose} |
| Error |
Row 68, Column 1: "Insert `·`"
prettier/prettier
|
| 68 |
onBackdropPress={onClose} |
| Error |
Row 69, Column 1: "Insert `·`"
prettier/prettier
|
| 69 |
onBackButtonPress={onClose} |
| Error |
Row 70, Column 6: "Insert `·`"
prettier/prettier
|
| 70 |
isVisible={visible} |
| Warning |
Row 71, Column 14: "Inline style: { margin: 0 }"
react-native/no-inline-styles
|
| Error |
Row 71, Column 15: "Replace `·margin:0,` with `margin:·0`"
prettier/prettier
|
| Warning |
Row 71, Column 24: "Unexpected trailing comma."
comma-dangle
|
| 71 |
style={{ margin:0,}}> |
| 72 |
<View style={{...styles.SCROLL_CONTAINER}}> |
| Error |
Row 73, Column 20: "Replace `·height={mvs(31)}·width={mvs(175)}·style={{·alignSelf:·'center',·marginTop:·mvs(30),·marginBottom:·mvs(28)·}}` with `⏎··········height={mvs(31)}⏎··········width={mvs(175)}⏎··········style={{⏎············alignSelf:·'center',⏎············marginTop:·mvs(30),⏎············marginBottom:·mvs(28),⏎··········}}⏎·······`"
prettier/prettier
|
| Warning |
Row 73, Column 62: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| 73 |
<HeaderLogo height={mvs(31)} width={mvs(175)} style={{ alignSelf: 'center', marginTop: mvs(30), marginBottom: mvs(28) }} /> |
| Error |
Row 74, Column 46: "Insert `·`"
prettier/prettier
|
| 74 |
<Congratulation user_name={user_name}/> |
| 75 |
<OfferDetailCard |
| Error |
Row 76, Column 19: "Replace `·marginTop:·mvs(26),·` with `marginTop:·mvs(26)`"
prettier/prettier
|
| Warning |
Row 76, Column 38: "Unexpected trailing comma."
comma-dangle
|
| 76 |
style={{ marginTop: mvs(26), }} |
| 77 |
local={offerData?.is_international} |
| 78 |
title={offerData?.order_title} |
| 79 |
price={offerData?.order_price} |
| 80 |
store_img={offerData?.order_image} |
| 81 |
reward={offerData?.order_reward_price} |
| 82 |
user_img={offerData?.order_by?.user_image} |
| 83 |
user_name={offerData?.order_by?.user_name} |
| 84 |
order_from={offerData?.order_from} |
| 85 |
order_to={offerData?.order_to} |
| 86 |
order_from_flag={offerData?.order_from_flag} |
| 87 |
order_to_flag={offerData?.order_to_flag} |
| 88 |
orderType={ |
| 89 |
orderType === 'normal' ? 0 : orderType === 'processing' ? 1 : 2 |
| 90 |
} |
| 91 |
isLocalOrder={isLocalOrder} |
| 92 |
/> |
| Error |
Row 93, Column 9: "Delete `·`"
prettier/prettier
|
| 93 |
<Buttons.ButtonSecondaryOutline |
| 94 |
// onClick={() => { }} //props.navigation.popToTop() |
| 95 |
onClick={() => onClose()} |
| 96 |
disabled |
| 97 |
title={`Requested Reward ${offeredPrice} ${profileData?.currency?.currency_code}`} |
| Error |
Row 98, Column 37: "Delete `·`"
prettier/prettier
|
| 98 |
style={{marginTop: mvs(49) }} |
| Warning |
Row 99, Column 11: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 99, Column 11: "Delete `·`"
prettier/prettier
|
| 99 |
/> |
| 100 |
<Buttons.ButtonPrimary |
| Error |
Row 101, Column 25: "Insert `·`"
prettier/prettier
|
| 101 |
onClick={() =>onClose()} |
| Warning |
Row 102, Column 18: "Strings must use singlequote."
quotes
|
| Error |
Row 102, Column 25: "Insert `·`"
prettier/prettier
|
| 102 |
title={`Back`}//Back to Search Results |
| Error |
Row 103, Column 19: "Replace `·marginTop:·mvs(10),·marginBottom:·mvs(20)·` with `marginTop:·mvs(10),·marginBottom:·mvs(20)`"
prettier/prettier
|
| 103 |
style={{ marginTop: mvs(10), marginBottom: mvs(20) }} |
| Warning |
Row 104, Column 11: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 104, Column 11: "Delete `·`"
prettier/prettier
|
| 104 |
/> |
| 105 |
</View> |
| 106 |
</ReactNativeModal> |
| 107 |
); |
| 108 |
}; |
| Error |
Row 109, Column 22: "Replace `=state=>` with `·=·state·=>·`"
prettier/prettier
|
| Warning |
Row 109, Column 22: "Operator '=' must be spaced."
space-infix-ops
|
| 109 |
const mapStateToProps=state=>({ |
| 110 |
profileData: state.auth.userInfo?.profile || {}, |
| Error |
Row 111, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 111, Column 3: "Missing semicolon."
semi
|
| 111 |
}) |
| Error |
Row 112, Column 40: "Insert `·`"
prettier/prettier
|
| 112 |
export default connect(mapStateToProps,{})(OfferMade); |
| 113 |
|
| 114 |
const styles = StyleSheet.create({ |
| 115 |
SCROLL_CONTAINER: { |
| 116 |
// flex:1, |
| Error |
Row 117, Column 21: "Insert `·`"
prettier/prettier
|
| 117 |
backgroundColor:colors.white, |
| Error |
Row 118, Column 25: "Insert `·`"
prettier/prettier
|
| 118 |
borderTopLeftRadius:mvs(20), |
| Error |
Row 119, Column 26: "Insert `·`"
prettier/prettier
|
| 119 |
borderTopRightRadius:mvs(20), |
| 120 |
paddingHorizontal: mvs(22), |
| Error |
Row 121, Column 14: "Insert `·`"
prettier/prettier
|
| 121 |
position:'absolute', |
| Error |
Row 122, Column 11: "Insert `·`"
prettier/prettier
|
| 122 |
width:'100%', |
| Error |
Row 123, Column 12: "Insert `·`"
prettier/prettier
|
| 123 |
bottom:0, |
| 124 |
}, |
| 125 |
DIV: { |
| 126 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 127 |
marginTop: mvs(10.9), |
| 128 |
marginBottom: mvs(13), |
| 129 |
borderColor: colors.border, |
| 130 |
}, |
| 131 |
FIELD_CONTAINER: { |
| 132 |
flexDirection: 'row', |
| 133 |
justifyContent: 'space-between', |
| 134 |
marginBottom: mvs(8), |
| 135 |
}, |
| 136 |
CONGRATULATION_CONTAINER: { |
| 137 |
paddingHorizontal: mvs(13), |
| 138 |
borderRadius: mvs(10), |
| 139 |
alignItems: 'center', |
| 140 |
}, |
| 141 |
INPUT: { |
| 142 |
paddingVertical: mvs(5), |
| 143 |
fontFamily: fonts.carosSoftRegular, |
| 144 |
fontSize: mvs(15), |
| 145 |
}, |
| 146 |
TOT_REWARD: { |
| 147 |
flexDirection: 'row', |
| 148 |
alignItems: 'center', |
| 149 |
alignSelf: 'flex-end', |
| 150 |
}, |
| 151 |
MAKE_OFFER_CONTAINER: { |
| 152 |
flexDirection: 'row', |
| 153 |
alignItems: 'center', |
| 154 |
justifyContent: 'space-between', |
| 155 |
marginTop: mvs(40), |
| 156 |
}, |
| 157 |
PRICE_INPUT: { |
| 158 |
height: mvs(52), |
| 159 |
backgroundColor: colors.white, |
| 160 |
borderWidth: StyleSheet.hairlineWidth, |
| 161 |
borderColor: colors.border, |
| Error |
Row 162, Column 10: "Replace `·:·'49%'` with `:·'49%',`"
prettier/prettier
|
| Warning |
Row 162, Column 18: "Missing trailing comma."
comma-dangle
|
| 162 |
width : '49%' |
| 163 |
}, |
| 164 |
}); |
| 165 |
|
|
|
|
/src/screens/make-offer/order-details.js
|
98 problems (72 errors, 26 warnings)
|
| Severity |
Rule |
| Error |
Row 11, Column 8: "Insert `,`"
prettier/prettier
|
| Warning |
Row 11, Column 8: "Missing trailing comma."
comma-dangle
|
| Error |
Row 13, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 15, Column 9: "Replace `·Map·` with `Map`"
prettier/prettier
|
| Error |
Row 16, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Error |
Row 18, Column 9: "Replace `·InfoField·` with `InfoField`"
prettier/prettier
|
| Error |
Row 21, Column 9: "Replace `·OfferDetailCard·` with `OfferDetailCard`"
prettier/prettier
|
| Error |
Row 24, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 30, Column 9: "Replace `·showLocation·}·from·'react-native-map-link'⏎` with `showLocation}·from·'react-native-map-link';`"
prettier/prettier
|
| Warning |
Row 30, Column 10: "'showLocation' is defined but never used."
no-unused-vars
|
| Warning |
Row 30, Column 53: "Missing semicolon."
semi
|
| Error |
Row 34, Column 10: "Replace `·isGuest,·navigation,·makeOfferActions,·countriesList,·profileData·}·=` with `isGuest,·navigation,·makeOfferActions,·countriesList,·profileData}·=⏎···`"
prettier/prettier
|
| Error |
Row 35, Column 10: "Replace `·isLocalOrder,·orderType,·order_data·=·{}·` with `isLocalOrder,·orderType,·order_data·=·{}`"
prettier/prettier
|
| Error |
Row 36, Column 33: "Insert `·`"
prettier/prettier
|
| Error |
Row 48, Column 17: "Replace `⏎······'Guest',⏎······'You·are·a·guest,·please·register·yourself',⏎·····` with `'Guest',·'You·are·a·guest,·please·register·yourself',`"
prettier/prettier
|
| Error |
Row 52, Column 1: "Replace `········` with `······`"
prettier/prettier
|
| Error |
Row 53, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 54, Column 9: "Delete `··`"
prettier/prettier
|
| Error |
Row 55, Column 9: "Replace `··style:·'cancel'` with `style:·'cancel',`"
prettier/prettier
|
| Warning |
Row 55, Column 26: "Missing trailing comma."
comma-dangle
|
| Error |
Row 56, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 57, Column 7: "Replace `··{·text:·'OK',·onPress:·()·=>··props?.navigation?.navigate('login')}` with `{text:·'OK',·onPress:·()·=>·props?.navigation?.navigate('login')},`"
prettier/prettier
|
| Warning |
Row 57, Column 76: "Missing trailing comma."
comma-dangle
|
| Error |
Row 58, Column 1: "Replace `······]⏎····` with `····]`"
prettier/prettier
|
| Error |
Row 60, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 60, Column 4: "Missing semicolon."
semi
|
| Error |
Row 63, Column 23: "Insert `;`"
prettier/prettier
|
| Warning |
Row 63, Column 23: "Missing semicolon."
semi
|
| Error |
Row 64, Column 62: "Replace `⏎········payload,⏎······` with `payload`"
prettier/prettier
|
| Error |
Row 91, Column 5: "React Hook "useEffect" is called in function "createOfferHandler" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use"."
react-hooks/rules-of-hooks
|
| Error |
Row 92, Column 19: "Replace `"order_data::",·order_data)` with `'order_data::',·order_data);`"
prettier/prettier
|
| Warning |
Row 92, Column 19: "Strings must use singlequote."
quotes
|
| Warning |
Row 92, Column 46: "Missing semicolon."
semi
|
| Error |
Row 93, Column 11: "Insert `;`"
prettier/prettier
|
| Warning |
Row 93, Column 11: "Missing semicolon."
semi
|
| Error |
Row 167, Column 29: "Replace `⏎········?·'createorderestore'⏎·······` with `·?·'createorderestore'`"
prettier/prettier
|
| Error |
Row 170, Column 8: "Replace `·re_order_object:·re_order_object·` with `re_order_object:·re_order_object`"
prettier/prettier
|
| Warning |
Row 175, Column 18: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 175, Column 19: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Error |
Row 176, Column 14: "Replace `·{...props}·title={'Order·Details'}·userIcon={false}·allowBackBtn·bellIcon` with `⏎········{...props}⏎········title={'Order·Details'}⏎········userIcon={false}⏎········allowBackBtn⏎········bellIcon⏎·····`"
prettier/prettier
|
| Warning |
Row 178, Column 16: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 178, Column 17: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| Warning |
Row 185, Column 20: "Inline style: { marginTop: 0 }"
react-native/no-inline-styles
|
| Error |
Row 185, Column 21: "Replace `·marginTop:·0·` with `marginTop:·0`"
prettier/prettier
|
| Error |
Row 194, Column 25: "Replace `·...styles.DIV·` with `...styles.DIV`"
prettier/prettier
|
| Error |
Row 201, Column 25: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Error |
Row 203, Column 21: "Replace `·marginTop:·mvs(0)·` with `marginTop:·mvs(0)`"
prettier/prettier
|
| Error |
Row 204, Column 26: "Replace `·fontSize:·mvs(13)·` with `fontSize:·mvs(13)`"
prettier/prettier
|
| Error |
Row 212, Column 28: "Replace `·color:·colors.pink,·fontSize:·mvs(13)·` with `color:·colors.pink,·fontSize:·mvs(13)`"
prettier/prettier
|
| Error |
Row 213, Column 28: "Replace `·color:·colors.pink,·fontSize:·mvs(13)·` with `color:·colors.pink,·fontSize:·mvs(13)`"
prettier/prettier
|
| Error |
Row 214, Column 32: "Replace `·marginTop:·mvs(18)·` with `marginTop:·mvs(18)`"
prettier/prettier
|
| Error |
Row 219, Column 32: "Replace `·marginTop:·mvs(18)·` with `marginTop:·mvs(18)`"
prettier/prettier
|
| Error |
Row 224, Column 26: "Replace `·fontSize:·mvs(13)·` with `fontSize:·mvs(13)`"
prettier/prettier
|
| Error |
Row 225, Column 26: "Replace `·fontSize:·mvs(13)·` with `fontSize:·mvs(13)`"
prettier/prettier
|
| Error |
Row 230, Column 26: "Replace `·fontSize:·mvs(13)·` with `fontSize:·mvs(13)`"
prettier/prettier
|
| Error |
Row 231, Column 26: "Replace `·fontSize:·mvs(13)·` with `fontSize:·mvs(13)`"
prettier/prettier
|
| Warning |
Row 237, Column 20: "Inline style: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center'
}"
react-native/no-inline-styles
|
| Error |
Row 245, Column 23: "Replace `·fontSize:·mvs(13),·color:·colors.label·` with `fontSize:·mvs(13),·color:·colors.label`"
prettier/prettier
|
| Error |
Row 248, Column 22: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 249, Column 39: "Insert `·`"
prettier/prettier
|
| Warning |
Row 249, Column 39: "Operator '&&' must be spaced."
space-infix-ops
|
| Error |
Row 250, Column 1: "Replace `················Linking.openURL(order_data?.order_store_url)` with `··················Linking.openURL(order_data?.order_store_url);`"
prettier/prettier
|
| Warning |
Row 250, Column 61: "Missing semicolon."
semi
|
| Error |
Row 263, Column 31: "Replace `"order_data:",·order_data?.shop_location)` with `'order_data:',·order_data?.shop_location);`"
prettier/prettier
|
| Warning |
Row 263, Column 31: "Strings must use singlequote."
quotes
|
| Warning |
Row 263, Column 72: "Missing semicolon."
semi
|
| Error |
Row 269, Column 20: "Insert `;`"
prettier/prettier
|
| Warning |
Row 269, Column 20: "Missing semicolon."
semi
|
| Error |
Row 270, Column 45: "Replace `"storelocation",··{shopRegion·:·region,·order_data·:·order_data})` with `'storelocation',·{⏎····················shopRegion:·region,⏎····················order_data:·order_data,⏎··················});`"
prettier/prettier
|
| Warning |
Row 270, Column 45: "Strings must use singlequote."
quotes
|
| Warning |
Row 270, Column 110: "Missing semicolon."
semi
|
| Warning |
Row 272, Column 24: "Inline style: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center'
}"
react-native/no-inline-styles
|
| Error |
Row 280, Column 27: "Replace `·marginRight:·mvs(7.3)·` with `marginRight:·mvs(7.3)`"
prettier/prettier
|
| Error |
Row 284, Column 27: "Replace `·fontSize:·mvs(13),·color:·colors.primary·` with `fontSize:·mvs(13),·color:·colors.primary`"
prettier/prettier
|
| Error |
Row 290, Column 25: "Replace `·...styles.DIV·` with `...styles.DIV`"
prettier/prettier
|
| Error |
Row 296, Column 25: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Error |
Row 299, Column 21: "Replace `·marginTop:·mvs(0)·` with `marginTop:·mvs(0)`"
prettier/prettier
|
| Error |
Row 300, Column 26: "Replace `·fontSize:·mvs(13)·` with `fontSize:·mvs(13)`"
prettier/prettier
|
| Error |
Row 309, Column 33: "Replace `""` with `''`"
prettier/prettier
|
| Warning |
Row 309, Column 33: "Strings must use singlequote."
quotes
|
| Error |
Row 314, Column 22: "Delete `⏎···················`"
prettier/prettier
|
| Error |
Row 321, Column 20: "Delete `⏎··················`"
prettier/prettier
|
| Error |
Row 323, Column 36: "Replace `·...styles.PRICE_INPUT·` with `...styles.PRICE_INPUT`"
prettier/prettier
|
| Error |
Row 340, Column 28: "Replace `⏎······················?showGuestAlert()⏎·····················` with `·?·showGuestAlert()`"
prettier/prettier
|
| Warning |
Row 341, Column 23: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 344, Column 26: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 344, Column 27: "Replace `·width:·'49%',·backgroundColor:·colors.primary·` with `width:·'49%',·backgroundColor:·colors.primary`"
prettier/prettier
|
| Warning |
Row 357, Column 20: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 361, Column 25: "Replace `·color:·colors.white,·marginLeft:·mvs(13)·` with `color:·colors.white,·marginLeft:·mvs(13)`"
prettier/prettier
|
| Error |
Row 362, Column 25: "Replace `·height:·mvs(20),·width:·mvs(20)·` with `height:·mvs(20),·width:·mvs(20)`"
prettier/prettier
|
| Error |
Row 366, Column 21: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎········translucent⏎········activeStatusBarStyle={'light-content'}⏎········inactiveStatusBarBackgroundColor={colors.primary}⏎········ref={alertRef}⏎·····`"
prettier/prettier
|
| Error |
Row 367, Column 1: "Insert `······`"
prettier/prettier
|
| Error |
Row 373, Column 23: "Delete `⏎···········`"
prettier/prettier
|
| Error |
Row 375, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 376, Column 11: "Delete `··`"
prettier/prettier
|
| Error |
Row 377, Column 1: "Replace `············` with `··········`"
prettier/prettier
|
| Error |
Row 378, Column 11: "Delete `··`"
prettier/prettier
|
| Error |
Row 379, Column 1: "Delete `··`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 2 |
import React from 'react'; |
| 3 |
import { |
| 4 |
KeyboardAvoidingView, |
| 5 |
Platform, |
| 6 |
ScrollView, |
| 7 |
StyleSheet, |
| 8 |
View, |
| 9 |
Linking, |
| 10 |
TouchableOpacity, |
| Error |
Row 11, Column 8: "Insert `,`"
prettier/prettier
|
| Warning |
Row 11, Column 8: "Missing trailing comma."
comma-dangle
|
| 11 |
Alert |
| 12 |
} from 'react-native'; |
| Error |
Row 13, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 13 |
import { connect } from 'react-redux'; |
| 14 |
import UI_API from '../../../../common/store/services'; |
| Error |
Row 15, Column 9: "Replace `·Map·` with `Map`"
prettier/prettier
|
| 15 |
import { Map } from '../../../resource/assets/common-icons'; |
| Error |
Row 16, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 16 |
import { TAKE_TO_INPUT_FIELD } from '../../components/atoms'; |
| 17 |
import Buttons from '../../components/atoms/Button'; |
| Error |
Row 18, Column 9: "Replace `·InfoField·` with `InfoField`"
prettier/prettier
|
| 18 |
import { InfoField } from '../../components/atoms/order-info-field'; |
| 19 |
import Header from '../../components/molecules/header/header-1x'; |
| 20 |
import InputWithTitle from '../../components/molecules/input-with-title'; |
| Error |
Row 21, Column 9: "Replace `·OfferDetailCard·` with `OfferDetailCard`"
prettier/prettier
|
| 21 |
import { OfferDetailCard } from '../../components/molecules/order_card/order-detail-card/offer-detail-card'; |
| 22 |
import colors from '../../config/colors'; |
| 23 |
import fonts from '../../config/fonts'; |
| Error |
Row 24, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 24 |
import { mvs } from '../../config/metrices'; |
| 25 |
import Regular from '../../presentation/typography/regular-text'; |
| 26 |
import OfferMade from './offer-made'; |
| 27 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 28 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 29 |
import {useEffect} from 'react'; |
| Error |
Row 30, Column 9: "Replace `·showLocation·}·from·'react-native-map-link'⏎` with `showLocation}·from·'react-native-map-link';`"
prettier/prettier
|
| Warning |
Row 30, Column 10: "'showLocation' is defined but never used."
no-unused-vars
|
| Warning |
Row 30, Column 53: "Missing semicolon."
semi
|
| 30 |
import { showLocation } from 'react-native-map-link' |
| 31 |
|
| 32 |
|
| 33 |
const OrderDatails = props => { |
| Error |
Row 34, Column 10: "Replace `·isGuest,·navigation,·makeOfferActions,·countriesList,·profileData·}·=` with `isGuest,·navigation,·makeOfferActions,·countriesList,·profileData}·=⏎···`"
prettier/prettier
|
| 34 |
const { isGuest, navigation, makeOfferActions, countriesList, profileData } = props; |
| Error |
Row 35, Column 10: "Replace `·isLocalOrder,·orderType,·order_data·=·{}·` with `isLocalOrder,·orderType,·order_data·=·{}`"
prettier/prettier
|
| 35 |
const { isLocalOrder, orderType, order_data = {} } = props.route.params; |
| Error |
Row 36, Column 33: "Insert `·`"
prettier/prettier
|
| 36 |
console.log('order_data:::::',order_data); |
| 37 |
const [loading, setLoading] = React.useState(false); |
| 38 |
const scrollRef = React.useRef(); |
| 39 |
const alertRef = React.useRef(); |
| 40 |
const [offerSend, setOfferSent] = React.useState(false); |
| 41 |
const [payload, setPayload] = React.useState({ |
| 42 |
offerPrice: '', |
| 43 |
specialNotes: '', |
| 44 |
}); |
| 45 |
|
| 46 |
const [makeOfferModal, setMakeOfferModal] = React.useState(false); |
| 47 |
const showGuestAlert = () => { |
| Error |
Row 48, Column 17: "Replace `⏎······'Guest',⏎······'You·are·a·guest,·please·register·yourself',⏎·····` with `'Guest',·'You·are·a·guest,·please·register·yourself',`"
prettier/prettier
|
| 48 |
Alert.alert( |
| 49 |
'Guest', |
| 50 |
'You are a guest, please register yourself', |
| 51 |
[ |
| Error |
Row 52, Column 1: "Replace `········` with `······`"
prettier/prettier
|
| 52 |
{ |
| Error |
Row 53, Column 1: "Delete `··`"
prettier/prettier
|
| 53 |
text: 'Cancel', |
| Error |
Row 54, Column 9: "Delete `··`"
prettier/prettier
|
| 54 |
onPress: () => console.log('Cancel Pressed'), |
| Error |
Row 55, Column 9: "Replace `··style:·'cancel'` with `style:·'cancel',`"
prettier/prettier
|
| Warning |
Row 55, Column 26: "Missing trailing comma."
comma-dangle
|
| 55 |
style: 'cancel' |
| Error |
Row 56, Column 1: "Delete `··`"
prettier/prettier
|
| 56 |
}, |
| Error |
Row 57, Column 7: "Replace `··{·text:·'OK',·onPress:·()·=>··props?.navigation?.navigate('login')}` with `{text:·'OK',·onPress:·()·=>·props?.navigation?.navigate('login')},`"
prettier/prettier
|
| Warning |
Row 57, Column 76: "Missing trailing comma."
comma-dangle
|
| 57 |
{ text: 'OK', onPress: () => props?.navigation?.navigate('login')} |
| Error |
Row 58, Column 1: "Replace `······]⏎····` with `····]`"
prettier/prettier
|
| 58 |
] |
| 59 |
); |
| Error |
Row 60, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 60, Column 4: "Missing semicolon."
semi
|
| 60 |
} |
| 61 |
const createOfferHandler = async () => { |
| 62 |
try { |
| Error |
Row 63, Column 23: "Insert `;`"
prettier/prettier
|
| Warning |
Row 63, Column 23: "Missing semicolon."
semi
|
| 63 |
setLoading(true) |
| Error |
Row 64, Column 62: "Replace `⏎········payload,⏎······` with `payload`"
prettier/prettier
|
| 64 |
const response = TAKE_TO_CONSTANT.offerPriceValidation( |
| 65 |
payload, |
| 66 |
); |
| 67 |
if (response.status) { |
| 68 |
const data = { |
| 69 |
buyer_id: order_data?.order_by?.user_id, |
| 70 |
order_request_id: order_data?.order_id, |
| 71 |
reward: payload?.offerPrice, |
| 72 |
special_note: '', |
| 73 |
delivery_date: order_data?.order_deliver_before, |
| 74 |
}; |
| 75 |
await makeOfferActions(data); |
| 76 |
setMakeOfferModal(true); |
| 77 |
setOfferSent(true); |
| 78 |
setLoading(false); |
| 79 |
} else { |
| 80 |
throw new Error(response.message); |
| 81 |
} |
| 82 |
} catch (error) { |
| 83 |
setLoading(false); |
| 84 |
alertRef.current.alertWithType( |
| 85 |
'error', |
| 86 |
'Error', |
| 87 |
UI_API._returnError(error), |
| 88 |
); |
| 89 |
} |
| 90 |
|
| Error |
Row 91, Column 5: "React Hook "useEffect" is called in function "createOfferHandler" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use"."
react-hooks/rules-of-hooks
|
| 91 |
useEffect(() => { |
| Error |
Row 92, Column 19: "Replace `"order_data::",·order_data)` with `'order_data::',·order_data);`"
prettier/prettier
|
| Warning |
Row 92, Column 19: "Strings must use singlequote."
quotes
|
| Warning |
Row 92, Column 46: "Missing semicolon."
semi
|
| 92 |
console.log("order_data::", order_data) |
| Error |
Row 93, Column 11: "Insert `;`"
prettier/prettier
|
| Warning |
Row 93, Column 11: "Missing semicolon."
semi
|
| 93 |
}, []) |
| 94 |
|
| 95 |
// try { |
| 96 |
// setLoading(true); |
| 97 |
// // console.log(data) |
| 98 |
// if (payload?.offerPrice * 1 <= 0) { |
| 99 |
// throw new Error('Oops! It seems you forgot to enter offer price.'); |
| 100 |
// } |
| 101 |
// const data = { |
| 102 |
// buyer_id: order_data?.order_by?.user_id, |
| 103 |
// order_request_id: order_data?.order_id, |
| 104 |
// reward: payload?.offerPrice, |
| 105 |
// special_note: '', |
| 106 |
// delivery_date: order_data?.order_deliver_before, |
| 107 |
// }; |
| 108 |
// console.log(data); |
| 109 |
// await makeOfferActions(data); |
| 110 |
// setMakeOfferModal(true); |
| 111 |
// setOfferSent(true); |
| 112 |
// setLoading(false); |
| 113 |
// } catch (error) { |
| 114 |
// setLoading(false); |
| 115 |
// // scrollRef.current.scrollTo({x: 0, y: 0, animated: true}); |
| 116 |
// alertRef.current.alertWithType( |
| 117 |
// 'error', |
| 118 |
// 'Error', |
| 119 |
// UI_API._returnError(error), |
| 120 |
// ); |
| 121 |
// } |
| 122 |
}; |
| 123 |
|
| 124 |
const reOrderHandler = () => { |
| 125 |
let re_order_object = { |
| 126 |
isReOrder: true, |
| 127 |
name: order_data?.order_title, |
| 128 |
order_gallery: order_data?.order_gallery?.map(el => ({ |
| 129 |
uri: el, |
| 130 |
old_gallery: true, |
| 131 |
})), |
| 132 |
quantity: order_data?.order_quantity, |
| 133 |
price: order_data?.raw_order_price?.toString(), |
| 134 |
reward: order_data?.order_reward_price?.toString(), |
| 135 |
detail: order_data?.order_detail, |
| 136 |
instructions: order_data?.order_instructions || '', |
| 137 |
shop_latitude: order_data?.shop_location?.latitude || '', |
| 138 |
shop_longitude: order_data?.shop_location?.longitude || '', |
| 139 |
delivery_before_date: order_data?.delivery_before_date, |
| 140 |
with_box: order_data?.order_packaging || false, |
| 141 |
is_private: order_data?.is_private || false, |
| 142 |
is_urgent: order_data?.is_urgent || false, |
| 143 |
order_site: order_data?.order_site || '', |
| 144 |
shop_name: order_data?.order_shop_name || '', |
| 145 |
shop_block: order_data?.shop_block || '', |
| 146 |
shop_street: order_data?.shop_street || '', |
| 147 |
shop_country: order_data?.shop_country || '', |
| 148 |
shop_city: order_data?.shop_city || '', |
| 149 |
product_link: order_data?.order_store_url || '', |
| 150 |
product_image_url: order_data?.order_image || '', |
| 151 |
country_short_name: order_data?.order_from_country_shortcode || '', |
| 152 |
country_flag: |
| 153 |
(countriesList?.some(el => el.name === order_data?.shop_country) && |
| 154 |
countriesList?.find(el => el.name === order_data?.shop_country) |
| 155 |
?.flag) || |
| 156 |
'', |
| 157 |
}; |
| 158 |
|
| 159 |
// (order_data?.order_site !== undefined || order_data?.order_site !== '') && { |
| 160 |
// ...re_order_object, |
| 161 |
// product_link: order_data?.order_store_url || '', |
| 162 |
// product_image_url: order_data?.order_image || '', |
| 163 |
// }; |
| 164 |
console.log('order_data::', order_data); |
| 165 |
console.log('re_order_object::', re_order_object); |
| 166 |
navigation.navigate( |
| Error |
Row 167, Column 29: "Replace `⏎········?·'createorderestore'⏎·······` with `·?·'createorderestore'`"
prettier/prettier
|
| 167 |
order_data?.order_site |
| 168 |
? 'createorderestore' |
| 169 |
: 'createorderpstore', |
| Error |
Row 170, Column 8: "Replace `·re_order_object:·re_order_object·` with `re_order_object:·re_order_object`"
prettier/prettier
|
| 170 |
{ re_order_object: re_order_object }, |
| 171 |
); |
| 172 |
}; |
| 173 |
|
| 174 |
return ( |
| Warning |
Row 175, Column 18: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 175, Column 19: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 175 |
<View style={{ flex: 1, backgroundColor: colors.white }}> |
| Error |
Row 176, Column 14: "Replace `·{...props}·title={'Order·Details'}·userIcon={false}·allowBackBtn·bellIcon` with `⏎········{...props}⏎········title={'Order·Details'}⏎········userIcon={false}⏎········allowBackBtn⏎········bellIcon⏎·····`"
prettier/prettier
|
| 176 |
<Header {...props} title={'Order Details'} userIcon={false} allowBackBtn bellIcon /> |
| 177 |
<KeyboardAvoidingView |
| Warning |
Row 178, Column 16: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 178, Column 17: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| 178 |
style={{ flex: 1 }} |
| 179 |
behavior={Platform.OS === 'android' ? 'height' : 'padding'}> |
| 180 |
<ScrollView |
| 181 |
ref={scrollRef} |
| 182 |
showsVerticalScrollIndicator={false} |
| 183 |
contentContainerStyle={styles.SCROLL_CONTAINER}> |
| 184 |
<OfferDetailCard |
| Warning |
Row 185, Column 20: "Inline style: { marginTop: 0 }"
react-native/no-inline-styles
|
| Error |
Row 185, Column 21: "Replace `·marginTop:·0·` with `marginTop:·0`"
prettier/prettier
|
| 185 |
style={{ marginTop: 0 }} |
| 186 |
{...props} |
| 187 |
{...UI_API._returnOrderProps(order_data)} |
| 188 |
orderType={ |
| 189 |
orderType === 'normal' ? 0 : orderType === 'processing' ? 1 : 2 |
| 190 |
} |
| 191 |
isLocalOrder={isLocalOrder} |
| 192 |
/> |
| 193 |
|
| Error |
Row 194, Column 25: "Replace `·...styles.DIV·` with `...styles.DIV`"
prettier/prettier
|
| 194 |
<View style={{ ...styles.DIV }} /> |
| 195 |
<InputWithTitle |
| 196 |
editable={false} |
| 197 |
singleInput={false} |
| 198 |
moreOrLess={true} |
| 199 |
title="Product Details" |
| 200 |
value={order_data?.order_detail} |
| Error |
Row 201, Column 25: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 201 |
textStyle={{ color: colors.primary }} |
| 202 |
// multiline={true} |
| Error |
Row 203, Column 21: "Replace `·marginTop:·mvs(0)·` with `marginTop:·mvs(0)`"
prettier/prettier
|
| 203 |
style={{ marginTop: mvs(0) }} |
| Error |
Row 204, Column 26: "Replace `·fontSize:·mvs(13)·` with `fontSize:·mvs(13)`"
prettier/prettier
|
| 204 |
titleStyle={{ fontSize: mvs(13) }} |
| 205 |
/> |
| 206 |
{order_data?.is_urgent ? ( |
| 207 |
<InfoField |
| 208 |
label={'Urgent Delivery'} |
| 209 |
value={UI_API._returnUrgencyTitle( |
| 210 |
order_data?.order_deliver_before, |
| 211 |
)} |
| Error |
Row 212, Column 28: "Replace `·color:·colors.pink,·fontSize:·mvs(13)·` with `color:·colors.pink,·fontSize:·mvs(13)`"
prettier/prettier
|
| 212 |
labelStyle={{ color: colors.pink, fontSize: mvs(13) }} |
| Error |
Row 213, Column 28: "Replace `·color:·colors.pink,·fontSize:·mvs(13)·` with `color:·colors.pink,·fontSize:·mvs(13)`"
prettier/prettier
|
| 213 |
valueStyle={{ color: colors.pink, fontSize: mvs(13) }} |
| Error |
Row 214, Column 32: "Replace `·marginTop:·mvs(18)·` with `marginTop:·mvs(18)`"
prettier/prettier
|
| 214 |
containerStyle={{ marginTop: mvs(18) }} |
| 215 |
/> |
| 216 |
) : ( |
| 217 |
<InfoField |
| 218 |
label={'Deliver before'} |
| Error |
Row 219, Column 32: "Replace `·marginTop:·mvs(18)·` with `marginTop:·mvs(18)`"
prettier/prettier
|
| 219 |
containerStyle={{ marginTop: mvs(18) }} |
| 220 |
value={order_data?.order_deliver_before} |
| 221 |
/> |
| 222 |
)} |
| 223 |
<InfoField |
| Error |
Row 224, Column 26: "Replace `·fontSize:·mvs(13)·` with `fontSize:·mvs(13)`"
prettier/prettier
|
| 224 |
labelStyle={{ fontSize: mvs(13) }} |
| Error |
Row 225, Column 26: "Replace `·fontSize:·mvs(13)·` with `fontSize:·mvs(13)`"
prettier/prettier
|
| 225 |
valueStyle={{ fontSize: mvs(13) }} |
| 226 |
label={'Quantity'} |
| 227 |
value={order_data?.order_quantity} |
| 228 |
/> |
| 229 |
<InfoField |
| Error |
Row 230, Column 26: "Replace `·fontSize:·mvs(13)·` with `fontSize:·mvs(13)`"
prettier/prettier
|
| 230 |
labelStyle={{ fontSize: mvs(13) }} |
| Error |
Row 231, Column 26: "Replace `·fontSize:·mvs(13)·` with `fontSize:·mvs(13)`"
prettier/prettier
|
| 231 |
valueStyle={{ fontSize: mvs(13) }} |
| 232 |
label={'Packaging'} |
| 233 |
value={order_data?.order_packaging ? 'With box' : 'Without box'} |
| 234 |
/> |
| 235 |
{/* {console.log('order_data:: ',order_data)} */} |
| 236 |
<View |
| Warning |
Row 237, Column 20: "Inline style: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center'
}"
react-native/no-inline-styles
|
| 237 |
style={{ |
| 238 |
flexDirection: 'row', |
| 239 |
justifyContent: 'space-between', |
| 240 |
alignItems: 'center', |
| 241 |
marginTop: mvs(10), |
| 242 |
}}> |
| 243 |
<Regular |
| 244 |
label={'Where to buy'} |
| Error |
Row 245, Column 23: "Replace `·fontSize:·mvs(13),·color:·colors.label·` with `fontSize:·mvs(13),·color:·colors.label`"
prettier/prettier
|
| 245 |
style={{ fontSize: mvs(13), color: colors.label }} |
| 246 |
/> |
| 247 |
<Regular |
| Error |
Row 248, Column 22: "Replace `·=·` with `=`"
prettier/prettier
|
| 248 |
onPress = {() => { |
| Error |
Row 249, Column 39: "Insert `·`"
prettier/prettier
|
| Warning |
Row 249, Column 39: "Operator '&&' must be spaced."
space-infix-ops
|
| 249 |
order_data?.order_site&& |
| Error |
Row 250, Column 1: "Replace `················Linking.openURL(order_data?.order_store_url)` with `··················Linking.openURL(order_data?.order_store_url);`"
prettier/prettier
|
| Warning |
Row 250, Column 61: "Missing semicolon."
semi
|
| 250 |
Linking.openURL(order_data?.order_store_url) |
| 251 |
}} |
| 252 |
label={ |
| 253 |
order_data?.order_site || |
| 254 |
(order_data?.order_shop_name?.length > 8 |
| 255 |
? `${order_data?.order_shop_name?.substring(0, 8)} ...` |
| 256 |
: order_data?.order_shop_name) |
| 257 |
} |
| 258 |
style={{fontSize: mvs(13), color: colors.primary}} |
| 259 |
/> |
| 260 |
{!order_data?.order_site && ( |
| 261 |
<TouchableOpacity |
| 262 |
onPress={() => { |
| Error |
Row 263, Column 31: "Replace `"order_data:",·order_data?.shop_location)` with `'order_data:',·order_data?.shop_location);`"
prettier/prettier
|
| Warning |
Row 263, Column 31: "Strings must use singlequote."
quotes
|
| Warning |
Row 263, Column 72: "Missing semicolon."
semi
|
| 263 |
console.log("order_data:", order_data?.shop_location) |
| 264 |
const region = { |
| 265 |
latitude: order_data?.shop_location?.latitude, |
| 266 |
longitude: order_data?.shop_location?.longitude, |
| 267 |
latitudeDelta: 0.015, |
| 268 |
longitudeDelta: 0.0121, |
| Error |
Row 269, Column 20: "Insert `;`"
prettier/prettier
|
| Warning |
Row 269, Column 20: "Missing semicolon."
semi
|
| 269 |
} |
| Error |
Row 270, Column 45: "Replace `"storelocation",··{shopRegion·:·region,·order_data·:·order_data})` with `'storelocation',·{⏎····················shopRegion:·region,⏎····················order_data:·order_data,⏎··················});`"
prettier/prettier
|
| Warning |
Row 270, Column 45: "Strings must use singlequote."
quotes
|
| Warning |
Row 270, Column 110: "Missing semicolon."
semi
|
| 270 |
props.navigation.navigate("storelocation", {shopRegion : region, order_data : order_data}) |
| 271 |
}} |
| Warning |
Row 272, Column 24: "Inline style: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center'
}"
react-native/no-inline-styles
|
| 272 |
style={{ |
| 273 |
flexDirection: 'row', |
| 274 |
justifyContent: 'space-between', |
| 275 |
alignItems: 'center', |
| 276 |
}}> |
| 277 |
<Map |
| 278 |
height={mvs(18)} |
| 279 |
width={mvs(14)} |
| Error |
Row 280, Column 27: "Replace `·marginRight:·mvs(7.3)·` with `marginRight:·mvs(7.3)`"
prettier/prettier
|
| 280 |
style={{ marginRight: mvs(7.3) }} |
| 281 |
/> |
| 282 |
<Regular |
| 283 |
label={'Store location'} |
| Error |
Row 284, Column 27: "Replace `·fontSize:·mvs(13),·color:·colors.primary·` with `fontSize:·mvs(13),·color:·colors.primary`"
prettier/prettier
|
| 284 |
style={{ fontSize: mvs(13), color: colors.primary }} |
| 285 |
/> |
| 286 |
</TouchableOpacity> |
| 287 |
)} |
| 288 |
</View> |
| 289 |
|
| Error |
Row 290, Column 25: "Replace `·...styles.DIV·` with `...styles.DIV`"
prettier/prettier
|
| 290 |
<View style={{ ...styles.DIV }} /> |
| 291 |
<InputWithTitle |
| 292 |
editable={false} |
| 293 |
singleInput={false} |
| 294 |
title="Buying Instructions" |
| 295 |
value={order_data?.order_instructions} |
| Error |
Row 296, Column 25: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 296 |
textStyle={{ color: colors.primary }} |
| 297 |
multiline={false} |
| 298 |
moreOrLess={true} |
| Error |
Row 299, Column 21: "Replace `·marginTop:·mvs(0)·` with `marginTop:·mvs(0)`"
prettier/prettier
|
| 299 |
style={{ marginTop: mvs(0) }} |
| Error |
Row 300, Column 26: "Replace `·fontSize:·mvs(13)·` with `fontSize:·mvs(13)`"
prettier/prettier
|
| 300 |
titleStyle={{ fontSize: mvs(13) }} |
| 301 |
/> |
| 302 |
{orderType === 'normal' && ( |
| 303 |
<> |
| 304 |
<View style={styles.MAKE_OFFER_CONTAINER}> |
| 305 |
<TAKE_TO_INPUT_FIELD.PriceInput |
| 306 |
priceUnit={profileData?.currency?.currency_code} |
| 307 |
placeholder={'0'} |
| 308 |
onChangeText={txt => { |
| Error |
Row 309, Column 33: "Replace `""` with `''`"
prettier/prettier
|
| Warning |
Row 309, Column 33: "Strings must use singlequote."
quotes
|
| 309 |
if (txt === "") { |
| 310 |
setPayload({ |
| 311 |
...payload, |
| 312 |
offerPrice: txt.trim(), |
| 313 |
}); |
| Error |
Row 314, Column 22: "Delete `⏎···················`"
prettier/prettier
|
| 314 |
} |
| 315 |
else if (TAKE_TO_CONSTANT.floatValidation(txt)) { |
| 316 |
setPayload({ |
| 317 |
...payload, |
| 318 |
offerPrice: txt.trim(), |
| 319 |
}); |
| 320 |
} |
| Error |
Row 321, Column 20: "Delete `⏎··················`"
prettier/prettier
|
| 321 |
} |
| 322 |
} |
| Error |
Row 323, Column 36: "Replace `·...styles.PRICE_INPUT·` with `...styles.PRICE_INPUT`"
prettier/prettier
|
| 323 |
containerStyle={{ ...styles.PRICE_INPUT }} |
| 324 |
style={{ |
| 325 |
color: colors.primary, |
| 326 |
fontSize: mvs(23), |
| 327 |
fontFamily: fonts.carosSoftRegular, |
| 328 |
}} |
| 329 |
value={payload.offerPrice} |
| 330 |
unitStyle={{ |
| 331 |
fontFamily: fonts.carosSoftRegular, |
| 332 |
fontSize: mvs(23), |
| 333 |
}} |
| 334 |
/> |
| 335 |
<Buttons.ButtonPrimary |
| 336 |
loading={loading} |
| 337 |
loaderColor={colors.white} |
| 338 |
disabled={loading} |
| 339 |
onClick={() => { |
| Error |
Row 340, Column 28: "Replace `⏎······················?showGuestAlert()⏎·····················` with `·?·showGuestAlert()`"
prettier/prettier
|
| 340 |
isGuest |
| Warning |
Row 341, Column 23: "Operator '?' must be spaced."
space-infix-ops
|
| 341 |
?showGuestAlert() |
| 342 |
: createOfferHandler(); |
| 343 |
}} |
| Warning |
Row 344, Column 26: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 344, Column 27: "Replace `·width:·'49%',·backgroundColor:·colors.primary·` with `width:·'49%',·backgroundColor:·colors.primary`"
prettier/prettier
|
| 344 |
style={{ width: '49%', backgroundColor: colors.primary }} |
| 345 |
title={'Make Offer'} |
| 346 |
/> |
| 347 |
</View> |
| 348 |
</> |
| 349 |
)} |
| 350 |
|
| 351 |
<Buttons.ButtonRTL |
| 352 |
onClick={() => { |
| 353 |
isGuest ? showGuestAlert() : reOrderHandler(); |
| 354 |
}} |
| 355 |
iconName={'reorder'} |
| 356 |
title={'Reorder'} |
| Warning |
Row 357, Column 20: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| 357 |
style={{ |
| 358 |
justifyContent: 'center', |
| 359 |
marginTop: orderType === 'normal' ? mvs(15) : mvs(129), |
| 360 |
}} |
| Error |
Row 361, Column 25: "Replace `·color:·colors.white,·marginLeft:·mvs(13)·` with `color:·colors.white,·marginLeft:·mvs(13)`"
prettier/prettier
|
| 361 |
textStyle={{ color: colors.white, marginLeft: mvs(13) }} |
| Error |
Row 362, Column 25: "Replace `·height:·mvs(20),·width:·mvs(20)·` with `height:·mvs(20),·width:·mvs(20)`"
prettier/prettier
|
| 362 |
iconStyle={{ height: mvs(20), width: mvs(20) }} |
| 363 |
/> |
| 364 |
</ScrollView> |
| 365 |
</KeyboardAvoidingView> |
| Error |
Row 366, Column 21: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎········translucent⏎········activeStatusBarStyle={'light-content'}⏎········inactiveStatusBarBackgroundColor={colors.primary}⏎········ref={alertRef}⏎·····`"
prettier/prettier
|
| 366 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| Error |
Row 367, Column 1: "Insert `······`"
prettier/prettier
|
| 367 |
{/* {console.log(order_data?.order_by?.user_name)} */} |
| 368 |
<OfferMade |
| 369 |
navigation={navigation} |
| 370 |
visible={makeOfferModal} |
| 371 |
onClose={() => { |
| 372 |
setMakeOfferModal(false); |
| Error |
Row 373, Column 23: "Delete `⏎···········`"
prettier/prettier
|
| 373 |
offerSend && |
| 374 |
props.navigation?.pop(); |
| Error |
Row 375, Column 1: "Delete `··`"
prettier/prettier
|
| 375 |
// .navigate( |
| Error |
Row 376, Column 11: "Delete `··`"
prettier/prettier
|
| 376 |
// 'localorders', { |
| Error |
Row 377, Column 1: "Replace `············` with `··········`"
prettier/prettier
|
| 377 |
// isLocalOrders: !order_data?.is_international, |
| Error |
Row 378, Column 11: "Delete `··`"
prettier/prettier
|
| 378 |
// isRelavent: true, |
| Error |
Row 379, Column 1: "Delete `··`"
prettier/prettier
|
| 379 |
// }); |
| 380 |
}} |
| 381 |
user_name={order_data?.order_by?.user_name} |
| 382 |
isLocalOrder={!order_data?.is_international} |
| 383 |
orderType={orderType} |
| 384 |
offerData={order_data} |
| 385 |
offeredPrice={payload?.offerPrice} |
| 386 |
/> |
| 387 |
</View> |
| 388 |
); |
| 389 |
}; |
| 390 |
|
| 391 |
// export default OrderDatails; |
| 392 |
const mapStateToProps = state => { |
| 393 |
return { |
| 394 |
isGuest: state.auth.isGuest, |
| 395 |
profileData: state.auth.userInfo?.profile || {}, |
| 396 |
countriesList: state.common.countriesList, |
| 397 |
}; |
| 398 |
}; |
| 399 |
|
| 400 |
const mapDispatchToProps = dispatch => ({ |
| 401 |
postSigninData: data => dispatch(TAKE_TO_ACTIONS.postSigninData(data)), |
| 402 |
makeOfferActions: data => dispatch(TAKE_TO_ACTIONS.makeOffer(data)), |
| 403 |
}); |
| 404 |
export default connect(mapStateToProps, mapDispatchToProps)(OrderDatails); |
| 405 |
|
| 406 |
const styles = StyleSheet.create({ |
| 407 |
SCROLL_CONTAINER: { |
| 408 |
paddingHorizontal: mvs(21), |
| 409 |
paddingTop: mvs(5), |
| 410 |
paddingBottom: mvs(41), |
| 411 |
}, |
| 412 |
DIV: { |
| 413 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 414 |
marginTop: mvs(15), |
| 415 |
marginBottom: mvs(13), |
| 416 |
borderColor: colors.border, |
| 417 |
}, |
| 418 |
NOTES_CONTAINER: { |
| 419 |
backgroundColor: colors.secondary, |
| 420 |
paddingVertical: mvs(8), |
| 421 |
paddingHorizontal: mvs(13), |
| 422 |
borderRadius: mvs(10), |
| 423 |
}, |
| 424 |
INPUT: { |
| 425 |
paddingVertical: mvs(5), |
| 426 |
fontFamily: fonts.carosSoftRegular, |
| 427 |
fontSize: mvs(15), |
| 428 |
}, |
| 429 |
TOT_REWARD: { |
| 430 |
flexDirection: 'row', |
| 431 |
alignItems: 'center', |
| 432 |
alignSelf: 'flex-end', |
| 433 |
}, |
| 434 |
MAKE_OFFER_CONTAINER: { |
| 435 |
flexDirection: 'row', |
| 436 |
alignItems: 'center', |
| 437 |
justifyContent: 'space-between', |
| 438 |
marginTop: mvs(62), |
| 439 |
}, |
| 440 |
PRICE_INPUT: { |
| 441 |
height: mvs(52), |
| 442 |
backgroundColor: colors.white, |
| 443 |
borderWidth: StyleSheet.hairlineWidth, |
| 444 |
borderColor: colors.border, |
| 445 |
width: '49%', |
| 446 |
}, |
| 447 |
}); |
| 448 |
|
|
| Severity |
Rule |
| Error |
Row 7, Column 9: "Replace `·Keyboard,·KeyboardAvoidingView,·ScrollView,·StyleSheet,·View·` with `⏎··Keyboard,⏎··KeyboardAvoidingView,⏎··ScrollView,⏎··StyleSheet,⏎··View,⏎`"
prettier/prettier
|
| Error |
Row 9, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 15, Column 8: "'DatePickerModal' is defined but never used."
no-unused-vars
|
| Warning |
Row 19, Column 8: "'PhoneVerificationModal' is defined but never used."
no-unused-vars
|
| Error |
Row 22, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 25, Column 5: "'navigation' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 26, Column 5: "'route' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 35, Column 17: "'setValue' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 42, Column 10: "'valid' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 43, Column 10: "'showMessage' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 60, Column 6: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 75, Column 6: "React Hook React.useEffect has missing dependencies: 'defaultCountry?.short_name' and 'profileData?.mobile'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 77, Column 1: "Delete `⏎⏎`"
prettier/prettier
|
| Error |
Row 90, Column 26: "Replace `(d)` with `d`"
prettier/prettier
|
| Warning |
Row 98, Column 32: "'value' is already declared in the upper scope."
no-shadow
|
| Error |
Row 99, Column 17: "Replace `·...payload,·[key]:·value·` with `...payload,·[key]:·value`"
prettier/prettier
|
| Error |
Row 109, Column 27: "Replace `·...payload·` with `...payload`"
prettier/prettier
|
| Error |
Row 123, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 124, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 195, Column 28: "Insert `,`"
prettier/prettier
|
| Warning |
Row 195, Column 28: "Missing trailing comma."
comma-dangle
|
| Error |
Row 196, Column 11: "Insert `;`"
prettier/prettier
|
| Warning |
Row 196, Column 11: "Missing semicolon."
semi
|
| Error |
Row 212, Column 20: "Replace `·...modals,·email:·true·` with `...modals,·email:·true`"
prettier/prettier
|
| Error |
Row 220, Column 38: "Replace `bool,` with `·bool,·`"
prettier/prettier
|
| Error |
Row 226, Column 18: "Replace `·...modals,·email:·false·` with `...modals,·email:·false`"
prettier/prettier
|
| Warning |
Row 236, Column 7: "Expected space(s) after "if"."
keyword-spacing
|
| Error |
Row 236, Column 9: "Replace `(bool)` with `·(bool)·`"
prettier/prettier
|
| Error |
Row 237, Column 19: "Delete `·`"
prettier/prettier
|
| Warning |
Row 254, Column 5: "Expected { after 'else'."
curly
|
| Warning |
Row 257, Column 16: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 257, Column 17: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Error |
Row 258, Column 19: "'Platform' is not defined."
no-undef
|
| Warning |
Row 282, Column 24: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 282, Column 25: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| Error |
Row 291, Column 30: "Replace `'cover'` with `"cover"`"
prettier/prettier
|
| Warning |
Row 291, Column 30: "Unexpected usage of singlequote."
jsx-quotes
|
| Error |
Row 294, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 296, Column 38: "Replace `·iconStyle={{·top:·mvs(88),·right:·mvs(10)·}}·onClick={()·=>·setOpenPicker(true)}` with `⏎··················iconStyle={{top:·mvs(88),·right:·mvs(10)}}⏎··················onClick={()·=>·setOpenPicker(true)}⏎···············`"
prettier/prettier
|
| Error |
Row 301, Column 51: "Replace `·...modals,·name:·true·` with `...modals,·name:·true`"
prettier/prettier
|
| Error |
Row 337, Column 39: "Insert `⏎···················`"
prettier/prettier
|
| Error |
Row 338, Column 21: "Insert `··`"
prettier/prettier
|
| Error |
Row 339, Column 1: "Replace `······················` with `························`"
prettier/prettier
|
| Error |
Row 340, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 341, Column 25: "Insert `··`"
prettier/prettier
|
| Error |
Row 342, Column 1: "Insert `···`"
prettier/prettier
|
| Error |
Row 343, Column 23: "Replace `)` with `··);`"
prettier/prettier
|
| Warning |
Row 343, Column 24: "Missing semicolon."
semi
|
| Error |
Row 344, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 345, Column 23: "Insert `··`"
prettier/prettier
|
| Error |
Row 346, Column 1: "Replace `························` with `··························`"
prettier/prettier
|
| Error |
Row 347, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 348, Column 24: "Insert `···`"
prettier/prettier
|
| Error |
Row 349, Column 1: "Replace `······················` with `························`"
prettier/prettier
|
| Error |
Row 350, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 351, Column 19: "Replace `})` with `··})⏎··················`"
prettier/prettier
|
| Warning |
Row 362, Column 32: "Strings must use singlequote."
quotes
|
| Warning |
Row 372, Column 28: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 372, Column 29: "Replace `·...styles.BTN_CONTAINER,·justifyContent:·'center'·` with `...styles.BTN_CONTAINER,·justifyContent:·'center'`"
prettier/prettier
|
| Error |
Row 379, Column 29: "Insert `;`"
prettier/prettier
|
| Warning |
Row 379, Column 29: "Missing semicolon."
semi
|
| Error |
Row 397, Column 26: "Replace `·...modals,·name:·false,·is_mob_verified:·false·` with `...modals,·name:·false,·is_mob_verified:·false`"
prettier/prettier
|
| Error |
Row 406, Column 43: "Insert `·`"
prettier/prettier
|
| Error |
Row 407, Column 47: "Replace `true,` with `·true,·`"
prettier/prettier
|
| Error |
Row 411, Column 26: "Replace `·...modals,·email:·false,·is_email_verified:·false·` with `...modals,·email:·false,·is_email_verified:·false`"
prettier/prettier
|
| Error |
Row 420, Column 25: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}·/>⏎` with `⏎············translucent⏎············activeStatusBarStyle={'light-content'}⏎············inactiveStatusBarBackgroundColor={colors.primary}⏎············ref={alertRef}⏎··········/>`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_2_API from '@khan_ahmad786/common/api/API'; |
| 2 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 3 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 4 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 5 |
import moment from 'moment'; |
| 6 |
import React from 'react'; |
| Error |
Row 7, Column 9: "Replace `·Keyboard,·KeyboardAvoidingView,·ScrollView,·StyleSheet,·View·` with `⏎··Keyboard,⏎··KeyboardAvoidingView,⏎··ScrollView,⏎··StyleSheet,⏎··View,⏎`"
prettier/prettier
|
| 7 |
import { Keyboard, KeyboardAvoidingView, ScrollView, StyleSheet, View } from 'react-native'; |
| 8 |
import DropdownAlert from 'react-native-dropdownalert'; |
| Error |
Row 9, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 9 |
import { connect } from 'react-redux'; |
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 10 |
import { TAKE_TO_INPUT_FIELD } from '../../../components/atoms'; |
| 11 |
import Buttons from '../../../components/atoms/Button'; |
| 12 |
import ImagePlaceholder from '../../../components/atoms/Placeholder'; |
| 13 |
import DateTimePicker from '../../../components/molecules/destination-card/date-picker'; |
| 14 |
import Header from '../../../components/molecules/header/header-1x'; |
| Warning |
Row 15, Column 8: "'DatePickerModal' is defined but never used."
no-unused-vars
|
| 15 |
import DatePickerModal from '../../../components/molecules/modals/date-picker-modal'; |
| 16 |
import ImagePicker from '../../../components/molecules/modals/image-picker/image-picker'; |
| 17 |
import EmailVerificationModal from '../../../components/molecules/modals/setting-modals/email-verification-modal'; |
| 18 |
import IdVerificationModal from '../../../components/molecules/modals/setting-modals/identity-verification-modal'; |
| Warning |
Row 19, Column 8: "'PhoneVerificationModal' is defined but never used."
no-unused-vars
|
| 19 |
import PhoneVerificationModal from '../../../components/molecules/modals/setting-modals/phone-verification-modal'; |
| 20 |
import CustomPhoneInput from '../../../components/molecules/phone-input/phone-input'; |
| 21 |
import colors from '../../../config/colors'; |
| Error |
Row 22, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 22 |
import { mvs } from '../../../config/metrices'; |
| 23 |
const AccountInfo = props => { |
| 24 |
const { |
| Warning |
Row 25, Column 5: "'navigation' is assigned a value but never used."
no-unused-vars
|
| 25 |
navigation, |
| Warning |
Row 26, Column 5: "'route' is assigned a value but never used."
no-unused-vars
|
| 26 |
route, |
| 27 |
profileData, |
| 28 |
updateUserProfile, |
| 29 |
defaultCountry, |
| 30 |
fetchUserInfo, |
| 31 |
} = props; |
| 32 |
|
| 33 |
const phoneRef = React.useRef(null); |
| 34 |
const [openPicker, setOpenPicker] = React.useState(false); |
| Warning |
Row 35, Column 17: "'setValue' is assigned a value but never used."
no-unused-vars
|
| 35 |
const [value, setValue] = React.useState(''); |
| 36 |
const scrollRef = React.useRef(); |
| 37 |
const alertRef = React.useRef(); |
| 38 |
const [loading, setLoading] = React.useState(false); |
| 39 |
const [verifyType, setVerifyType] = React.useState('email'); |
| 40 |
const [stateLoader, setStateLoader] = React.useState(true); |
| 41 |
//const [verifyNumberModal, setVerifyNumberModal] = React.useState(false) |
| Warning |
Row 42, Column 10: "'valid' is assigned a value but never used."
no-unused-vars
|
| 42 |
const [valid, setValid] = React.useState(false); |
| Warning |
Row 43, Column 10: "'showMessage' is assigned a value but never used."
no-unused-vars
|
| 43 |
const [showMessage, setShowMessage] = React.useState(false); |
| 44 |
const phoneInput = React.useRef(null); |
| 45 |
const [phone, setPhone] = React.useState({ |
| 46 |
iso: |
| 47 |
(profileData?.mobile && profileData?.mobile?.split('-')[0]) || |
| 48 |
defaultCountry?.short_name || |
| 49 |
'kw', |
| 50 |
cc: (profileData?.mobile && profileData?.mobile?.split('-')[1]) || '', |
| 51 |
number: (profileData?.mobile && profileData?.mobile?.split('-')[2]) || '', |
| 52 |
}); |
| 53 |
const [payload, setPayload] = React.useState({ |
| 54 |
profile_image: profileData?.profile_picture, |
| 55 |
name: profileData?.name, |
| 56 |
user_name: profileData?.user_name, |
| 57 |
mobile: '', //profileData?.mobile&&profileData?.mobile?.split('-')[2] || '', |
| 58 |
email: profileData?.email, |
| 59 |
birth: profileData?.birth || null, |
| Error |
Row 60, Column 6: "Delete `⏎`"
prettier/prettier
|
| 60 |
}); |
| 61 |
|
| 62 |
|
| 63 |
React.useEffect(() => { |
| 64 |
setPhone({ |
| 65 |
iso: |
| 66 |
(profileData?.mobile && profileData?.mobile?.split('-')[0]) || |
| 67 |
defaultCountry?.short_name || |
| 68 |
'kw', |
| 69 |
cc: (profileData?.mobile && profileData?.mobile?.split('-')[1]) || '', |
| 70 |
number: (profileData?.mobile && profileData?.mobile?.split('-')[2]) || '', |
| 71 |
}); |
| 72 |
setTimeout(() => { |
| 73 |
setStateLoader(false); |
| 74 |
}, 100); |
| Error |
Row 75, Column 6: "React Hook React.useEffect has missing dependencies: 'defaultCountry?.short_name' and 'profileData?.mobile'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| 75 |
}, []); |
| 76 |
|
| Error |
Row 77, Column 1: "Delete `⏎⏎`"
prettier/prettier
|
| 77 |
|
| 78 |
|
| 79 |
const [modals, setModals] = React.useState({ |
| 80 |
email: false, |
| 81 |
is_email_verified: profileData?.is_email_verified, |
| 82 |
name: false, |
| 83 |
is_mob_verified: profileData?.is_mob_verified, |
| 84 |
}); |
| 85 |
|
| 86 |
const [isDatePickerVisible, setDatePickerVisibility] = React.useState(false); |
| 87 |
const [emailVerifyLoader, setEmailVerifyLoader] = React.useState(false); |
| 88 |
const [verifyLoader, setVerifyLoader] = React.useState(false); |
| 89 |
|
| Error |
Row 90, Column 26: "Replace `(d)` with `d`"
prettier/prettier
|
| 90 |
const hideDatePicker = (d) => { |
| 91 |
// setPayload({ |
| 92 |
// ...payload, |
| 93 |
// birth: moment(d).format('YYYY-MM-DD'), |
| 94 |
// }); |
| 95 |
setDatePickerVisibility(false); |
| 96 |
}; |
| 97 |
|
| Warning |
Row 98, Column 32: "'value' is already declared in the upper scope."
no-shadow
|
| 98 |
const onChangeHandle = (key, value) => { |
| Error |
Row 99, Column 17: "Replace `·...payload,·[key]:·value·` with `...payload,·[key]:·value`"
prettier/prettier
|
| 99 |
setPayload({ ...payload, [key]: value }); |
| 100 |
}; |
| 101 |
|
| 102 |
const onSave = async () => { |
| 103 |
try { |
| 104 |
Keyboard.dismiss(); |
| 105 |
setLoading(true); |
| 106 |
// return console.log(payload); |
| 107 |
const response = TAKE_TO_CONSTANT.accountInfoValidation(payload); |
| 108 |
if (response.status) { |
| Error |
Row 109, Column 27: "Replace `·...payload·` with `...payload`"
prettier/prettier
|
| 109 |
let newPayload = { ...payload }; |
| 110 |
if ( |
| 111 |
phone?.number?.length > 0 && |
| 112 |
!phoneRef?.current?.isValidNumber(phone?.number) |
| 113 |
) { |
| 114 |
throw new Error('Oops! It seems your phone number is invalid.'); |
| 115 |
} else { |
| 116 |
newPayload = { |
| 117 |
...newPayload, |
| 118 |
mobile: `${phone?.iso}-${phone?.cc}-${phone?.number}`, |
| 119 |
}; |
| 120 |
} |
| 121 |
newPayload?.birth |
| 122 |
? { |
| Error |
Row 123, Column 13: "Insert `··`"
prettier/prettier
|
| 123 |
...newPayload, |
| Error |
Row 124, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 124 |
} |
| 125 |
: delete newPayload?.birth; |
| 126 |
delete newPayload.email; |
| 127 |
if (!phoneRef?.current?.isValidNumber(phone?.number)) { |
| 128 |
delete newPayload.mobile; |
| 129 |
} |
| 130 |
if (payload?.profile_image?.uri === undefined) { |
| 131 |
delete newPayload.profile_image; |
| 132 |
} |
| 133 |
|
| 134 |
//console.log(newPayload); |
| 135 |
// return; |
| 136 |
await updateUserProfile(newPayload); |
| 137 |
await fetchUserInfo(); |
| 138 |
alertRef.current.alertWithType( |
| 139 |
'success', |
| 140 |
'Profile Updated', |
| 141 |
'Your profile updated succesfully', |
| 142 |
); |
| 143 |
} else { |
| 144 |
throw new Error(response?.message); |
| 145 |
} |
| 146 |
setLoading(false); |
| 147 |
} catch (error) { |
| 148 |
setLoading(false); |
| 149 |
// scrollRef.current.scrollTo({x: 0, y: 0, animated: true}); |
| 150 |
alertRef.current.alertWithType( |
| 151 |
'error', |
| 152 |
'Error', |
| 153 |
UI_API._returnError(error), |
| 154 |
); |
| 155 |
} |
| 156 |
}; |
| 157 |
|
| 158 |
const validatePhoneNumber = text => { |
| 159 |
setPhone({ |
| 160 |
...phone, |
| 161 |
iso: phoneRef?.current?.getCountryCode(), |
| 162 |
cc: phoneRef?.current?.getCallingCode(), |
| 163 |
number: text, |
| 164 |
}); |
| 165 |
}; |
| 166 |
|
| 167 |
const updatePayload = getData => { |
| 168 |
setPayload({ |
| 169 |
...payload, |
| 170 |
...getData, |
| 171 |
}); |
| 172 |
}; |
| 173 |
|
| 174 |
const openCamera = () => { |
| 175 |
// launchCamera({mediaType: 'photo', includeBase64: false}, response => |
| 176 |
UI_API._openCamera(updatePayload, alertRef); |
| 177 |
// ); |
| 178 |
}; |
| 179 |
const openGallery = () => { |
| 180 |
// launchImageLibrary({mediaType: 'photo', includeBase64: false}, response => |
| 181 |
UI_API._openGallery(updatePayload, alertRef); |
| 182 |
// ); |
| 183 |
}; |
| 184 |
const onImageModalSelection = type => { |
| 185 |
//type :: Camera,Gallery,Delete |
| 186 |
setOpenPicker(false); |
| 187 |
setTimeout(() => { |
| 188 |
if (type === 'Camera') { |
| 189 |
openCamera(); |
| 190 |
} else if (type === 'Gallery') { |
| 191 |
openGallery(); |
| 192 |
} else { |
| 193 |
setPayload({ |
| 194 |
...payload, |
| Error |
Row 195, Column 28: "Insert `,`"
prettier/prettier
|
| Warning |
Row 195, Column 28: "Missing trailing comma."
comma-dangle
|
| 195 |
profile_image: '' |
| Error |
Row 196, Column 11: "Insert `;`"
prettier/prettier
|
| Warning |
Row 196, Column 11: "Missing semicolon."
semi
|
| 196 |
}) |
| 197 |
} |
| 198 |
}, 1000); |
| 199 |
}; |
| 200 |
|
| 201 |
const sendOTPHandler = async (type, callBack) => { |
| 202 |
try { |
| 203 |
setEmailVerifyLoader(type === 'email' ? true : false); |
| 204 |
type === 'email' |
| 205 |
? await TAKE_2_API.postEmailOtp(payload?.email) |
| 206 |
: await TAKE_2_API.postMobileOtp(`+${phone.cc}${phone.number}`); |
| 207 |
setEmailVerifyLoader(false); |
| 208 |
|
| 209 |
callBack(undefined, true, 'OTP sent on your provided email successfully'); |
| 210 |
setVerifyType(type); |
| 211 |
setTimeout(() => { |
| Error |
Row 212, Column 20: "Replace `·...modals,·email:·true·` with `...modals,·email:·true`"
prettier/prettier
|
| 212 |
setModals({ ...modals, email: true }); |
| 213 |
}, 1000); |
| 214 |
} catch (error) { |
| 215 |
setEmailVerifyLoader(false); |
| 216 |
callBack(true, false, UI_API._returnError(error)); |
| 217 |
} |
| 218 |
}; |
| 219 |
|
| Error |
Row 220, Column 38: "Replace `bool,` with `·bool,·`"
prettier/prettier
|
| 220 |
const verifyOTP = async (otp, type,bool,showError) => { |
| 221 |
try { |
| 222 |
setVerifyLoader(type === 'email' ? true : false); |
| 223 |
await TAKE_2_API.verifyOTP(otp, type); |
| 224 |
await fetchUserInfo(); |
| 225 |
setVerifyLoader(false); |
| Error |
Row 226, Column 18: "Replace `·...modals,·email:·false·` with `...modals,·email:·false`"
prettier/prettier
|
| 226 |
setModals({ ...modals, email: false }); |
| 227 |
//onSave(); |
| 228 |
alertRef.current.alertWithType( |
| 229 |
'success', |
| 230 |
'OTP Verified', |
| 231 |
'OTP verified successfully', |
| 232 |
); |
| 233 |
} catch (error) { |
| 234 |
setVerifyLoader(false); |
| 235 |
console.log('error on otp:', error); |
| Warning |
Row 236, Column 7: "Expected space(s) after "if"."
keyword-spacing
|
| Error |
Row 236, Column 9: "Replace `(bool)` with `·(bool)·`"
prettier/prettier
|
| 236 |
if(bool){ |
| Error |
Row 237, Column 19: "Delete `·`"
prettier/prettier
|
| 237 |
showError( UI_API._returnError(error)); |
| 238 |
return; |
| 239 |
} |
| 240 |
alertRef.current.alertWithType( |
| 241 |
'error', |
| 242 |
'Error', |
| 243 |
UI_API._returnError(error), |
| 244 |
); |
| 245 |
} |
| 246 |
}; |
| 247 |
|
| 248 |
if (stateLoader) { |
| 249 |
return ( |
| 250 |
<View style={styles.mainContainer}> |
| 251 |
<Header {...props} title="Account Info" allowBackBtn userIcon={false} /> |
| 252 |
</View> |
| 253 |
); |
| Warning |
Row 254, Column 5: "Expected { after 'else'."
curly
|
| 254 |
} else |
| 255 |
return ( |
| 256 |
<KeyboardAvoidingView |
| Warning |
Row 257, Column 16: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 257, Column 17: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 257 |
style={{ flex: 1, backgroundColor: colors.white }} |
| Error |
Row 258, Column 19: "'Platform' is not defined."
no-undef
|
| 258 |
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}> |
| 259 |
<View style={styles.mainContainer}> |
| 260 |
<Header |
| 261 |
{...props} |
| 262 |
title="Account Info" |
| 263 |
allowBackBtn |
| 264 |
userIcon={false} |
| 265 |
/> |
| 266 |
<DateTimePicker |
| 267 |
isVisible={isDatePickerVisible} |
| 268 |
onCancel={hideDatePicker} |
| 269 |
mode="date" |
| 270 |
maximumDate={new Date()} |
| 271 |
isDarkModeEnabled={false} |
| 272 |
// backdropStyleIOS={colors.black} |
| 273 |
onConfirm={date => { |
| 274 |
setPayload({ |
| 275 |
...payload, |
| 276 |
birth: moment(date).format('YYYY-MM-DD'), |
| 277 |
}); |
| 278 |
setDatePickerVisibility(false); |
| 279 |
}} |
| 280 |
/> |
| 281 |
|
| Warning |
Row 282, Column 24: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 282, Column 25: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| 282 |
<View style={{ flex: 1 }}> |
| 283 |
<ScrollView |
| 284 |
ref={scrollRef} |
| 285 |
keyboardShouldPersistTaps="always" |
| 286 |
nestedScrollEnabled |
| 287 |
showsVerticalScrollIndicator={false} |
| 288 |
contentContainerStyle={styles.SCROLL_CONTAINER}> |
| 289 |
<View style={styles.AVATAR_PROFILE}> |
| 290 |
<ImagePlaceholder |
| Error |
Row 291, Column 30: "Replace `'cover'` with `"cover"`"
prettier/prettier
|
| Warning |
Row 291, Column 30: "Unexpected usage of singlequote."
jsx-quotes
|
| 291 |
resizeMode='cover' |
| 292 |
bg_img={payload.profile_image?.uri || payload?.profile_image} |
| 293 |
containerStyle={styles.AVATAR_PROFILE} |
| Error |
Row 294, Column 1: "Delete `⏎`"
prettier/prettier
|
| 294 |
|
| 295 |
/> |
| Error |
Row 296, Column 38: "Replace `·iconStyle={{·top:·mvs(88),·right:·mvs(10)·}}·onClick={()·=>·setOpenPicker(true)}` with `⏎··················iconStyle={{top:·mvs(88),·right:·mvs(10)}}⏎··················onClick={()·=>·setOpenPicker(true)}⏎···············`"
prettier/prettier
|
| 296 |
<Buttons.ButtonCamera iconStyle={{ top: mvs(88), right: mvs(10) }} onClick={() => setOpenPicker(true)} /> |
| 297 |
</View> |
| 298 |
<View style={styles.INPUT_CONTAINER}> |
| 299 |
<TAKE_TO_INPUT_FIELD.CustomInput |
| 300 |
isVerify={modals.is_mob_verified} |
| Error |
Row 301, Column 51: "Replace `·...modals,·name:·true·` with `...modals,·name:·true`"
prettier/prettier
|
| 301 |
onPressVerify={() => setModals({ ...modals, name: true })} |
| 302 |
label={'First & Last name'} |
| 303 |
value={payload.name} |
| 304 |
onChangeText={text => onChangeHandle('name', text)} |
| 305 |
placeholder={'Enter your full name'} |
| 306 |
/> |
| 307 |
<TAKE_TO_INPUT_FIELD.CustomInput |
| 308 |
label={'Username'} |
| 309 |
value={payload.user_name} |
| 310 |
onChangeText={text => onChangeHandle('user_name', text)} |
| 311 |
placeholder={'Choose a username'} |
| 312 |
/> |
| 313 |
{/* {profileData?.is_mob_verified ? ( |
| 314 |
<TAKE_TO_INPUT_FIELD.CustomInputWithButton |
| 315 |
isVerify={true} |
| 316 |
editable={false} |
| 317 |
label={'Phone Number'} |
| 318 |
value={profileData?.mobile} |
| 319 |
//setPhone={text => onChangeHandle('email', text)} |
| 320 |
//placeholder={'Enter your email'} |
| 321 |
/> |
| 322 |
) : ( */} |
| 323 |
<CustomPhoneInput |
| 324 |
phoneRef={phoneRef} |
| 325 |
label={'Phone Number'} |
| 326 |
phone={phone?.number} |
| 327 |
defaultCode={ |
| 328 |
(profileData && profileData?.mobile && phone.iso) || 'KW' |
| 329 |
} |
| 330 |
setPhone={validatePhoneNumber} |
| 331 |
/> |
| 332 |
{/* )} */} |
| 333 |
|
| 334 |
<TAKE_TO_INPUT_FIELD.CustomInputWithButton |
| 335 |
isVerify={profileData?.is_email_verified} |
| 336 |
emailVerifyLoader={emailVerifyLoader} |
| Error |
Row 337, Column 39: "Insert `⏎···················`"
prettier/prettier
|
| 337 |
onPressVerify={() => sendOTPHandler('email', (error, success, message) => { |
| Error |
Row 338, Column 21: "Insert `··`"
prettier/prettier
|
| 338 |
if (error) { |
| Error |
Row 339, Column 1: "Replace `······················` with `························`"
prettier/prettier
|
| 339 |
alertRef.current.alertWithType( |
| Error |
Row 340, Column 1: "Insert `··`"
prettier/prettier
|
| 340 |
'error', |
| Error |
Row 341, Column 25: "Insert `··`"
prettier/prettier
|
| 341 |
'Error', |
| Error |
Row 342, Column 1: "Insert `···`"
prettier/prettier
|
| 342 |
message, |
| Error |
Row 343, Column 23: "Replace `)` with `··);`"
prettier/prettier
|
| Warning |
Row 343, Column 24: "Missing semicolon."
semi
|
| 343 |
) |
| Error |
Row 344, Column 1: "Insert `··`"
prettier/prettier
|
| 344 |
} else if (success) { |
| Error |
Row 345, Column 23: "Insert `··`"
prettier/prettier
|
| 345 |
alertRef.current.alertWithType( |
| Error |
Row 346, Column 1: "Replace `························` with `··························`"
prettier/prettier
|
| 346 |
'success', |
| Error |
Row 347, Column 1: "Insert `··`"
prettier/prettier
|
| 347 |
'Email OTP', |
| Error |
Row 348, Column 24: "Insert `···`"
prettier/prettier
|
| 348 |
message, |
| Error |
Row 349, Column 1: "Replace `······················` with `························`"
prettier/prettier
|
| 349 |
); |
| Error |
Row 350, Column 1: "Insert `··`"
prettier/prettier
|
| 350 |
} |
| Error |
Row 351, Column 19: "Replace `})` with `··})⏎··················`"
prettier/prettier
|
| 351 |
})} |
| 352 |
editable={false} |
| 353 |
label={'Email address'} |
| 354 |
value={payload.email} |
| 355 |
setPhone={text => onChangeHandle('email', text)} |
| 356 |
placeholder={'Enter your email'} |
| 357 |
/> |
| 358 |
|
| 359 |
<TAKE_TO_INPUT_FIELD.CustomInput |
| 360 |
editable={false} |
| 361 |
label={'Date of Birth (optional)'} |
| Warning |
Row 362, Column 32: "Strings must use singlequote."
quotes
|
| 362 |
placeholder={`Month / Day / Year`} |
| 363 |
value={ |
| 364 |
(payload?.birth && |
| 365 |
moment(payload?.birth).format('MM / DD / YYYY')) || |
| 366 |
'' |
| 367 |
} |
| 368 |
disabled={false} |
| 369 |
onPress={() => setDatePickerVisibility(true)} |
| 370 |
/> |
| 371 |
</View> |
| Warning |
Row 372, Column 28: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 372, Column 29: "Replace `·...styles.BTN_CONTAINER,·justifyContent:·'center'·` with `...styles.BTN_CONTAINER,·justifyContent:·'center'`"
prettier/prettier
|
| 372 |
<View style={{ ...styles.BTN_CONTAINER, justifyContent: 'center' }}> |
| 373 |
<Buttons.ButtonPrimary |
| 374 |
onClick={() => { |
| 375 |
const checkValid = phoneInput.current?.isValidNumber(value); |
| 376 |
//console.log("checkValid:", checkValid) |
| 377 |
setShowMessage(true); |
| 378 |
setValid(checkValid ? checkValid : false); |
| Error |
Row 379, Column 29: "Insert `;`"
prettier/prettier
|
| Warning |
Row 379, Column 29: "Missing semicolon."
semi
|
| 379 |
onSave() |
| 380 |
// (phone?.number?.length > 0 && |
| 381 |
// !phoneRef?.current?.isValidNumber(phone?.number) || profileData?.is_mob_verified) |
| 382 |
// ? onSave() |
| 383 |
// : sendOTPHandler('mobile'); |
| 384 |
}} |
| 385 |
title={'Save'} |
| 386 |
loading={loading} |
| 387 |
loaderColor={colors.white} |
| 388 |
disabled={loading} |
| 389 |
style={styles.BTN_LOGIN} |
| 390 |
/> |
| 391 |
</View> |
| 392 |
</ScrollView> |
| 393 |
</View> |
| 394 |
<IdVerificationModal |
| 395 |
visible={modals.name} |
| 396 |
onCLose={() => { |
| Error |
Row 397, Column 26: "Replace `·...modals,·name:·false,·is_mob_verified:·false·` with `...modals,·name:·false,·is_mob_verified:·false`"
prettier/prettier
|
| 397 |
setModals({ ...modals, name: false, is_mob_verified: false }); |
| 398 |
}} |
| 399 |
/> |
| 400 |
<EmailVerificationModal |
| 401 |
resendLoader={emailVerifyLoader} |
| 402 |
verifyLoader={verifyLoader} |
| 403 |
visible={modals.email} |
| 404 |
type={verifyType} |
| 405 |
onResendCode={sendOTPHandler} |
| Error |
Row 406, Column 43: "Insert `·`"
prettier/prettier
|
| 406 |
verify={async (otp, setLoader,showError) => { |
| Error |
Row 407, Column 47: "Replace `true,` with `·true,·`"
prettier/prettier
|
| 407 |
await verifyOTP(otp, verifyType,true,showError); |
| 408 |
setLoader(''); |
| 409 |
}} |
| 410 |
onClose={() => |
| Error |
Row 411, Column 26: "Replace `·...modals,·email:·false,·is_email_verified:·false·` with `...modals,·email:·false,·is_email_verified:·false`"
prettier/prettier
|
| 411 |
setModals({ ...modals, email: false, is_email_verified: false }) |
| 412 |
} |
| 413 |
/> |
| 414 |
<ImagePicker |
| 415 |
visible={openPicker} |
| 416 |
onClose={setOpenPicker} |
| 417 |
onSubmit={onImageModalSelection} |
| 418 |
showDelete={false} |
| 419 |
/> |
| Error |
Row 420, Column 25: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}·/>⏎` with `⏎············translucent⏎············activeStatusBarStyle={'light-content'}⏎············inactiveStatusBarBackgroundColor={colors.primary}⏎············ref={alertRef}⏎··········/>`"
prettier/prettier
|
| 420 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 421 |
|
| 422 |
|
| 423 |
{/* <DatePickerModal |
| 424 |
visible={isDatePickerVisible} |
| 425 |
onClose={() => { |
| 426 |
setDatePickerVisibility(false); |
| 427 |
}} |
| 428 |
onApply={d => hideDatePicker(d)} |
| 429 |
/> */} |
| 430 |
|
| 431 |
{/* <PhoneVerificationModal |
| 432 |
onVerify = {(otp,type) => { |
| 433 |
verifyOTP(otp, type) |
| 434 |
}} |
| 435 |
onSend = {() => sendOTPHandler('mobile')} |
| 436 |
visible = {verifyNumberModal} |
| 437 |
onCLose = {() => setVerifyNumberModal(false)} |
| 438 |
/> */} |
| 439 |
</View> |
| 440 |
</KeyboardAvoidingView> |
| 441 |
); |
| 442 |
}; |
| 443 |
|
| 444 |
const mapStateToProps = state => { |
| 445 |
return { |
| 446 |
profileData: state.auth.userInfo?.profile || {}, |
| 447 |
defaultCountry: state.common.defaultCountry, |
| 448 |
}; |
| 449 |
}; |
| 450 |
const mapDispatchToProps = dispatch => ({ |
| 451 |
updateUserProfile: data => dispatch(TAKE_TO_ACTIONS.updateUserProfile(data)), |
| 452 |
fetchUserInfo: () => dispatch(TAKE_TO_ACTIONS.fetchUserInfo()), |
| 453 |
}); |
| 454 |
export default connect(mapStateToProps, mapDispatchToProps)(AccountInfo); |
| 455 |
|
| 456 |
const styles = StyleSheet.create({ |
| 457 |
mainContainer: { |
| 458 |
flex: 1, |
| 459 |
backgroundColor: colors.white, |
| 460 |
}, |
| 461 |
CONTAINER: { |
| 462 |
flex: 1, |
| 463 |
backgroundColor: colors.white, |
| 464 |
}, |
| 465 |
BTN_CONTAINER: { |
| 466 |
flexDirection: 'row', |
| 467 |
alignItems: 'center', |
| 468 |
justifyContent: 'space-between', |
| 469 |
// |
| 470 |
}, |
| 471 |
BTN_LOGIN: { |
| 472 |
width: '100%', |
| 473 |
marginTop: mvs(63), |
| 474 |
}, |
| 475 |
SCROLL_CONTAINER: { |
| 476 |
paddingHorizontal: mvs(22), |
| 477 |
paddingTop: mvs(28), |
| 478 |
paddingBottom: mvs(30), |
| 479 |
}, |
| 480 |
INPUT_CONTAINER: { |
| 481 |
paddingTop: mvs(28), |
| 482 |
}, |
| 483 |
PRIVACY_LABEL: { |
| 484 |
textAlign: 'center', |
| 485 |
color: colors.headerTitle, |
| 486 |
fontSize: mvs(11), |
| 487 |
}, |
| 488 |
AVATAR_PROFILE: { |
| 489 |
justifyContent: 'center', |
| 490 |
alignItems: 'center', |
| 491 |
height: mvs(124), |
| 492 |
width: mvs(124), |
| 493 |
borderRadius: mvs(65), |
| 494 |
backgroundColor: colors.white, |
| 495 |
marginBottom: mvs(5), |
| 496 |
|
| 497 |
borderColor: 'rgba(255,255,255,0.9)', |
| 498 |
|
| 499 |
zIndex: 1001, |
| 500 |
|
| 501 |
// overflow: 'hidden', |
| 502 |
}, |
| 503 |
}); |
| 504 |
|
|
| Severity |
Rule |
| Error |
Row 3, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| Warning |
Row 6, Column 3: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 8, Column 3: "'Image' is defined but never used."
no-unused-vars
|
| Error |
Row 15, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 16, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 16, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 20, Column 8: "'DeliveryDisputedModal' is defined but never used."
no-unused-vars
|
| Warning |
Row 22, Column 8: "'DisputeSubmitModal' is defined but never used."
no-unused-vars
|
| Warning |
Row 23, Column 8: "'DisputeSubmitedModal' is defined but never used."
no-unused-vars
|
| Warning |
Row 24, Column 8: "'ProductRejectedModal' is defined but never used."
no-unused-vars
|
| Warning |
Row 27, Column 8: "'StatusWithReasonModal' is defined but never used."
no-unused-vars
|
| Error |
Row 29, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 33, Column 10: "Replace `·route,·fetchActiveChat·` with `route,·fetchActiveChat`"
prettier/prettier
|
| Error |
Row 34, Column 10: "Replace `·order_data,·thread_id·` with `order_data,·thread_id`"
prettier/prettier
|
| Warning |
Row 34, Column 23: "'thread_id' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 37, Column 16: "'setType' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 53, Column 41: "Insert `,`"
prettier/prettier
|
| Warning |
Row 53, Column 41: "Missing trailing comma."
comma-dangle
|
| Error |
Row 58, Column 13: "'client' is not defined."
no-undef
|
| Warning |
Row 58, Column 25: "Strings must use singlequote."
quotes
|
| Error |
Row 61, Column 29: "Insert `;`"
prettier/prettier
|
| Warning |
Row 61, Column 29: "Missing semicolon."
semi
|
| Error |
Row 79, Column 41: "Insert `,`"
prettier/prettier
|
| Warning |
Row 79, Column 41: "Missing trailing comma."
comma-dangle
|
| Error |
Row 85, Column 13: "'client' is not defined."
no-undef
|
| Warning |
Row 85, Column 25: "Strings must use singlequote."
quotes
|
| Error |
Row 89, Column 29: "Insert `;`"
prettier/prettier
|
| Warning |
Row 89, Column 29: "Missing semicolon."
semi
|
| Error |
Row 100, Column 26: "Replace `·style={{·flex:·1,·backgroundColor:·colors.white·` with `⏎······style={{flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 100, Column 34: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Warning |
Row 111, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 111, Column 23: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| Warning |
Row 121, Column 21: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 133, Column 21: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 159, Column 45: "Insert `;`"
prettier/prettier
|
| Warning |
Row 159, Column 45: "Missing semicolon."
semi
|
| Error |
Row 176, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 176, Column 44: "Missing semicolon."
semi
|
| Warning |
Row 192, Column 21: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 215, Column 45: "Insert `;`"
prettier/prettier
|
| Warning |
Row 215, Column 45: "Missing semicolon."
semi
|
| Error |
Row 227, Column 33: "Replace `·color:·colors.typeHeader·` with `color:·colors.typeHeader`"
prettier/prettier
|
| Error |
Row 232, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 232, Column 44: "Missing semicolon."
semi
|
| Warning |
Row 252, Column 23: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 259, Column 27: "Replace `·type·==·'receipt'·?·approveOrDisputeReciept(true)·:·approveOrRejectProduct(true)` with `⏎············type·==·'receipt'⏎··············?·approveOrDisputeReciept(true)⏎··············:·approveOrRejectProduct(true)⏎··········`"
prettier/prettier
|
| Warning |
Row 259, Column 33: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 269, Column 28: "Delete `·`"
prettier/prettier
|
| Error |
Row 286, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 2 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| Error |
Row 3, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| 3 |
import React, { useState } from 'react'; |
| 4 |
import { |
| 5 |
StyleSheet, |
| Warning |
Row 6, Column 3: "'Text' is defined but never used."
no-unused-vars
|
| 6 |
Text, |
| 7 |
View, |
| Warning |
Row 8, Column 3: "'Image' is defined but never used."
no-unused-vars
|
| 8 |
Image, |
| 9 |
TextInput, |
| 10 |
ScrollView, |
| 11 |
KeyboardAvoidingView, |
| 12 |
Platform, |
| 13 |
} from 'react-native'; |
| 14 |
import DropdownAlert from 'react-native-dropdownalert'; |
| Error |
Row 15, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 15 |
import { connect } from 'react-redux'; |
| Error |
Row 16, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 16, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 16 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce'; |
| 17 |
import Buttons from '../../../components/atoms/Button'; |
| 18 |
import ImagePlaceholder from '../../../components/atoms/Placeholder'; |
| 19 |
import Header from '../../../components/molecules/header/header-1x'; |
| Warning |
Row 20, Column 8: "'DeliveryDisputedModal' is defined but never used."
no-unused-vars
|
| 20 |
import DeliveryDisputedModal from '../../../components/molecules/modals/dilivery-disputed-modal'; |
| 21 |
import DisputeModal from '../../../components/molecules/modals/dispute-modal'; |
| Warning |
Row 22, Column 8: "'DisputeSubmitModal' is defined but never used."
no-unused-vars
|
| 22 |
import DisputeSubmitModal from '../../../components/molecules/modals/dispute-submit-modal'; |
| Warning |
Row 23, Column 8: "'DisputeSubmitedModal' is defined but never used."
no-unused-vars
|
| 23 |
import DisputeSubmitedModal from '../../../components/molecules/modals/dispute-submited-modal'; |
| Warning |
Row 24, Column 8: "'ProductRejectedModal' is defined but never used."
no-unused-vars
|
| 24 |
import ProductRejectedModal from '../../../components/molecules/modals/product-rejected-modal'; |
| 25 |
import ReceiptDisputedModal from '../../../components/molecules/modals/receipt-disputed-modal'; |
| 26 |
import StatusModal from '../../../components/molecules/modals/status-modal'; |
| Warning |
Row 27, Column 8: "'StatusWithReasonModal' is defined but never used."
no-unused-vars
|
| 27 |
import StatusWithReasonModal from '../../../components/molecules/modals/status-with-reason-modal'; |
| 28 |
import colors from '../../../config/colors'; |
| Error |
Row 29, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 29 |
import { mvs } from '../../../config/metrices'; |
| 30 |
import Regular from '../../../presentation/typography/regular-text'; |
| 31 |
|
| 32 |
const Approve = props => { |
| Error |
Row 33, Column 10: "Replace `·route,·fetchActiveChat·` with `route,·fetchActiveChat`"
prettier/prettier
|
| 33 |
const { route, fetchActiveChat } = props; |
| Error |
Row 34, Column 10: "Replace `·order_data,·thread_id·` with `order_data,·thread_id`"
prettier/prettier
|
| Warning |
Row 34, Column 23: "'thread_id' is assigned a value but never used."
no-unused-vars
|
| 34 |
const { order_data, thread_id } = route?.params || {}; |
| 35 |
// console.log(order_data); |
| 36 |
const alertRef = React.useRef(); |
| Warning |
Row 37, Column 16: "'setType' is assigned a value but never used."
no-unused-vars
|
| 37 |
const [type, setType] = useState(props.route.params.type); |
| 38 |
const [approveModal, setApproveModal] = useState(false); |
| 39 |
const [disputedModal, setDisputedModal] = useState(false); |
| 40 |
const [rejectedModal, setRejectedModal] = useState(false); |
| 41 |
const [reason, setReason] = React.useState('i am sure about this'); |
| 42 |
const [loadingAppRejProd, setLoadingAppRejProd] = React.useState(false); |
| 43 |
const [loadingAppRejReciep, setLoadingAppReciep] = React.useState(false); |
| 44 |
const [btnName, setBtnName] = React.useState(''); |
| 45 |
|
| 46 |
const approveOrRejectProduct = async (approve = true) => { |
| 47 |
try { |
| 48 |
const payload = { |
| 49 |
id: order_data?.order_id, |
| 50 |
status: approve ? 'order_step_3' : 'order_step_2', |
| 51 |
reason: approve ? '' : reason, |
| 52 |
status_approved: approve ? 1 : 2, |
| Error |
Row 53, Column 41: "Insert `,`"
prettier/prettier
|
| Warning |
Row 53, Column 41: "Missing trailing comma."
comma-dangle
|
| 53 |
thread_id: order_data?.thread_id |
| 54 |
}; |
| 55 |
// setRejectedModal(false) |
| 56 |
approve ? setApproveModal(false) : setRejectedModal(false); |
| 57 |
setLoadingAppRejProd(true); |
| Error |
Row 58, Column 13: "'client' is not defined."
no-undef
|
| Warning |
Row 58, Column 25: "Strings must use singlequote."
quotes
|
| 58 |
await client.post(`update-order-status`, payload); |
| 59 |
await fetchActiveChat(order_data?.thread_id); |
| 60 |
setLoadingAppRejProd(false); |
| Error |
Row 61, Column 29: "Insert `;`"
prettier/prettier
|
| Warning |
Row 61, Column 29: "Missing semicolon."
semi
|
| 61 |
props.navigation.pop() |
| 62 |
} catch (error) { |
| 63 |
setLoadingAppRejProd(false); |
| 64 |
alertRef.current.alertWithType( |
| 65 |
'error', |
| 66 |
'Error', |
| 67 |
UI_API._returnError(error), |
| 68 |
); |
| 69 |
} |
| 70 |
}; |
| 71 |
|
| 72 |
const approveOrDisputeReciept = async (approve = true) => { |
| 73 |
try { |
| 74 |
const payload = { |
| 75 |
id: order_data?.order_id, |
| 76 |
status: approve ? 'order_step_5' : 'order_step_4', |
| 77 |
reason: approve ? '' : reason, |
| 78 |
status_approved: approve ? 1 : 2, |
| Error |
Row 79, Column 41: "Insert `,`"
prettier/prettier
|
| Warning |
Row 79, Column 41: "Missing trailing comma."
comma-dangle
|
| 79 |
thread_id: order_data?.thread_id |
| 80 |
}; |
| 81 |
// setDisputedModal(false) |
| 82 |
approve ? setApproveModal(false) : setDisputedModal(false); |
| 83 |
|
| 84 |
setLoadingAppReciep(true); |
| Error |
Row 85, Column 13: "'client' is not defined."
no-undef
|
| Warning |
Row 85, Column 25: "Strings must use singlequote."
quotes
|
| 85 |
await client.post(`update-order-status`, payload); |
| 86 |
await fetchActiveChat(order_data?.thread_id); |
| 87 |
setLoadingAppReciep(false); |
| 88 |
|
| Error |
Row 89, Column 29: "Insert `;`"
prettier/prettier
|
| Warning |
Row 89, Column 29: "Missing semicolon."
semi
|
| 89 |
props.navigation.pop() |
| 90 |
} catch (error) { |
| 91 |
setLoadingAppReciep(false); |
| 92 |
alertRef.current.alertWithType( |
| 93 |
'error', |
| 94 |
'Error', |
| 95 |
UI_API._returnError(error), |
| 96 |
); |
| 97 |
} |
| 98 |
}; |
| 99 |
return ( |
| Error |
Row 100, Column 26: "Replace `·style={{·flex:·1,·backgroundColor:·colors.white·` with `⏎······style={{flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 100, Column 34: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 100 |
<KeyboardAvoidingView style={{ flex: 1, backgroundColor: colors.white }} |
| 101 |
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}> |
| 102 |
<View style={styles.mainContainer}> |
| 103 |
<View style={styles.header}> |
| 104 |
<Header |
| 105 |
{...props} |
| 106 |
title={order_data?.participant_name} |
| 107 |
allowBackBtn |
| 108 |
userIcon={false} |
| 109 |
/> |
| 110 |
</View> |
| Warning |
Row 111, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 111, Column 23: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| 111 |
<View style={{ flex: 1 }}> |
| 112 |
<ScrollView> |
| 113 |
<View style={styles.imageContainer}> |
| 114 |
<ImagePlaceholder |
| 115 |
bg_img={order_data?.product_image} |
| 116 |
containerStyle={styles.image} |
| 117 |
/> |
| 118 |
</View> |
| 119 |
|
| 120 |
<View style={styles.container}> |
| Warning |
Row 121, Column 21: "Expected '===' and instead saw '=='."
eqeqeq
|
| 121 |
{type == 'receipt' && ( |
| 122 |
<View style={styles.priceMainContainer}> |
| 123 |
<Regular label="Product Price" style={styles.priceTitle} /> |
| 124 |
<View style={styles.priceContainer}> |
| 125 |
<Regular |
| 126 |
label={order_data?.order_reward} |
| 127 |
style={styles.price} |
| 128 |
/> |
| 129 |
</View> |
| 130 |
</View> |
| 131 |
)} |
| 132 |
|
| Warning |
Row 133, Column 21: "Expected '===' and instead saw '=='."
eqeqeq
|
| 133 |
{type == 'product' && ( |
| 134 |
<> |
| 135 |
<View style={styles.reasonMainContainer}> |
| 136 |
<View style={styles.reasonContainer}> |
| 137 |
<View style={styles.reasonHeader}> |
| 138 |
<Regular |
| 139 |
label="Reject Reason" |
| 140 |
style={{ |
| 141 |
...styles.reasonHeaderTitle, |
| 142 |
color: colors.pink, |
| 143 |
}} |
| 144 |
/> |
| 145 |
</View> |
| 146 |
|
| 147 |
<TextInput |
| 148 |
value={reason} |
| 149 |
style={styles.input} |
| 150 |
placeholder="Enter reject comments" |
| 151 |
multiline={true} |
| 152 |
onChangeText={setReason} |
| 153 |
/> |
| 154 |
</View> |
| 155 |
</View> |
| 156 |
<Buttons.ButtonPrimary |
| 157 |
onClick={() => { |
| 158 |
// approveOrRejectProduct(false); |
| Error |
Row 159, Column 45: "Insert `;`"
prettier/prettier
|
| Warning |
Row 159, Column 45: "Missing semicolon."
semi
|
| 159 |
setRejectedModal(true) |
| 160 |
setBtnName('reject'); |
| 161 |
}} |
| 162 |
loading={btnName === 'rejct' && loadingAppRejProd} |
| 163 |
disabled={loadingAppRejProd} |
| 164 |
loaderColor={colors.white} |
| 165 |
title={'Reject Product'} |
| 166 |
style={{ |
| 167 |
marginTop: mvs(15), |
| 168 |
backgroundColor: colors.pink, |
| 169 |
height: mvs(52), |
| 170 |
}} |
| 171 |
/> |
| 172 |
|
| 173 |
<Buttons.ButtonPrimary |
| 174 |
onClick={() => { |
| 175 |
// approveOrRejectProduct(true); |
| Error |
Row 176, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 176, Column 44: "Missing semicolon."
semi
|
| 176 |
setApproveModal(true) |
| 177 |
setBtnName('accept'); |
| 178 |
}} |
| 179 |
loading={btnName === 'accept' && loadingAppRejProd} |
| 180 |
disabled={loadingAppRejProd} |
| 181 |
loaderColor={colors.white} |
| 182 |
title={'Approve Product'} |
| 183 |
style={{ |
| 184 |
marginTop: mvs(10), |
| 185 |
backgroundColor: colors.green, |
| 186 |
height: mvs(52), |
| 187 |
}} |
| 188 |
/> |
| 189 |
</> |
| 190 |
)} |
| 191 |
|
| Warning |
Row 192, Column 21: "Expected '===' and instead saw '=='."
eqeqeq
|
| 192 |
{type == 'receipt' && ( |
| 193 |
<> |
| 194 |
<View style={styles.reasonMainContainer}> |
| 195 |
<View style={styles.reasonContainer}> |
| 196 |
<View style={styles.reasonHeader}> |
| 197 |
<Regular |
| 198 |
label="Dispute Reason" |
| 199 |
style={styles.reasonHeaderTitle} |
| 200 |
/> |
| 201 |
</View> |
| 202 |
|
| 203 |
<TextInput |
| 204 |
value={reason} |
| 205 |
style={styles.input} |
| 206 |
multiline={true} |
| 207 |
onChangeText={setReason} |
| 208 |
/> |
| 209 |
</View> |
| 210 |
</View> |
| 211 |
|
| 212 |
<Buttons.ButtonPrimary |
| 213 |
onClick={() => { |
| 214 |
// approveOrDisputeReciept(false); |
| Error |
Row 215, Column 45: "Insert `;`"
prettier/prettier
|
| Warning |
Row 215, Column 45: "Missing semicolon."
semi
|
| 215 |
setDisputedModal(true) |
| 216 |
setBtnName('reject'); |
| 217 |
}} |
| 218 |
title={'Dispute Receipt'} |
| 219 |
loading={btnName === 'reject' && loadingAppRejReciep} |
| 220 |
disabled={loadingAppRejReciep} |
| 221 |
loaderColor={colors.white} |
| 222 |
style={{ |
| 223 |
marginTop: mvs(15), |
| 224 |
backgroundColor: colors.disputes, |
| 225 |
height: mvs(52), |
| 226 |
}} |
| Error |
Row 227, Column 33: "Replace `·color:·colors.typeHeader·` with `color:·colors.typeHeader`"
prettier/prettier
|
| 227 |
textStyle={{ color: colors.typeHeader }} |
| 228 |
/> |
| 229 |
<Buttons.ButtonPrimary |
| 230 |
onClick={() => { |
| 231 |
// approveOrDisputeReciept(true); |
| Error |
Row 232, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 232, Column 44: "Missing semicolon."
semi
|
| 232 |
setApproveModal(true) |
| 233 |
setBtnName('accept'); |
| 234 |
}} |
| 235 |
title={'Approve Receipt'} |
| 236 |
loading={btnName === 'accept' && loadingAppRejReciep} |
| 237 |
disabled={loadingAppRejReciep} |
| 238 |
loaderColor={colors.white} |
| 239 |
style={{ |
| 240 |
marginTop: mvs(10), |
| 241 |
backgroundColor: colors.green, |
| 242 |
height: mvs(52), |
| 243 |
}} |
| 244 |
/> |
| 245 |
</> |
| 246 |
)} |
| 247 |
</View> |
| 248 |
</ScrollView> |
| 249 |
</View> |
| 250 |
<StatusModal |
| 251 |
visible={approveModal} |
| Warning |
Row 252, Column 23: "Expected '===' and instead saw '=='."
eqeqeq
|
| 252 |
title={type == 'receipt' ? 'Approve Receipt' : 'Approve Product'} |
| 253 |
buttonTitle="Confirm" |
| 254 |
name={order_data?.participant_name} |
| 255 |
fromApprove |
| 256 |
mainButton |
| 257 |
endButton |
| 258 |
endButtonTitle="Cancel" |
| Error |
Row 259, Column 27: "Replace `·type·==·'receipt'·?·approveOrDisputeReciept(true)·:·approveOrRejectProduct(true)` with `⏎············type·==·'receipt'⏎··············?·approveOrDisputeReciept(true)⏎··············:·approveOrRejectProduct(true)⏎··········`"
prettier/prettier
|
| Warning |
Row 259, Column 33: "Expected '===' and instead saw '=='."
eqeqeq
|
| 259 |
onConfirm={() => type == 'receipt' ? approveOrDisputeReciept(true) : approveOrRejectProduct(true)} |
| 260 |
onClose={() => setApproveModal(false)} |
| 261 |
/> |
| 262 |
<ReceiptDisputedModal |
| 263 |
visible={disputedModal} |
| 264 |
dispute |
| 265 |
reason={reason} |
| 266 |
name={order_data?.participant_name} |
| 267 |
onClose={() => setDisputedModal(false)} |
| 268 |
onSubmit={() => approveOrDisputeReciept(false)} |
| Error |
Row 269, Column 28: "Delete `·`"
prettier/prettier
|
| 269 |
onAttach={() => { }} |
| 270 |
/> |
| 271 |
|
| 272 |
{/* <ProductRejectedModal |
| 273 |
title = "Reject Product" |
| 274 |
visible = {rejectedModal} |
| 275 |
onClose = {() => setRejectedModal(false)} |
| 276 |
/> */} |
| 277 |
<DisputeModal |
| 278 |
visible={rejectedModal} |
| 279 |
onClose={() => setRejectedModal(false)} |
| 280 |
onConfirm={() => approveOrRejectProduct(false)} |
| 281 |
reject |
| 282 |
reason={reason} |
| 283 |
name={order_data?.participant_name} |
| 284 |
title="Reject Product" |
| 285 |
/> |
| Error |
Row 286, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| 286 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 287 |
</View> |
| 288 |
</KeyboardAvoidingView> |
| 289 |
); |
| 290 |
}; |
| 291 |
const mapDispatchToProps = dispatch => ({ |
| 292 |
fetchActiveChat: thread_id => |
| 293 |
dispatch(TAKE_TO_ACTIONS.fetchActiveChat(thread_id)), |
| 294 |
}); |
| 295 |
export default connect(null, mapDispatchToProps)(Approve); |
| 296 |
|
| 297 |
const styles = StyleSheet.create({ |
| 298 |
mainContainer: { |
| 299 |
flex: 1, |
| 300 |
backgroundColor: colors.white, |
| 301 |
}, |
| 302 |
header: { |
| 303 |
backgroundColor: colors.white, |
| 304 |
}, |
| 305 |
imageContainer: { |
| 306 |
width: '100%', |
| 307 |
backgroundColor: colors.white, |
| 308 |
borderBottomLeftRadius: mvs(20), |
| 309 |
borderBottomRightRadius: mvs(20), |
| 310 |
paddingBottom: mvs(40), |
| 311 |
justifyContent: 'center', |
| 312 |
alignItems: 'center', |
| 313 |
//borderWidth:1 |
| 314 |
}, |
| 315 |
image: { |
| 316 |
height: mvs(240), |
| 317 |
width: mvs(191), |
| 318 |
}, |
| 319 |
container: { |
| 320 |
flex: 1, |
| 321 |
paddingHorizontal: mvs(22), |
| 322 |
paddingBottom: mvs(40), |
| 323 |
}, |
| 324 |
priceMainContainer: { |
| 325 |
width: '100%', |
| 326 |
//borderWidth : 1, |
| 327 |
marginTop: mvs(20), |
| 328 |
flexDirection: 'row', |
| 329 |
justifyContent: 'space-between', |
| 330 |
alignItems: 'center', |
| 331 |
}, |
| 332 |
priceTitle: { |
| 333 |
fontSize: mvs(15), |
| 334 |
color: colors.typeHeader, |
| 335 |
}, |
| 336 |
priceContainer: { |
| 337 |
height: mvs(38), |
| 338 |
width: mvs(161), |
| 339 |
borderRadius: mvs(10), |
| 340 |
backgroundColor: colors.secondary, |
| 341 |
justifyContent: 'center', |
| 342 |
paddingLeft: mvs(11), |
| 343 |
}, |
| 344 |
price: { |
| 345 |
fontSize: mvs(18), |
| 346 |
color: colors.typeHeader, |
| 347 |
}, |
| 348 |
reasonMainContainer: { |
| 349 |
//height : mvs(114), |
| 350 |
width: '100%', |
| 351 |
marginTop: mvs(180), |
| 352 |
//borderWidth : 1, |
| 353 |
justifyContent: 'flex-end', |
| 354 |
}, |
| 355 |
reasonContainer: { |
| 356 |
//height : mvs(99), |
| 357 |
width: '100%', |
| 358 |
//borderWidth : 1, |
| 359 |
backgroundColor: colors.secondary, |
| 360 |
borderRadius: mvs(15), |
| 361 |
alignItems: 'center', |
| 362 |
paddingBottom: mvs(10), |
| 363 |
marginTop: mvs(16), |
| 364 |
paddingHorizontal: mvs(22), |
| 365 |
}, |
| 366 |
reasonHeader: { |
| 367 |
height: mvs(31), |
| 368 |
width: mvs(169), |
| 369 |
backgroundColor: colors.white, |
| 370 |
borderRadius: mvs(12), |
| 371 |
position: 'absolute', |
| 372 |
top: mvs(-31 / 2), |
| 373 |
justifyContent: 'center', |
| 374 |
alignItems: 'center', |
| 375 |
}, |
| 376 |
reasonHeaderTitle: { |
| 377 |
fontSize: mvs(14), |
| 378 |
color: colors.disputes, |
| 379 |
}, |
| 380 |
input: { |
| 381 |
marginTop: mvs(30), |
| 382 |
width: '100%', |
| 383 |
minHeight: mvs(60), |
| 384 |
padding: 0, |
| 385 |
color: colors.typeHeader, |
| 386 |
textAlignVertical: 'top', |
| 387 |
}, |
| 388 |
}); |
| 389 |
|
|
| Severity |
Rule |
| Error |
Row 1, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| Warning |
Row 2, Column 21: "'Text' is defined but never used."
no-unused-vars
|
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 5, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| Warning |
Row 9, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| Error |
Row 14, Column 18: "Replace `(props)·=>·{⏎` with `props·=>·{`"
prettier/prettier
|
| Error |
Row 16, Column 40: "Insert `;`"
prettier/prettier
|
| Warning |
Row 16, Column 40: "Missing semicolon."
semi
|
| Error |
Row 20, Column 58: "Insert `·`"
prettier/prettier
|
| Warning |
Row 24, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 24, Column 25: "Operator '&&' must be spaced."
space-infix-ops
|
| Error |
Row 24, Column 27: "Insert `·(⏎··············`"
prettier/prettier
|
| Error |
Row 25, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 26, Column 15: "Insert `····`"
prettier/prettier
|
| Warning |
Row 26, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 27, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 28, Column 17: "Insert `····`"
prettier/prettier
|
| Error |
Row 29, Column 17: "Insert `····`"
prettier/prettier
|
| Error |
Row 30, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| Error |
Row 31, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 32, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| Error |
Row 33, Column 15: "Insert `····`"
prettier/prettier
|
| Error |
Row 34, Column 1: "Replace `················` with `····················`"
prettier/prettier
|
| Error |
Row 35, Column 17: "Insert `····`"
prettier/prettier
|
| Warning |
Row 35, Column 24: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 36, Column 1: "Replace `··················` with `······················`"
prettier/prettier
|
| Error |
Row 37, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 38, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 39, Column 17: "Insert `····`"
prettier/prettier
|
| Error |
Row 40, Column 1: "Insert `····`"
prettier/prettier
|
| Warning |
Row 40, Column 26: "Strings must use singlequote."
quotes
|
| Error |
Row 41, Column 1: "Replace `················` with `····················`"
prettier/prettier
|
| Error |
Row 42, Column 15: "Insert `····`"
prettier/prettier
|
| Error |
Row 43, Column 1: "Replace `············` with `················`"
prettier/prettier
|
| Error |
Row 44, Column 13: "Insert `····`"
prettier/prettier
|
| Error |
Row 45, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| Warning |
Row 45, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 46, Column 15: "Insert `····`"
prettier/prettier
|
| Error |
Row 47, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 48, Column 15: "Insert `····`"
prettier/prettier
|
| Error |
Row 49, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 50, Column 13: "Replace `>}` with `··>`"
prettier/prettier
|
| Warning |
Row 51, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 51, Column 13: "Insert `)}⏎`"
prettier/prettier
|
| Warning |
Row 52, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 52, Column 28: "Insert `(⏎··············`"
prettier/prettier
|
| Error |
Row 53, Column 15: "Insert `··`"
prettier/prettier
|
| Warning |
Row 53, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 54, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 55, Column 17: "Insert `··`"
prettier/prettier
|
| Error |
Row 56, Column 17: "Insert `··`"
prettier/prettier
|
| Error |
Row 57, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 58, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 59, Column 1: "Replace `··············highlightTextStyle·=·{{fontSize·:·mvs(13)}}` with `················highlightTextStyle={{fontSize:·mvs(13)}}>`"
prettier/prettier
|
| Error |
Row 60, Column 4: "Replace `···········>⏎··············` with `·············`"
prettier/prettier
|
| Error |
Row 62, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 63, Column 17: "Insert `··`"
prettier/prettier
|
| Warning |
Row 63, Column 24: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 64, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 65, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 66, Column 19: "Insert `··`"
prettier/prettier
|
| Error |
Row 67, Column 17: "Insert `··`"
prettier/prettier
|
| Error |
Row 68, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 68, Column 26: "Strings must use singlequote."
quotes
|
| Error |
Row 69, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 70, Column 1: "Replace `············}` with `··············`"
prettier/prettier
|
| Error |
Row 71, Column 1: "Insert `············)}`"
prettier/prettier
|
| Warning |
Row 73, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 73, Column 28: "Insert `(⏎··············`"
prettier/prettier
|
| Error |
Row 74, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 74, Column 15: "Empty components are self-closing"
react/self-closing-comp
|
| Error |
Row 75, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| Warning |
Row 75, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 76, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 77, Column 1: "Replace `················` with `····················`"
prettier/prettier
|
| Error |
Row 78, Column 17: "Insert `····`"
prettier/prettier
|
| Error |
Row 79, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| Error |
Row 80, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 81, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| Error |
Row 82, Column 1: "Replace `··············highlightTextStyle={{fontSize·:·mvs(13)}}⏎··············>⏎············` with `··················highlightTextStyle={{fontSize:·mvs(13)}}>`"
prettier/prettier
|
| Error |
Row 85, Column 13: "Insert `····`"
prettier/prettier
|
| Error |
Row 86, Column 1: "Insert `····`"
prettier/prettier
|
| Warning |
Row 86, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 87, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| Error |
Row 88, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 89, Column 15: "Insert `····`"
prettier/prettier
|
| Error |
Row 90, Column 1: "Replace `············` with `················`"
prettier/prettier
|
| Error |
Row 91, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 92, Column 13: "Replace `}⏎` with `)}`"
prettier/prettier
|
| Error |
Row 95, Column 1: "Replace `⏎············{state·==·3·&&·` with `············{state·==·3·&&·(⏎··············`"
prettier/prettier
|
| Warning |
Row 96, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 97, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Warning |
Row 97, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 98, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 99, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 100, Column 17: "Insert `··`"
prettier/prettier
|
| Error |
Row 101, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 102, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 103, Column 1: "Replace `··············highlightTextStyle·=·{{fontSize·:·mvs(13)}}` with `················highlightTextStyle={{fontSize:·mvs(13)}}>`"
prettier/prettier
|
| Error |
Row 104, Column 15: "Delete `>⏎············`"
prettier/prettier
|
| Error |
Row 106, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 107, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 107, Column 24: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 108, Column 19: "Insert `··`"
prettier/prettier
|
| Error |
Row 109, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 110, Column 1: "Replace `··················` with `····················`"
prettier/prettier
|
| Error |
Row 111, Column 17: "Insert `··`"
prettier/prettier
|
| Error |
Row 112, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| Warning |
Row 112, Column 26: "Strings must use singlequote."
quotes
|
| Error |
Row 113, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 114, Column 1: "Replace `············}` with `··············`"
prettier/prettier
|
| Error |
Row 115, Column 1: "Insert `············)}`"
prettier/prettier
|
| Warning |
Row 117, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 117, Column 28: "Insert `(⏎··············`"
prettier/prettier
|
| Error |
Row 118, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 119, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| Warning |
Row 119, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 120, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 121, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 122, Column 17: "Insert `····`"
prettier/prettier
|
| Error |
Row 123, Column 15: "Insert `····`"
prettier/prettier
|
| Error |
Row 124, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| Error |
Row 125, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 126, Column 1: "Replace `··············highlightTextStyle·=·{{fontSize·:·mvs(13)}}` with `··················highlightTextStyle={{fontSize:·mvs(13)}}>`"
prettier/prettier
|
| Error |
Row 127, Column 14: "Delete `·>⏎·········`"
prettier/prettier
|
| Error |
Row 129, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 130, Column 17: "Insert `····`"
prettier/prettier
|
| Warning |
Row 130, Column 24: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 131, Column 1: "Replace `··················` with `······················`"
prettier/prettier
|
| Error |
Row 132, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 133, Column 1: "Replace `··················` with `······················`"
prettier/prettier
|
| Error |
Row 134, Column 17: "Insert `····`"
prettier/prettier
|
| Error |
Row 135, Column 1: "Replace `················` with `····················`"
prettier/prettier
|
| Warning |
Row 135, Column 26: "Strings must use singlequote."
quotes
|
| Error |
Row 136, Column 15: "Insert `····`"
prettier/prettier
|
| Error |
Row 137, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 138, Column 13: "Insert `····`"
prettier/prettier
|
| Error |
Row 139, Column 1: "Insert `····`"
prettier/prettier
|
| Warning |
Row 139, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 140, Column 15: "Insert `····`"
prettier/prettier
|
| Error |
Row 141, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 142, Column 15: "Insert `····`"
prettier/prettier
|
| Error |
Row 143, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 144, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 145, Column 13: "Replace `}⏎` with `)}`"
prettier/prettier
|
| Warning |
Row 148, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 148, Column 28: "Insert `(⏎··············`"
prettier/prettier
|
| Error |
Row 149, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 150, Column 1: "Insert `····`"
prettier/prettier
|
| Warning |
Row 150, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 151, Column 17: "Insert `····`"
prettier/prettier
|
| Error |
Row 152, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 153, Column 17: "Insert `····`"
prettier/prettier
|
| Error |
Row 154, Column 15: "Insert `····`"
prettier/prettier
|
| Error |
Row 155, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| Error |
Row 156, Column 15: "Insert `····`"
prettier/prettier
|
| Error |
Row 157, Column 1: "Replace `··············highlightTextStyle·=·{{fontSize·:·mvs(13)}}` with `··················highlightTextStyle={{fontSize:·mvs(13)}}>`"
prettier/prettier
|
| Error |
Row 158, Column 1: "Replace `··············>⏎` with `····`"
prettier/prettier
|
| Error |
Row 160, Column 17: "Insert `····`"
prettier/prettier
|
| Error |
Row 161, Column 17: "Insert `····`"
prettier/prettier
|
| Warning |
Row 161, Column 24: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 162, Column 1: "Replace `··················` with `······················`"
prettier/prettier
|
| Error |
Row 163, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 164, Column 1: "Replace `··················` with `······················`"
prettier/prettier
|
| Error |
Row 165, Column 17: "Insert `····`"
prettier/prettier
|
| Error |
Row 166, Column 1: "Insert `····`"
prettier/prettier
|
| Warning |
Row 166, Column 26: "Strings must use singlequote."
quotes
|
| Error |
Row 167, Column 15: "Insert `····`"
prettier/prettier
|
| Error |
Row 168, Column 1: "Replace `············` with `················`"
prettier/prettier
|
| Error |
Row 169, Column 13: "Insert `····`"
prettier/prettier
|
| Error |
Row 170, Column 1: "Insert `····`"
prettier/prettier
|
| Warning |
Row 170, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 171, Column 15: "Insert `····`"
prettier/prettier
|
| Error |
Row 172, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 173, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| Error |
Row 174, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 175, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 176, Column 13: "Replace `}⏎` with `)}`"
prettier/prettier
|
| Warning |
Row 179, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 179, Column 28: "Insert `(⏎··············`"
prettier/prettier
|
| Error |
Row 180, Column 1: "Insert `····`"
prettier/prettier
|
| Warning |
Row 180, Column 13: "Empty components are self-closing"
react/self-closing-comp
|
| Error |
Row 181, Column 1: "Insert `····`"
prettier/prettier
|
| Warning |
Row 181, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 182, Column 17: "Insert `····`"
prettier/prettier
|
| Error |
Row 183, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 184, Column 1: "Replace `················` with `····················`"
prettier/prettier
|
| Error |
Row 185, Column 15: "Insert `····`"
prettier/prettier
|
| Error |
Row 186, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| Error |
Row 187, Column 15: "Insert `····`"
prettier/prettier
|
| Error |
Row 188, Column 1: "Replace `··············highlightTextStyle·=·{{fontSize·:·mvs(13)}}⏎··············>⏎·············` with `··················highlightTextStyle={{fontSize:·mvs(13)}}>`"
prettier/prettier
|
| Error |
Row 191, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 192, Column 15: "Replace `style={{textAlign:·'center',·fontSize:·mvs(30),·color·:·colors.green,·marginTop·:·mvs(28)}}` with `····style={{⏎····················textAlign:·'center',⏎····················fontSize:·mvs(30),⏎····················color:·colors.green,⏎····················marginTop:·mvs(28),`"
prettier/prettier
|
| Warning |
Row 192, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 193, Column 15: "Replace `label={` with `····}}`"
prettier/prettier
|
| Error |
Row 194, Column 17: "Replace `'US$·90'` with `··label={'US$·90'}`"
prettier/prettier
|
| Error |
Row 195, Column 5: "Delete `··········}⏎`"
prettier/prettier
|
| Error |
Row 197, Column 13: "Replace `prettier/prettier
|
| Warning |
Row 197, Column 13: "Empty components are self-closing"
react/self-closing-comp
|
| Warning |
Row 197, Column 22: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 198, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 199, Column 1: "Replace `··············` with `····················`"
prettier/prettier
|
| Error |
Row 200, Column 1: "Insert `······`"
prettier/prettier
|
| Error |
Row 201, Column 1: "Replace `··············` with `····················`"
prettier/prettier
|
| Error |
Row 202, Column 13: "Insert `······`"
prettier/prettier
|
| Error |
Row 203, Column 1: "Replace `············content={'was·credited·to·your·balance.'}⏎············` with `··················content={'was·credited·to·your·balance.'}`"
prettier/prettier
|
| Error |
Row 205, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 206, Column 13: "Replace `}⏎` with `)}`"
prettier/prettier
|
| Error |
Row 210, Column 14: "Replace `·style·=·{{position·:·'absolute',·alignSelf·:·'center',·width·:·'100%',·bottom·:·mvs(40)` with `⏎··········style={{⏎············position:·'absolute',⏎············alignSelf:·'center',⏎············width:·'100%',⏎············bottom:·mvs(40),⏎··········`"
prettier/prettier
|
| Warning |
Row 210, Column 24: "Inline style: { position: 'absolute', alignSelf: 'center', width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 211, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 211, Column 40: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 214, Column 9: "Replace `{` with `··{⏎············`"
prettier/prettier
|
| Error |
Row 215, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 216, Column 15: "Replace `if(state·<·6)` with `··if·(state·<·6)·`"
prettier/prettier
|
| Warning |
Row 216, Column 15: "Expected space(s) after "if"."
keyword-spacing
|
| Error |
Row 217, Column 1: "Replace `················setState(state·+·1)` with `··················setState(state·+·1);`"
prettier/prettier
|
| Warning |
Row 217, Column 36: "Missing semicolon."
semi
|
| Error |
Row 218, Column 1: "Replace `··············}⏎··············else` with `················}·else·`"
prettier/prettier
|
| Warning |
Row 219, Column 15: "Expected space(s) after "else"."
keyword-spacing
|
| Error |
Row 220, Column 1: "Replace `················setState(0)` with `··················setState(0);`"
prettier/prettier
|
| Warning |
Row 220, Column 28: "Missing semicolon."
semi
|
| Error |
Row 221, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 222, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 223, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 224, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 225, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Warning |
Row 225, Column 20: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 226, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 227, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 228, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 229, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 230, Column 11: "Replace `/>` with `··/>⏎··········`"
prettier/prettier
|
| Error |
Row 231, Column 1: "Replace `·········props.navigation.navigate('chat')·` with `···········props.navigation.navigate('chat')`"
prettier/prettier
|
| Warning |
Row 231, Column 36: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 233, Column 1: "Replace `········title·=·"Send·a·Product·picture"·style·=·{{marginTop·:·mvs(10)}}` with `············title="Send·a·Product·picture"⏎············style={{marginTop:·mvs(10)}}⏎··········`"
prettier/prettier
|
| Line |
Source |
| Error |
Row 1, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| 1 |
import React, { useState } from 'react'; |
| Warning |
Row 2, Column 21: "'Text' is defined but never used."
no-unused-vars
|
| 2 |
import {StyleSheet, Text, View} from 'react-native'; |
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 3 |
import { mvs } from '../../../config/metrices'; |
| 4 |
import Buttons from '../../../components/atoms/Button'; |
| Warning |
Row 5, Column 8: "'CustomSwitch' is defined but never used."
no-unused-vars
|
| 5 |
import CustomSwitch from '../../../components/atoms/Switch'; |
| 6 |
import DualText from '../../../components/molecules/dual-text/dual-text'; |
| 7 |
import Header from '../../../components/molecules/header/header-1.5x'; |
| 8 |
import ApprovedSettingCard from '../../../components/molecules/setting_card/approved-setting-card'; |
| Warning |
Row 9, Column 8: "'SettingCard' is defined but never used."
no-unused-vars
|
| 9 |
import SettingCard from '../../../components/molecules/setting_card/setting-card'; |
| 10 |
import colors from '../../../config/colors'; |
| 11 |
import Medium from '../../../presentation/typography/medium-text'; |
| 12 |
import Regular from '../../../presentation/typography/regular-text'; |
| 13 |
|
| Error |
Row 14, Column 18: "Replace `(props)·=>·{⏎` with `props·=>·{`"
prettier/prettier
|
| 14 |
const Approved = (props) => { |
| 15 |
|
| Error |
Row 16, Column 40: "Insert `;`"
prettier/prettier
|
| Warning |
Row 16, Column 40: "Missing semicolon."
semi
|
| 16 |
const [state, setState] = useState(0) |
| 17 |
|
| 18 |
return ( |
| 19 |
<View style={styles.mainContainer}> |
| Error |
Row 20, Column 58: "Insert `·`"
prettier/prettier
|
| 20 |
<Header {...props} title="Zenab Thaqi" allowBackBtn/> |
| 21 |
<View style={styles.container}> |
| 22 |
<ApprovedSettingCard heading="Product Accepted"> |
| 23 |
<View style={{marginVertical: mvs(20)}}> |
| Warning |
Row 24, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 24, Column 25: "Operator '&&' must be spaced."
space-infix-ops
|
| Error |
Row 24, Column 27: "Insert `·(⏎··············`"
prettier/prettier
|
| 24 |
{state == 0 &&<> |
| Error |
Row 25, Column 1: "Insert `··`"
prettier/prettier
|
| 25 |
<DualText |
| Error |
Row 26, Column 15: "Insert `····`"
prettier/prettier
|
| Warning |
Row 26, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 26 |
style={{ |
| Error |
Row 27, Column 1: "Insert `····`"
prettier/prettier
|
| 27 |
textAlign: 'center', |
| Error |
Row 28, Column 17: "Insert `····`"
prettier/prettier
|
| 28 |
color: colors.headerTitle, |
| Error |
Row 29, Column 17: "Insert `····`"
prettier/prettier
|
| 29 |
fontSize: mvs(13), |
| Error |
Row 30, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| 30 |
}} |
| Error |
Row 31, Column 1: "Insert `····`"
prettier/prettier
|
| 31 |
content={'Congratulations'} |
| Error |
Row 32, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| 32 |
highlightText={'Ralph Wakim'}> |
| Error |
Row 33, Column 15: "Insert `····`"
prettier/prettier
|
| 33 |
<DualText |
| Error |
Row 34, Column 1: "Replace `················` with `····················`"
prettier/prettier
|
| 34 |
highlightTextStyle={{color: colors.green}} |
| Error |
Row 35, Column 17: "Insert `····`"
prettier/prettier
|
| Warning |
Row 35, Column 24: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 35 |
style={{ |
| Error |
Row 36, Column 1: "Replace `··················` with `······················`"
prettier/prettier
|
| 36 |
textAlign: 'center', |
| Error |
Row 37, Column 1: "Insert `····`"
prettier/prettier
|
| 37 |
color: colors.headerTitle, |
| Error |
Row 38, Column 1: "Insert `····`"
prettier/prettier
|
| 38 |
fontSize: mvs(13), |
| Error |
Row 39, Column 17: "Insert `····`"
prettier/prettier
|
| 39 |
}} |
| Error |
Row 40, Column 1: "Insert `····`"
prettier/prettier
|
| Warning |
Row 40, Column 26: "Strings must use singlequote."
quotes
|
| 40 |
content={`,\nyou just closed a deal for a`} |
| Error |
Row 41, Column 1: "Replace `················` with `····················`"
prettier/prettier
|
| 41 |
highlightText="US$ 90 reward" |
| Error |
Row 42, Column 15: "Insert `····`"
prettier/prettier
|
| 42 |
/> |
| Error |
Row 43, Column 1: "Replace `············` with `················`"
prettier/prettier
|
| 43 |
</DualText> |
| Error |
Row 44, Column 13: "Insert `····`"
prettier/prettier
|
| 44 |
<Regular |
| Error |
Row 45, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| Warning |
Row 45, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 45 |
style={{textAlign: 'center', fontSize: mvs(13)}} |
| Error |
Row 46, Column 15: "Insert `····`"
prettier/prettier
|
| 46 |
label={ |
| Error |
Row 47, Column 1: "Insert `····`"
prettier/prettier
|
| 47 |
'\nPlease proceed to sending the buyer pictures of their product as soon as possible.' |
| Error |
Row 48, Column 15: "Insert `····`"
prettier/prettier
|
| 48 |
} |
| Error |
Row 49, Column 1: "Insert `····`"
prettier/prettier
|
| 49 |
/> |
| Error |
Row 50, Column 13: "Replace `>}` with `··>`"
prettier/prettier
|
| 50 |
</>} |
| Warning |
Row 51, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 51, Column 13: "Insert `)}⏎`"
prettier/prettier
|
| 51 |
|
| Warning |
Row 52, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 52, Column 28: "Insert `(⏎··············`"
prettier/prettier
|
| 52 |
{state == 1 && <DualText |
| Error |
Row 53, Column 15: "Insert `··`"
prettier/prettier
|
| Warning |
Row 53, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 53 |
style={{ |
| Error |
Row 54, Column 1: "Insert `··`"
prettier/prettier
|
| 54 |
textAlign: 'center', |
| Error |
Row 55, Column 17: "Insert `··`"
prettier/prettier
|
| 55 |
color: colors.primary, |
| Error |
Row 56, Column 17: "Insert `··`"
prettier/prettier
|
| 56 |
fontSize: mvs(13), |
| Error |
Row 57, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 57 |
}} |
| Error |
Row 58, Column 1: "Insert `··`"
prettier/prettier
|
| 58 |
highlightText={'Thank you for contacting us.'} |
| Error |
Row 59, Column 1: "Replace `··············highlightTextStyle·=·{{fontSize·:·mvs(13)}}` with `················highlightTextStyle={{fontSize:·mvs(13)}}>`"
prettier/prettier
|
| 59 |
highlightTextStyle = {{fontSize : mvs(13)}} |
| Error |
Row 60, Column 4: "Replace `···········>⏎··············` with `·············`"
prettier/prettier
|
| 60 |
> |
| 61 |
<DualText |
| Error |
Row 62, Column 1: "Insert `··`"
prettier/prettier
|
| 62 |
highlightTextStyle={{color: colors.green}} |
| Error |
Row 63, Column 17: "Insert `··`"
prettier/prettier
|
| Warning |
Row 63, Column 24: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 63 |
style={{ |
| Error |
Row 64, Column 1: "Insert `··`"
prettier/prettier
|
| 64 |
textAlign: 'center', |
| Error |
Row 65, Column 1: "Insert `··`"
prettier/prettier
|
| 65 |
color: colors.headerTitle, |
| Error |
Row 66, Column 19: "Insert `··`"
prettier/prettier
|
| 66 |
fontSize: mvs(13), |
| Error |
Row 67, Column 17: "Insert `··`"
prettier/prettier
|
| 67 |
}} |
| Error |
Row 68, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 68, Column 26: "Strings must use singlequote."
quotes
|
| 68 |
content={`\nWe will investigate your dispute and get back to you as soon as possible.`} |
| Error |
Row 69, Column 15: "Insert `··`"
prettier/prettier
|
| 69 |
/> |
| Error |
Row 70, Column 1: "Replace `············}` with `··············`"
prettier/prettier
|
| 70 |
</DualText>} |
| Error |
Row 71, Column 1: "Insert `············)}`"
prettier/prettier
|
| 71 |
|
| 72 |
|
| Warning |
Row 73, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 73, Column 28: "Insert `(⏎··············`"
prettier/prettier
|
| 73 |
{state == 2 && <> |
| Error |
Row 74, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 74, Column 15: "Empty components are self-closing"
react/self-closing-comp
|
| 74 |
<DualText |
| Error |
Row 75, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| Warning |
Row 75, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 75 |
style={{ |
| Error |
Row 76, Column 1: "Insert `····`"
prettier/prettier
|
| 76 |
textAlign: 'center', |
| Error |
Row 77, Column 1: "Replace `················` with `····················`"
prettier/prettier
|
| 77 |
color: colors.headerTitle, |
| Error |
Row 78, Column 17: "Insert `····`"
prettier/prettier
|
| 78 |
fontSize: mvs(13), |
| Error |
Row 79, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| 79 |
}} |
| Error |
Row 80, Column 1: "Insert `····`"
prettier/prettier
|
| 80 |
content={'Thank you for Trusting'} |
| Error |
Row 81, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| 81 |
highlightText={'Taketo.'} |
| Error |
Row 82, Column 1: "Replace `··············highlightTextStyle={{fontSize·:·mvs(13)}}⏎··············>⏎············` with `··················highlightTextStyle={{fontSize:·mvs(13)}}>`"
prettier/prettier
|
| 82 |
highlightTextStyle={{fontSize : mvs(13)}} |
| 83 |
> |
| 84 |
</DualText> |
| Error |
Row 85, Column 13: "Insert `····`"
prettier/prettier
|
| 85 |
<Regular |
| Error |
Row 86, Column 1: "Insert `····`"
prettier/prettier
|
| Warning |
Row 86, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 86 |
style={{textAlign: 'center', fontSize: mvs(13)}} |
| Error |
Row 87, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| 87 |
label={ |
| Error |
Row 88, Column 1: "Insert `····`"
prettier/prettier
|
| 88 |
'\nPlease proceed to sending the buyer pictures of their product as soon as possible.' |
| Error |
Row 89, Column 15: "Insert `····`"
prettier/prettier
|
| 89 |
} |
| Error |
Row 90, Column 1: "Replace `············` with `················`"
prettier/prettier
|
| 90 |
/> |
| Error |
Row 91, Column 1: "Insert `··`"
prettier/prettier
|
| 91 |
</> |
| Error |
Row 92, Column 13: "Replace `}⏎` with `)}`"
prettier/prettier
|
| 92 |
} |
| 93 |
|
| 94 |
|
| Error |
Row 95, Column 1: "Replace `⏎············{state·==·3·&&·` with `············{state·==·3·&&·(⏎··············`"
prettier/prettier
|
| 95 |
|
| Warning |
Row 96, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| 96 |
{state == 3 && <DualText |
| Error |
Row 97, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Warning |
Row 97, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 97 |
style={{ |
| Error |
Row 98, Column 1: "Insert `··`"
prettier/prettier
|
| 98 |
textAlign: 'center', |
| Error |
Row 99, Column 1: "Insert `··`"
prettier/prettier
|
| 99 |
color: colors.headerTitle, |
| Error |
Row 100, Column 17: "Insert `··`"
prettier/prettier
|
| 100 |
fontSize: mvs(13), |
| Error |
Row 101, Column 1: "Insert `··`"
prettier/prettier
|
| 101 |
}} |
| Error |
Row 102, Column 15: "Insert `··`"
prettier/prettier
|
| 102 |
highlightText={'Zenab Thaqi'} |
| Error |
Row 103, Column 1: "Replace `··············highlightTextStyle·=·{{fontSize·:·mvs(13)}}` with `················highlightTextStyle={{fontSize:·mvs(13)}}>`"
prettier/prettier
|
| 103 |
highlightTextStyle = {{fontSize : mvs(13)}} |
| Error |
Row 104, Column 15: "Delete `>⏎············`"
prettier/prettier
|
| 104 |
> |
| 105 |
<DualText |
| Error |
Row 106, Column 1: "Insert `··`"
prettier/prettier
|
| 106 |
highlightTextStyle={{color: colors.green}} |
| Error |
Row 107, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 107, Column 24: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 107 |
style={{ |
| Error |
Row 108, Column 19: "Insert `··`"
prettier/prettier
|
| 108 |
textAlign: 'center', |
| Error |
Row 109, Column 1: "Insert `··`"
prettier/prettier
|
| 109 |
color: colors.headerTitle, |
| Error |
Row 110, Column 1: "Replace `··················` with `····················`"
prettier/prettier
|
| 110 |
fontSize: mvs(13), |
| Error |
Row 111, Column 17: "Insert `··`"
prettier/prettier
|
| 111 |
}} |
| Error |
Row 112, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| Warning |
Row 112, Column 26: "Strings must use singlequote."
quotes
|
| 112 |
content={`is notified to proceed to delivering your product.`} |
| Error |
Row 113, Column 15: "Insert `··`"
prettier/prettier
|
| 113 |
/> |
| Error |
Row 114, Column 1: "Replace `············}` with `··············`"
prettier/prettier
|
| 114 |
</DualText>} |
| Error |
Row 115, Column 1: "Insert `············)}`"
prettier/prettier
|
| 115 |
|
| 116 |
|
| Warning |
Row 117, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 117, Column 28: "Insert `(⏎··············`"
prettier/prettier
|
| 117 |
{state == 4 && <> |
| Error |
Row 118, Column 1: "Insert `····`"
prettier/prettier
|
| 118 |
<DualText |
| Error |
Row 119, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| Warning |
Row 119, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 119 |
style={{ |
| Error |
Row 120, Column 1: "Insert `····`"
prettier/prettier
|
| 120 |
textAlign: 'center', |
| Error |
Row 121, Column 1: "Insert `····`"
prettier/prettier
|
| 121 |
color: colors.headerTitle, |
| Error |
Row 122, Column 17: "Insert `····`"
prettier/prettier
|
| 122 |
fontSize: mvs(13), |
| Error |
Row 123, Column 15: "Insert `····`"
prettier/prettier
|
| 123 |
}} |
| Error |
Row 124, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| 124 |
content={'Congratulations'} |
| Error |
Row 125, Column 1: "Insert `····`"
prettier/prettier
|
| 125 |
highlightText={'Ralph Wakim'} |
| Error |
Row 126, Column 1: "Replace `··············highlightTextStyle·=·{{fontSize·:·mvs(13)}}` with `··················highlightTextStyle={{fontSize:·mvs(13)}}>`"
prettier/prettier
|
| 126 |
highlightTextStyle = {{fontSize : mvs(13)}} |
| Error |
Row 127, Column 14: "Delete `·>⏎·········`"
prettier/prettier
|
| 127 |
> |
| 128 |
<DualText |
| Error |
Row 129, Column 1: "Insert `····`"
prettier/prettier
|
| 129 |
highlightTextStyle={{color: colors.green}} |
| Error |
Row 130, Column 17: "Insert `····`"
prettier/prettier
|
| Warning |
Row 130, Column 24: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 130 |
style={{ |
| Error |
Row 131, Column 1: "Replace `··················` with `······················`"
prettier/prettier
|
| 131 |
textAlign: 'center', |
| Error |
Row 132, Column 1: "Insert `····`"
prettier/prettier
|
| 132 |
color: colors.headerTitle, |
| Error |
Row 133, Column 1: "Replace `··················` with `······················`"
prettier/prettier
|
| 133 |
fontSize: mvs(13), |
| Error |
Row 134, Column 17: "Insert `····`"
prettier/prettier
|
| 134 |
}} |
| Error |
Row 135, Column 1: "Replace `················` with `····················`"
prettier/prettier
|
| Warning |
Row 135, Column 26: "Strings must use singlequote."
quotes
|
| 135 |
content={`,\nThe product was accepted by the buyer.`} |
| Error |
Row 136, Column 15: "Insert `····`"
prettier/prettier
|
| 136 |
/> |
| Error |
Row 137, Column 1: "Insert `····`"
prettier/prettier
|
| 137 |
</DualText> |
| Error |
Row 138, Column 13: "Insert `····`"
prettier/prettier
|
| 138 |
<Regular |
| Error |
Row 139, Column 1: "Insert `····`"
prettier/prettier
|
| Warning |
Row 139, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 139 |
style={{textAlign: 'center', fontSize: mvs(13)}} |
| Error |
Row 140, Column 15: "Insert `····`"
prettier/prettier
|
| 140 |
label={ |
| Error |
Row 141, Column 1: "Insert `····`"
prettier/prettier
|
| 141 |
'\nPlease proceed to sending the buyer pictures of their product as soon as possible.' |
| Error |
Row 142, Column 15: "Insert `····`"
prettier/prettier
|
| 142 |
} |
| Error |
Row 143, Column 1: "Insert `····`"
prettier/prettier
|
| 143 |
/> |
| Error |
Row 144, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 144 |
</> |
| Error |
Row 145, Column 13: "Replace `}⏎` with `)}`"
prettier/prettier
|
| 145 |
} |
| 146 |
|
| 147 |
|
| Warning |
Row 148, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 148, Column 28: "Insert `(⏎··············`"
prettier/prettier
|
| 148 |
{state == 5 && <> |
| Error |
Row 149, Column 1: "Insert `····`"
prettier/prettier
|
| 149 |
<DualText |
| Error |
Row 150, Column 1: "Insert `····`"
prettier/prettier
|
| Warning |
Row 150, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 150 |
style={{ |
| Error |
Row 151, Column 17: "Insert `····`"
prettier/prettier
|
| 151 |
textAlign: 'center', |
| Error |
Row 152, Column 1: "Insert `····`"
prettier/prettier
|
| 152 |
color: colors.headerTitle, |
| Error |
Row 153, Column 17: "Insert `····`"
prettier/prettier
|
| 153 |
fontSize: mvs(13), |
| Error |
Row 154, Column 15: "Insert `····`"
prettier/prettier
|
| 154 |
}} |
| Error |
Row 155, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| 155 |
content={'Thank you for using'} |
| Error |
Row 156, Column 15: "Insert `····`"
prettier/prettier
|
| 156 |
highlightText={'Taketo.'} |
| Error |
Row 157, Column 1: "Replace `··············highlightTextStyle·=·{{fontSize·:·mvs(13)}}` with `··················highlightTextStyle={{fontSize:·mvs(13)}}>`"
prettier/prettier
|
| 157 |
highlightTextStyle = {{fontSize : mvs(13)}} |
| Error |
Row 158, Column 1: "Replace `··············>⏎` with `····`"
prettier/prettier
|
| 158 |
> |
| 159 |
<DualText |
| Error |
Row 160, Column 17: "Insert `····`"
prettier/prettier
|
| 160 |
highlightTextStyle={{color: colors.green}} |
| Error |
Row 161, Column 17: "Insert `····`"
prettier/prettier
|
| Warning |
Row 161, Column 24: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 161 |
style={{ |
| Error |
Row 162, Column 1: "Replace `··················` with `······················`"
prettier/prettier
|
| 162 |
textAlign: 'center', |
| Error |
Row 163, Column 1: "Insert `····`"
prettier/prettier
|
| 163 |
color: colors.headerTitle, |
| Error |
Row 164, Column 1: "Replace `··················` with `······················`"
prettier/prettier
|
| 164 |
fontSize: mvs(13), |
| Error |
Row 165, Column 17: "Insert `····`"
prettier/prettier
|
| 165 |
}} |
| Error |
Row 166, Column 1: "Insert `····`"
prettier/prettier
|
| Warning |
Row 166, Column 26: "Strings must use singlequote."
quotes
|
| 166 |
content={`\nThe Buyer is excited to receive their product soon, make sure you deliver it on time`} |
| Error |
Row 167, Column 15: "Insert `····`"
prettier/prettier
|
| 167 |
/> |
| Error |
Row 168, Column 1: "Replace `············` with `················`"
prettier/prettier
|
| 168 |
</DualText> |
| Error |
Row 169, Column 13: "Insert `····`"
prettier/prettier
|
| 169 |
<Regular |
| Error |
Row 170, Column 1: "Insert `····`"
prettier/prettier
|
| Warning |
Row 170, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 170 |
style={{textAlign: 'center', fontSize: mvs(13)}} |
| Error |
Row 171, Column 15: "Insert `····`"
prettier/prettier
|
| 171 |
label={ |
| Error |
Row 172, Column 1: "Insert `····`"
prettier/prettier
|
| 172 |
'\nPlease proceed to sending the buyer pictures of their product as soon as possible.' |
| Error |
Row 173, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| 173 |
} |
| Error |
Row 174, Column 1: "Insert `····`"
prettier/prettier
|
| 174 |
/> |
| Error |
Row 175, Column 1: "Insert `··`"
prettier/prettier
|
| 175 |
</> |
| Error |
Row 176, Column 13: "Replace `}⏎` with `)}`"
prettier/prettier
|
| 176 |
} |
| 177 |
|
| 178 |
|
| Warning |
Row 179, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 179, Column 28: "Insert `(⏎··············`"
prettier/prettier
|
| 179 |
{state == 6 && <> |
| Error |
Row 180, Column 1: "Insert `····`"
prettier/prettier
|
| Warning |
Row 180, Column 13: "Empty components are self-closing"
react/self-closing-comp
|
| 180 |
<DualText |
| Error |
Row 181, Column 1: "Insert `····`"
prettier/prettier
|
| Warning |
Row 181, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 181 |
style={{ |
| Error |
Row 182, Column 17: "Insert `····`"
prettier/prettier
|
| 182 |
textAlign: 'center', |
| Error |
Row 183, Column 1: "Insert `····`"
prettier/prettier
|
| 183 |
color: colors.headerTitle, |
| Error |
Row 184, Column 1: "Replace `················` with `····················`"
prettier/prettier
|
| 184 |
fontSize: mvs(13), |
| Error |
Row 185, Column 15: "Insert `····`"
prettier/prettier
|
| 185 |
}} |
| Error |
Row 186, Column 1: "Replace `··············` with `··················`"
prettier/prettier
|
| 186 |
content={'Thank you for Trusting '} |
| Error |
Row 187, Column 15: "Insert `····`"
prettier/prettier
|
| 187 |
highlightText={'Taketo.'} |
| Error |
Row 188, Column 1: "Replace `··············highlightTextStyle·=·{{fontSize·:·mvs(13)}}⏎··············>⏎·············` with `··················highlightTextStyle={{fontSize:·mvs(13)}}>`"
prettier/prettier
|
| 188 |
highlightTextStyle = {{fontSize : mvs(13)}} |
| 189 |
> |
| 190 |
</DualText> |
| Error |
Row 191, Column 1: "Insert `····`"
prettier/prettier
|
| 191 |
<Medium |
| Error |
Row 192, Column 15: "Replace `style={{textAlign:·'center',·fontSize:·mvs(30),·color·:·colors.green,·marginTop·:·mvs(28)}}` with `····style={{⏎····················textAlign:·'center',⏎····················fontSize:·mvs(30),⏎····················color:·colors.green,⏎····················marginTop:·mvs(28),`"
prettier/prettier
|
| Warning |
Row 192, Column 22: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 192 |
style={{textAlign: 'center', fontSize: mvs(30), color : colors.green, marginTop : mvs(28)}} |
| Error |
Row 193, Column 15: "Replace `label={` with `····}}`"
prettier/prettier
|
| 193 |
label={ |
| Error |
Row 194, Column 17: "Replace `'US$·90'` with `··label={'US$·90'}`"
prettier/prettier
|
| 194 |
'US$ 90' |
| Error |
Row 195, Column 5: "Delete `··········}⏎`"
prettier/prettier
|
| 195 |
} |
| 196 |
/> |
| Error |
Row 197, Column 13: "Replace `prettier/prettier
|
| Warning |
Row 197, Column 13: "Empty components are self-closing"
react/self-closing-comp
|
| Warning |
Row 197, Column 22: "Trailing spaces not allowed."
no-trailing-spaces
|
| 197 |
<DualText |
| Warning |
Row 198, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 198 |
style={{ |
| Error |
Row 199, Column 1: "Replace `··············` with `····················`"
prettier/prettier
|
| 199 |
textAlign: 'center', |
| Error |
Row 200, Column 1: "Insert `······`"
prettier/prettier
|
| 200 |
color: colors.headerTitle, |
| Error |
Row 201, Column 1: "Replace `··············` with `····················`"
prettier/prettier
|
| 201 |
fontSize: mvs(13), |
| Error |
Row 202, Column 13: "Insert `······`"
prettier/prettier
|
| 202 |
}} |
| Error |
Row 203, Column 1: "Replace `············content={'was·credited·to·your·balance.'}⏎············` with `··················content={'was·credited·to·your·balance.'}`"
prettier/prettier
|
| 203 |
content={'was credited to your balance.'} |
| 204 |
></DualText> |
| Error |
Row 205, Column 1: "Insert `··`"
prettier/prettier
|
| 205 |
</> |
| Error |
Row 206, Column 13: "Replace `}⏎` with `)}`"
prettier/prettier
|
| 206 |
} |
| 207 |
|
| 208 |
</View> |
| 209 |
</ApprovedSettingCard> |
| Error |
Row 210, Column 14: "Replace `·style·=·{{position·:·'absolute',·alignSelf·:·'center',·width·:·'100%',·bottom·:·mvs(40)` with `⏎··········style={{⏎············position:·'absolute',⏎············alignSelf:·'center',⏎············width:·'100%',⏎············bottom:·mvs(40),⏎··········`"
prettier/prettier
|
| Warning |
Row 210, Column 24: "Inline style: { position: 'absolute', alignSelf: 'center', width: '100%' }"
react-native/no-inline-styles
|
| 210 |
<View style = {{position : 'absolute', alignSelf : 'center', width : '100%', bottom : mvs(40)}}> |
| Error |
Row 211, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 211, Column 40: "Trailing spaces not allowed."
no-trailing-spaces
|
| 211 |
{/* <Buttons.ButtonPrimaryLight |
| 212 |
onClick = { () => {} } |
| 213 |
title = "Send a Receipt" style = {{}}/> */} |
| Error |
Row 214, Column 9: "Replace `{` with `··{⏎············`"
prettier/prettier
|
| 214 |
{<Buttons.ButtonRTL |
| Error |
Row 215, Column 1: "Insert `··`"
prettier/prettier
|
| 215 |
onClick={() => { |
| Error |
Row 216, Column 15: "Replace `if(state·<·6)` with `··if·(state·<·6)·`"
prettier/prettier
|
| Warning |
Row 216, Column 15: "Expected space(s) after "if"."
keyword-spacing
|
| 216 |
if(state < 6){ |
| Error |
Row 217, Column 1: "Replace `················setState(state·+·1)` with `··················setState(state·+·1);`"
prettier/prettier
|
| Warning |
Row 217, Column 36: "Missing semicolon."
semi
|
| 217 |
setState(state + 1) |
| Error |
Row 218, Column 1: "Replace `··············}⏎··············else` with `················}·else·`"
prettier/prettier
|
| 218 |
} |
| Warning |
Row 219, Column 15: "Expected space(s) after "else"."
keyword-spacing
|
| 219 |
else{ |
| Error |
Row 220, Column 1: "Replace `················setState(0)` with `··················setState(0);`"
prettier/prettier
|
| Warning |
Row 220, Column 28: "Missing semicolon."
semi
|
| 220 |
setState(0) |
| Error |
Row 221, Column 1: "Insert `··`"
prettier/prettier
|
| 221 |
} |
| Error |
Row 222, Column 1: "Insert `··`"
prettier/prettier
|
| 222 |
}} |
| Error |
Row 223, Column 13: "Insert `··`"
prettier/prettier
|
| 223 |
iconName={'reorder'} |
| Error |
Row 224, Column 13: "Insert `··`"
prettier/prettier
|
| 224 |
title={'Reorder'} |
| Error |
Row 225, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Warning |
Row 225, Column 20: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| 225 |
style={{ |
| Error |
Row 226, Column 1: "Insert `··`"
prettier/prettier
|
| 226 |
justifyContent: 'center', |
| Error |
Row 227, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 227 |
}} |
| Error |
Row 228, Column 1: "Insert `··`"
prettier/prettier
|
| 228 |
textStyle={{color: colors.white, marginLeft: mvs(13)}} |
| Error |
Row 229, Column 13: "Insert `··`"
prettier/prettier
|
| 229 |
iconStyle={{height: mvs(20), width: mvs(20)}} |
| Error |
Row 230, Column 11: "Replace `/>` with `··/>⏎··········`"
prettier/prettier
|
| 230 |
/>} |
| Error |
Row 231, Column 1: "Replace `·········props.navigation.navigate('chat')·` with `···········props.navigation.navigate('chat')`"
prettier/prettier
|
| Warning |
Row 231, Column 36: "Trailing spaces not allowed."
no-trailing-spaces
|
| 231 |
<Buttons.ButtonPrimaryLight |
| 232 |
onClick = { () => props.navigation.navigate('chat') } |
| Error |
Row 233, Column 1: "Replace `········title·=·"Send·a·Product·picture"·style·=·{{marginTop·:·mvs(10)}}` with `············title="Send·a·Product·picture"⏎············style={{marginTop:·mvs(10)}}⏎··········`"
prettier/prettier
|
| 233 |
title = "Send a Product picture" style = {{marginTop : mvs(10)}}/> |
| 234 |
</View> |
| 235 |
</View> |
| 236 |
</View> |
| 237 |
); |
| 238 |
}; |
| 239 |
|
| 240 |
export default Approved; |
| 241 |
|
| 242 |
const styles = StyleSheet.create({ |
| 243 |
mainContainer: { |
| 244 |
flex: 1, |
| 245 |
backgroundColor: colors.white, |
| 246 |
}, |
| 247 |
container: { |
| 248 |
flex: 1, |
| 249 |
paddingHorizontal: mvs(22), |
| 250 |
alignItems: 'center', |
| 251 |
}, |
| 252 |
}); |
| 253 |
|
|
| Severity |
Rule |
| Warning |
Row 2, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| Error |
Row 3, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| Warning |
Row 9, Column 3: "'TextInput' is defined but never used."
no-unused-vars
|
| Error |
Row 11, Column 19: "Insert `,`"
prettier/prettier
|
| Warning |
Row 11, Column 19: "Missing trailing comma."
comma-dangle
|
| Error |
Row 13, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 14, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 16, Column 13: "'SVG' is defined but never used."
no-unused-vars
|
| Error |
Row 25, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 26, Column 8: "'Light' is defined but never used."
no-unused-vars
|
| Warning |
Row 29, Column 13: "'ImagesCommon' is defined but never used."
no-unused-vars
|
| Warning |
Row 35, Column 5: "'navigation' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 39, Column 16: "Insert `,`"
prettier/prettier
|
| Warning |
Row 39, Column 16: "Missing trailing comma."
comma-dangle
|
| Warning |
Row 42, Column 10: "'offer_id' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 43, Column 28: "["car_active"] is better written in dot notation."
dot-notation
|
| Warning |
Row 44, Column 27: "["location"] is better written in dot notation."
dot-notation
|
| Warning |
Row 45, Column 31: "["location_active"] is better written in dot notation."
dot-notation
|
| Warning |
Row 46, Column 23: "["chat"] is better written in dot notation."
dot-notation
|
| Error |
Row 49, Column 62: "Insert `;`"
prettier/prettier
|
| Warning |
Row 49, Column 62: "Missing semicolon."
semi
|
| Error |
Row 54, Column 6: "React Hook React.useEffect has a missing dependency: 'fetchOrderHistoryOffersDetails'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 61, Column 71: "Insert `·`"
prettier/prettier
|
| Warning |
Row 63, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 73, Column 44: "Delete `·`"
prettier/prettier
|
| Error |
Row 75, Column 24: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 76, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Warning |
Row 79, Column 26: "Comparing to itself is potentially pointless."
no-self-compare
|
| Warning |
Row 79, Column 28: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 87, Column 29: "Replace `"PAK"` with `'PAK'`"
prettier/prettier
|
| Warning |
Row 87, Column 29: "Strings must use singlequote."
quotes
|
| Error |
Row 91, Column 26: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 93, Column 17: "Replace `containerStyle·=·{{height·:·mvs(37),·width·:·mvs(37),·borderRadius·:·mvs(8)` with `··containerStyle={{⏎····················height:·mvs(37),⏎····················width:·mvs(37),⏎····················borderRadius:·mvs(8),⏎··················`"
prettier/prettier
|
| Error |
Row 95, Column 25: "Replace `·label·=·"Emily"·style·=·{{fontSize·:·mvs(10),·alignSelf·:·"center"}}` with `⏎··················label="Emily"⏎··················style={{fontSize:·mvs(10),·alignSelf:·'center'}}⏎················`"
prettier/prettier
|
| Warning |
Row 95, Column 51: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 95, Column 84: "Strings must use singlequote."
quotes
|
| Error |
Row 97, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 98, Column 18: "Delete `⏎⏎··········`"
prettier/prettier
|
| Warning |
Row 100, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 103, Column 11: "Replace `prettier/prettier
|
| Error |
Row 105, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 106, Column 1: "Replace `··········` with `··············`"
prettier/prettier
|
| Error |
Row 107, Column 11: "Replace `title·=·` with `····title=`"
prettier/prettier
|
| Error |
Row 108, Column 11: "Replace `placeholder·=·` with `····placeholder=`"
prettier/prettier
|
| Error |
Row 109, Column 11: "Replace `value·=·` with `····value=`"
prettier/prettier
|
| Error |
Row 110, Column 1: "Replace `··········` with `··············`"
prettier/prettier
|
| Error |
Row 111, Column 1: "Replace `··········style·=·{{marginTop·` with `··············style={{marginTop`"
prettier/prettier
|
| Error |
Row 112, Column 1: "Replace `··········textStyle·=·{{color·` with `··············textStyle={{color`"
prettier/prettier
|
| Error |
Row 113, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 130, Column 23: "Replace `·label="Urgent·Delivery"·style={{...styles.label,·color·:·colors.pink}}` with `⏎················label="Urgent·Delivery"⏎················style={{...styles.label,·color:·colors.pink}}⏎·············`"
prettier/prettier
|
| Error |
Row 132, Column 24: "Replace `"Within·24·hours"` with `'Within·24·hours'`"
prettier/prettier
|
| Warning |
Row 132, Column 24: "Strings must use singlequote."
quotes
|
| Error |
Row 133, Column 47: "Delete `·`"
prettier/prettier
|
| Error |
Row 167, Column 20: "Replace `·style={{flexDirection:·'row',·alignItems:·'center',·marginRight·:·mvs(6)` with `⏎················style={{⏎··················flexDirection:·'row',⏎··················alignItems:·'center',⏎··················marginRight:·mvs(6),⏎················`"
prettier/prettier
|
| Warning |
Row 167, Column 28: "Inline style: { flexDirection: 'row', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 181, Column 24: "Replace `·=·{{...styles.line,·marginTop·:·mvs(14)}}` with `={{...styles.line,·marginTop:·mvs(14)}}·`"
prettier/prettier
|
| Error |
Row 185, Column 20: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 186, Column 26: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 187, Column 20: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 189, Column 20: "Replace `·=·{{marginTop·` with `={{marginTop`"
prettier/prettier
|
| Error |
Row 190, Column 24: "Replace `·=·{{color·` with `={{color`"
prettier/prettier
|
| Error |
Row 191, Column 25: "Replace `·=·{{fontSize·` with `={{fontSize`"
prettier/prettier
|
| Error |
Row 192, Column 13: "Delete `··`"
prettier/prettier
|
| Error |
Row 194, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 221, Column 26: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 222, Column 25: "Replace `·label·=·"Requested·Reward"·style·=·{{color·:·colors.typeHeader}}` with `⏎··················label="Requested·Reward"⏎··················style={{color:·colors.typeHeader}}⏎················`"
prettier/prettier
|
| Error |
Row 224, Column 20: "Replace `·style·=·{{...styles.rewardContainer,alignItems·:·'flex-start',·paddingLeft·:·mvs(11)` with `⏎················style={{⏎··················...styles.rewardContainer,⏎··················alignItems:·'flex-start',⏎··················paddingLeft:·mvs(11),⏎················`"
prettier/prettier
|
| Warning |
Row 224, Column 30: "Inline style: { alignItems: 'flex-start' }"
react-native/no-inline-styles
|
| Error |
Row 225, Column 24: "Replace `·label·=·"35"·style·=·{{color·:·colors.primary,·fontSize·:·mvs(23)}}` with `⏎··················label="35"⏎··················style={{color:·colors.primary,·fontSize:·mvs(23)}}⏎················`"
prettier/prettier
|
| Error |
Row 226, Column 25: "Replace `·label·=·{`${profileData?.currency?.currency_code}`}·style·=·{{color·:·colors.typeHeader,·fontSize·:·mvs(23),·position·:·"absolute",·right·:·mvs(11)}}` with `⏎··················label={`${profileData?.currency?.currency_code}`}⏎··················style={{⏎····················color:·colors.typeHeader,⏎····················fontSize:·mvs(23),⏎····················position:·'absolute',⏎····················right:·mvs(11),⏎··················}}⏎················`"
prettier/prettier
|
| Warning |
Row 226, Column 87: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| Warning |
Row 226, Column 146: "Strings must use singlequote."
quotes
|
| Error |
Row 231, Column 1: "Replace `············title·=·` with `··············title=`"
prettier/prettier
|
| Error |
Row 232, Column 1: "Replace `············style·=·{{backgroundColor·:·colors.pink,·marginTop·` with `··············style={{backgroundColor:·colors.pink,·marginTop`"
prettier/prettier
|
| Error |
Row 233, Column 13: "Replace `onClick·=·{()·=>·{setWidthdrawModal(true)` with `··onClick={()·=>·{⏎················setWidthdrawModal(true);⏎··············`"
prettier/prettier
|
| Warning |
Row 233, Column 54: "Missing semicolon."
semi
|
| Warning |
Row 236, Column 30: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 236, Column 30: "Replace `·⏎············onPress·=·` with `⏎··············onPress=`"
prettier/prettier
|
| Error |
Row 238, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 240, Column 23: "Replace `·label="Message·Buyer"·style={{...styles.value1,·color·:·colors.white}}` with `⏎················label="Message·Buyer"⏎················style={{...styles.value1,·color:·colors.white}}⏎·············`"
prettier/prettier
|
| Error |
Row 265, Column 7: "Replace `visible·=·` with `··visible=`"
prettier/prettier
|
| Error |
Row 266, Column 1: "Replace `······title·=·` with `········title=`"
prettier/prettier
|
| Error |
Row 267, Column 7: "Replace `name·=·` with `··name=`"
prettier/prettier
|
| Error |
Row 268, Column 1: "Replace `······onClose·=·` with `········onClose=`"
prettier/prettier
|
| Error |
Row 269, Column 1: "Replace `······onConfirm·=·{()·=>·{props.navigation.pop()` with `········onConfirm={()·=>·{⏎··········props.navigation.pop();⏎········`"
prettier/prettier
|
| Warning |
Row 269, Column 49: "Missing semicolon."
semi
|
| Error |
Row 283, Column 24: "Replace `mapStateToProps,·mapDispatchToProps` with `⏎··mapStateToProps,⏎··mapDispatchToProps,⏎`"
prettier/prettier
|
| Error |
Row 288, Column 20: "Replace `·:·colors.white` with `:·colors.white,`"
prettier/prettier
|
| Warning |
Row 288, Column 35: "Missing trailing comma."
comma-dangle
|
| Error |
Row 298, Column 1: "Insert `·`"
prettier/prettier
|
| Error |
Row 458, Column 16: "Delete `·`"
prettier/prettier
|
| Error |
Row 492, Column 10: "Replace `·:·"60%"` with `:·'60%',`"
prettier/prettier
|
| Warning |
Row 492, Column 13: "Strings must use singlequote."
quotes
|
| Warning |
Row 492, Column 18: "Missing trailing comma."
comma-dangle
|
| Error |
Row 498, Column 12: "Replace `"100%"` with `'100%'`"
prettier/prettier
|
| Warning |
Row 498, Column 12: "Strings must use singlequote."
quotes
|
| Error |
Row 499, Column 15: "Insert `·`"
prettier/prettier
|
| Warning |
Row 500, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 500, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 506, Column 11: "Delete `·`"
prettier/prettier
|
| Error |
Row 507, Column 10: "Delete `·`"
prettier/prettier
|
| Error |
Row 509, Column 14: "Delete `·`"
prettier/prettier
|
| Error |
Row 510, Column 18: "Delete `·`"
prettier/prettier
|
| Error |
Row 511, Column 19: "Delete `·`"
prettier/prettier
|
| Error |
Row 512, Column 15: "Replace `·:·'center'` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 512, Column 26: "Missing trailing comma."
comma-dangle
|
| Error |
Row 515, Column 11: "Delete `·`"
prettier/prettier
|
| Error |
Row 518, Column 18: "Delete `·`"
prettier/prettier
|
| Error |
Row 519, Column 15: "Delete `·`"
prettier/prettier
|
| Error |
Row 522, Column 4: "Insert `·`"
prettier/prettier
|
| Error |
Row 523, Column 10: "Delete `·`"
prettier/prettier
|
| Error |
Row 524, Column 17: "Delete `·`"
prettier/prettier
|
| Error |
Row 525, Column 15: "Replace `mvs(22)` with `·mvs(22),`"
prettier/prettier
|
| Warning |
Row 525, Column 22: "Missing trailing comma."
comma-dangle
|
| Error |
Row 527, Column 3: "Duplicate key 'userContainer'."
no-dupe-keys
|
| Error |
Row 528, Column 11: "Replace `·:·"100%"` with `:·'100%'`"
prettier/prettier
|
| Warning |
Row 528, Column 14: "Strings must use singlequote."
quotes
|
| Error |
Row 529, Column 13: "Replace `·:·"absolute"` with `:·'absolute'`"
prettier/prettier
|
| Warning |
Row 529, Column 16: "Strings must use singlequote."
quotes
|
| Error |
Row 530, Column 10: "Delete `·`"
prettier/prettier
|
| Error |
Row 531, Column 19: "Replace `·:·'space-between'` with `:·'space-between',`"
prettier/prettier
|
| Warning |
Row 531, Column 37: "Missing trailing comma."
comma-dangle
|
| Error |
Row 534, Column 10: "Replace `·:·"49%",·` with `:·'49%',`"
prettier/prettier
|
| Warning |
Row 534, Column 13: "Strings must use singlequote."
quotes
|
| Warning |
Row 534, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 535, Column 11: "Replace `·:·"100%",·` with `:·'100%',`"
prettier/prettier
|
| Warning |
Row 535, Column 14: "Strings must use singlequote."
quotes
|
| Warning |
Row 535, Column 21: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 536, Column 17: "Replace `·:·mvs(10),·` with `:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 536, Column 28: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 537, Column 16: "Replace `·:·mvs(0.5),·` with `:·mvs(0.5),`"
prettier/prettier
|
| Warning |
Row 537, Column 28: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 538, Column 16: "Delete `·`"
prettier/prettier
|
| Error |
Row 539, Column 19: "Replace `·:·'center',·` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 539, Column 31: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 540, Column 16: "Replace `'center'` with `·'center',`"
prettier/prettier
|
| Warning |
Row 540, Column 24: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| Warning |
Row 2, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| 2 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| Error |
Row 3, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| 3 |
import React, { useState } from 'react'; |
| 4 |
import { |
| 5 |
KeyboardAvoidingView, |
| 6 |
Platform, |
| 7 |
ScrollView, |
| 8 |
StyleSheet, |
| Warning |
Row 9, Column 3: "'TextInput' is defined but never used."
no-unused-vars
|
| 9 |
TextInput, |
| 10 |
View, |
| Error |
Row 11, Column 19: "Insert `,`"
prettier/prettier
|
| Warning |
Row 11, Column 19: "Missing trailing comma."
comma-dangle
|
| 11 |
TouchableOpacity |
| 12 |
} from 'react-native'; |
| Error |
Row 13, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 13 |
import { connect } from 'react-redux'; |
| Error |
Row 14, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| 14 |
import { TAKE_TO_IMAGES } from '../../../../../resource/assets/image_resouce'; |
| 15 |
import * as Images from '../../../../../resource/assets/order-car-icons'; |
| Warning |
Row 16, Column 13: "'SVG' is defined but never used."
no-unused-vars
|
| 16 |
import * as SVG from '../../../../../resource/assets/tabbar-icons'; |
| 17 |
import Buttons from '../../../../components/atoms/Button'; |
| 18 |
import OrderDestination from '../../../../components/atoms/OrderDestination'; |
| 19 |
import OrderDestinationAddress from '../../../../components/atoms/OrderDestinationAddress'; |
| 20 |
import ImagePlaceholder from '../../../../components/atoms/Placeholder'; |
| 21 |
import Header from '../../../../components/molecules/header/header-1x'; |
| 22 |
import ProductInfo from '../../../../components/molecules/product-info'; |
| 23 |
import colors from '../../../../config/colors'; |
| 24 |
import fonts from '../../../../config/fonts'; |
| Error |
Row 25, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 25 |
import { mvs } from '../../../../config/metrices'; |
| Warning |
Row 26, Column 8: "'Light' is defined but never used."
no-unused-vars
|
| 26 |
import Light from '../../../../presentation/typography/light-text'; |
| 27 |
import Medium from '../../../../presentation/typography/medium-text'; |
| 28 |
import Regular from '../../../../presentation/typography/regular-text'; |
| Warning |
Row 29, Column 13: "'ImagesCommon' is defined but never used."
no-unused-vars
|
| 29 |
import * as ImagesCommon from '../../../../../resource/assets/common-icons'; |
| 30 |
import InputWithTitle from '../../../../components/molecules/input-with-title'; |
| 31 |
import Widthdraw from '../../../../components/molecules/modals/widthdraw'; |
| 32 |
|
| 33 |
const DeliveryPendingDetails = props => { |
| 34 |
const { |
| Warning |
Row 35, Column 5: "'navigation' is assigned a value but never used."
no-unused-vars
|
| 35 |
navigation, |
| 36 |
route, |
| 37 |
fetchOrderHistoryOffersDetails, |
| 38 |
orderHistoryOfferDetails: offer_details, |
| Error |
Row 39, Column 16: "Insert `,`"
prettier/prettier
|
| Warning |
Row 39, Column 16: "Missing trailing comma."
comma-dangle
|
| 39 |
profileData |
| 40 |
} = props; |
| 41 |
|
| Warning |
Row 42, Column 10: "'offer_id' is assigned a value but never used."
no-unused-vars
|
| 42 |
const {offer_id} = route?.params; |
| Warning |
Row 43, Column 28: "["car_active"] is better written in dot notation."
dot-notation
|
| 43 |
const CarActive = Images['car_active']; |
| Warning |
Row 44, Column 27: "["location"] is better written in dot notation."
dot-notation
|
| 44 |
const Location = Images['location']; |
| Warning |
Row 45, Column 31: "["location_active"] is better written in dot notation."
dot-notation
|
| 45 |
const LocationBlue = Images['location_active']; |
| Warning |
Row 46, Column 23: "["chat"] is better written in dot notation."
dot-notation
|
| 46 |
const Chat = Images['chat']; |
| 47 |
//const Location = ImagesCommon['location_pink']; |
| 48 |
|
| Error |
Row 49, Column 62: "Insert `;`"
prettier/prettier
|
| Warning |
Row 49, Column 62: "Missing semicolon."
semi
|
| 49 |
const [widthdrawModal, setWidthdrawModal] = useState(false) |
| 50 |
|
| 51 |
React.useEffect(() => { |
| 52 |
fetchOrderHistoryOffersDetails(); |
| 53 |
// alert("Offer_id : "+offer_id) |
| Error |
Row 54, Column 6: "React Hook React.useEffect has a missing dependency: 'fetchOrderHistoryOffersDetails'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 54 |
}, []); |
| 55 |
|
| 56 |
return ( |
| 57 |
<KeyboardAvoidingView |
| 58 |
behavior={Platform.OS === 'ios' ? 'padding' : 'height'} |
| 59 |
style={styles.mainContainer}> |
| 60 |
<View style={{backgroundColor: colors.white}}> |
| Error |
Row 61, Column 71: "Insert `·`"
prettier/prettier
|
| 61 |
<Header {...props} title="offer details" allowBackBtn bellIcon/> |
| 62 |
</View> |
| Warning |
Row 63, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 63 |
<View style={{flex: 1}}> |
| 64 |
<ScrollView> |
| 65 |
<View style={styles.optionsContainer}> |
| 66 |
<ProductInfo |
| 67 |
order_img={offer_details?.order_image} |
| 68 |
//name={offer_details?.order_title} |
| 69 |
name="iPhone 13 Pro 128GB Sierra blue" |
| 70 |
total={`US$ ${offer_details?.order_price}`} |
| 71 |
priceTitle="Product Price" |
| 72 |
reward={`US$ ${offer_details?.order_reward_price}`} |
| Error |
Row 73, Column 44: "Delete `·`"
prettier/prettier
|
| 73 |
detailsContainer={{marginLeft : mvs(30)}} |
| 74 |
/> |
| Error |
Row 75, Column 24: "Replace `·=·` with `=`"
prettier/prettier
|
| 75 |
<View style = {styles.trackMainContainer}> |
| Error |
Row 76, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 76 |
<View style={styles.SUB_LOCATION_DESTINATION}> |
| 77 |
<OrderDestination |
| 78 |
value={2} |
| Warning |
Row 79, Column 26: "Comparing to itself is potentially pointless."
no-self-compare
|
| Warning |
Row 79, Column 28: "Expected '===' and instead saw '=='."
eqeqeq
|
| 79 |
width={2 == 2 ? mvs(100) : mvs(50)} |
| 80 |
SVGFirst={CarActive} |
| 81 |
SVGSecond={Location} |
| 82 |
/> |
| 83 |
<View style={{marginTop: mvs(8)}} /> |
| 84 |
<OrderDestinationAddress |
| 85 |
imageFrom={TAKE_TO_IMAGES.flag1} |
| 86 |
imageTo={TAKE_TO_IMAGES.flag2} |
| Error |
Row 87, Column 29: "Replace `"PAK"` with `'PAK'`"
prettier/prettier
|
| Warning |
Row 87, Column 29: "Strings must use singlequote."
quotes
|
| 87 |
label={`${"PAK"} - ${'USA'}`} |
| 88 |
fontSize={12} |
| 89 |
/> |
| 90 |
</View> |
| Error |
Row 91, Column 26: "Replace `·=·` with `=`"
prettier/prettier
|
| 91 |
<View style = {styles.userContainer}> |
| 92 |
<ImagePlaceholder |
| Error |
Row 93, Column 17: "Replace `containerStyle·=·{{height·:·mvs(37),·width·:·mvs(37),·borderRadius·:·mvs(8)` with `··containerStyle={{⏎····················height:·mvs(37),⏎····················width:·mvs(37),⏎····················borderRadius:·mvs(8),⏎··················`"
prettier/prettier
|
| 93 |
containerStyle = {{height : mvs(37), width : mvs(37), borderRadius : mvs(8)}} |
| 94 |
/> |
| Error |
Row 95, Column 25: "Replace `·label·=·"Emily"·style·=·{{fontSize·:·mvs(10),·alignSelf·:·"center"}}` with `⏎··················label="Emily"⏎··················style={{fontSize:·mvs(10),·alignSelf:·'center'}}⏎················`"
prettier/prettier
|
| Warning |
Row 95, Column 51: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 95, Column 84: "Strings must use singlequote."
quotes
|
| 95 |
<Regular label = "Emily" style = {{fontSize : mvs(10), alignSelf : "center"}}/> |
| 96 |
</View> |
| Error |
Row 97, Column 1: "Insert `··`"
prettier/prettier
|
| 97 |
</View> |
| Error |
Row 98, Column 18: "Delete `⏎⏎··········`"
prettier/prettier
|
| 98 |
</View> |
| 99 |
|
| Warning |
Row 100, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| 100 |
|
| 101 |
|
| 102 |
<View style={{...styles.normal}}> |
| Error |
Row 103, Column 11: "Replace `prettier/prettier
|
| 103 |
<View style = {styles.line}/> |
| 104 |
|
| Error |
Row 105, Column 1: "Insert `··`"
prettier/prettier
|
| 105 |
<InputWithTitle |
| Error |
Row 106, Column 1: "Replace `··········` with `··············`"
prettier/prettier
|
| 106 |
singleInput |
| Error |
Row 107, Column 11: "Replace `title·=·` with `····title=`"
prettier/prettier
|
| 107 |
title = "Product Details" |
| Error |
Row 108, Column 11: "Replace `placeholder·=·` with `····placeholder=`"
prettier/prettier
|
| 108 |
placeholder = "Lorem ipsum" |
| Error |
Row 109, Column 11: "Replace `value·=·` with `····value=`"
prettier/prettier
|
| 109 |
value = "Lorem ipsum" |
| Error |
Row 110, Column 1: "Replace `··········` with `··············`"
prettier/prettier
|
| 110 |
multiline |
| Error |
Row 111, Column 1: "Replace `··········style·=·{{marginTop·` with `··············style={{marginTop`"
prettier/prettier
|
| 111 |
style = {{marginTop : mvs(17)}} |
| Error |
Row 112, Column 1: "Replace `··········textStyle·=·{{color·` with `··············textStyle={{color`"
prettier/prettier
|
| 112 |
textStyle = {{color : colors.primary}} |
| Error |
Row 113, Column 1: "Insert `··`"
prettier/prettier
|
| 113 |
/> |
| 114 |
{/* <View style={styles.titleContainer}> |
| 115 |
<View style={styles.userContainer}> |
| 116 |
<ImagePlaceholder |
| 117 |
bg_img={offer_details?.offer_by_image} |
| 118 |
containerStyle={styles.dp} |
| 119 |
/> |
| 120 |
<Regular label={offer_details?.offer_by} style={styles.name} /> |
| 121 |
</View> |
| 122 |
<Regular |
| 123 |
onPress={() => props.navigation.navigate('userprofile')} |
| 124 |
label="Profile" |
| 125 |
style={styles.title} |
| 126 |
/> |
| 127 |
</View> */} |
| 128 |
|
| 129 |
<View style={{...styles.infoContainer, marginTop: mvs(17)}}> |
| Error |
Row 130, Column 23: "Replace `·label="Urgent·Delivery"·style={{...styles.label,·color·:·colors.pink}}` with `⏎················label="Urgent·Delivery"⏎················style={{...styles.label,·color:·colors.pink}}⏎·············`"
prettier/prettier
|
| 130 |
<Regular label="Urgent Delivery" style={{...styles.label, color : colors.pink}} /> |
| 131 |
<Regular |
| Error |
Row 132, Column 24: "Replace `"Within·24·hours"` with `'Within·24·hours'`"
prettier/prettier
|
| Warning |
Row 132, Column 24: "Strings must use singlequote."
quotes
|
| 132 |
label={"Within 24 hours"} |
| Error |
Row 133, Column 47: "Delete `·`"
prettier/prettier
|
| 133 |
style={{...styles.value, color : colors.pink}} |
| 134 |
/> |
| 135 |
</View> |
| 136 |
|
| 137 |
{/* <View style={styles.line}></View> */} |
| 138 |
|
| 139 |
<View style={{...styles.infoContainer}}> |
| 140 |
<Regular label="Quantity" style={styles.label} /> |
| 141 |
<Regular |
| 142 |
label={offer_details?.order_quantity} |
| 143 |
style={styles.value} |
| 144 |
/> |
| 145 |
</View> |
| 146 |
|
| 147 |
<View style={{...styles.infoContainer}}> |
| 148 |
<Regular label="Packaging" style={styles.label} /> |
| 149 |
<Regular |
| 150 |
label={ |
| 151 |
offer_details?.order_packaging ? 'With box' : 'Without box' |
| 152 |
} |
| 153 |
style={styles.value} |
| 154 |
/> |
| 155 |
</View> |
| 156 |
|
| 157 |
<View style={{...styles.infoContainer, marginTop: mvs(14)}}> |
| 158 |
<Regular label="Where to buy" style={styles.label} /> |
| 159 |
<Regular |
| 160 |
label={offer_details?.order_store_url} |
| 161 |
style={{ |
| 162 |
...styles.value, |
| 163 |
color: colors.primary, |
| 164 |
fontSize: mvs(12), |
| 165 |
}} |
| 166 |
/> |
| Error |
Row 167, Column 20: "Replace `·style={{flexDirection:·'row',·alignItems:·'center',·marginRight·:·mvs(6)` with `⏎················style={{⏎··················flexDirection:·'row',⏎··················alignItems:·'center',⏎··················marginRight:·mvs(6),⏎················`"
prettier/prettier
|
| Warning |
Row 167, Column 28: "Inline style: { flexDirection: 'row', alignItems: 'center' }"
react-native/no-inline-styles
|
| 167 |
<View style={{flexDirection: 'row', alignItems: 'center', marginRight : mvs(6)}}> |
| 168 |
<LocationBlue /> |
| 169 |
<Regular |
| 170 |
label="Store location" |
| 171 |
style={{ |
| 172 |
...styles.value, |
| 173 |
marginLeft: mvs(7.3), |
| 174 |
color: colors.primary, |
| 175 |
fontSize: mvs(12), |
| 176 |
}} |
| 177 |
/> |
| 178 |
</View> |
| 179 |
</View> |
| 180 |
|
| Error |
Row 181, Column 24: "Replace `·=·{{...styles.line,·marginTop·:·mvs(14)}}` with `={{...styles.line,·marginTop:·mvs(14)}}·`"
prettier/prettier
|
| 181 |
<View style = {{...styles.line, marginTop : mvs(14)}}/> |
| 182 |
|
| 183 |
<InputWithTitle |
| 184 |
singleInput |
| Error |
Row 185, Column 20: "Replace `·=·` with `=`"
prettier/prettier
|
| 185 |
title = "Buying Instructions" |
| Error |
Row 186, Column 26: "Replace `·=·` with `=`"
prettier/prettier
|
| 186 |
placeholder = "Lorem ipsum" |
| Error |
Row 187, Column 20: "Replace `·=·` with `=`"
prettier/prettier
|
| 187 |
value = "Lorem ipsum" |
| 188 |
multiline |
| Error |
Row 189, Column 20: "Replace `·=·{{marginTop·` with `={{marginTop`"
prettier/prettier
|
| 189 |
style = {{marginTop : mvs(17)}} |
| Error |
Row 190, Column 24: "Replace `·=·{{color·` with `={{color`"
prettier/prettier
|
| 190 |
textStyle = {{color : colors.primary}} |
| Error |
Row 191, Column 25: "Replace `·=·{{fontSize·` with `={{fontSize`"
prettier/prettier
|
| 191 |
titleStyle = {{fontSize : mvs(14)}} |
| Error |
Row 192, Column 13: "Delete `··`"
prettier/prettier
|
| 192 |
/> |
| 193 |
|
| Error |
Row 194, Column 1: "Delete `··`"
prettier/prettier
|
| 194 |
{/* <View style = {styles.profileMainContainer}> |
| 195 |
<Regular label = "Buyer Profile" style = {{color : colors.typeHeader, fontSize : mvs(14)}}/> |
| 196 |
<View style = {styles.profileContainer}> |
| 197 |
<ImagePlaceholder |
| 198 |
containerStyle = {{ |
| 199 |
height : "100%", |
| 200 |
width : mvs(37), |
| 201 |
borderRadius : mvs(8), |
| 202 |
//backgroundColor :'red' |
| 203 |
}} |
| 204 |
/> |
| 205 |
<Regular label = "Zenab Thaqi" style = {{color : colors.primary, marginLeft : mvs(5)}}/> |
| 206 |
</View> |
| 207 |
</View> */} |
| 208 |
</View> |
| 209 |
|
| 210 |
<View style={styles.container}> |
| 211 |
{/* <View style={styles.buyingInstractions}> |
| 212 |
<Regular label="Buying instructions" style={styles.value} /> |
| 213 |
<TextInput |
| 214 |
style={styles.input} |
| 215 |
multiline={true} |
| 216 |
placeholder={'Enter your note here'} |
| 217 |
/> |
| 218 |
</View> */} |
| 219 |
|
| 220 |
<View style={styles.rewardMainContainer}> |
| Error |
Row 221, Column 26: "Replace `·=·` with `=`"
prettier/prettier
|
| 221 |
<View style = {styles.rewardContainer}> |
| Error |
Row 222, Column 25: "Replace `·label·=·"Requested·Reward"·style·=·{{color·:·colors.typeHeader}}` with `⏎··················label="Requested·Reward"⏎··················style={{color:·colors.typeHeader}}⏎················`"
prettier/prettier
|
| 222 |
<Regular label = "Requested Reward" style = {{color : colors.typeHeader}}/> |
| 223 |
</View> |
| Error |
Row 224, Column 20: "Replace `·style·=·{{...styles.rewardContainer,alignItems·:·'flex-start',·paddingLeft·:·mvs(11)` with `⏎················style={{⏎··················...styles.rewardContainer,⏎··················alignItems:·'flex-start',⏎··················paddingLeft:·mvs(11),⏎················`"
prettier/prettier
|
| Warning |
Row 224, Column 30: "Inline style: { alignItems: 'flex-start' }"
react-native/no-inline-styles
|
| 224 |
<View style = {{...styles.rewardContainer,alignItems : 'flex-start', paddingLeft : mvs(11)}}> |
| Error |
Row 225, Column 24: "Replace `·label·=·"35"·style·=·{{color·:·colors.primary,·fontSize·:·mvs(23)}}` with `⏎··················label="35"⏎··················style={{color:·colors.primary,·fontSize:·mvs(23)}}⏎················`"
prettier/prettier
|
| 225 |
<Medium label = "35" style = {{color : colors.primary, fontSize : mvs(23)}}/> |
| Error |
Row 226, Column 25: "Replace `·label·=·{`${profileData?.currency?.currency_code}`}·style·=·{{color·:·colors.typeHeader,·fontSize·:·mvs(23),·position·:·"absolute",·right·:·mvs(11)}}` with `⏎··················label={`${profileData?.currency?.currency_code}`}⏎··················style={{⏎····················color:·colors.typeHeader,⏎····················fontSize:·mvs(23),⏎····················position:·'absolute',⏎····················right:·mvs(11),⏎··················}}⏎················`"
prettier/prettier
|
| Warning |
Row 226, Column 87: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| Warning |
Row 226, Column 146: "Strings must use singlequote."
quotes
|
| 226 |
<Regular label = {`${profileData?.currency?.currency_code}`} style = {{color : colors.typeHeader, fontSize : mvs(23), position : "absolute", right : mvs(11)}}/> |
| 227 |
</View> |
| 228 |
</View> |
| 229 |
|
| 230 |
<Buttons.ButtonPrimary |
| Error |
Row 231, Column 1: "Replace `············title·=·` with `··············title=`"
prettier/prettier
|
| 231 |
title = "Widthdraw Offer" |
| Error |
Row 232, Column 1: "Replace `············style·=·{{backgroundColor·:·colors.pink,·marginTop·` with `··············style={{backgroundColor:·colors.pink,·marginTop`"
prettier/prettier
|
| 232 |
style = {{backgroundColor : colors.pink, marginTop : mvs(10)}} |
| Error |
Row 233, Column 13: "Replace `onClick·=·{()·=>·{setWidthdrawModal(true)` with `··onClick={()·=>·{⏎················setWidthdrawModal(true);⏎··············`"
prettier/prettier
|
| Warning |
Row 233, Column 54: "Missing semicolon."
semi
|
| 233 |
onClick = {() => {setWidthdrawModal(true)}} |
| 234 |
/> |
| 235 |
|
| Warning |
Row 236, Column 30: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 236, Column 30: "Replace `·⏎············onPress·=·` with `⏎··············onPress=`"
prettier/prettier
|
| 236 |
<TouchableOpacity |
| 237 |
onPress = {() => props.navigation.navigate('chat')} |
| Error |
Row 238, Column 1: "Insert `··`"
prettier/prettier
|
| 238 |
style={styles.chatContainer}> |
| 239 |
<Chat /> |
| Error |
Row 240, Column 23: "Replace `·label="Message·Buyer"·style={{...styles.value1,·color·:·colors.white}}` with `⏎················label="Message·Buyer"⏎················style={{...styles.value1,·color:·colors.white}}⏎·············`"
prettier/prettier
|
| 240 |
<Regular label="Message Buyer" style={{...styles.value1, color : colors.white}} /> |
| 241 |
</TouchableOpacity> |
| 242 |
|
| 243 |
{/* <View style={styles.buttonsContainer}> |
| 244 |
<View style={styles.button}> |
| 245 |
<Buttons.ButtonPrimaryLight |
| 246 |
onClick={() => { |
| 247 |
props.navigation.navigate('approve'); |
| 248 |
}} |
| 249 |
title="Accept" |
| 250 |
style={{backgroundColor: colors.green}} |
| 251 |
/> |
| 252 |
</View> |
| 253 |
<View style={styles.button}> |
| 254 |
<Buttons.ButtonPrimaryLight |
| 255 |
onClick={() => {}} |
| 256 |
title="Decline" |
| 257 |
style={{backgroundColor: colors.pink}} |
| 258 |
/> |
| 259 |
</View> |
| 260 |
</View> */} |
| 261 |
</View> |
| 262 |
</ScrollView> |
| 263 |
</View> |
| 264 |
<Widthdraw |
| Error |
Row 265, Column 7: "Replace `visible·=·` with `··visible=`"
prettier/prettier
|
| 265 |
visible = {widthdrawModal} |
| Error |
Row 266, Column 1: "Replace `······title·=·` with `········title=`"
prettier/prettier
|
| 266 |
title = "Widthdraw" |
| Error |
Row 267, Column 7: "Replace `name·=·` with `··name=`"
prettier/prettier
|
| 267 |
name = "Black Hat | Mens Wear Sico brand" |
| Error |
Row 268, Column 1: "Replace `······onClose·=·` with `········onClose=`"
prettier/prettier
|
| 268 |
onClose = {() => setWidthdrawModal(false)} |
| Error |
Row 269, Column 1: "Replace `······onConfirm·=·{()·=>·{props.navigation.pop()` with `········onConfirm={()·=>·{⏎··········props.navigation.pop();⏎········`"
prettier/prettier
|
| Warning |
Row 269, Column 49: "Missing semicolon."
semi
|
| 269 |
onConfirm = {() => {props.navigation.pop()}} |
| 270 |
/> |
| 271 |
</KeyboardAvoidingView> |
| 272 |
); |
| 273 |
}; |
| 274 |
export const mapStateToProps = state => ({ |
| 275 |
orderHistoryOfferDetails: state.menu_orders?.orderHistoryOfferDetails, |
| 276 |
profileData: state.auth.userInfo?.profile || {}, |
| 277 |
}); |
| 278 |
|
| 279 |
export const mapDispatchToProps = { |
| 280 |
fetchOrderHistoryOffersDetails: offer_id => |
| 281 |
TAKE_TO_ACTIONS.fetchOrderHistoryOffersDetails(offer_id), |
| 282 |
}; |
| Error |
Row 283, Column 24: "Replace `mapStateToProps,·mapDispatchToProps` with `⏎··mapStateToProps,⏎··mapDispatchToProps,⏎`"
prettier/prettier
|
| 283 |
export default connect(mapStateToProps, mapDispatchToProps)(DeliveryPendingDetails); |
| 284 |
|
| 285 |
const styles = StyleSheet.create({ |
| 286 |
mainContainer: { |
| 287 |
flex: 1, |
| Error |
Row 288, Column 20: "Replace `·:·colors.white` with `:·colors.white,`"
prettier/prettier
|
| Warning |
Row 288, Column 35: "Missing trailing comma."
comma-dangle
|
| 288 |
backgroundColor : colors.white |
| 289 |
}, |
| 290 |
optionsContainer: { |
| 291 |
// height: mvs(270), |
| 292 |
width: '100%', |
| 293 |
borderBottomEndRadius: mvs(20), |
| 294 |
borderBottomStartRadius: mvs(20), |
| 295 |
backgroundColor: colors.white, |
| 296 |
paddingBottom: mvs(15), |
| 297 |
paddingHorizontal: mvs(22), |
| Error |
Row 298, Column 1: "Insert `·`"
prettier/prettier
|
| 298 |
// paddingTop: mvs(30), |
| 299 |
//borderWidth:1 |
| 300 |
}, |
| 301 |
optionsMainContainer: { |
| 302 |
flex: 1, |
| 303 |
paddingHorizontal: mvs(22), |
| 304 |
}, |
| 305 |
option1: { |
| 306 |
//height : mvs(56), |
| 307 |
width: '100%', |
| 308 |
alignSelf: 'center', |
| 309 |
marginTop: mvs(30), |
| 310 |
borderWidth: 1, |
| 311 |
borderColor: colors.primary, |
| 312 |
borderRadius: mvs(10), |
| 313 |
paddingHorizontal: mvs(10), |
| 314 |
paddingTop: mvs(12), |
| 315 |
paddingBottom: mvs(13), |
| 316 |
}, |
| 317 |
option2: { |
| 318 |
//height : mvs(71), |
| 319 |
width: '100%', |
| 320 |
alignSelf: 'center', |
| 321 |
marginTop: mvs(12), |
| 322 |
borderWidth: 1, |
| 323 |
borderColor: colors.primary, |
| 324 |
borderRadius: mvs(10), |
| 325 |
paddingHorizontal: mvs(10), |
| 326 |
paddingTop: mvs(12), |
| 327 |
paddingBottom: mvs(13), |
| 328 |
}, |
| 329 |
optionTitle: { |
| 330 |
fontSize: mvs(15), |
| 331 |
color: colors.primary, |
| 332 |
}, |
| 333 |
optionDetail: { |
| 334 |
fontSize: mvs(12), |
| 335 |
color: colors.headerTitle, |
| 336 |
marginTop: mvs(4), |
| 337 |
}, |
| 338 |
// buttonContainer: { |
| 339 |
// marginVertical : mvs(18), |
| 340 |
// paddingHorizontal : mvs(22) |
| 341 |
// } , |
| 342 |
trackContainer: { |
| 343 |
//borderWidth : 1, |
| 344 |
width: '68%', |
| 345 |
alignSelf: 'flex-end', |
| 346 |
height: mvs(53.92), |
| 347 |
marginTop: mvs(14.2), |
| 348 |
}, |
| 349 |
offersMainContainer: { |
| 350 |
//flex : 1, |
| 351 |
paddingHorizontal: mvs(22), |
| 352 |
//borderWidth : 1 |
| 353 |
}, |
| 354 |
moreDetailsContainer: { |
| 355 |
marginTop: mvs(11), |
| 356 |
}, |
| 357 |
flatlistContainer: { |
| 358 |
height: mvs(233), |
| 359 |
//borderWidth:1, |
| 360 |
marginTop: mvs(11), |
| 361 |
marginBottom: mvs(20), |
| 362 |
}, |
| 363 |
normal: { |
| 364 |
//height : mvs(58), |
| 365 |
width: '100%', |
| 366 |
//borderWidth : 1, |
| 367 |
paddingHorizontal: mvs(22), |
| 368 |
//borderRadius: mvs(10), |
| 369 |
backgroundColor: colors.white, |
| 370 |
paddingBottom: mvs(3), |
| 371 |
//marginTop: mvs(10), |
| 372 |
//justifyContent : 'center' |
| 373 |
}, |
| 374 |
titleContainer: { |
| 375 |
flexDirection: 'row', |
| 376 |
width: '100%', |
| 377 |
//borderWidth : 1, |
| 378 |
marginTop: mvs(20.3), |
| 379 |
justifyContent: 'space-between', |
| 380 |
alignItems: 'center', |
| 381 |
}, |
| 382 |
title: { |
| 383 |
fontSize: mvs(15), |
| 384 |
color: colors.primary, |
| 385 |
textDecorationLine: 'underline', |
| 386 |
}, |
| 387 |
infoContainer: { |
| 388 |
width: '100%', |
| 389 |
flexDirection: 'row', |
| 390 |
alignItems: 'center', |
| 391 |
marginTop: mvs(12), |
| 392 |
//borderWidth : 1, |
| 393 |
justifyContent: 'space-between', |
| 394 |
}, |
| 395 |
label: { |
| 396 |
fontSize: mvs(13), |
| 397 |
color: colors.lightgrey2, |
| 398 |
}, |
| 399 |
value: { |
| 400 |
fontSize: mvs(13), |
| 401 |
color: colors.typeHeader, |
| 402 |
}, |
| 403 |
line: { |
| 404 |
width: '100%', |
| 405 |
borderBottomWidth: mvs(0.5), |
| 406 |
borderColor: colors.doted, |
| 407 |
//marginTop: mvs(11), |
| 408 |
}, |
| 409 |
userContainer: { |
| 410 |
flexDirection: 'row', |
| 411 |
alignItems: 'center', |
| 412 |
}, |
| 413 |
dp: { |
| 414 |
height: mvs(37), |
| 415 |
width: mvs(37), |
| 416 |
borderRadius: mvs(8), |
| 417 |
}, |
| 418 |
name: { |
| 419 |
fontSize: mvs(15), |
| 420 |
color: colors.headerTitle, |
| 421 |
marginLeft: mvs(5), |
| 422 |
}, |
| 423 |
container: { |
| 424 |
flex: 1, |
| 425 |
paddingHorizontal: mvs(22), |
| 426 |
//borderWidth : 1, |
| 427 |
paddingBottom: mvs(40), |
| 428 |
}, |
| 429 |
buyingInstractions: { |
| 430 |
width: '100%', |
| 431 |
borderRadius: mvs(10), |
| 432 |
marginTop: mvs(10), |
| 433 |
backgroundColor: colors.white, |
| 434 |
paddingHorizontal: mvs(13), |
| 435 |
paddingVertical: mvs(13), |
| 436 |
}, |
| 437 |
input: { |
| 438 |
//borderWidth : 1, |
| 439 |
fontSize: mvs(15), |
| 440 |
fontFamily: fonts.carosSoftRegular, |
| 441 |
color: colors.headerTitle, |
| 442 |
padding: 0, |
| 443 |
minHeight: mvs(60), |
| 444 |
textAlignVertical: 'top', |
| 445 |
marginTop: mvs(6), |
| 446 |
}, |
| 447 |
rewardMainContainer: { |
| 448 |
height: mvs(58), |
| 449 |
width: '100%', |
| 450 |
justifyContent: 'space-between', |
| 451 |
flexDirection: 'row', |
| 452 |
alignItems: 'center', |
| 453 |
backgroundColor: colors.white, |
| 454 |
borderRadius: mvs(10), |
| 455 |
marginTop: mvs(15), |
| 456 |
//paddingHorizontal: mvs(10), |
| 457 |
//borderWidth:0.3, |
| Error |
Row 458, Column 16: "Delete `·`"
prettier/prettier
|
| 458 |
borderColor : colors.lightgrey2, |
| 459 |
}, |
| 460 |
rewardValue: { |
| 461 |
fontSize: mvs(20), |
| 462 |
color: colors.green, |
| 463 |
}, |
| 464 |
chatContainer: { |
| 465 |
height: mvs(52), |
| 466 |
width: '100%', |
| 467 |
justifyContent: 'center', |
| 468 |
flexDirection: 'row', |
| 469 |
alignItems: 'center', |
| 470 |
backgroundColor: colors.primary, |
| 471 |
borderRadius: mvs(10), |
| 472 |
marginTop: mvs(12), |
| 473 |
borderWidth: 0.5, |
| 474 |
borderColor: colors.label, |
| 475 |
}, |
| 476 |
value1: { |
| 477 |
color: colors.headerTitle, |
| 478 |
marginLeft: mvs(14), |
| 479 |
}, |
| 480 |
buttonsContainer: { |
| 481 |
//height : mvs(52), |
| 482 |
width: '100%', |
| 483 |
// borderWidth : 1, |
| 484 |
marginTop: mvs(15), |
| 485 |
flexDirection: 'row', |
| 486 |
justifyContent: 'space-between', |
| 487 |
}, |
| 488 |
button: { |
| 489 |
width: '48.5%', |
| 490 |
}, |
| 491 |
routeContainer: { |
| Error |
Row 492, Column 10: "Replace `·:·"60%"` with `:·'60%',`"
prettier/prettier
|
| Warning |
Row 492, Column 13: "Strings must use singlequote."
quotes
|
| Warning |
Row 492, Column 18: "Missing trailing comma."
comma-dangle
|
| 492 |
width : "60%" |
| 493 |
}, |
| 494 |
SUB_LOCATION_DESTINATION: { |
| 495 |
// flex: 1, |
| 496 |
justifyContent: 'space-between', |
| 497 |
alignItems: 'center', |
| Error |
Row 498, Column 12: "Replace `"100%"` with `'100%'`"
prettier/prettier
|
| Warning |
Row 498, Column 12: "Strings must use singlequote."
quotes
|
| 498 |
width: "100%", |
| Error |
Row 499, Column 15: "Insert `·`"
prettier/prettier
|
| 499 |
alignSelf:'flex-end', |
| Warning |
Row 500, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 500, Column 1: "Delete `····`"
prettier/prettier
|
| 500 |
|
| 501 |
// backgroundColor:'red' |
| 502 |
//borderWidth:1, |
| 503 |
// borderColor : 'orange' |
| 504 |
}, |
| 505 |
profileMainContainer: { |
| Error |
Row 506, Column 11: "Delete `·`"
prettier/prettier
|
| 506 |
height : mvs(37), |
| Error |
Row 507, Column 10: "Delete `·`"
prettier/prettier
|
| 507 |
width : '100%', |
| 508 |
//borderWidth : 1, |
| Error |
Row 509, Column 14: "Delete `·`"
prettier/prettier
|
| 509 |
marginTop : mvs(30), |
| Error |
Row 510, Column 18: "Delete `·`"
prettier/prettier
|
| 510 |
flexDirection : 'row', |
| Error |
Row 511, Column 19: "Delete `·`"
prettier/prettier
|
| 511 |
justifyContent : 'space-between', |
| Error |
Row 512, Column 15: "Replace `·:·'center'` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 512, Column 26: "Missing trailing comma."
comma-dangle
|
| 512 |
alignItems : 'center' |
| 513 |
}, |
| 514 |
profileContainer: { |
| Error |
Row 515, Column 11: "Delete `·`"
prettier/prettier
|
| 515 |
height : '100%', |
| 516 |
//width : mvs(126), |
| 517 |
//borderWidth:1, |
| Error |
Row 518, Column 18: "Delete `·`"
prettier/prettier
|
| 518 |
flexDirection : 'row', |
| Error |
Row 519, Column 15: "Delete `·`"
prettier/prettier
|
| 519 |
alignItems : 'center', |
| 520 |
}, |
| 521 |
trackMainContainer: { |
| Error |
Row 522, Column 4: "Insert `·`"
prettier/prettier
|
| 522 |
// borderWidth : 1, |
| Error |
Row 523, Column 10: "Delete `·`"
prettier/prettier
|
| 523 |
width : '100%', |
| Error |
Row 524, Column 17: "Delete `·`"
prettier/prettier
|
| 524 |
paddingRight : mvs(134), |
| Error |
Row 525, Column 15: "Replace `mvs(22)` with `·mvs(22),`"
prettier/prettier
|
| Warning |
Row 525, Column 22: "Missing trailing comma."
comma-dangle
|
| 525 |
marginTop:mvs(22) |
| 526 |
}, |
| Error |
Row 527, Column 3: "Duplicate key 'userContainer'."
no-dupe-keys
|
| 527 |
userContainer: { |
| Error |
Row 528, Column 11: "Replace `·:·"100%"` with `:·'100%'`"
prettier/prettier
|
| Warning |
Row 528, Column 14: "Strings must use singlequote."
quotes
|
| 528 |
height : "100%", |
| Error |
Row 529, Column 13: "Replace `·:·"absolute"` with `:·'absolute'`"
prettier/prettier
|
| Warning |
Row 529, Column 16: "Strings must use singlequote."
quotes
|
| 529 |
position : "absolute", |
| Error |
Row 530, Column 10: "Delete `·`"
prettier/prettier
|
| 530 |
right : 0, |
| Error |
Row 531, Column 19: "Replace `·:·'space-between'` with `:·'space-between',`"
prettier/prettier
|
| Warning |
Row 531, Column 37: "Missing trailing comma."
comma-dangle
|
| 531 |
justifyContent : 'space-between' |
| 532 |
}, |
| 533 |
rewardContainer: { |
| Error |
Row 534, Column 10: "Replace `·:·"49%",·` with `:·'49%',`"
prettier/prettier
|
| Warning |
Row 534, Column 13: "Strings must use singlequote."
quotes
|
| Warning |
Row 534, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| 534 |
width : "49%", |
| Error |
Row 535, Column 11: "Replace `·:·"100%",·` with `:·'100%',`"
prettier/prettier
|
| Warning |
Row 535, Column 14: "Strings must use singlequote."
quotes
|
| Warning |
Row 535, Column 21: "Trailing spaces not allowed."
no-trailing-spaces
|
| 535 |
height : "100%", |
| Error |
Row 536, Column 17: "Replace `·:·mvs(10),·` with `:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 536, Column 28: "Trailing spaces not allowed."
no-trailing-spaces
|
| 536 |
borderRadius : mvs(10), |
| Error |
Row 537, Column 16: "Replace `·:·mvs(0.5),·` with `:·mvs(0.5),`"
prettier/prettier
|
| Warning |
Row 537, Column 28: "Trailing spaces not allowed."
no-trailing-spaces
|
| 537 |
borderWidth : mvs(0.5), |
| Error |
Row 538, Column 16: "Delete `·`"
prettier/prettier
|
| 538 |
borderColor : colors.doted, |
| Error |
Row 539, Column 19: "Replace `·:·'center',·` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 539, Column 31: "Trailing spaces not allowed."
no-trailing-spaces
|
| 539 |
justifyContent : 'center', |
| Error |
Row 540, Column 16: "Replace `'center'` with `·'center',`"
prettier/prettier
|
| Warning |
Row 540, Column 24: "Missing trailing comma."
comma-dangle
|
| 540 |
alignItems:'center' |
| 541 |
}, |
| 542 |
}); |
| 543 |
|
|
| Severity |
Rule |
| Error |
Row 2, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| Error |
Row 10, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 11, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Error |
Row 20, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 26, Column 10: "Replace `·fetchDeliveryHistoryOrders,·delivered_History_Order,·langauge·` with `fetchDeliveryHistoryOrders,·delivered_History_Order,·langauge`"
prettier/prettier
|
| Warning |
Row 27, Column 28: "["aeroplane_white"] is better written in dot notation."
dot-notation
|
| Warning |
Row 28, Column 34: "["aeroplane_active"] is better written in dot notation."
dot-notation
|
| Warning |
Row 29, Column 22: "["car_white"] is better written in dot notation."
dot-notation
|
| Warning |
Row 30, Column 28: "["car_active"] is better written in dot notation."
dot-notation
|
| Warning |
Row 41, Column 34: "'selected' is already declared in the upper scope."
no-shadow
|
| Error |
Row 41, Column 42: "Replace `=` with `·=·`"
prettier/prettier
|
| Warning |
Row 41, Column 42: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 63, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 63, Column 3: "Delete `··⏎··`"
prettier/prettier
|
| Error |
Row 64, Column 6: "React Hook React.useEffect has missing dependencies: 'fetchOrdersList' and 'props?.navigation'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 67, Column 1: "Replace `⏎····return·` with `····return·(⏎······`"
prettier/prettier
|
| Error |
Row 69, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 70, Column 1: "Replace `········onPress={()·=>·{setSelected(0);fetchOrdersList(0)` with `··········onPress={()·=>·{⏎············setSelected(0);⏎············fetchOrdersList(0);⏎··········`"
prettier/prettier
|
| Warning |
Row 70, Column 39: "Missing whitespace after semicolon."
semi-spacing
|
| Warning |
Row 70, Column 58: "Missing semicolon."
semi
|
| Error |
Row 71, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 72, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 73, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 73, Column 37: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 74, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 75, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 75, Column 19: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 76, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 77, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 78, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 79, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Warning |
Row 79, Column 29: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 80, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 81, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 82, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 83, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 85, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 86, Column 10: "Replace `onPress={()·=>·{setSelected(1);fetchOrdersList(1)` with `·onPress={()·=>·{⏎············setSelected(1);⏎············fetchOrdersList(1);⏎··········`"
prettier/prettier
|
| Warning |
Row 86, Column 40: "Missing whitespace after semicolon."
semi-spacing
|
| Warning |
Row 86, Column 59: "Missing semicolon."
semi
|
| Error |
Row 87, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 88, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 89, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 89, Column 37: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 90, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 91, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 91, Column 19: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 92, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 93, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 94, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 95, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 95, Column 29: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 96, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 97, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 98, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 99, Column 1: "Replace `······` with `········`"
prettier/prettier
|
| Error |
Row 100, Column 5: "Insert `··`"
prettier/prettier
|
| Warning |
Row 100, Column 12: "Missing semicolon."
semi
|
| Error |
Row 101, Column 3: "Replace `}` with `··);⏎··};`"
prettier/prettier
|
| Warning |
Row 101, Column 4: "Missing semicolon."
semi
|
| Error |
Row 103, Column 24: "Replace `·item,·index·` with `item,·index`"
prettier/prettier
|
| Error |
Row 110, Column 1: "Delete `⏎⏎`"
prettier/prettier
|
| Error |
Row 113, Column 19: "Replace `·backgroundColor:·colors.secondary·}}⏎` with `backgroundColor:·colors.secondary}}`"
prettier/prettier
|
| Error |
Row 117, Column 60: "Insert `'reward'].split(`"
prettier/prettier
|
| Warning |
Row 118, Column 15: "["reward"] is better written in dot notation."
dot-notation
|
| Error |
Row 118, Column 16: "Replace `reward'` with `·',`"
prettier/prettier
|
| Error |
Row 119, Column 13: "Delete `].split('·'`"
prettier/prettier
|
| Error |
Row 122, Column 60: "Replace `⏎············item?.order_status⏎············` with `item?.order_status`"
prettier/prettier
|
| Error |
Row 126, Column 25: "Replace `·paddingHorizontal:·mvs(20)·` with `paddingHorizontal:·mvs(20)`"
prettier/prettier
|
| Error |
Row 127, Column 24: "Replace `·fontSize:·mvs(12)·` with `fontSize:·mvs(12)`"
prettier/prettier
|
| Error |
Row 131, Column 58: "Insert `,`"
prettier/prettier
|
| Warning |
Row 131, Column 58: "Missing trailing comma."
comma-dangle
|
| Error |
Row 136, Column 23: "Replace `·marginTop:·mvs(20)·` with `marginTop:·mvs(20)`"
prettier/prettier
|
| Error |
Row 139, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 139, Column 4: "Missing semicolon."
semi
|
| Warning |
Row 146, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 146, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| Warning |
Row 157, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 164, Column 20: "Strings must use singlequote."
quotes
|
| Warning |
Row 165, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 165, Column 21: "Replace `·textAlign:·'center',·color:·colors.primary·` with `textAlign:·'center',·color:·colors.primary`"
prettier/prettier
|
| Warning |
Row 170, Column 5: "Expected { after 'else'."
curly
|
| Error |
Row 228, Column 9: "Replace `·⏎` with ``"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| Error |
Row 2, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| 2 |
import React, { useState } from 'react'; |
| 3 |
import { |
| 4 |
ActivityIndicator, |
| 5 |
FlatList, |
| 6 |
StyleSheet, |
| 7 |
TouchableOpacity, |
| 8 |
View, |
| 9 |
} from 'react-native'; |
| Error |
Row 10, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 10 |
import { connect } from 'react-redux'; |
| Error |
Row 11, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| 11 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce'; |
| 12 |
import * as Images from '../../../../resource/assets/order-car-icons'; |
| 13 |
import Header from '../../../components/molecules/header/header-1x'; |
| 14 |
import DeliveryAddressRequest from '../../../components/molecules/modals/delivery-address-request'; |
| 15 |
import ProductAcceptedModal from '../../../components/molecules/modals/product-accepted-modal'; |
| 16 |
import RewardAcceptedModal from '../../../components/molecules/modals/reward-accepted-modal'; |
| 17 |
import StatusModal from '../../../components/molecules/modals/status-modal'; |
| 18 |
import HistoryOrderCard from '../../../components/molecules/order_card/history-offer-card'; |
| 19 |
import colors from '../../../config/colors'; |
| Error |
Row 20, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 20 |
import { mvs } from '../../../config/metrices'; |
| 21 |
import Regular from '../../../presentation/typography/regular-text'; |
| 22 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 23 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 24 |
|
| 25 |
const DeliveryHistory = props => { |
| Error |
Row 26, Column 10: "Replace `·fetchDeliveryHistoryOrders,·delivered_History_Order,·langauge·` with `fetchDeliveryHistoryOrders,·delivered_History_Order,·langauge`"
prettier/prettier
|
| 26 |
const { fetchDeliveryHistoryOrders, delivered_History_Order, langauge } = props; |
| Warning |
Row 27, Column 28: "["aeroplane_white"] is better written in dot notation."
dot-notation
|
| 27 |
const Aeroplane = Images['aeroplane_white']; |
| Warning |
Row 28, Column 34: "["aeroplane_active"] is better written in dot notation."
dot-notation
|
| 28 |
const AeroplaneActive = Images['aeroplane_active']; |
| Warning |
Row 29, Column 22: "["car_white"] is better written in dot notation."
dot-notation
|
| 29 |
const Car = Images['car_white']; |
| Warning |
Row 30, Column 28: "["car_active"] is better written in dot notation."
dot-notation
|
| 30 |
const CarActive = Images['car_active']; |
| 31 |
|
| 32 |
const [selected, setSelected] = useState(0); |
| 33 |
const [rewardAcceptModal, setRewardAcceptModal] = useState(false); |
| 34 |
const [productAcceptModal, setProductAcceptModal] = useState(false); |
| 35 |
const [statusModal, setStatusModal] = useState(false); |
| 36 |
const [addressRequestModal, setAddressRequestModal] = useState(false); |
| 37 |
const [loading, setLoading] = React.useState(true); |
| 38 |
const alertRef = React.useRef(); |
| 39 |
const scrollRef = React.useRef(null); |
| 40 |
|
| Warning |
Row 41, Column 34: "'selected' is already declared in the upper scope."
no-shadow
|
| Error |
Row 41, Column 42: "Replace `=` with `·=·`"
prettier/prettier
|
| Warning |
Row 41, Column 42: "Operator '=' must be spaced."
space-infix-ops
|
| 41 |
const fetchOrdersList = async (selected=0) => { |
| 42 |
try { |
| 43 |
setLoading(true); |
| 44 |
await fetchDeliveryHistoryOrders(selected ? true : false); |
| 45 |
setLoading(false); |
| 46 |
} catch (error) { |
| 47 |
setLoading(false); |
| 48 |
// scrollRef?.current?.scrollTo({x: 0, y: 0, animated: true}); |
| 49 |
alertRef.current.alertWithType( |
| 50 |
'error', |
| 51 |
'Error', |
| 52 |
UI_API._returnError(error), |
| 53 |
); |
| 54 |
} |
| 55 |
}; |
| 56 |
// console.log(delivered_History_Order) |
| 57 |
React.useEffect(() => { |
| 58 |
const unsubscribe = props?.navigation.addListener('focus', () => { |
| 59 |
fetchOrdersList(selected); |
| 60 |
}); |
| 61 |
// Return the function to unsubscribe from the event so it gets removed on unmount |
| 62 |
return unsubscribe; |
| Warning |
Row 63, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 63, Column 3: "Delete `··⏎··`"
prettier/prettier
|
| 63 |
|
| Error |
Row 64, Column 6: "React Hook React.useEffect has missing dependencies: 'fetchOrdersList' and 'props?.navigation'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| 64 |
}, [selected]); |
| 65 |
|
| 66 |
const ButtonDom = () => { |
| Error |
Row 67, Column 1: "Replace `⏎····return·` with `····return·(⏎······`"
prettier/prettier
|
| 67 |
|
| 68 |
return <View style={styles.buttonsContainer}> |
| Error |
Row 69, Column 7: "Insert `··`"
prettier/prettier
|
| 69 |
<TouchableOpacity |
| Error |
Row 70, Column 1: "Replace `········onPress={()·=>·{setSelected(0);fetchOrdersList(0)` with `··········onPress={()·=>·{⏎············setSelected(0);⏎············fetchOrdersList(0);⏎··········`"
prettier/prettier
|
| Warning |
Row 70, Column 39: "Missing whitespace after semicolon."
semi-spacing
|
| Warning |
Row 70, Column 58: "Missing semicolon."
semi
|
| 70 |
onPress={() => {setSelected(0);fetchOrdersList(0)}} |
| Error |
Row 71, Column 1: "Insert `··`"
prettier/prettier
|
| 71 |
style={{ |
| Error |
Row 72, Column 1: "Insert `··`"
prettier/prettier
|
| 72 |
...styles.topButton, |
| Error |
Row 73, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 73, Column 37: "Expected '===' and instead saw '=='."
eqeqeq
|
| 73 |
backgroundColor: selected == 0 ? colors.primary : colors.white, |
| Error |
Row 74, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 74 |
}}> |
| Error |
Row 75, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 75, Column 19: "Expected '===' and instead saw '=='."
eqeqeq
|
| 75 |
{selected == 0 ? <Aeroplane /> : <AeroplaneActive />} |
| Error |
Row 76, Column 1: "Insert `··`"
prettier/prettier
|
| 76 |
<Regular |
| Error |
Row 77, Column 11: "Insert `··`"
prettier/prettier
|
| 77 |
label="International" |
| Error |
Row 78, Column 11: "Insert `··`"
prettier/prettier
|
| 78 |
style={{ |
| Error |
Row 79, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Warning |
Row 79, Column 29: "Expected '===' and instead saw '=='."
eqeqeq
|
| 79 |
color: selected == 0 ? colors.white : colors.primary, |
| Error |
Row 80, Column 13: "Insert `··`"
prettier/prettier
|
| 80 |
marginLeft: mvs(11), |
| Error |
Row 81, Column 11: "Insert `··`"
prettier/prettier
|
| 81 |
}} |
| Error |
Row 82, Column 1: "Insert `··`"
prettier/prettier
|
| 82 |
/> |
| Error |
Row 83, Column 1: "Insert `··`"
prettier/prettier
|
| 83 |
</TouchableOpacity> |
| 84 |
|
| Error |
Row 85, Column 7: "Insert `··`"
prettier/prettier
|
| 85 |
<TouchableOpacity |
| Error |
Row 86, Column 10: "Replace `onPress={()·=>·{setSelected(1);fetchOrdersList(1)` with `·onPress={()·=>·{⏎············setSelected(1);⏎············fetchOrdersList(1);⏎··········`"
prettier/prettier
|
| Warning |
Row 86, Column 40: "Missing whitespace after semicolon."
semi-spacing
|
| Warning |
Row 86, Column 59: "Missing semicolon."
semi
|
| 86 |
onPress={() => {setSelected(1);fetchOrdersList(1)}} |
| Error |
Row 87, Column 1: "Insert `··`"
prettier/prettier
|
| 87 |
style={{ |
| Error |
Row 88, Column 1: "Insert `··`"
prettier/prettier
|
| 88 |
...styles.topButton, |
| Error |
Row 89, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 89, Column 37: "Expected '===' and instead saw '=='."
eqeqeq
|
| 89 |
backgroundColor: selected == 1 ? colors.primary : colors.white, |
| Error |
Row 90, Column 9: "Insert `··`"
prettier/prettier
|
| 90 |
}}> |
| Error |
Row 91, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 91, Column 19: "Expected '===' and instead saw '=='."
eqeqeq
|
| 91 |
{selected == 1 ? <Car /> : <CarActive />} |
| Error |
Row 92, Column 9: "Insert `··`"
prettier/prettier
|
| 92 |
<Regular |
| Error |
Row 93, Column 1: "Insert `··`"
prettier/prettier
|
| 93 |
label="Local" |
| Error |
Row 94, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 94 |
style={{ |
| Error |
Row 95, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 95, Column 29: "Expected '===' and instead saw '=='."
eqeqeq
|
| 95 |
color: selected == 1 ? colors.white : colors.primary, |
| Error |
Row 96, Column 13: "Insert `··`"
prettier/prettier
|
| 96 |
marginLeft: mvs(11), |
| Error |
Row 97, Column 11: "Insert `··`"
prettier/prettier
|
| 97 |
}} |
| Error |
Row 98, Column 1: "Insert `··`"
prettier/prettier
|
| 98 |
/> |
| Error |
Row 99, Column 1: "Replace `······` with `········`"
prettier/prettier
|
| 99 |
</TouchableOpacity> |
| Error |
Row 100, Column 5: "Insert `··`"
prettier/prettier
|
| Warning |
Row 100, Column 12: "Missing semicolon."
semi
|
| 100 |
</View> |
| Error |
Row 101, Column 3: "Replace `}` with `··);⏎··};`"
prettier/prettier
|
| Warning |
Row 101, Column 4: "Missing semicolon."
semi
|
| 101 |
} |
| 102 |
|
| Error |
Row 103, Column 24: "Replace `·item,·index·` with `item,·index`"
prettier/prettier
|
| 103 |
const renderItem = ({ item, index }) => { |
| 104 |
return ( |
| 105 |
<> |
| 106 |
<HistoryOrderCard |
| 107 |
{...props} |
| 108 |
local={selected} |
| 109 |
{...UI_API._returnOrderProps(item)} |
| Error |
Row 110, Column 1: "Delete `⏎⏎`"
prettier/prettier
|
| 110 |
|
| 111 |
|
| 112 |
color={colors.primary} |
| Error |
Row 113, Column 19: "Replace `·backgroundColor:·colors.secondary·}}⏎` with `backgroundColor:·colors.secondary}}`"
prettier/prettier
|
| 113 |
style={{ backgroundColor: colors.secondary }} |
| 114 |
|
| 115 |
type={''} |
| 116 |
status={ |
| Error |
Row 117, Column 60: "Insert `'reward'].split(`"
prettier/prettier
|
| 117 |
langauge?.translations?.delivery_history_steps[ |
| Warning |
Row 118, Column 15: "["reward"] is better written in dot notation."
dot-notation
|
| Error |
Row 118, Column 16: "Replace `reward'` with `·',`"
prettier/prettier
|
| 118 |
'reward' |
| Error |
Row 119, Column 13: "Delete `].split('·'`"
prettier/prettier
|
| 119 |
].split(' ')[0] |
| 120 |
} |
| 121 |
buttonLabel={ |
| Error |
Row 122, Column 60: "Replace `⏎············item?.order_status⏎············` with `item?.order_status`"
prettier/prettier
|
| 122 |
langauge?.translations?.delivery_history_steps[ |
| 123 |
item?.order_status |
| 124 |
] |
| 125 |
} |
| Error |
Row 126, Column 25: "Replace `·paddingHorizontal:·mvs(20)·` with `paddingHorizontal:·mvs(20)`"
prettier/prettier
|
| 126 |
styleButton={{ paddingHorizontal: mvs(20) }} |
| Error |
Row 127, Column 24: "Replace `·fontSize:·mvs(12)·` with `fontSize:·mvs(12)`"
prettier/prettier
|
| 127 |
textStyle1={{ fontSize: mvs(12) }} |
| 128 |
onClick={() => { |
| 129 |
props.navigation.navigate('chat', { |
| 130 |
thread_id: item?.thread_id, |
| Error |
Row 131, Column 58: "Insert `,`"
prettier/prettier
|
| Warning |
Row 131, Column 58: "Missing trailing comma."
comma-dangle
|
| 131 |
participant_name: item?.order_by?.user_name |
| 132 |
}); |
| 133 |
}} |
| 134 |
productImage={TAKE_TO_IMAGES.bag} |
| 135 |
/> |
| Error |
Row 136, Column 23: "Replace `·marginTop:·mvs(20)·` with `marginTop:·mvs(20)`"
prettier/prettier
|
| 136 |
<View style={{ marginTop: mvs(20) }} /> |
| 137 |
</> |
| 138 |
); |
| Error |
Row 139, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 139, Column 4: "Missing semicolon."
semi
|
| 139 |
} |
| 140 |
|
| 141 |
if (loading) { |
| 142 |
return ( |
| 143 |
<View style={styles.mainContainer}> |
| 144 |
<Header {...props} title="delivery History" allowBackBtn bellIcon /> |
| 145 |
{ButtonDom()} |
| Warning |
Row 146, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 146, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| 146 |
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> |
| 147 |
<ActivityIndicator size="small" color={colors.primary} /> |
| 148 |
</View> |
| 149 |
</View> |
| 150 |
); |
| 151 |
} else if (!loading && delivered_History_Order?.data?.length <= 0) { |
| 152 |
return ( |
| 153 |
<View style={styles.mainContainer}> |
| 154 |
<Header {...props} title="delivery History" allowBackBtn bellIcon /> |
| 155 |
{ButtonDom()} |
| 156 |
<View |
| Warning |
Row 157, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 157 |
style={{ |
| 158 |
flex: 1, |
| 159 |
justifyContent: 'center', |
| 160 |
alignItems: 'center', |
| 161 |
paddingHorizontal: mvs(20), |
| 162 |
}}> |
| 163 |
<Regular |
| Warning |
Row 164, Column 20: "Strings must use singlequote."
quotes
|
| 164 |
label={`No Record Found.`} |
| Warning |
Row 165, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 165, Column 21: "Replace `·textAlign:·'center',·color:·colors.primary·` with `textAlign:·'center',·color:·colors.primary`"
prettier/prettier
|
| 165 |
style={{ textAlign: 'center', color: colors.primary }} |
| 166 |
/> |
| 167 |
</View> |
| 168 |
</View> |
| 169 |
); |
| Warning |
Row 170, Column 5: "Expected { after 'else'."
curly
|
| 170 |
} else |
| 171 |
return ( |
| 172 |
<View style={styles.mainContainer}> |
| 173 |
<Header {...props} title="delivery History" allowBackBtn bellIcon /> |
| 174 |
<View style={styles.container}> |
| 175 |
{ButtonDom()} |
| 176 |
|
| 177 |
<FlatList |
| 178 |
ref={scrollRef} |
| 179 |
data={delivered_History_Order.data} |
| 180 |
keyExtractor={item => item.order_created_at.toString()} |
| 181 |
showsVerticalScrollIndicator={false} |
| 182 |
contentContainerStyle={{ |
| 183 |
...styles.SCROLL_CONTAINER, |
| 184 |
paddingTop: mvs(20), |
| 185 |
paddingBottom: mvs(22), |
| 186 |
}} |
| 187 |
renderItem={renderItem} |
| 188 |
/> |
| 189 |
</View> |
| 190 |
<RewardAcceptedModal |
| 191 |
visible={rewardAcceptModal} |
| 192 |
onClose={() => { |
| 193 |
setRewardAcceptModal(false); |
| 194 |
}} |
| 195 |
onSendButton={() => { |
| 196 |
props.navigation.navigate('chat'); |
| 197 |
}} |
| 198 |
/> |
| 199 |
<ProductAcceptedModal |
| 200 |
visible={productAcceptModal} |
| 201 |
onClose={() => { |
| 202 |
setProductAcceptModal(false); |
| 203 |
}} |
| 204 |
onSendButton={() => { |
| 205 |
props.navigation.navigate('chat'); |
| 206 |
}} |
| 207 |
/> |
| 208 |
<StatusModal |
| 209 |
visible={statusModal} |
| 210 |
title="Receipt Accepted" |
| 211 |
buttonTitle="Request Delivery Address" |
| 212 |
onConfirm={() => { |
| 213 |
setStatusModal(false); |
| 214 |
setAddressRequestModal(true); |
| 215 |
}} |
| 216 |
onClose={() => { |
| 217 |
setStatusModal(false); |
| 218 |
}} |
| 219 |
endButtonTitle="Back" |
| 220 |
endButton |
| 221 |
/> |
| 222 |
<DeliveryAddressRequest |
| 223 |
visible={addressRequestModal} |
| 224 |
onClose={() => { |
| 225 |
setAddressRequestModal(false); |
| 226 |
}} |
| 227 |
/> |
| Error |
Row 228, Column 9: "Replace `·⏎` with ``"
prettier/prettier
|
| 228 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 229 |
|
| 230 |
</View> |
| 231 |
); |
| 232 |
}; |
| 233 |
|
| 234 |
export const mapStateToProps = state => ({ |
| 235 |
delivered_History_Order: state.menu_orders?.deliveredHistoryOrder, |
| 236 |
langauge: state.common?.langauge, |
| 237 |
}); |
| 238 |
|
| 239 |
export const mapDispatchToProps = { |
| 240 |
fetchDeliveryHistoryOrders: local => |
| 241 |
TAKE_TO_ACTIONS.fetchDeliveryHistoryOrders(local), |
| 242 |
}; |
| 243 |
export default connect(mapStateToProps, mapDispatchToProps)(DeliveryHistory); |
| 244 |
|
| 245 |
const styles = StyleSheet.create({ |
| 246 |
mainContainer: { |
| 247 |
flex: 1, |
| 248 |
backgroundColor: colors.white, |
| 249 |
}, |
| 250 |
SCROLL_CONTAINER: { |
| 251 |
paddingHorizontal: mvs(22), |
| 252 |
}, |
| 253 |
container: { |
| 254 |
flex: 1, |
| 255 |
}, |
| 256 |
buttonsContainer: { |
| 257 |
//height: mvs(44), |
| 258 |
width: '100%', |
| 259 |
//borderWidth : 1, |
| 260 |
paddingHorizontal: mvs(22), |
| 261 |
// marginTop: mvs(30), |
| 262 |
flexDirection: 'row', |
| 263 |
justifyContent: 'space-between', |
| 264 |
paddingBottom: mvs(20), |
| 265 |
}, |
| 266 |
topButton: { |
| 267 |
height: mvs(44), |
| 268 |
width: '48%', |
| 269 |
borderWidth: 1, |
| 270 |
borderRadius: mvs(10), |
| 271 |
justifyContent: 'center', |
| 272 |
alignItems: 'center', |
| 273 |
flexDirection: 'row', |
| 274 |
borderColor: colors.primary, |
| 275 |
}, |
| 276 |
}); |
| 277 |
|
|
| Severity |
Rule |
| Error |
Row 3, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| Error |
Row 4, Column 9: "Replace `·ActivityIndicator,·FlatList,·StyleSheet,·View·` with `ActivityIndicator,·FlatList,·StyleSheet,·View`"
prettier/prettier
|
| Error |
Row 6, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 13, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 16, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 18, Column 10: "Replace `·disputed_Orders,·fetchDisputedOrders,·langauge,·profileData·` with `disputed_Orders,·fetchDisputedOrders,·langauge,·profileData`"
prettier/prettier
|
| Warning |
Row 19, Column 9: "'Aeroplane' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 19, Column 28: "["aeroplane_white"] is better written in dot notation."
dot-notation
|
| Warning |
Row 20, Column 9: "'AeroplaneActive' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 20, Column 34: "["aeroplane_active"] is better written in dot notation."
dot-notation
|
| Warning |
Row 21, Column 9: "'Car' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 21, Column 22: "["car_white"] is better written in dot notation."
dot-notation
|
| Warning |
Row 22, Column 9: "'CarActive' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 22, Column 28: "["car_active"] is better written in dot notation."
dot-notation
|
| Warning |
Row 24, Column 20: "'setSelected' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 25, Column 58: "Insert `;`"
prettier/prettier
|
| Warning |
Row 25, Column 58: "Missing semicolon."
semi
|
| Error |
Row 31, Column 1: "Delete `⏎⏎⏎`"
prettier/prettier
|
| Warning |
Row 34, Column 30: "'setLoading' is already declared in the upper scope."
no-shadow
|
| Error |
Row 42, Column 39: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 56, Column 6: "React Hook React.useEffect has a missing dependency: 'onPagination'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 56, Column 31: "Delete `⏎⏎`"
prettier/prettier
|
| Warning |
Row 64, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 64, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| Error |
Row 67, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}·inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}·/>⏎` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎········/>`"
prettier/prettier
|
| Error |
Row 71, Column 14: "Replace `!loading·&&·Object.keys(disputed_Orders).length·<=·0·||·disputed_Orders?.data?.length·<=·0` with `⏎····(!loading·&&·Object.keys(disputed_Orders).length·<=·0)·||⏎····disputed_Orders?.data?.length·<=·0⏎··`"
prettier/prettier
|
| Warning |
Row 76, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 83, Column 20: "Strings must use singlequote."
quotes
|
| Warning |
Row 84, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 84, Column 21: "Replace `·textAlign:·'center',·color:·colors.primary·` with `textAlign:·'center',·color:·colors.primary`"
prettier/prettier
|
| Error |
Row 87, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}·inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}·/>⏎` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎········/>`"
prettier/prettier
|
| Error |
Row 107, Column 25: "Replace `·item,·index·` with `item,·index`"
prettier/prettier
|
| Error |
Row 113, Column 27: "Replace `·backgroundColor:·colors.secondary·` with `backgroundColor:·colors.secondary`"
prettier/prettier
|
| Error |
Row 115, Column 32: "Insert `⏎····················`"
prettier/prettier
|
| Error |
Row 116, Column 21: "Insert `··`"
prettier/prettier
|
| Error |
Row 117, Column 1: "Replace `··················]` with `····················]⏎··················`"
prettier/prettier
|
| Error |
Row 118, Column 32: "Replace `·fontSize:·mvs(12)·` with `fontSize:·mvs(12)`"
prettier/prettier
|
| Error |
Row 119, Column 33: "Replace `·height:·mvs(57),·backgroundColor:·colors.pink·` with `height:·mvs(57),·backgroundColor:·colors.pink`"
prettier/prettier
|
| Error |
Row 122, Column 71: "Replace `⏎····················'reward'⏎··················` with `'reward'`"
prettier/prettier
|
| Warning |
Row 123, Column 21: "["reward"] is better written in dot notation."
dot-notation
|
| Error |
Row 126, Column 64: "Replace `·dispute_id:·item?.dispute_id·})` with `⏎······················dispute_id:·item?.dispute_id,⏎····················});`"
prettier/prettier
|
| Warning |
Row 126, Column 96: "Missing semicolon."
semi
|
| Error |
Row 131, Column 31: "Replace `item?.order_next_step·===·'dispute_3'·?·true·:·false` with `⏎····················item?.order_next_step·===·'dispute_3'·?·true·:·false⏎··················`"
prettier/prettier
|
| Error |
Row 134, Column 31: "Replace `·marginTop:·mvs(20)·` with `marginTop:·mvs(20)`"
prettier/prettier
|
| Error |
Row 140, Column 23: "Replace `(⏎········⏎······)` with ``"
prettier/prettier
|
| Error |
Row 148, Column 21: "Replace `·translucent·activeStatusBarStyle={'light-content'}·inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎········translucent⏎········activeStatusBarStyle={'light-content'}⏎········inactiveStatusBarBackgroundColor={colors.primary}⏎········ref={alertRef}⏎·····`"
prettier/prettier
|
| Error |
Row 159, Column 24: "Replace `(page)` with `page`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 2 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| Error |
Row 3, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| 3 |
import React, { useState } from 'react'; |
| Error |
Row 4, Column 9: "Replace `·ActivityIndicator,·FlatList,·StyleSheet,·View·` with `ActivityIndicator,·FlatList,·StyleSheet,·View`"
prettier/prettier
|
| 4 |
import { ActivityIndicator, FlatList, StyleSheet, View } from 'react-native'; |
| 5 |
import DropdownAlert from 'react-native-dropdownalert'; |
| Error |
Row 6, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 6 |
import { connect } from 'react-redux'; |
| 7 |
import * as Images from '../../../../resource/assets/order-car-icons'; |
| 8 |
import PagingLoader from '../../../components/atoms/paging-loader'; |
| 9 |
import Header from '../../../components/molecules/header/header-1x'; |
| 10 |
import DisputeModal from '../../../components/molecules/modals/dispute-modal'; |
| 11 |
import HistoryOrderCard from '../../../components/molecules/order_card/history-offer-card'; |
| 12 |
import colors from '../../../config/colors'; |
| Error |
Row 13, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 13 |
import { mvs } from '../../../config/metrices'; |
| 14 |
import Regular from '../../../presentation/typography/regular-text'; |
| 15 |
|
| Error |
Row 16, Column 1: "Delete `⏎`"
prettier/prettier
|
| 16 |
|
| 17 |
const Disputes = props => { |
| Error |
Row 18, Column 10: "Replace `·disputed_Orders,·fetchDisputedOrders,·langauge,·profileData·` with `disputed_Orders,·fetchDisputedOrders,·langauge,·profileData`"
prettier/prettier
|
| 18 |
const { disputed_Orders, fetchDisputedOrders, langauge, profileData } = props; |
| Warning |
Row 19, Column 9: "'Aeroplane' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 19, Column 28: "["aeroplane_white"] is better written in dot notation."
dot-notation
|
| 19 |
const Aeroplane = Images['aeroplane_white']; |
| Warning |
Row 20, Column 9: "'AeroplaneActive' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 20, Column 34: "["aeroplane_active"] is better written in dot notation."
dot-notation
|
| 20 |
const AeroplaneActive = Images['aeroplane_active']; |
| Warning |
Row 21, Column 9: "'Car' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 21, Column 22: "["car_white"] is better written in dot notation."
dot-notation
|
| 21 |
const Car = Images['car_white']; |
| Warning |
Row 22, Column 9: "'CarActive' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 22, Column 28: "["car_active"] is better written in dot notation."
dot-notation
|
| 22 |
const CarActive = Images['car_active']; |
| 23 |
|
| Warning |
Row 24, Column 20: "'setSelected' is assigned a value but never used."
no-unused-vars
|
| 24 |
const [selected, setSelected] = useState({}); |
| Error |
Row 25, Column 58: "Insert `;`"
prettier/prettier
|
| Warning |
Row 25, Column 58: "Missing semicolon."
semi
|
| 25 |
const [disputeModal, setDisputeModal] = useState(false) |
| 26 |
const [pageLoading, setPageLoading] = React.useState(false); |
| 27 |
|
| 28 |
const [loading, setLoading] = React.useState(true); |
| 29 |
const alertRef = React.useRef(); |
| 30 |
|
| Error |
Row 31, Column 1: "Delete `⏎⏎⏎`"
prettier/prettier
|
| 31 |
|
| 32 |
|
| 33 |
|
| Warning |
Row 34, Column 30: "'setLoading' is already declared in the upper scope."
no-shadow
|
| 34 |
const onPagination = async setLoading => { |
| 35 |
try { |
| 36 |
let page = UI_API._returnPage(disputed_Orders); |
| 37 |
console.log('page:::', page); |
| 38 |
if (!page) { |
| 39 |
return; |
| 40 |
} |
| 41 |
setLoading(true); |
| Error |
Row 42, Column 39: "Delete `⏎`"
prettier/prettier
|
| 42 |
await fetchDisputedOrders(page); |
| 43 |
|
| 44 |
} catch (error) { |
| 45 |
alertRef.current.alertWithType( |
| 46 |
'error', |
| 47 |
'Error', |
| 48 |
UI_API._returnError(error), |
| 49 |
); |
| 50 |
} finally { |
| 51 |
setLoading(false); |
| 52 |
} |
| 53 |
}; |
| 54 |
React.useEffect(() => { |
| 55 |
onPagination(setLoading); |
| Error |
Row 56, Column 6: "React Hook React.useEffect has a missing dependency: 'onPagination'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 56, Column 31: "Delete `⏎⏎`"
prettier/prettier
|
| 56 |
}, [profileData?.currency]); |
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
if (loading) { |
| 61 |
return ( |
| 62 |
<View style={styles.mainContainer}> |
| 63 |
<Header {...props} title="My Disputes" allowBackBtn bellIcon /> |
| Warning |
Row 64, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 64, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| 64 |
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> |
| 65 |
<ActivityIndicator size="small" color={colors.primary} /> |
| 66 |
</View> |
| Error |
Row 67, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}·inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}·/>⏎` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎········/>`"
prettier/prettier
|
| 67 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 68 |
|
| 69 |
</View> |
| 70 |
); |
| Error |
Row 71, Column 14: "Replace `!loading·&&·Object.keys(disputed_Orders).length·<=·0·||·disputed_Orders?.data?.length·<=·0` with `⏎····(!loading·&&·Object.keys(disputed_Orders).length·<=·0)·||⏎····disputed_Orders?.data?.length·<=·0⏎··`"
prettier/prettier
|
| 71 |
} else if (!loading && Object.keys(disputed_Orders).length <= 0 || disputed_Orders?.data?.length <= 0) { |
| 72 |
return ( |
| 73 |
<View style={styles.mainContainer}> |
| 74 |
<Header {...props} title="My Disputes" allowBackBtn bellIcon /> |
| 75 |
<View |
| Warning |
Row 76, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 76 |
style={{ |
| 77 |
flex: 1, |
| 78 |
justifyContent: 'center', |
| 79 |
alignItems: 'center', |
| 80 |
paddingHorizontal: mvs(20), |
| 81 |
}}> |
| 82 |
<Regular |
| Warning |
Row 83, Column 20: "Strings must use singlequote."
quotes
|
| 83 |
label={`No Record Found`} |
| Warning |
Row 84, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 84, Column 21: "Replace `·textAlign:·'center',·color:·colors.primary·` with `textAlign:·'center',·color:·colors.primary`"
prettier/prettier
|
| 84 |
style={{ textAlign: 'center', color: colors.primary }} |
| 85 |
/> |
| 86 |
</View> |
| Error |
Row 87, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}·inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}·/>⏎` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎········/>`"
prettier/prettier
|
| 87 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 88 |
|
| 89 |
</View> |
| 90 |
); |
| 91 |
} |
| 92 |
return ( |
| 93 |
<View style={styles.mainContainer}> |
| 94 |
<Header {...props} title="disputes" allowBackBtn bellIcon /> |
| 95 |
<View style={styles.container}> |
| 96 |
<FlatList |
| 97 |
data={disputed_Orders?.data} |
| 98 |
keyExtractor={item => item?.order_created_at?.toString()} |
| 99 |
showsVerticalScrollIndicator={false} |
| 100 |
onEndReachedThreshold={0.5} |
| 101 |
onEndReached={() => onPagination(setPageLoading)} |
| 102 |
contentContainerStyle={{ |
| 103 |
...styles.SCROLL_CONTAINER, |
| 104 |
//paddingTop: mvs(20), |
| 105 |
paddingBottom: mvs(22), |
| 106 |
}} |
| Error |
Row 107, Column 25: "Replace `·item,·index·` with `item,·index`"
prettier/prettier
|
| 107 |
renderItem={({ item, index }) => { |
| 108 |
// console.log(item) |
| 109 |
return ( |
| 110 |
<> |
| 111 |
<HistoryOrderCard |
| 112 |
{...props} |
| Error |
Row 113, Column 27: "Replace `·backgroundColor:·colors.secondary·` with `backgroundColor:·colors.secondary`"
prettier/prettier
|
| 113 |
style={{ backgroundColor: colors.secondary }} |
| 114 |
type={''} |
| Error |
Row 115, Column 32: "Insert `⏎····················`"
prettier/prettier
|
| 115 |
buttonLabel={langauge?.translations?.order_dispute_steps[ |
| Error |
Row 116, Column 21: "Insert `··`"
prettier/prettier
|
| 116 |
item?.order_next_step || item?.order_status |
| Error |
Row 117, Column 1: "Replace `··················]` with `····················]⏎··················`"
prettier/prettier
|
| 117 |
]} |
| Error |
Row 118, Column 32: "Replace `·fontSize:·mvs(12)·` with `fontSize:·mvs(12)`"
prettier/prettier
|
| 118 |
textStyle1={{ fontSize: mvs(12) }} |
| Error |
Row 119, Column 33: "Replace `·height:·mvs(57),·backgroundColor:·colors.pink·` with `height:·mvs(57),·backgroundColor:·colors.pink`"
prettier/prettier
|
| 119 |
styleButton={{ height: mvs(57), backgroundColor: colors.pink }} |
| 120 |
color={colors.disputes} |
| 121 |
// order_img={item?.order_image} |
| Error |
Row 122, Column 71: "Replace `⏎····················'reward'⏎··················` with `'reward'`"
prettier/prettier
|
| 122 |
status={langauge?.translations?.order_dispute_steps[ |
| Warning |
Row 123, Column 21: "["reward"] is better written in dot notation."
dot-notation
|
| 123 |
'reward' |
| 124 |
]} |
| 125 |
onClick={() => { |
| Error |
Row 126, Column 64: "Replace `·dispute_id:·item?.dispute_id·})` with `⏎······················dispute_id:·item?.dispute_id,⏎····················});`"
prettier/prettier
|
| Warning |
Row 126, Column 96: "Missing semicolon."
semi
|
| 126 |
props.navigation.navigate('chat_dispute', { dispute_id: item?.dispute_id }) |
| 127 |
// setDisputeModal(true) |
| 128 |
// setSelected(item) |
| 129 |
//props.navigation.navigate('chat') |
| 130 |
}} |
| Error |
Row 131, Column 31: "Replace `item?.order_next_step·===·'dispute_3'·?·true·:·false` with `⏎····················item?.order_next_step·===·'dispute_3'·?·true·:·false⏎··················`"
prettier/prettier
|
| 131 |
lineStatus={item?.order_next_step === 'dispute_3' ? true : false} |
| 132 |
{...UI_API._returnOrderProps(item)} |
| 133 |
/> |
| Error |
Row 134, Column 31: "Replace `·marginTop:·mvs(20)·` with `marginTop:·mvs(20)`"
prettier/prettier
|
| 134 |
<View style={{ marginTop: mvs(20) }} /> |
| 135 |
</> |
| 136 |
); |
| 137 |
}} |
| 138 |
/> |
| 139 |
</View> |
| Error |
Row 140, Column 23: "Replace `(⏎········⏎······)` with ``"
prettier/prettier
|
| 140 |
{pageLoading && ( |
| 141 |
<PagingLoader /> |
| 142 |
)} |
| 143 |
<DisputeModal |
| 144 |
visible={disputeModal} |
| 145 |
reason={`${selected?.description}`} |
| 146 |
onClose={() => setDisputeModal(false)} |
| 147 |
/> |
| Error |
Row 148, Column 21: "Replace `·translucent·activeStatusBarStyle={'light-content'}·inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎········translucent⏎········activeStatusBarStyle={'light-content'}⏎········inactiveStatusBarBackgroundColor={colors.primary}⏎········ref={alertRef}⏎·····`"
prettier/prettier
|
| 148 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 149 |
</View> |
| 150 |
); |
| 151 |
}; |
| 152 |
|
| 153 |
export const mapStateToProps = state => ({ |
| 154 |
disputed_Orders: state.menu_orders?.disputedOrders, |
| 155 |
langauge: state.common?.langauge, |
| 156 |
}); |
| 157 |
|
| 158 |
export const mapDispatchToProps = { |
| Error |
Row 159, Column 24: "Replace `(page)` with `page`"
prettier/prettier
|
| 159 |
fetchDisputedOrders: (page) => TAKE_TO_ACTIONS.fetchDisputedOrders(page), |
| 160 |
}; |
| 161 |
export default connect(mapStateToProps, mapDispatchToProps)(Disputes); |
| 162 |
|
| 163 |
const styles = StyleSheet.create({ |
| 164 |
mainContainer: { |
| 165 |
flex: 1, |
| 166 |
backgroundColor: colors.white, |
| 167 |
}, |
| 168 |
container: { |
| 169 |
flex: 1, |
| 170 |
}, |
| 171 |
SCROLL_CONTAINER: { |
| 172 |
paddingHorizontal: mvs(22), |
| 173 |
}, |
| 174 |
buttonsContainer: { |
| 175 |
height: mvs(44), |
| 176 |
width: '100%', |
| 177 |
//borderWidth : 1, |
| 178 |
marginTop: mvs(30), |
| 179 |
flexDirection: 'row', |
| 180 |
justifyContent: 'space-between', |
| 181 |
}, |
| 182 |
topButton: { |
| 183 |
height: '100%', |
| 184 |
width: '48%', |
| 185 |
borderWidth: 1, |
| 186 |
borderRadius: mvs(10), |
| 187 |
justifyContent: 'center', |
| 188 |
alignItems: 'center', |
| 189 |
flexDirection: 'row', |
| 190 |
borderColor: colors.primary, |
| 191 |
}, |
| 192 |
}); |
| 193 |
|
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `StyleSheet,·Text,·View,·Image,·FlatList,·ScrollView,·Share` with `⏎··StyleSheet,⏎··Text,⏎··View,⏎··Image,⏎··FlatList,⏎··ScrollView,⏎··Share,⏎`"
prettier/prettier
|
| Warning |
Row 2, Column 21: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 13, Column 23: "["gift"] is better written in dot notation."
dot-notation
|
| Error |
Row 16, Column 70: "Replace `·=·{false}` with `={false}·`"
prettier/prettier
|
| Warning |
Row 18, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 18, Column 20: "Replace `··⏎········nestedScrollEnabled·⏎········showsVerticalScrollIndicator={false}·contentContainerStyle={{paddingBottom:` with `⏎··········nestedScrollEnabled⏎··········showsVerticalScrollIndicator={false}⏎··········contentContainerStyle={{paddingBottom:·`"
prettier/prettier
|
| Warning |
Row 19, Column 28: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 21, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 22, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 23, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 25, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 26, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 27, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 28, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 29, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 30, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 31, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 32, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 33, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 34, Column 11: "Insert `··`"
prettier/prettier
|
| Warning |
Row 34, Column 24: "Inline style: { marginTop: 0 }"
react-native/no-inline-styles
|
| Error |
Row 35, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 36, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 37, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 38, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 40, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 41, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 42, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 43, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 44, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 45, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 46, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 47, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 48, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 50, Column 11: "Replace `prettier/prettier
|
| Warning |
Row 50, Column 24: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 51, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 52, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 53, Column 1: "Replace `··············data={[1,2,4,5,6,7,` with `················data={[1,·2,·4,·5,·6,·7,·`"
prettier/prettier
|
| Error |
Row 54, Column 15: "Replace `showsVerticalScrollIndicator·=·` with `··showsVerticalScrollIndicator=`"
prettier/prettier
|
| Error |
Row 55, Column 1: "Replace `··············keyExtractor={(item,index)=>` with `················keyExtractor={(item,·index)·=>·`"
prettier/prettier
|
| Error |
Row 56, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 57, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 58, Column 19: "Insert `··`"
prettier/prettier
|
| Error |
Row 59, Column 21: "Replace `prettier/prettier
|
| Error |
Row 60, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 61, Column 1: "Replace `······················` with `························`"
prettier/prettier
|
| Error |
Row 62, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 62, Column 30: "Inline style: { marginTop: 0 }"
react-native/no-inline-styles
|
| Error |
Row 63, Column 25: "Insert `··`"
prettier/prettier
|
| Error |
Row 64, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 65, Column 25: "Insert `··`"
prettier/prettier
|
| Error |
Row 66, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 67, Column 21: "Insert `··`"
prettier/prettier
|
| Error |
Row 69, Column 1: "Replace `····················` with `······················`"
prettier/prettier
|
| Error |
Row 70, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 70, Column 30: "Inline style: { marginTop: 0, position: 'absolute' }"
react-native/no-inline-styles
|
| Error |
Row 71, Column 25: "Insert `··`"
prettier/prettier
|
| Error |
Row 72, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 73, Column 25: "Insert `··`"
prettier/prettier
|
| Error |
Row 74, Column 25: "Insert `··`"
prettier/prettier
|
| Error |
Row 75, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 76, Column 23: "Insert `··`"
prettier/prettier
|
| Error |
Row 77, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 78, Column 25: "Replace `style={{...styles.mixTxt1,color:colors.primary,·marginTop:·0` with `··style={{⏎····························...styles.mixTxt1,⏎····························color:·colors.primary,⏎····························marginTop:·0,⏎··························`"
prettier/prettier
|
| Warning |
Row 78, Column 32: "Inline style: { marginTop: 0 }"
react-native/no-inline-styles
|
| Error |
Row 79, Column 1: "Replace `······················` with `························`"
prettier/prettier
|
| Error |
Row 80, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 81, Column 25: "Insert `··`"
prettier/prettier
|
| Error |
Row 82, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 82, Column 32: "Inline style: { marginTop: 0 }"
react-native/no-inline-styles
|
| Error |
Row 83, Column 23: "Insert `··`"
prettier/prettier
|
| Error |
Row 84, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 85, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 86, Column 17: "Insert `··`"
prettier/prettier
|
| Error |
Row 87, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 88, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 88, Column 15: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Error |
Row 89, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 90, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 91, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 94, Column 33: "Replace `·onClick={()·=>·{Share.share({message·:·"sharing..."})}}·title="Share"` with `⏎············onClick={()·=>·{⏎··············Share.share({message:·'sharing...'});⏎············}}⏎············title="Share"⏎·········`"
prettier/prettier
|
| Warning |
Row 94, Column 73: "Strings must use singlequote."
quotes
|
| Warning |
Row 94, Column 87: "Missing semicolon."
semi
|
| Error |
Row 156, Column 16: "Delete `·`"
prettier/prettier
|
| Error |
Row 157, Column 17: "Delete `·`"
prettier/prettier
|
| Error |
Row 161, Column 20: "Delete `·`"
prettier/prettier
|
| Error |
Row 162, Column 17: "Delete `·`"
prettier/prettier
|
| Error |
Row 163, Column 14: "Replace `·:·mvs(10)` with `:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 163, Column 24: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `StyleSheet,·Text,·View,·Image,·FlatList,·ScrollView,·Share` with `⏎··StyleSheet,⏎··Text,⏎··View,⏎··Image,⏎··FlatList,⏎··ScrollView,⏎··Share,⏎`"
prettier/prettier
|
| Warning |
Row 2, Column 21: "'Text' is defined but never used."
no-unused-vars
|
| 2 |
import {StyleSheet, Text, View, Image, FlatList, ScrollView, Share} from 'react-native'; |
| 3 |
import Header from '../../../components/molecules/header/header-1x'; |
| 4 |
import colors from '../../../config/colors'; |
| 5 |
import * as Images from '../../../../resource/assets/invite-friends'; |
| 6 |
import Medium from '../../../presentation/typography/medium-text'; |
| 7 |
import {mvs} from '../../../config/metrices'; |
| 8 |
import Regular from '../../../presentation/typography/regular-text'; |
| 9 |
import {TAKE_TO_IMAGES} from '../../../../resource/assets/image_resouce'; |
| 10 |
import Buttons from '../../../components/atoms/Button'; |
| 11 |
|
| 12 |
const InviteFriends = props => { |
| Warning |
Row 13, Column 23: "["gift"] is better written in dot notation."
dot-notation
|
| 13 |
const Gift = Images['gift']; |
| 14 |
return ( |
| 15 |
<View style={styles.mainContainer}> |
| Error |
Row 16, Column 70: "Replace `·=·{false}` with `={false}·`"
prettier/prettier
|
| 16 |
<Header {...props} title="invite friends" allowBackBtn userIcon = {false}/> |
| 17 |
<View style={styles.container}> |
| Warning |
Row 18, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 18, Column 20: "Replace `··⏎········nestedScrollEnabled·⏎········showsVerticalScrollIndicator={false}·contentContainerStyle={{paddingBottom:` with `⏎··········nestedScrollEnabled⏎··········showsVerticalScrollIndicator={false}⏎··········contentContainerStyle={{paddingBottom:·`"
prettier/prettier
|
| 18 |
<ScrollView |
| Warning |
Row 19, Column 28: "Trailing spaces not allowed."
no-trailing-spaces
|
| 19 |
nestedScrollEnabled |
| 20 |
showsVerticalScrollIndicator={false} contentContainerStyle={{paddingBottom:mvs(100)}}> |
| Error |
Row 21, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 21 |
<View style={styles.giftContainer}> |
| Error |
Row 22, Column 11: "Insert `··`"
prettier/prettier
|
| 22 |
<Gift /> |
| Error |
Row 23, Column 1: "Insert `··`"
prettier/prettier
|
| 23 |
<Medium label="Get US$ 10" style={styles.prize} /> |
| 24 |
|
| Error |
Row 25, Column 11: "Insert `··`"
prettier/prettier
|
| 25 |
<View style={styles.mixTxts}> |
| Error |
Row 26, Column 1: "Insert `··`"
prettier/prettier
|
| 26 |
<Regular label="Earn" style={styles.mixTxt1} /> |
| Error |
Row 27, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 27 |
<Regular label=" US$ 10" style={styles.mixTxt2} /> |
| Error |
Row 28, Column 13: "Insert `··`"
prettier/prettier
|
| 28 |
<Regular |
| Error |
Row 29, Column 1: "Insert `··`"
prettier/prettier
|
| 29 |
label=" for each friend who uses" |
| Error |
Row 30, Column 15: "Insert `··`"
prettier/prettier
|
| 30 |
style={styles.mixTxt1} |
| Error |
Row 31, Column 1: "Insert `··`"
prettier/prettier
|
| 31 |
/> |
| Error |
Row 32, Column 13: "Insert `··`"
prettier/prettier
|
| 32 |
<Regular label=" Taketo." style={styles.mixTxt3} /> |
| Error |
Row 33, Column 1: "Insert `··`"
prettier/prettier
|
| 33 |
</View> |
| Error |
Row 34, Column 11: "Insert `··`"
prettier/prettier
|
| Warning |
Row 34, Column 24: "Inline style: { marginTop: 0 }"
react-native/no-inline-styles
|
| 34 |
<View style={{...styles.mixTxts, marginTop: 0}}> |
| Error |
Row 35, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 35 |
<Regular label="Reward them with" style={styles.mixTxt1} /> |
| Error |
Row 36, Column 1: "Insert `··`"
prettier/prettier
|
| 36 |
<Regular label=" 3 x US$ 3" style={styles.mixTxt2} /> |
| Error |
Row 37, Column 11: "Insert `··`"
prettier/prettier
|
| 37 |
</View> |
| Error |
Row 38, Column 1: "Insert `··`"
prettier/prettier
|
| 38 |
</View> |
| 39 |
|
| Error |
Row 40, Column 9: "Insert `··`"
prettier/prettier
|
| 40 |
<View style={styles.earningContainer}> |
| Error |
Row 41, Column 1: "Insert `··`"
prettier/prettier
|
| 41 |
<Regular |
| Error |
Row 42, Column 13: "Insert `··`"
prettier/prettier
|
| 42 |
label="Total earnings from invitations" |
| Error |
Row 43, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 43 |
style={{...styles.mixTxt1}} |
| Error |
Row 44, Column 11: "Insert `··`"
prettier/prettier
|
| 44 |
/> |
| Error |
Row 45, Column 1: "Insert `··`"
prettier/prettier
|
| 45 |
<Regular |
| Error |
Row 46, Column 1: "Insert `··`"
prettier/prettier
|
| 46 |
label="US$ 30" |
| Error |
Row 47, Column 13: "Insert `··`"
prettier/prettier
|
| 47 |
style={{...styles.mixTxt2, marginTop: mvs(7)}} |
| Error |
Row 48, Column 1: "Insert `··`"
prettier/prettier
|
| 48 |
/> |
| 49 |
|
| Error |
Row 50, Column 11: "Replace `prettier/prettier
|
| Warning |
Row 50, Column 24: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| 50 |
<View style={{marginTop: mvs(2), width: '100%', height : mvs(180)}}> |
| Error |
Row 51, Column 13: "Insert `··`"
prettier/prettier
|
| 51 |
<FlatList |
| Error |
Row 52, Column 1: "Insert `····`"
prettier/prettier
|
| 52 |
nestedScrollEnabled |
| Error |
Row 53, Column 1: "Replace `··············data={[1,2,4,5,6,7,` with `················data={[1,·2,·4,·5,·6,·7,·`"
prettier/prettier
|
| 53 |
data={[1,2,4,5,6,7,8]} |
| Error |
Row 54, Column 15: "Replace `showsVerticalScrollIndicator·=·` with `··showsVerticalScrollIndicator=`"
prettier/prettier
|
| 54 |
showsVerticalScrollIndicator = {false} |
| Error |
Row 55, Column 1: "Replace `··············keyExtractor={(item,index)=>` with `················keyExtractor={(item,·index)·=>·`"
prettier/prettier
|
| 55 |
keyExtractor={(item,index)=>index.toString()} |
| Error |
Row 56, Column 1: "Insert `··`"
prettier/prettier
|
| 56 |
renderItem={({item, index}) => ( |
| Error |
Row 57, Column 1: "Insert `··`"
prettier/prettier
|
| 57 |
<View style={styles.recordMainContainer}> |
| Error |
Row 58, Column 19: "Insert `··`"
prettier/prettier
|
| 58 |
<View style={styles.recordContainer}> |
| Error |
Row 59, Column 21: "Replace `prettier/prettier
|
| 59 |
<Image source={TAKE_TO_IMAGES.chat_dp} style={styles.dp} /> |
| Error |
Row 60, Column 1: "Insert `··`"
prettier/prettier
|
| 60 |
<Regular |
| Error |
Row 61, Column 1: "Replace `······················` with `························`"
prettier/prettier
|
| 61 |
label="Zenab Thaqi" |
| Error |
Row 62, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 62, Column 30: "Inline style: { marginTop: 0 }"
react-native/no-inline-styles
|
| 62 |
style={{ |
| Error |
Row 63, Column 25: "Insert `··`"
prettier/prettier
|
| 63 |
...styles.mixTxt1, |
| Error |
Row 64, Column 1: "Insert `··`"
prettier/prettier
|
| 64 |
marginTop: 0, |
| Error |
Row 65, Column 25: "Insert `··`"
prettier/prettier
|
| 65 |
marginLeft: mvs(5), |
| Error |
Row 66, Column 1: "Insert `··`"
prettier/prettier
|
| 66 |
}} |
| Error |
Row 67, Column 21: "Insert `··`"
prettier/prettier
|
| 67 |
/> |
| 68 |
|
| Error |
Row 69, Column 1: "Replace `····················` with `······················`"
prettier/prettier
|
| 69 |
<View |
| Error |
Row 70, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 70, Column 30: "Inline style: { marginTop: 0, position: 'absolute' }"
react-native/no-inline-styles
|
| 70 |
style={{ |
| Error |
Row 71, Column 25: "Insert `··`"
prettier/prettier
|
| 71 |
...styles.mixTxts, |
| Error |
Row 72, Column 1: "Insert `··`"
prettier/prettier
|
| 72 |
marginTop: 0, |
| Error |
Row 73, Column 25: "Insert `··`"
prettier/prettier
|
| 73 |
position: 'absolute', |
| Error |
Row 74, Column 25: "Insert `··`"
prettier/prettier
|
| 74 |
right: mvs(6), |
| Error |
Row 75, Column 1: "Insert `··`"
prettier/prettier
|
| 75 |
}}> |
| Error |
Row 76, Column 23: "Insert `··`"
prettier/prettier
|
| 76 |
<Regular |
| Error |
Row 77, Column 1: "Insert `··`"
prettier/prettier
|
| 77 |
label="Rewarded" |
| Error |
Row 78, Column 25: "Replace `style={{...styles.mixTxt1,color:colors.primary,·marginTop:·0` with `··style={{⏎····························...styles.mixTxt1,⏎····························color:·colors.primary,⏎····························marginTop:·0,⏎··························`"
prettier/prettier
|
| Warning |
Row 78, Column 32: "Inline style: { marginTop: 0 }"
react-native/no-inline-styles
|
| 78 |
style={{...styles.mixTxt1,color:colors.primary, marginTop: 0}} |
| Error |
Row 79, Column 1: "Replace `······················` with `························`"
prettier/prettier
|
| 79 |
/> |
| Error |
Row 80, Column 1: "Insert `··`"
prettier/prettier
|
| 80 |
<Regular |
| Error |
Row 81, Column 25: "Insert `··`"
prettier/prettier
|
| 81 |
label=" 3 x US$ 3" |
| Error |
Row 82, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 82, Column 32: "Inline style: { marginTop: 0 }"
react-native/no-inline-styles
|
| 82 |
style={{...styles.mixTxt2, marginTop: 0}} |
| Error |
Row 83, Column 23: "Insert `··`"
prettier/prettier
|
| 83 |
/> |
| Error |
Row 84, Column 1: "Insert `··`"
prettier/prettier
|
| 84 |
</View> |
| Error |
Row 85, Column 1: "Insert `··`"
prettier/prettier
|
| 85 |
</View> |
| Error |
Row 86, Column 17: "Insert `··`"
prettier/prettier
|
| 86 |
</View> |
| Error |
Row 87, Column 15: "Insert `··`"
prettier/prettier
|
| 87 |
)} |
| Error |
Row 88, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 88, Column 15: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 88 |
keyExtractor={item => item?.toString()} |
| Error |
Row 89, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 89 |
/> |
| Error |
Row 90, Column 1: "Insert `··`"
prettier/prettier
|
| 90 |
</View> |
| Error |
Row 91, Column 1: "Insert `··`"
prettier/prettier
|
| 91 |
</View> |
| 92 |
</ScrollView> |
| 93 |
<View style={styles.button}> |
| Error |
Row 94, Column 33: "Replace `·onClick={()·=>·{Share.share({message·:·"sharing..."})}}·title="Share"` with `⏎············onClick={()·=>·{⏎··············Share.share({message:·'sharing...'});⏎············}}⏎············title="Share"⏎·········`"
prettier/prettier
|
| Warning |
Row 94, Column 73: "Strings must use singlequote."
quotes
|
| Warning |
Row 94, Column 87: "Missing semicolon."
semi
|
| 94 |
<Buttons.ButtonPrimary onClick={() => {Share.share({message : "sharing..."})}} title="Share" /> |
| 95 |
</View> |
| 96 |
</View> |
| 97 |
</View> |
| 98 |
); |
| 99 |
}; |
| 100 |
|
| 101 |
export default InviteFriends; |
| 102 |
|
| 103 |
const styles = StyleSheet.create({ |
| 104 |
mainContainer: { |
| 105 |
flex: 1, |
| 106 |
backgroundColor: colors.white, |
| 107 |
}, |
| 108 |
container: { |
| 109 |
flex: 1, |
| 110 |
paddingHorizontal: mvs(22), |
| 111 |
}, |
| 112 |
giftContainer: { |
| 113 |
//height : mvs(182.55), |
| 114 |
width: '100%', |
| 115 |
//borderWidth : 1, |
| 116 |
marginTop: mvs(101.9), |
| 117 |
alignItems: 'center', |
| 118 |
}, |
| 119 |
prize: { |
| 120 |
fontSize: mvs(24), |
| 121 |
color: colors.primary, |
| 122 |
marginTop: mvs(34), |
| 123 |
}, |
| 124 |
mixTxts: { |
| 125 |
flexDirection: 'row', |
| 126 |
alignItems: 'center', |
| 127 |
justifyContent: 'center', |
| 128 |
marginTop: mvs(7), |
| 129 |
}, |
| 130 |
mixTxt1: { |
| 131 |
fontSize: mvs(13), |
| 132 |
color: colors.typeHeader, |
| 133 |
}, |
| 134 |
mixTxt2: { |
| 135 |
fontSize: mvs(13), |
| 136 |
color: colors.primary, |
| 137 |
}, |
| 138 |
mixTxt3: { |
| 139 |
fontSize: mvs(13), |
| 140 |
color: colors.primary, |
| 141 |
}, |
| 142 |
earningContainer: { |
| 143 |
// height: mvs(236), |
| 144 |
paddingVertical: mvs(20), |
| 145 |
width: '100%', |
| 146 |
//borderWidth : 1, |
| 147 |
marginTop: mvs(40.6), |
| 148 |
//backgroundColor: colors.lightgrey, |
| 149 |
borderRadius: mvs(10), |
| 150 |
alignItems: 'center', |
| 151 |
//paddingHorizontal: mvs(10), |
| 152 |
}, |
| 153 |
recordMainContainer: { |
| 154 |
height: mvs(57), |
| 155 |
width: '100%', |
| Error |
Row 156, Column 16: "Delete `·`"
prettier/prettier
|
| 156 |
paddingLeft : mvs(10), |
| Error |
Row 157, Column 17: "Delete `·`"
prettier/prettier
|
| 157 |
paddingRight : mvs(16), |
| 158 |
//borderBottomWidth: StyleSheet.hairlineWidth, |
| 159 |
justifyContent: 'center', |
| 160 |
borderColor: colors.price_border, |
| Error |
Row 161, Column 20: "Delete `·`"
prettier/prettier
|
| 161 |
backgroundColor : colors.secondary, |
| Error |
Row 162, Column 17: "Delete `·`"
prettier/prettier
|
| 162 |
borderRadius : mvs(10), |
| Error |
Row 163, Column 14: "Replace `·:·mvs(10)` with `:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 163, Column 24: "Missing trailing comma."
comma-dangle
|
| 163 |
marginTop : mvs(10) |
| 164 |
}, |
| 165 |
recordContainer: { |
| 166 |
height: mvs(37), |
| 167 |
//borderWidth : 1, |
| 168 |
flexDirection: 'row', |
| 169 |
alignItems: 'center', |
| 170 |
}, |
| 171 |
dp: { |
| 172 |
height: mvs(37), |
| 173 |
width: mvs(37), |
| 174 |
borderRadius: mvs(8), |
| 175 |
}, |
| 176 |
button: { |
| 177 |
alignSelf: 'center', |
| 178 |
position: 'absolute', |
| 179 |
bottom: mvs(20), |
| 180 |
width: '100%', |
| 181 |
}, |
| 182 |
}); |
| 183 |
|
|
| Severity |
Rule |
| Error |
Row 6, Column 9: "Replace `·Alert,·ScrollView,·StyleSheet,·TouchableOpacity,·View·` with `⏎··Alert,⏎··ScrollView,⏎··StyleSheet,⏎··TouchableOpacity,⏎··View,⏎`"
prettier/prettier
|
| Error |
Row 8, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 16, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 21, Column 10: "Replace `·isGuest,·profileData,·updateUserProfile,·counter,·fetchUserInfo·}·=` with `isGuest,·profileData,·updateUserProfile,·counter,·fetchUserInfo}·=⏎···`"
prettier/prettier
|
| Warning |
Row 22, Column 27: "["whatsapp"] is better written in dot notation."
dot-notation
|
| Warning |
Row 23, Column 25: "["submit_request"] is better written in dot notation."
dot-notation
|
| Warning |
Row 24, Column 21: "["down"] is better written in dot notation."
dot-notation
|
| Error |
Row 28, Column 74: "Insert `;`"
prettier/prettier
|
| Warning |
Row 28, Column 74: "Missing semicolon."
semi
|
| Error |
Row 29, Column 35: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 33, Column 17: "Replace `⏎······'Alert',⏎······'You·are·a·guest,·please·register·yourself',⏎·····` with `'Alert',·'You·are·a·guest,·please·register·yourself',`"
prettier/prettier
|
| Error |
Row 37, Column 1: "Replace `········` with `······`"
prettier/prettier
|
| Error |
Row 38, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 39, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 40, Column 1: "Replace `··········style:·'cancel'` with `········style:·'cancel',`"
prettier/prettier
|
| Warning |
Row 40, Column 26: "Missing trailing comma."
comma-dangle
|
| Error |
Row 41, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 42, Column 7: "Replace `··{·text:·'OK',·onPress:·()·=>·props?.navigation?.navigate('login')·}` with `{text:·'OK',·onPress:·()·=>·props?.navigation?.navigate('login')},`"
prettier/prettier
|
| Warning |
Row 42, Column 76: "Missing trailing comma."
comma-dangle
|
| Error |
Row 43, Column 5: "Replace `··]⏎····` with `]`"
prettier/prettier
|
| Error |
Row 45, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 45, Column 4: "Missing semicolon."
semi
|
| Warning |
Row 48, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 48, Column 2: "Replace `·⏎····` with `···`"
prettier/prettier
|
| Error |
Row 50, Column 29: "Replace `·index:·0,·routes:·[{·name:·'login'·}]·` with `index:·0,·routes:·[{name:·'login'}]`"
prettier/prettier
|
| Error |
Row 51, Column 11: "'client' is not defined."
no-undef
|
| Error |
Row 51, Column 46: "Insert `;`"
prettier/prettier
|
| Warning |
Row 51, Column 46: "Missing semicolon."
semi
|
| Error |
Row 55, Column 32: "Replace `(item)` with `item`"
prettier/prettier
|
| Error |
Row 59, Column 30: "Insert `,`"
prettier/prettier
|
| Warning |
Row 59, Column 30: "Missing trailing comma."
comma-dangle
|
| Error |
Row 85, Column 6: "React Hook React.useEffect has a missing dependency: 'fetchUserInfo'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 90, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 90, Column 21: "Replace `·flex:·1,·paddingTop:·mvs(40)·` with `flex:·1,·paddingTop:·mvs(40)`"
prettier/prettier
|
| Error |
Row 119, Column 56: "Replace `·state:·false·` with `state:·false`"
prettier/prettier
|
| Error |
Row 133, Column 44: "Insert `(⏎··············`"
prettier/prettier
|
| Error |
Row 134, Column 15: "Replace `prettier/prettier
|
| Error |
Row 135, Column 1: "Replace `············` with `··············⏎············)`"
prettier/prettier
|
| Error |
Row 146, Column 47: "Insert `(⏎··············`"
prettier/prettier
|
| Error |
Row 147, Column 15: "Replace `prettier/prettier
|
| Error |
Row 148, Column 1: "Replace `············` with `··············⏎············)`"
prettier/prettier
|
| Error |
Row 159, Column 40: "Insert `(⏎··············`"
prettier/prettier
|
| Error |
Row 160, Column 15: "Replace `prettier/prettier
|
| Error |
Row 161, Column 1: "Replace `············` with `··············⏎············)`"
prettier/prettier
|
| Error |
Row 172, Column 40: "Insert `(⏎··············`"
prettier/prettier
|
| Error |
Row 173, Column 15: "Replace `prettier/prettier
|
| Error |
Row 174, Column 13: "Replace `` with `··⏎············)`"
prettier/prettier
|
| Error |
Row 185, Column 39: "Insert `(⏎··············`"
prettier/prettier
|
| Error |
Row 186, Column 15: "Replace `prettier/prettier
|
| Error |
Row 187, Column 1: "Replace `············` with `··············⏎············)`"
prettier/prettier
|
| Warning |
Row 194, Column 20: "Inline style: { borderBottomWidth: 0 }"
react-native/no-inline-styles
|
| Error |
Row 194, Column 21: "Replace `·...styles.option,·borderBottomWidth:·0·` with `...styles.option,·borderBottomWidth:·0`"
prettier/prettier
|
| Error |
Row 203, Column 25: "Replace `·color:·colors.typeHeader,·marginTop:·mvs(12)·` with `color:·colors.typeHeader,·marginTop:·mvs(12)`"
prettier/prettier
|
| Error |
Row 215, Column 25: "Replace `·color:·colors.typeHeader,·marginTop:·mvs(12)·` with `color:·colors.typeHeader,·marginTop:·mvs(12)`"
prettier/prettier
|
| Warning |
Row 226, Column 32: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 241, Column 26: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 241, Column 27: "Replace `·flexDirection:·'row'·` with `flexDirection:·'row'`"
prettier/prettier
|
| Error |
Row 246, Column 33: "Delete `·`"
prettier/prettier
|
| Error |
Row 247, Column 38: "Replace `·color:·colors.primary,·fontSize:·mvs(15)·` with `color:·colors.primary,·fontSize:·mvs(15)`"
prettier/prettier
|
| Warning |
Row 251, Column 26: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 251, Column 27: "Replace `·flexDirection:·'row',·marginTop:·mvs(20)·` with `flexDirection:·'row',·marginTop:·mvs(20)`"
prettier/prettier
|
| Warning |
Row 254, Column 24: "Inline style: { textDecorationLine: 'underline', marginTop: 0 }"
react-native/no-inline-styles
|
| Warning |
Row 273, Column 24: "Inline style: { textDecorationLine: 'underline', marginTop: 0 }"
react-native/no-inline-styles
|
| Error |
Row 288, Column 25: "Replace `·color:·colors.typeHeader,·marginTop:·mvs(22)·` with `color:·colors.typeHeader,·marginTop:·mvs(22)`"
prettier/prettier
|
| Error |
Row 299, Column 27: "Replace `·label={profileData?.currency?.currency_code}·style={{·color:·colors.primary·}}` with `⏎····················label={profileData?.currency?.currency_code}⏎····················style={{color:·colors.primary}}⏎·················`"
prettier/prettier
|
| Warning |
Row 300, Column 32: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| Error |
Row 300, Column 33: "Replace `·position:·'absolute',·right:·mvs(10)·` with `position:·'absolute',·right:·mvs(10)`"
prettier/prettier
|
| Error |
Row 305, Column 27: "Replace `·...styles.button,·backgroundColor:·colors.primary·` with `...styles.button,·backgroundColor:·colors.primary`"
prettier/prettier
|
| Error |
Row 306, Column 53: "Replace `·color:·colors.white·` with `color:·colors.white`"
prettier/prettier
|
| Error |
Row 320, Column 7: "Replace `·prettier/prettier
|
| Line |
Source |
| 1 |
import services from '@khan_ahmad786/common/api/services'; |
| 2 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 3 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 4 |
import AsyncStorage from '@react-native-async-storage/async-storage'; |
| 5 |
import React from 'react'; |
| Error |
Row 6, Column 9: "Replace `·Alert,·ScrollView,·StyleSheet,·TouchableOpacity,·View·` with `⏎··Alert,⏎··ScrollView,⏎··StyleSheet,⏎··TouchableOpacity,⏎··View,⏎`"
prettier/prettier
|
| 6 |
import { Alert, ScrollView, StyleSheet, TouchableOpacity, View } from 'react-native'; |
| 7 |
import DropdownAlert from 'react-native-dropdownalert'; |
| Error |
Row 8, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 8 |
import { connect } from 'react-redux'; |
| 9 |
import * as Images from '../../../resource/assets/customer-care'; |
| 10 |
import * as SVGS from '../../../resource/assets/order-car-icons'; |
| 11 |
import DualText from '../../components/molecules/dual-text/dual-text'; |
| 12 |
import Header from '../../components/molecules/header/header-1x'; |
| 13 |
import TAKE_TO_COMMON_MODAL from '../../components/molecules/modals/common-modal'; |
| 14 |
import PhoneVerificationModal from '../../components/molecules/modals/setting-modals/phone-verification-modal'; |
| 15 |
import colors from '../../config/colors'; |
| Error |
Row 16, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 16 |
import { mvs } from '../../config/metrices'; |
| 17 |
import Medium from '../../presentation/typography/medium-text'; |
| 18 |
import Regular from '../../presentation/typography/regular-text'; |
| 19 |
|
| 20 |
const Menu = props => { |
| Error |
Row 21, Column 10: "Replace `·isGuest,·profileData,·updateUserProfile,·counter,·fetchUserInfo·}·=` with `isGuest,·profileData,·updateUserProfile,·counter,·fetchUserInfo}·=⏎···`"
prettier/prettier
|
| 21 |
const { isGuest, profileData, updateUserProfile, counter, fetchUserInfo } = props; |
| Warning |
Row 22, Column 27: "["whatsapp"] is better written in dot notation."
dot-notation
|
| 22 |
const Whatsapp = Images['whatsapp']; |
| Warning |
Row 23, Column 25: "["submit_request"] is better written in dot notation."
dot-notation
|
| 23 |
const Submit = Images['submit_request']; |
| Warning |
Row 24, Column 21: "["down"] is better written in dot notation."
dot-notation
|
| 24 |
const Down = SVGS['down']; |
| 25 |
|
| 26 |
const [openCurrModal, setOpenCurrModal] = React.useState(false); |
| 27 |
const [loading, setLoading] = React.useState(false); |
| Error |
Row 28, Column 74: "Insert `;`"
prettier/prettier
|
| Warning |
Row 28, Column 74: "Missing semicolon."
semi
|
| 28 |
const [verifyNumberModal, setVerifyNumberModal] = React.useState(false) |
| Error |
Row 29, Column 35: "Delete `⏎`"
prettier/prettier
|
| 29 |
const alertRef = React.useRef(); |
| 30 |
|
| 31 |
|
| 32 |
const showGuestAlert = () => { |
| Error |
Row 33, Column 17: "Replace `⏎······'Alert',⏎······'You·are·a·guest,·please·register·yourself',⏎·····` with `'Alert',·'You·are·a·guest,·please·register·yourself',`"
prettier/prettier
|
| 33 |
Alert.alert( |
| 34 |
'Alert', |
| 35 |
'You are a guest, please register yourself', |
| 36 |
[ |
| Error |
Row 37, Column 1: "Replace `········` with `······`"
prettier/prettier
|
| 37 |
{ |
| Error |
Row 38, Column 1: "Delete `··`"
prettier/prettier
|
| 38 |
text: 'Cancel', |
| Error |
Row 39, Column 1: "Delete `··`"
prettier/prettier
|
| 39 |
onPress: () => console.log('Cancel Pressed'), |
| Error |
Row 40, Column 1: "Replace `··········style:·'cancel'` with `········style:·'cancel',`"
prettier/prettier
|
| Warning |
Row 40, Column 26: "Missing trailing comma."
comma-dangle
|
| 40 |
style: 'cancel' |
| Error |
Row 41, Column 1: "Delete `··`"
prettier/prettier
|
| 41 |
}, |
| Error |
Row 42, Column 7: "Replace `··{·text:·'OK',·onPress:·()·=>·props?.navigation?.navigate('login')·}` with `{text:·'OK',·onPress:·()·=>·props?.navigation?.navigate('login')},`"
prettier/prettier
|
| Warning |
Row 42, Column 76: "Missing trailing comma."
comma-dangle
|
| 42 |
{ text: 'OK', onPress: () => props?.navigation?.navigate('login') } |
| Error |
Row 43, Column 5: "Replace `··]⏎····` with `]`"
prettier/prettier
|
| 43 |
] |
| 44 |
); |
| Error |
Row 45, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 45, Column 4: "Missing semicolon."
semi
|
| 45 |
} |
| 46 |
|
| 47 |
const onSignOut = async () => { |
| Warning |
Row 48, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 48, Column 2: "Replace `·⏎····` with `···`"
prettier/prettier
|
| 48 |
|
| 49 |
props.resetReducer(); |
| Error |
Row 50, Column 29: "Replace `·index:·0,·routes:·[{·name:·'login'·}]·` with `index:·0,·routes:·[{name:·'login'}]`"
prettier/prettier
|
| 50 |
props.navigation.reset({ index: 0, routes: [{ name: 'login' }] }); |
| Error |
Row 51, Column 11: "'client' is not defined."
no-undef
|
| Error |
Row 51, Column 46: "Insert `;`"
prettier/prettier
|
| Warning |
Row 51, Column 46: "Missing semicolon."
semi
|
| 51 |
await client.delete(services.auth.logout) |
| 52 |
await AsyncStorage.multiRemove(['@token']); |
| 53 |
}; |
| 54 |
|
| Error |
Row 55, Column 32: "Replace `(item)` with `item`"
prettier/prettier
|
| 55 |
const updateCurrency = async (item) => { |
| 56 |
try { |
| 57 |
setLoading(true); |
| 58 |
const newPayload = { |
| Error |
Row 59, Column 30: "Insert `,`"
prettier/prettier
|
| Warning |
Row 59, Column 30: "Missing trailing comma."
comma-dangle
|
| 59 |
currency_id: item?.id |
| 60 |
}; |
| 61 |
await updateUserProfile(newPayload); |
| 62 |
alertRef.current.alertWithType( |
| 63 |
'success', |
| 64 |
'Currency updated', |
| 65 |
'Your account currency updated succesfully.', |
| 66 |
); |
| 67 |
setOpenCurrModal(false); |
| 68 |
setLoading(false); |
| 69 |
} catch (error) { |
| 70 |
setLoading(false); |
| 71 |
setOpenCurrModal(false); |
| 72 |
alertRef.current.alertWithType( |
| 73 |
'error', |
| 74 |
'Error', |
| 75 |
UI_API._returnError(error), |
| 76 |
); |
| 77 |
} |
| 78 |
}; |
| 79 |
React.useEffect(() => { |
| 80 |
const unsubscribe = props?.navigation.addListener('focus', () => { |
| 81 |
fetchUserInfo(); |
| 82 |
}); |
| 83 |
// Return the function to unsubscribe from the event so it gets removed on unmount |
| 84 |
return unsubscribe; |
| Error |
Row 85, Column 6: "React Hook React.useEffect has a missing dependency: 'fetchUserInfo'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 85 |
}, [props.navigation]); |
| 86 |
return ( |
| 87 |
<View style={styles.mainContainer}> |
| 88 |
<Header {...props} title="Menu" allowBackBtn avatar userIcon={false} /> |
| 89 |
|
| Warning |
Row 90, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 90, Column 21: "Replace `·flex:·1,·paddingTop:·mvs(40)·` with `flex:·1,·paddingTop:·mvs(40)`"
prettier/prettier
|
| 90 |
<View style={{ flex: 1, paddingTop: mvs(40) }}> |
| 91 |
<ScrollView |
| 92 |
showsVerticalScrollIndicator={false} |
| 93 |
contentContainerStyle={styles.menuContainer}> |
| 94 |
<TouchableOpacity |
| 95 |
activeOpacity={0.5} |
| 96 |
style={styles.option} |
| 97 |
onPress={() => { |
| 98 |
isGuest |
| 99 |
? showGuestAlert() |
| 100 |
: props.navigation.navigate('accountinfo'); |
| 101 |
}}> |
| 102 |
<Regular label="Account Info" style={styles.optionTitle} /> |
| 103 |
</TouchableOpacity> |
| 104 |
<TouchableOpacity |
| 105 |
activeOpacity={0.5} |
| 106 |
onPress={() => { |
| 107 |
isGuest |
| 108 |
? showGuestAlert() |
| 109 |
: props.navigation.navigate('settings'); |
| 110 |
}} |
| 111 |
style={styles.option}> |
| 112 |
<Regular label="Settings" style={styles.optionTitle} /> |
| 113 |
</TouchableOpacity> |
| 114 |
<TouchableOpacity |
| 115 |
activeOpacity={0.5} |
| 116 |
onPress={() => { |
| 117 |
isGuest |
| 118 |
? showGuestAlert() |
| Error |
Row 119, Column 56: "Replace `·state:·false·` with `state:·false`"
prettier/prettier
|
| 119 |
: props.navigation.navigate('wallet', { state: false }); |
| 120 |
}} |
| 121 |
style={styles.option}> |
| 122 |
<Regular label="Wallet" style={styles.optionTitle} /> |
| 123 |
</TouchableOpacity> |
| 124 |
<TouchableOpacity |
| 125 |
activeOpacity={0.5} |
| 126 |
onPress={() => { |
| 127 |
isGuest |
| 128 |
? showGuestAlert() |
| 129 |
: props.navigation.navigate('orderhistory'); |
| 130 |
}} |
| 131 |
style={styles.option}> |
| 132 |
<Regular label="Order History" style={styles.optionTitle} /> |
| Error |
Row 133, Column 44: "Insert `(⏎··············`"
prettier/prettier
|
| 133 |
{counter?.order_history > 0 && <View style={styles.counterContainer}> |
| Error |
Row 134, Column 15: "Replace `prettier/prettier
|
| 134 |
<Medium label={counter?.order_history} style={{ color: colors.white }} /> |
| Error |
Row 135, Column 1: "Replace `············` with `··············⏎············)`"
prettier/prettier
|
| 135 |
</View>} |
| 136 |
</TouchableOpacity> |
| 137 |
<TouchableOpacity |
| 138 |
activeOpacity={0.5} |
| 139 |
onPress={() => { |
| 140 |
isGuest |
| 141 |
? showGuestAlert() |
| 142 |
: props.navigation.navigate('deliveryhistory'); |
| 143 |
}} |
| 144 |
style={styles.option}> |
| 145 |
<Regular label="Delivery History" style={styles.optionTitle} /> |
| Error |
Row 146, Column 47: "Insert `(⏎··············`"
prettier/prettier
|
| 146 |
{counter?.delivery_history > 0 && <View style={styles.counterContainer}> |
| Error |
Row 147, Column 15: "Replace `prettier/prettier
|
| 147 |
<Medium label={counter?.delivery_history} style={{ color: colors.white }} /> |
| Error |
Row 148, Column 1: "Replace `············` with `··············⏎············)`"
prettier/prettier
|
| 148 |
</View>} |
| 149 |
</TouchableOpacity> |
| 150 |
<TouchableOpacity |
| 151 |
activeOpacity={0.5} |
| 152 |
onPress={() => { |
| 153 |
isGuest |
| 154 |
? showGuestAlert() |
| 155 |
: props.navigation.navigate('myoffers'); |
| 156 |
}} |
| 157 |
style={styles.option}> |
| 158 |
<Regular label="My Offers" style={styles.optionTitle} /> |
| Error |
Row 159, Column 40: "Insert `(⏎··············`"
prettier/prettier
|
| 159 |
{counter?.my_offers > 0 && <View style={styles.counterContainer}> |
| Error |
Row 160, Column 15: "Replace `prettier/prettier
|
| 160 |
<Medium label={counter?.my_offers} style={{ color: colors.white }} /> |
| Error |
Row 161, Column 1: "Replace `············` with `··············⏎············)`"
prettier/prettier
|
| 161 |
</View>} |
| 162 |
</TouchableOpacity> |
| 163 |
<TouchableOpacity |
| 164 |
activeOpacity={0.5} |
| 165 |
onPress={() => { |
| 166 |
isGuest |
| 167 |
? showGuestAlert() |
| 168 |
: props.navigation.navigate('myorders'); |
| 169 |
}} |
| 170 |
style={styles.option}> |
| 171 |
<Regular label="My Orders" style={styles.optionTitle} /> |
| Error |
Row 172, Column 40: "Insert `(⏎··············`"
prettier/prettier
|
| 172 |
{counter?.my_orders > 0 && <View style={styles.counterContainer}> |
| Error |
Row 173, Column 15: "Replace `prettier/prettier
|
| 173 |
<Medium label={counter?.my_orders} style={{ color: colors.white }} /> |
| Error |
Row 174, Column 13: "Replace `` with `··⏎············)`"
prettier/prettier
|
| 174 |
</View>} |
| 175 |
</TouchableOpacity> |
| 176 |
<TouchableOpacity |
| 177 |
activeOpacity={0.5} |
| 178 |
onPress={() => { |
| 179 |
isGuest |
| 180 |
? showGuestAlert() |
| 181 |
: props.navigation.navigate('disputes'); |
| 182 |
}} |
| 183 |
style={styles.option}> |
| 184 |
<Regular label="Disputes" style={styles.optionTitle} /> |
| Error |
Row 185, Column 39: "Insert `(⏎··············`"
prettier/prettier
|
| 185 |
{counter?.disputes > 0 && <View style={styles.counterContainer}> |
| Error |
Row 186, Column 15: "Replace `prettier/prettier
|
| 186 |
<Medium label={counter?.disputes} style={{ color: colors.white }} /> |
| Error |
Row 187, Column 1: "Replace `············` with `··············⏎············)`"
prettier/prettier
|
| 187 |
</View>} |
| 188 |
</TouchableOpacity> |
| 189 |
<TouchableOpacity |
| 190 |
activeOpacity={0.5} |
| 191 |
onPress={() => { |
| 192 |
props.navigation.navigate('invitefriends'); |
| 193 |
}} |
| Warning |
Row 194, Column 20: "Inline style: { borderBottomWidth: 0 }"
react-native/no-inline-styles
|
| Error |
Row 194, Column 21: "Replace `·...styles.option,·borderBottomWidth:·0·` with `...styles.option,·borderBottomWidth:·0`"
prettier/prettier
|
| 194 |
style={{ ...styles.option, borderBottomWidth: 0 }}> |
| 195 |
<Regular label="Invite Friends" style={styles.optionTitle} /> |
| 196 |
</TouchableOpacity> |
| 197 |
|
| 198 |
<View style={styles.socialContainer}> |
| 199 |
<View style={styles.social}> |
| 200 |
<Whatsapp /> |
| 201 |
<Regular |
| 202 |
label="Ask in WhatsApp" |
| Error |
Row 203, Column 25: "Replace `·color:·colors.typeHeader,·marginTop:·mvs(12)·` with `color:·colors.typeHeader,·marginTop:·mvs(12)`"
prettier/prettier
|
| 203 |
style={{ color: colors.typeHeader, marginTop: mvs(12) }} |
| 204 |
/> |
| 205 |
</View> |
| 206 |
<TouchableOpacity |
| 207 |
activeOpacity={0.5} |
| 208 |
onPress={() => { |
| 209 |
props.navigation.navigate('submitrequest'); |
| 210 |
}} |
| 211 |
style={styles.social}> |
| 212 |
<Submit /> |
| 213 |
<Regular |
| 214 |
label="Submit a request" |
| Error |
Row 215, Column 25: "Replace `·color:·colors.typeHeader,·marginTop:·mvs(12)·` with `color:·colors.typeHeader,·marginTop:·mvs(12)`"
prettier/prettier
|
| 215 |
style={{ color: colors.typeHeader, marginTop: mvs(12) }} |
| 216 |
/> |
| 217 |
</TouchableOpacity> |
| 218 |
</View> |
| 219 |
{/* <View style={styles.optionCare}> |
| 220 |
<Regular label="Customer Care" style={styles.optionTitle} /> |
| 221 |
<View style={styles.subOption}> |
| 222 |
<Whatsapp /> |
| 223 |
<Regular label="Ask in WhatsApp" style={styles.subOptionTitle} /> |
| 224 |
</View> |
| 225 |
<TouchableOpacity |
| Warning |
Row 226, Column 32: "Trailing spaces not allowed."
no-trailing-spaces
|
| 226 |
activeOpacity={0.5} |
| 227 |
onPress = {() => props.navigation.navigate('submitrequest')} |
| 228 |
style={styles.subOption}> |
| 229 |
<Submit /> |
| 230 |
<Regular label="Submit a request" style={styles.subOptionTitle} /> |
| 231 |
</TouchableOpacity> |
| 232 |
<TouchableOpacity |
| 233 |
activeOpacity={0.5} |
| 234 |
onPress={() => props.navigation.navigate('disputes')} |
| 235 |
style={styles.subOption}> |
| 236 |
<Submit /> |
| 237 |
<Regular label="Disputes" style={styles.subOptionTitle} /> |
| 238 |
</TouchableOpacity> |
| 239 |
</View> */} |
| 240 |
<View style={styles.moreOptionsContainer}> |
| Warning |
Row 241, Column 26: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 241, Column 27: "Replace `·flexDirection:·'row'·` with `flexDirection:·'row'`"
prettier/prettier
|
| 241 |
<View style={{ flexDirection: 'row' }}> |
| 242 |
<DualText |
| 243 |
content={'How does'} |
| 244 |
style={styles.moreOptionsTitle} |
| 245 |
highlightText={' Taketo '} |
| Error |
Row 246, Column 33: "Delete `·`"
prettier/prettier
|
| 246 |
onPress={() => { }} |
| Error |
Row 247, Column 38: "Replace `·color:·colors.primary,·fontSize:·mvs(15)·` with `color:·colors.primary,·fontSize:·mvs(15)`"
prettier/prettier
|
| 247 |
highlightTextStyle={{ color: colors.primary, fontSize: mvs(15) }}> |
| 248 |
<DualText content={'work?'} style={styles.moreOptionsTitle} /> |
| 249 |
</DualText> |
| 250 |
</View> |
| Warning |
Row 251, Column 26: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 251, Column 27: "Replace `·flexDirection:·'row',·marginTop:·mvs(20)·` with `flexDirection:·'row',·marginTop:·mvs(20)`"
prettier/prettier
|
| 251 |
<View style={{ flexDirection: 'row', marginTop: mvs(20) }}> |
| 252 |
<Regular |
| 253 |
label="Privacy Policy" |
| Warning |
Row 254, Column 24: "Inline style: { textDecorationLine: 'underline', marginTop: 0 }"
react-native/no-inline-styles
|
| 254 |
style={{ |
| 255 |
...styles.moreOptionsTitle, |
| 256 |
textDecorationLine: 'underline', |
| 257 |
marginTop: 0, |
| 258 |
color: colors.primary, |
| 259 |
}} |
| 260 |
onPress={() => { |
| 261 |
props.navigation.navigate('privacypolicy', { |
| 262 |
URL: 'privacy-policy', |
| 263 |
}); |
| 264 |
}} |
| 265 |
/> |
| 266 |
<Regular |
| 267 |
label="Terms of Use" |
| 268 |
onPress={() => { |
| 269 |
props.navigation.navigate('termsofuse', { |
| 270 |
URL: 'terms-of-use', |
| 271 |
}); |
| 272 |
}} |
| Warning |
Row 273, Column 24: "Inline style: { textDecorationLine: 'underline', marginTop: 0 }"
react-native/no-inline-styles
|
| 273 |
style={{ |
| 274 |
...styles.moreOptionsTitle, |
| 275 |
textDecorationLine: 'underline', |
| 276 |
marginLeft: mvs(67), |
| 277 |
marginTop: 0, |
| 278 |
color: colors.primary, |
| 279 |
}} |
| 280 |
/> |
| 281 |
</View> |
| 282 |
</View> |
| 283 |
|
| 284 |
{!isGuest && ( |
| 285 |
<> |
| 286 |
<Regular |
| 287 |
label="Currency" |
| Error |
Row 288, Column 25: "Replace `·color:·colors.typeHeader,·marginTop:·mvs(22)·` with `color:·colors.typeHeader,·marginTop:·mvs(22)`"
prettier/prettier
|
| 288 |
style={{ color: colors.typeHeader, marginTop: mvs(22) }} |
| 289 |
/> |
| 290 |
<View style={styles.buttonsContainer}> |
| 291 |
<TouchableOpacity |
| 292 |
activeOpacity={0.5} |
| 293 |
onPress={() => setOpenCurrModal(true)} |
| 294 |
style={{ |
| 295 |
...styles.button, |
| 296 |
borderWidth: mvs(0.5), |
| 297 |
borderColor: colors.primary, |
| 298 |
}}> |
| Error |
Row 299, Column 27: "Replace `·label={profileData?.currency?.currency_code}·style={{·color:·colors.primary·}}` with `⏎····················label={profileData?.currency?.currency_code}⏎····················style={{color:·colors.primary}}⏎·················`"
prettier/prettier
|
| 299 |
<Regular label={profileData?.currency?.currency_code} style={{ color: colors.primary }} /> |
| Warning |
Row 300, Column 32: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| Error |
Row 300, Column 33: "Replace `·position:·'absolute',·right:·mvs(10)·` with `position:·'absolute',·right:·mvs(10)`"
prettier/prettier
|
| 300 |
<Down style={{ position: 'absolute', right: mvs(10) }} /> |
| 301 |
</TouchableOpacity> |
| 302 |
<TouchableOpacity |
| 303 |
activeOpacity={0.5} |
| 304 |
onPress={onSignOut} |
| Error |
Row 305, Column 27: "Replace `·...styles.button,·backgroundColor:·colors.primary·` with `...styles.button,·backgroundColor:·colors.primary`"
prettier/prettier
|
| 305 |
style={{ ...styles.button, backgroundColor: colors.primary }}> |
| Error |
Row 306, Column 53: "Replace `·color:·colors.white·` with `color:·colors.white`"
prettier/prettier
|
| 306 |
<Regular label="Sign out" style={{ color: colors.white }} /> |
| 307 |
</TouchableOpacity> |
| 308 |
</View> |
| 309 |
</> |
| 310 |
)} |
| 311 |
</ScrollView> |
| 312 |
{TAKE_TO_COMMON_MODAL.CurrencyList( |
| 313 |
loading, |
| 314 |
openCurrModal, |
| 315 |
() => setOpenCurrModal(false), |
| 316 |
updateCurrency, |
| 317 |
profileData?.currency, |
| 318 |
)} |
| 319 |
</View> |
| Error |
Row 320, Column 7: "Replace `·prettier/prettier
|
| 320 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 321 |
<PhoneVerificationModal |
| 322 |
visible={verifyNumberModal} |
| 323 |
onCLose={() => setVerifyNumberModal(false)} |
| 324 |
/> |
| 325 |
</View> |
| 326 |
); |
| 327 |
}; |
| 328 |
|
| 329 |
// export default Menu; |
| 330 |
const mapStateToProps = state => { |
| 331 |
return { |
| 332 |
isGuest: state.auth.isGuest, |
| 333 |
profileData: state.auth.userInfo?.profile || {}, |
| 334 |
counter: state.auth.userInfo?.counts || {}, |
| 335 |
}; |
| 336 |
}; |
| 337 |
|
| 338 |
const mapDispatchToProps = dispatch => ({ |
| 339 |
postSigninData: data => dispatch(TAKE_TO_ACTIONS.postSigninData(data)), |
| 340 |
resetReducer: data => dispatch(TAKE_TO_ACTIONS.resetReducer()), |
| 341 |
updateUserProfile: data => dispatch(TAKE_TO_ACTIONS.updateUserProfile(data)), |
| 342 |
fetchUserInfo: () => dispatch(TAKE_TO_ACTIONS.fetchUserInfo()), |
| 343 |
}); |
| 344 |
export default connect(mapStateToProps, mapDispatchToProps)(Menu); |
| 345 |
|
| 346 |
const styles = StyleSheet.create({ |
| 347 |
mainContainer: { |
| 348 |
flex: 1, |
| 349 |
backgroundColor: colors.white, |
| 350 |
}, |
| 351 |
menuContainer: { |
| 352 |
//flex : 1, |
| 353 |
paddingHorizontal: mvs(22), |
| 354 |
//borderWidth : 1, |
| 355 |
// alignItems : 'center', |
| 356 |
paddingBottom: mvs(76), |
| 357 |
}, |
| 358 |
option: { |
| 359 |
height: mvs(38), |
| 360 |
width: '100%', |
| 361 |
borderBottomWidth: 0.8, |
| 362 |
borderColor: colors.price_border, |
| 363 |
}, |
| 364 |
optionTitle: { |
| 365 |
fontSize: mvs(15), |
| 366 |
color: colors.primary, |
| 367 |
marginTop: mvs(10), |
| 368 |
}, |
| 369 |
optionCare: { |
| 370 |
//height: mvs(38), |
| 371 |
width: '100%', |
| 372 |
//borderBottomWidth : 0.8, |
| 373 |
borderColor: colors.price_border, |
| 374 |
}, |
| 375 |
subOption: { |
| 376 |
//borderWidth:1, |
| 377 |
marginLeft: mvs(30), |
| 378 |
marginTop: mvs(15), |
| 379 |
flexDirection: 'row', |
| 380 |
alignItems: 'center', |
| 381 |
}, |
| 382 |
subOptionTitle: { |
| 383 |
fontSize: mvs(15), |
| 384 |
color: colors.headerTitle, |
| 385 |
marginLeft: mvs(20), |
| 386 |
}, |
| 387 |
moreOptionsContainer: { |
| 388 |
//height: mvs(124), |
| 389 |
width: '100%', |
| 390 |
//borderWidth : 1, |
| 391 |
backgroundColor: colors.secondary, |
| 392 |
marginTop: mvs(15), |
| 393 |
borderRadius: mvs(10), |
| 394 |
padding: mvs(20), |
| 395 |
paddingBottom: mvs(23), |
| 396 |
//justifyContent: 'space-between', |
| 397 |
}, |
| 398 |
moreOptionsTitle: { |
| 399 |
fontSize: mvs(15), |
| 400 |
color: colors.typeHeader, |
| 401 |
//marginTop : mvs(10) |
| 402 |
}, |
| 403 |
signOut: { |
| 404 |
fontSize: mvs(15), |
| 405 |
color: colors.primary, |
| 406 |
textDecorationLine: 'underline', |
| 407 |
marginTop: mvs(33), |
| 408 |
}, |
| 409 |
counterContainer: { |
| 410 |
height: mvs(20), |
| 411 |
width: mvs(30), |
| 412 |
borderRadius: mvs(6), |
| 413 |
backgroundColor: colors.primary, |
| 414 |
position: 'absolute', |
| 415 |
top: mvs(9), |
| 416 |
right: 0, |
| 417 |
justifyContent: 'center', |
| 418 |
alignItems: 'center', |
| 419 |
}, |
| 420 |
socialContainer: { |
| 421 |
//borderWidth : 1, |
| 422 |
marginTop: mvs(31), |
| 423 |
flexDirection: 'row', |
| 424 |
justifyContent: 'space-between', |
| 425 |
height: mvs(73), |
| 426 |
}, |
| 427 |
social: { |
| 428 |
height: '100%', |
| 429 |
width: '49%', |
| 430 |
borderWidth: mvs(0.5), |
| 431 |
borderColor: colors.doted, |
| 432 |
borderRadius: mvs(10), |
| 433 |
alignItems: 'center', |
| 434 |
justifyContent: 'center', |
| 435 |
}, |
| 436 |
buttonsContainer: { |
| 437 |
height: mvs(38), |
| 438 |
width: '100%', |
| 439 |
//borderWidth : 1, |
| 440 |
marginTop: mvs(11), |
| 441 |
flexDirection: 'row', |
| 442 |
justifyContent: 'space-between', |
| 443 |
}, |
| 444 |
button: { |
| 445 |
height: '100%', |
| 446 |
width: '49%', |
| 447 |
borderRadius: mvs(10), |
| 448 |
justifyContent: 'center', |
| 449 |
paddingHorizontal: mvs(10), |
| 450 |
}, |
| 451 |
}); |
| 452 |
|
|
| Severity |
Rule |
| Warning |
Row 3, Column 16: "'useState' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·useIsFocused·` with `useIsFocused`"
prettier/prettier
|
| Error |
Row 14, Column 9: "Replace `·useEffect·` with `useEffect`"
prettier/prettier
|
| Warning |
Row 17, Column 7: "'isFocus' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 17, Column 31: "Insert `;`"
prettier/prettier
|
| Warning |
Row 17, Column 31: "Missing semicolon."
semi
|
| Error |
Row 18, Column 42: "Insert `·`"
prettier/prettier
|
| Error |
Row 42, Column 17: "Replace `"myoffres:::",·myOffersList)` with `'myoffres:::',·myOffersList);`"
prettier/prettier
|
| Warning |
Row 42, Column 17: "Strings must use singlequote."
quotes
|
| Warning |
Row 42, Column 45: "Missing semicolon."
semi
|
| Error |
Row 43, Column 5: "Replace `[])` with `·[]);`"
prettier/prettier
|
| Error |
Row 43, Column 5: "React Hook useEffect has a missing dependency: 'myOffersList'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 43, Column 8: "Missing semicolon."
semi
|
| Warning |
Row 44, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 44, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 45, Column 30: "'setLoading' is already declared in the upper scope."
no-shadow
|
| Error |
Row 48, Column 29: "Insert `·`"
prettier/prettier
|
| Error |
Row 67, Column 6: "React Hook React.useEffect has a missing dependency: 'onPagination'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 71, Column 6: "React Hook React.useEffect has a missing dependency: 'myOffersList'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 77, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 80, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}·/>⏎` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎········/>`"
prettier/prettier
|
| Warning |
Row 89, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 96, Column 20: "Strings must use singlequote."
quotes
|
| Warning |
Row 97, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 100, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}·/>⏎` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎········/>`"
prettier/prettier
|
| Warning |
Row 104, Column 5: "Expected { after 'else'."
curly
|
| Error |
Row 111, Column 33: "Insert `·`"
prettier/prettier
|
| Warning |
Row 129, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 129, Column 21: "Delete `⏎····················`"
prettier/prettier
|
| Warning |
Row 130, Column 34: "Strings must use singlequote."
quotes
|
| Error |
Row 151, Column 25: "Replace `(⏎·········⏎········)` with ``"
prettier/prettier
|
| Error |
Row 154, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| Error |
Row 162, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 166, Column 22: "Replace `(page)` with `page`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 2 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| Warning |
Row 3, Column 16: "'useState' is defined but never used."
no-unused-vars
|
| 3 |
import React, {useState} from 'react'; |
| Error |
Row 4, Column 9: "Replace `·useIsFocused·` with `useIsFocused`"
prettier/prettier
|
| 4 |
import { useIsFocused } from '@react-navigation/core'; |
| 5 |
import {ActivityIndicator, FlatList, StyleSheet, View} from 'react-native'; |
| 6 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 7 |
import {connect} from 'react-redux'; |
| 8 |
import PagingLoader from '../../../components/atoms/paging-loader'; |
| 9 |
import Header from '../../../components/molecules/header/header-1x'; |
| 10 |
import HistoryOrderCard from '../../../components/molecules/order_card/history-offer-card'; |
| 11 |
import colors from '../../../config/colors'; |
| 12 |
import {mvs} from '../../../config/metrices'; |
| 13 |
import Regular from '../../../presentation/typography/regular-text'; |
| Error |
Row 14, Column 9: "Replace `·useEffect·` with `useEffect`"
prettier/prettier
|
| 14 |
import { useEffect } from 'react'; |
| 15 |
|
| 16 |
const MyOffers = props => { |
| Warning |
Row 17, Column 7: "'isFocus' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 17, Column 31: "Insert `;`"
prettier/prettier
|
| Warning |
Row 17, Column 31: "Missing semicolon."
semi
|
| 17 |
let isFocus = useIsFocused() |
| Error |
Row 18, Column 42: "Insert `·`"
prettier/prettier
|
| 18 |
const {myOffersList, fetchMyOffersList,profileData} = props; |
| 19 |
const [loading, setLoading] = React.useState(true); |
| 20 |
const alertRef = React.useRef(); |
| 21 |
const [pageLoading, setPageLoading] = React.useState(false); |
| 22 |
|
| 23 |
// React.useEffect(() => { |
| 24 |
// (async () => { |
| 25 |
// try { |
| 26 |
// setLoading(true); |
| 27 |
// await fetchMyOffersList(); |
| 28 |
// setLoading(false); |
| 29 |
// } catch (error) { |
| 30 |
// setLoading(false); |
| 31 |
// // scrollRef.current.scrollTo({x: 0, y: 0, animated: true}); |
| 32 |
// alertRef.current.alertWithType( |
| 33 |
// 'error', |
| 34 |
// 'Error', |
| 35 |
// UI_API._returnError(error), |
| 36 |
// ); |
| 37 |
// } |
| 38 |
// })(); |
| 39 |
// }, [isFocus]); |
| 40 |
|
| 41 |
useEffect(() => { |
| Error |
Row 42, Column 17: "Replace `"myoffres:::",·myOffersList)` with `'myoffres:::',·myOffersList);`"
prettier/prettier
|
| Warning |
Row 42, Column 17: "Strings must use singlequote."
quotes
|
| Warning |
Row 42, Column 45: "Missing semicolon."
semi
|
| 42 |
console.log("myoffres:::", myOffersList) |
| Error |
Row 43, Column 5: "Replace `[])` with `·[]);`"
prettier/prettier
|
| Error |
Row 43, Column 5: "React Hook useEffect has a missing dependency: 'myOffersList'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 43, Column 8: "Missing semicolon."
semi
|
| 43 |
},[]) |
| Warning |
Row 44, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 44, Column 1: "Delete `··`"
prettier/prettier
|
| 44 |
|
| Warning |
Row 45, Column 30: "'setLoading' is already declared in the upper scope."
no-shadow
|
| 45 |
const onPagination = async setLoading => { |
| 46 |
try { |
| 47 |
let page = UI_API._returnPage(myOffersList?.data); |
| Error |
Row 48, Column 29: "Insert `·`"
prettier/prettier
|
| 48 |
console.log('page:::',page); |
| 49 |
if (!page) { |
| 50 |
return; |
| 51 |
} |
| 52 |
setLoading(true); |
| 53 |
await fetchMyOffersList(page); |
| 54 |
} catch (error) { |
| 55 |
alertRef.current.alertWithType( |
| 56 |
'error', |
| 57 |
'Error', |
| 58 |
UI_API._returnError(error), |
| 59 |
); |
| 60 |
} finally { |
| 61 |
setLoading(false); |
| 62 |
} |
| 63 |
}; |
| 64 |
|
| 65 |
React.useEffect(() => { |
| 66 |
onPagination(setLoading); |
| Error |
Row 67, Column 6: "React Hook React.useEffect has a missing dependency: 'onPagination'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 67 |
}, [profileData?.currency]); |
| 68 |
|
| 69 |
React.useEffect(() => { |
| 70 |
console.log('myOffers::', myOffersList); |
| Error |
Row 71, Column 6: "React Hook React.useEffect has a missing dependency: 'myOffersList'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 71 |
}, []); |
| 72 |
|
| 73 |
if (loading) { |
| 74 |
return ( |
| 75 |
<View style={styles.mainContainer}> |
| 76 |
<Header {...props} title="My offers" allowBackBtn bellIcon /> |
| Warning |
Row 77, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 77 |
<View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}> |
| 78 |
<ActivityIndicator size="small" color={colors.primary} /> |
| 79 |
</View> |
| Error |
Row 80, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}·/>⏎` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎········/>`"
prettier/prettier
|
| 80 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 81 |
|
| 82 |
</View> |
| 83 |
); |
| 84 |
} else if (!loading && Object.keys(myOffersList?.data).length <= 0) { |
| 85 |
return ( |
| 86 |
<View style={styles.mainContainer}> |
| 87 |
<Header {...props} title="My offers" allowBackBtn bellIcon /> |
| 88 |
<View |
| Warning |
Row 89, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 89 |
style={{ |
| 90 |
flex: 1, |
| 91 |
justifyContent: 'center', |
| 92 |
alignItems: 'center', |
| 93 |
paddingHorizontal: mvs(20), |
| 94 |
}}> |
| 95 |
<Regular |
| Warning |
Row 96, Column 20: "Strings must use singlequote."
quotes
|
| 96 |
label={`Oops! you have no offers yet`} |
| Warning |
Row 97, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 97 |
style={{textAlign: 'center', color: colors.primary}} |
| 98 |
/> |
| 99 |
</View> |
| Error |
Row 100, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}·/>⏎` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎········/>`"
prettier/prettier
|
| 100 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 101 |
|
| 102 |
</View> |
| 103 |
); |
| Warning |
Row 104, Column 5: "Expected { after 'else'."
curly
|
| 104 |
} else |
| 105 |
return ( |
| 106 |
<View style={styles.mainContainer}> |
| 107 |
<Header {...props} title="My offers" allowBackBtn bellIcon /> |
| 108 |
<View style={styles.container}> |
| 109 |
<FlatList |
| 110 |
data={myOffersList?.data} |
| Error |
Row 111, Column 33: "Insert `·`"
prettier/prettier
|
| 111 |
keyExtractor={(item,index) => index?.toString()} |
| 112 |
showsVerticalScrollIndicator={false} |
| 113 |
contentContainerStyle={{ |
| 114 |
...styles.SCROLL_CONTAINER, |
| 115 |
//paddingTop: mvs(20), |
| 116 |
paddingBottom: mvs(22), |
| 117 |
}} |
| 118 |
onEndReachedThreshold={0.5} |
| 119 |
onEndReached={() => onPagination(setPageLoading)} |
| 120 |
renderItem={({item}) => { |
| 121 |
return ( |
| 122 |
<> |
| 123 |
<HistoryOrderCard |
| 124 |
{...props} |
| 125 |
{...UI_API._returnOrderProps(item)} |
| 126 |
style={{backgroundColor: colors.secondary}} |
| 127 |
status={'Pending'} |
| 128 |
type={'Reward'} |
| Warning |
Row 129, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 129, Column 21: "Delete `⏎····················`"
prettier/prettier
|
| 129 |
|
| Warning |
Row 130, Column 34: "Strings must use singlequote."
quotes
|
| 130 |
buttonLabel={`Offer\nDetails`} |
| 131 |
styleButton={{ |
| 132 |
height: mvs(57), |
| 133 |
backgroundColor: colors.primary, |
| 134 |
}} |
| 135 |
buttonLabel1={'US$ 45'} |
| 136 |
textStyle1={{fontSize: mvs(18)}} |
| 137 |
color={colors.pink} |
| 138 |
order_img={item?.order_image} |
| 139 |
onClick={() => { |
| 140 |
props.navigation.navigate('myofferdetails', { |
| 141 |
offer_details: item, |
| 142 |
}); |
| 143 |
}} |
| 144 |
/> |
| 145 |
<View style={{marginTop: mvs(20)}} /> |
| 146 |
</> |
| 147 |
); |
| 148 |
}} |
| 149 |
/> |
| 150 |
</View> |
| Error |
Row 151, Column 25: "Replace `(⏎·········⏎········)` with ``"
prettier/prettier
|
| 151 |
{pageLoading && ( |
| 152 |
<PagingLoader/> |
| 153 |
)} |
| Error |
Row 154, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| 154 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 155 |
</View> |
| 156 |
); |
| 157 |
}; |
| 158 |
|
| 159 |
export const mapStateToProps = state => ({ |
| 160 |
myOffersList: state.menu_orders?.myOffersList, |
| 161 |
profileData: state.auth.userInfo?.profile || {}, |
| Error |
Row 162, Column 1: "Delete `⏎`"
prettier/prettier
|
| 162 |
|
| 163 |
}); |
| 164 |
|
| 165 |
export const mapDispatchToProps = { |
| Error |
Row 166, Column 22: "Replace `(page)` with `page`"
prettier/prettier
|
| 166 |
fetchMyOffersList: (page) => TAKE_TO_ACTIONS.fetchMyOffersList(page), |
| 167 |
}; |
| 168 |
export default connect(mapStateToProps, mapDispatchToProps)(MyOffers); |
| 169 |
|
| 170 |
const styles = StyleSheet.create({ |
| 171 |
mainContainer: { |
| 172 |
flex: 1, |
| 173 |
backgroundColor: colors.white, |
| 174 |
}, |
| 175 |
container: { |
| 176 |
flex: 1, |
| 177 |
}, |
| 178 |
SCROLL_CONTAINER: { |
| 179 |
paddingHorizontal: mvs(22), |
| 180 |
}, |
| 181 |
buttonsContainer: { |
| 182 |
height: mvs(44), |
| 183 |
width: '100%', |
| 184 |
//borderWidth : 1, |
| 185 |
marginTop: mvs(30), |
| 186 |
flexDirection: 'row', |
| 187 |
justifyContent: 'space-between', |
| 188 |
}, |
| 189 |
topButton: { |
| 190 |
height: '100%', |
| 191 |
width: '48%', |
| 192 |
borderWidth: 1, |
| 193 |
borderRadius: mvs(10), |
| 194 |
justifyContent: 'center', |
| 195 |
alignItems: 'center', |
| 196 |
flexDirection: 'row', |
| 197 |
borderColor: colors.primary, |
| 198 |
}, |
| 199 |
}); |
| 200 |
|
|
| Severity |
Rule |
| Error |
Row 4, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| Error |
Row 9, Column 14: "Replace `·TouchableOpacity,·View` with `⏎··TouchableOpacity,⏎··View,`"
prettier/prettier
|
| Warning |
Row 9, Column 37: "Missing trailing comma."
comma-dangle
|
| Error |
Row 11, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 23, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 27, Column 9: "Replace `·useEffect·}·from·'react';⏎` with `useEffect}·from·'react';`"
prettier/prettier
|
| Warning |
Row 32, Column 5: "'navigation' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 34, Column 5: "'widthdrawOffer' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 35, Column 5: "'fetchOrderHistoryOffersDetails' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 39, Column 5: "'fetchMyOffersList' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 39, Column 22: "Insert `,`"
prettier/prettier
|
| Warning |
Row 39, Column 22: "Missing trailing comma."
comma-dangle
|
| Error |
Row 42, Column 10: "Replace `·offer_details·` with `offer_details`"
prettier/prettier
|
| Error |
Row 43, Column 1: "Replace `console.log('offer_details::',` with `··console.log('offer_details::',·`"
prettier/prettier
|
| Warning |
Row 45, Column 28: "["car_active"] is better written in dot notation."
dot-notation
|
| Warning |
Row 46, Column 28: "["aeroplane"] is better written in dot notation."
dot-notation
|
| Warning |
Row 47, Column 27: "["location"] is better written in dot notation."
dot-notation
|
| Warning |
Row 48, Column 31: "["location_active"] is better written in dot notation."
dot-notation
|
| Warning |
Row 49, Column 23: "["chat"] is better written in dot notation."
dot-notation
|
| Error |
Row 54, Column 60: "Replace `⏎` with `;`"
prettier/prettier
|
| Warning |
Row 54, Column 60: "Missing semicolon."
semi
|
| Error |
Row 58, Column 17: "Replace `"myOffers::::",·myOffersList)` with `'myOffers::::',·myOffersList);`"
prettier/prettier
|
| Warning |
Row 58, Column 17: "Strings must use singlequote."
quotes
|
| Warning |
Row 58, Column 46: "Missing semicolon."
semi
|
| Error |
Row 59, Column 5: "Replace `[])⏎` with `·[]);`"
prettier/prettier
|
| Error |
Row 59, Column 5: "React Hook useEffect has a missing dependency: 'myOffersList'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 59, Column 8: "Missing semicolon."
semi
|
| Error |
Row 66, Column 21: "Replace `·backgroundColor:·colors.white·` with `backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 69, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 69, Column 21: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| Error |
Row 78, Column 34: "Replace `·marginLeft:·mvs(30)·` with `marginLeft:·mvs(30)`"
prettier/prettier
|
| Warning |
Row 84, Column 28: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 90, Column 31: "Replace `·marginTop:·mvs(8)·` with `marginTop:·mvs(8)`"
prettier/prettier
|
| Error |
Row 92, Column 31: "Replace `·uri:·offer_details?.order_from_flag·` with `uri:·offer_details?.order_from_flag`"
prettier/prettier
|
| Error |
Row 93, Column 29: "Replace `·uri:·offer_details?.order_to_flag·` with `uri:·offer_details?.order_to_flag`"
prettier/prettier
|
| Error |
Row 98, Column 32: "Replace `·onPress={()=>props?.navigation?.navigate('userprofile',{user_id:offer_details?.order_by?.user_id,is_review:false})}` with `⏎················onPress={()·=>⏎··················props?.navigation?.navigate('userprofile',·{⏎····················user_id:·offer_details?.order_by?.user_id,⏎····················is_review:·false,⏎··················})⏎················}⏎···············`"
prettier/prettier
|
| Error |
Row 108, Column 70: "Insert `·`"
prettier/prettier
|
| Warning |
Row 109, Column 26: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 109, Column 27: "Replace `·fontSize:·mvs(10),·alignSelf:·'center',·` with `fontSize:·mvs(10),·alignSelf:·'center'`"
prettier/prettier
|
| Warning |
Row 109, Column 66: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 115, Column 25: "Replace `·...styles.normal·` with `...styles.normal`"
prettier/prettier
|
| Error |
Row 125, Column 23: "Replace `·marginTop:·mvs(17)·` with `marginTop:·mvs(17)`"
prettier/prettier
|
| Error |
Row 126, Column 27: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Error |
Row 127, Column 15: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Error |
Row 130, Column 27: "Replace `·...styles.infoContainer,·marginTop:·mvs(17)·` with `...styles.infoContainer,·marginTop:·mvs(17)`"
prettier/prettier
|
| Error |
Row 147, Column 50: "Replace `offer_details?.order_deliver_before` with `⏎························offer_details?.order_deliver_before,⏎······················`"
prettier/prettier
|
| Error |
Row 159, Column 27: "Replace `·...styles.infoContainer·` with `...styles.infoContainer`"
prettier/prettier
|
| Error |
Row 167, Column 27: "Replace `·...styles.infoContainer·` with `...styles.infoContainer`"
prettier/prettier
|
| Error |
Row 176, Column 27: "Replace `·...styles.infoContainer,·marginTop:·mvs(14)·` with `...styles.infoContainer,·marginTop:·mvs(14)`"
prettier/prettier
|
| Error |
Row 179, Column 1: "Replace `···············onPress·=·` with `················onPress=`"
prettier/prettier
|
| Error |
Row 180, Column 1: "Replace `················order_data?.order_site` with `··················order_data?.order_site·`"
prettier/prettier
|
| Error |
Row 180, Column 17: "'order_data' is not defined."
no-undef
|
| Warning |
Row 180, Column 39: "Operator '&&' must be spaced."
space-infix-ops
|
| Error |
Row 181, Column 1: "Replace `················Linking.openURL(offer_details?.order_store_url)` with `····················Linking.openURL(offer_details?.order_store_url);`"
prettier/prettier
|
| Error |
Row 181, Column 17: "'Linking' is not defined."
no-undef
|
| Warning |
Row 181, Column 64: "Missing semicolon."
semi
|
| Error |
Row 182, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 197, Column 26: "Inline style: { flexDirection: 'row', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 216, Column 27: "Replace `·...styles.line,·marginTop:·mvs(14)·` with `...styles.line,·marginTop:·mvs(14)`"
prettier/prettier
|
| Error |
Row 225, Column 23: "Replace `·marginTop:·mvs(17)·` with `marginTop:·mvs(17)`"
prettier/prettier
|
| Error |
Row 226, Column 27: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Error |
Row 227, Column 28: "Replace `·fontSize:·mvs(14)·` with `fontSize:·mvs(14)`"
prettier/prettier
|
| Error |
Row 236, Column 27: "Replace `·color:·colors.typeHeader·` with `color:·colors.typeHeader`"
prettier/prettier
|
| Error |
Row 243, Column 23: "Replace `·backgroundColor:·colors.pink,·marginTop:·mvs(10)·` with `backgroundColor:·colors.pink,·marginTop:·mvs(10)`"
prettier/prettier
|
| Error |
Row 256, Column 25: "Replace `·...styles.value1,·color:·colors.white·` with `...styles.value1,·color:·colors.white`"
prettier/prettier
|
| Error |
Row 268, Column 15: "Replace `offer_details?.order_shop_name?.length·>·8·?·`${offer_details?.order_shop_name?.substring(0,·8)}·...`·:·offer_details?.order_shop_name·||·offer_details?.order_site` with `⏎··········offer_details?.order_shop_name?.length·>·8⏎············?·`${offer_details?.order_shop_name?.substring(0,·8)}·...`⏎············:·offer_details?.order_shop_name·||·offer_details?.order_site⏎········`"
prettier/prettier
|
| Error |
Row 282, Column 19: "'client' is not defined."
no-undef
|
| Error |
Row 282, Column 33: "Replace ``${services.create_order.widthdraw_offer}/${offer_details?.offer_id}`` with `⏎··············`${services.create_order.widthdraw_offer}/${offer_details?.offer_id}`,⏎············`"
prettier/prettier
|
| Error |
Row 285, Column 19: "Replace `·:·myOffersList?.data?.filter(x·=>·x.offer_id·!==·offer_details?.offer_id)` with `:·myOffersList?.data?.filter(⏎················x·=>·x.offer_id·!==·offer_details?.offer_id,⏎··············),`"
prettier/prettier
|
| Warning |
Row 285, Column 93: "Missing trailing comma."
comma-dangle
|
| Error |
Row 286, Column 14: "Insert `;`"
prettier/prettier
|
| Warning |
Row 286, Column 14: "Missing semicolon."
semi
|
| Error |
Row 287, Column 37: "Insert `;`"
prettier/prettier
|
| Warning |
Row 287, Column 37: "Missing semicolon."
semi
|
| Error |
Row 307, Column 21: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎········translucent⏎········activeStatusBarStyle={'light-content'}⏎········inactiveStatusBarBackgroundColor={colors.primary}⏎········ref={alertRef}⏎·····`"
prettier/prettier
|
| Error |
Row 321, Column 18: "Replace `(obj)` with `obj`"
prettier/prettier
|
| Error |
Row 568, Column 16: "Insert `·`"
prettier/prettier
|
| Line |
Source |
| 1 |
import services from '@khan_ahmad786/common/api/services'; |
| 2 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 3 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| Error |
Row 4, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| 4 |
import React, { useState } from 'react'; |
| 5 |
import { |
| 6 |
KeyboardAvoidingView, |
| 7 |
Platform, |
| 8 |
ScrollView, |
| Error |
Row 9, Column 14: "Replace `·TouchableOpacity,·View` with `⏎··TouchableOpacity,⏎··View,`"
prettier/prettier
|
| Warning |
Row 9, Column 37: "Missing trailing comma."
comma-dangle
|
| 9 |
StyleSheet, TouchableOpacity, View |
| 10 |
} from 'react-native'; |
| Error |
Row 11, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 11 |
import { connect } from 'react-redux'; |
| 12 |
import * as Images from '../../../../../resource/assets/order-car-icons'; |
| 13 |
import Buttons from '../../../../components/atoms/Button'; |
| 14 |
import OrderDestination from '../../../../components/atoms/OrderDestination'; |
| 15 |
import OrderDestinationAddress from '../../../../components/atoms/OrderDestinationAddress'; |
| 16 |
import ImagePlaceholder from '../../../../components/atoms/Placeholder'; |
| 17 |
import Header from '../../../../components/molecules/header/header-1x'; |
| 18 |
import InputWithTitle from '../../../../components/molecules/input-with-title'; |
| 19 |
import Widthdraw from '../../../../components/molecules/modals/widthdraw'; |
| 20 |
import ProductInfo from '../../../../components/molecules/product-info'; |
| 21 |
import colors from '../../../../config/colors'; |
| 22 |
import fonts from '../../../../config/fonts'; |
| Error |
Row 23, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 23 |
import { mvs } from '../../../../config/metrices'; |
| 24 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 25 |
import Light from '../../../../presentation/typography/light-text'; |
| 26 |
import Regular from '../../../../presentation/typography/regular-text'; |
| Error |
Row 27, Column 9: "Replace `·useEffect·}·from·'react';⏎` with `useEffect}·from·'react';`"
prettier/prettier
|
| 27 |
import { useEffect } from 'react'; |
| 28 |
|
| 29 |
|
| 30 |
const MyOfferDetails = props => { |
| 31 |
const { |
| Warning |
Row 32, Column 5: "'navigation' is assigned a value but never used."
no-unused-vars
|
| 32 |
navigation, |
| 33 |
route, |
| Warning |
Row 34, Column 5: "'widthdrawOffer' is assigned a value but never used."
no-unused-vars
|
| 34 |
widthdrawOffer, |
| Warning |
Row 35, Column 5: "'fetchOrderHistoryOffersDetails' is assigned a value but never used."
no-unused-vars
|
| 35 |
fetchOrderHistoryOffersDetails, |
| 36 |
profileData, |
| 37 |
clearMyOffers, |
| 38 |
myOffersList, |
| Warning |
Row 39, Column 5: "'fetchMyOffersList' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 39, Column 22: "Insert `,`"
prettier/prettier
|
| Warning |
Row 39, Column 22: "Missing trailing comma."
comma-dangle
|
| 39 |
fetchMyOffersList |
| 40 |
//orderHistoryOfferDetails: offer_details, |
| 41 |
} = props; |
| Error |
Row 42, Column 10: "Replace `·offer_details·` with `offer_details`"
prettier/prettier
|
| 42 |
const { offer_details } = route.params; |
| Error |
Row 43, Column 1: "Replace `console.log('offer_details::',` with `··console.log('offer_details::',·`"
prettier/prettier
|
| 43 |
console.log('offer_details::',offer_details); |
| 44 |
//const {offer_id} = route?.params; |
| Warning |
Row 45, Column 28: "["car_active"] is better written in dot notation."
dot-notation
|
| 45 |
const CarActive = Images['car_active']; |
| Warning |
Row 46, Column 28: "["aeroplane"] is better written in dot notation."
dot-notation
|
| 46 |
const Aeroplane = Images['aeroplane']; |
| Warning |
Row 47, Column 27: "["location"] is better written in dot notation."
dot-notation
|
| 47 |
const Location = Images['location']; |
| Warning |
Row 48, Column 31: "["location_active"] is better written in dot notation."
dot-notation
|
| 48 |
const LocationBlue = Images['location_active']; |
| Warning |
Row 49, Column 23: "["chat"] is better written in dot notation."
dot-notation
|
| 49 |
const Chat = Images['chat']; |
| 50 |
const alertRef = React.useRef(); |
| 51 |
//const Location = ImagesCommon['location_pink']; |
| 52 |
|
| 53 |
const [widthdrawModal, setWidthdrawModal] = useState(false); |
| Error |
Row 54, Column 60: "Replace `⏎` with `;`"
prettier/prettier
|
| Warning |
Row 54, Column 60: "Missing semicolon."
semi
|
| 54 |
const [deleteLoading, setDeleteLoading] = useState(false) |
| 55 |
|
| 56 |
|
| 57 |
useEffect(() => { |
| Error |
Row 58, Column 17: "Replace `"myOffers::::",·myOffersList)` with `'myOffers::::',·myOffersList);`"
prettier/prettier
|
| Warning |
Row 58, Column 17: "Strings must use singlequote."
quotes
|
| Warning |
Row 58, Column 46: "Missing semicolon."
semi
|
| 58 |
console.log("myOffers::::", myOffersList) |
| Error |
Row 59, Column 5: "Replace `[])⏎` with `·[]);`"
prettier/prettier
|
| Error |
Row 59, Column 5: "React Hook useEffect has a missing dependency: 'myOffersList'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 59, Column 8: "Missing semicolon."
semi
|
| 59 |
},[]) |
| 60 |
|
| 61 |
|
| 62 |
return ( |
| 63 |
<KeyboardAvoidingView |
| 64 |
behavior={Platform.OS === 'ios' ? 'padding' : 'height'} |
| 65 |
style={styles.mainContainer}> |
| Error |
Row 66, Column 21: "Replace `·backgroundColor:·colors.white·` with `backgroundColor:·colors.white`"
prettier/prettier
|
| 66 |
<View style={{ backgroundColor: colors.white }}> |
| 67 |
<Header {...props} title="My Offers" allowBackBtn /> |
| 68 |
</View> |
| Warning |
Row 69, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 69, Column 21: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| 69 |
<View style={{ flex: 1 }}> |
| 70 |
<ScrollView> |
| 71 |
<View style={styles.optionsContainer}> |
| 72 |
<ProductInfo |
| 73 |
order_img={offer_details?.order_image} |
| 74 |
name={offer_details?.order_title} |
| 75 |
total={`${offer_details?.order_price}`} |
| 76 |
priceTitle="Product Price" |
| 77 |
reward={`${offer_details?.order_reward_price}`} |
| Error |
Row 78, Column 34: "Replace `·marginLeft:·mvs(30)·` with `marginLeft:·mvs(30)`"
prettier/prettier
|
| 78 |
detailsContainer={{ marginLeft: mvs(30) }} |
| 79 |
/> |
| 80 |
<View style={styles.trackMainContainer}> |
| 81 |
<View style={styles.SUB_LOCATION_DESTINATION}> |
| 82 |
<OrderDestination |
| 83 |
value={0} |
| Warning |
Row 84, Column 28: "Expected '===' and instead saw '=='."
eqeqeq
|
| 84 |
width={2 == 1 ? mvs(100) : mvs(50)} |
| 85 |
SVGFirst={ |
| 86 |
offer_details?.is_international ? Aeroplane : CarActive |
| 87 |
} |
| 88 |
SVGSecond={Location} |
| 89 |
/> |
| Error |
Row 90, Column 31: "Replace `·marginTop:·mvs(8)·` with `marginTop:·mvs(8)`"
prettier/prettier
|
| 90 |
<View style={{ marginTop: mvs(8) }} /> |
| 91 |
<OrderDestinationAddress |
| Error |
Row 92, Column 31: "Replace `·uri:·offer_details?.order_from_flag·` with `uri:·offer_details?.order_from_flag`"
prettier/prettier
|
| 92 |
imageFrom={{ uri: offer_details?.order_from_flag }} |
| Error |
Row 93, Column 29: "Replace `·uri:·offer_details?.order_to_flag·` with `uri:·offer_details?.order_to_flag`"
prettier/prettier
|
| 93 |
imageTo={{ uri: offer_details?.order_to_flag }} |
| 94 |
label={`${offer_details?.order_from} - ${offer_details?.order_to}`} |
| 95 |
fontSize={12} |
| 96 |
/> |
| 97 |
</View> |
| Error |
Row 98, Column 32: "Replace `·onPress={()=>props?.navigation?.navigate('userprofile',{user_id:offer_details?.order_by?.user_id,is_review:false})}` with `⏎················onPress={()·=>⏎··················props?.navigation?.navigate('userprofile',·{⏎····················user_id:·offer_details?.order_by?.user_id,⏎····················is_review:·false,⏎··················})⏎················}⏎···············`"
prettier/prettier
|
| 98 |
<TouchableOpacity onPress={()=>props?.navigation?.navigate('userprofile',{user_id:offer_details?.order_by?.user_id,is_review:false})} style={styles.userContainer}> |
| 99 |
<ImagePlaceholder |
| 100 |
bg_img={offer_details?.order_by?.user_image} |
| 101 |
containerStyle={{ |
| 102 |
height: mvs(37), |
| 103 |
width: mvs(37), |
| 104 |
borderRadius: mvs(8), |
| 105 |
}} |
| 106 |
/> |
| 107 |
<Regular |
| Error |
Row 108, Column 70: "Insert `·`"
prettier/prettier
|
| 108 |
label={offer_details?.order_by?.user_name?.slice(0,15)} |
| Warning |
Row 109, Column 26: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 109, Column 27: "Replace `·fontSize:·mvs(10),·alignSelf:·'center',·` with `fontSize:·mvs(10),·alignSelf:·'center'`"
prettier/prettier
|
| Warning |
Row 109, Column 66: "Unexpected trailing comma."
comma-dangle
|
| 109 |
style={{ fontSize: mvs(10), alignSelf: 'center', }} |
| 110 |
/> |
| 111 |
</TouchableOpacity> |
| 112 |
</View> |
| 113 |
</View> |
| 114 |
|
| Error |
Row 115, Column 25: "Replace `·...styles.normal·` with `...styles.normal`"
prettier/prettier
|
| 115 |
<View style={{ ...styles.normal }}> |
| 116 |
<View style={styles.line} /> |
| 117 |
|
| 118 |
<InputWithTitle |
| 119 |
editable={false} |
| 120 |
singleInput |
| 121 |
title="Product Details" |
| 122 |
//placeholder={'Product details...'} |
| 123 |
value={`${offer_details?.order_detail}`} |
| 124 |
multiline |
| Error |
Row 125, Column 23: "Replace `·marginTop:·mvs(17)·` with `marginTop:·mvs(17)`"
prettier/prettier
|
| 125 |
style={{ marginTop: mvs(17) }} |
| Error |
Row 126, Column 27: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 126 |
textStyle={{ color: colors.primary }} |
| Error |
Row 127, Column 15: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 127 |
singleInput={false} |
| 128 |
moreOrLess={true} |
| 129 |
/> |
| Error |
Row 130, Column 27: "Replace `·...styles.infoContainer,·marginTop:·mvs(17)·` with `...styles.infoContainer,·marginTop:·mvs(17)`"
prettier/prettier
|
| 130 |
<View style={{ ...styles.infoContainer, marginTop: mvs(17) }}> |
| 131 |
<Regular |
| 132 |
label={ |
| 133 |
offer_details?.is_urgent |
| 134 |
? 'Urgent Delivery' |
| 135 |
: 'Delivery before' |
| 136 |
} |
| 137 |
style={{ |
| 138 |
...styles.label, |
| 139 |
color: offer_details?.is_urgent |
| 140 |
? colors.pink |
| 141 |
: colors.lightgrey2, |
| 142 |
}} |
| 143 |
/> |
| 144 |
<Regular |
| 145 |
label={ |
| 146 |
offer_details?.is_urgent |
| Error |
Row 147, Column 50: "Replace `offer_details?.order_deliver_before` with `⏎························offer_details?.order_deliver_before,⏎······················`"
prettier/prettier
|
| 147 |
? UI_API._returnUrgencyTitle(offer_details?.order_deliver_before) |
| 148 |
: offer_details?.order_deliver_before |
| 149 |
} |
| 150 |
style={{ |
| 151 |
...styles.value, |
| 152 |
color: offer_details?.is_urgent |
| 153 |
? colors.pink |
| 154 |
: colors.lightgrey2, |
| 155 |
}} |
| 156 |
/> |
| 157 |
</View> |
| 158 |
|
| Error |
Row 159, Column 27: "Replace `·...styles.infoContainer·` with `...styles.infoContainer`"
prettier/prettier
|
| 159 |
<View style={{ ...styles.infoContainer }}> |
| 160 |
<Regular label="Quantity" style={styles.label} /> |
| 161 |
<Regular |
| 162 |
label={offer_details?.order_quantity} |
| 163 |
style={styles.value} |
| 164 |
/> |
| 165 |
</View> |
| 166 |
|
| Error |
Row 167, Column 27: "Replace `·...styles.infoContainer·` with `...styles.infoContainer`"
prettier/prettier
|
| 167 |
<View style={{ ...styles.infoContainer }}> |
| 168 |
<Regular label="Packaging" style={styles.label} /> |
| 169 |
<Regular |
| 170 |
label={ |
| 171 |
offer_details?.order_packaging ? 'With box' : 'Without box' |
| 172 |
} |
| 173 |
style={styles.value} |
| 174 |
/> |
| 175 |
</View> |
| Error |
Row 176, Column 27: "Replace `·...styles.infoContainer,·marginTop:·mvs(14)·` with `...styles.infoContainer,·marginTop:·mvs(14)`"
prettier/prettier
|
| 176 |
<View style={{ ...styles.infoContainer, marginTop: mvs(14) }}> |
| 177 |
<Regular label="Where to buy" style={styles.label} /> |
| 178 |
<Regular |
| Error |
Row 179, Column 1: "Replace `···············onPress·=·` with `················onPress=`"
prettier/prettier
|
| 179 |
onPress = {() => { |
| Error |
Row 180, Column 1: "Replace `················order_data?.order_site` with `··················order_data?.order_site·`"
prettier/prettier
|
| Error |
Row 180, Column 17: "'order_data' is not defined."
no-undef
|
| Warning |
Row 180, Column 39: "Operator '&&' must be spaced."
space-infix-ops
|
| 180 |
order_data?.order_site&& |
| Error |
Row 181, Column 1: "Replace `················Linking.openURL(offer_details?.order_store_url)` with `····················Linking.openURL(offer_details?.order_store_url);`"
prettier/prettier
|
| Error |
Row 181, Column 17: "'Linking' is not defined."
no-undef
|
| Warning |
Row 181, Column 64: "Missing semicolon."
semi
|
| 181 |
Linking.openURL(offer_details?.order_store_url) |
| Error |
Row 182, Column 1: "Insert `··`"
prettier/prettier
|
| 182 |
}} |
| 183 |
label={ |
| 184 |
offer_details?.order_site || |
| 185 |
(offer_details?.order_shop_name?.length > 8 |
| 186 |
? `${offer_details?.order_shop_name?.substring(0, 8)} ...` |
| 187 |
: offer_details?.order_shop_name) |
| 188 |
} |
| 189 |
style={{ |
| 190 |
...styles.value, |
| 191 |
color: colors.primary, |
| 192 |
fontSize: mvs(12), |
| 193 |
}} |
| 194 |
/> |
| 195 |
{offer_details?.order_shop_name !== null && ( |
| 196 |
<View |
| Warning |
Row 197, Column 26: "Inline style: { flexDirection: 'row', alignItems: 'center' }"
react-native/no-inline-styles
|
| 197 |
style={{ |
| 198 |
flexDirection: 'row', |
| 199 |
alignItems: 'center', |
| 200 |
marginRight: mvs(6), |
| 201 |
}}> |
| 202 |
<LocationBlue /> |
| 203 |
<Regular |
| 204 |
label="Store location" |
| 205 |
style={{ |
| 206 |
...styles.value, |
| 207 |
marginLeft: mvs(7.3), |
| 208 |
color: colors.primary, |
| 209 |
fontSize: mvs(12), |
| 210 |
}} |
| 211 |
/> |
| 212 |
</View> |
| 213 |
)} |
| 214 |
</View> |
| 215 |
|
| Error |
Row 216, Column 27: "Replace `·...styles.line,·marginTop:·mvs(14)·` with `...styles.line,·marginTop:·mvs(14)`"
prettier/prettier
|
| 216 |
<View style={{ ...styles.line, marginTop: mvs(14) }} /> |
| 217 |
|
| 218 |
<InputWithTitle |
| 219 |
editable={false} |
| 220 |
singleInput |
| 221 |
title="Buying Instructions" |
| 222 |
//placeholder="Instructions..." |
| 223 |
value={offer_details?.order_instructions} |
| 224 |
multiline |
| Error |
Row 225, Column 23: "Replace `·marginTop:·mvs(17)·` with `marginTop:·mvs(17)`"
prettier/prettier
|
| 225 |
style={{ marginTop: mvs(17) }} |
| Error |
Row 226, Column 27: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 226 |
textStyle={{ color: colors.primary }} |
| Error |
Row 227, Column 28: "Replace `·fontSize:·mvs(14)·` with `fontSize:·mvs(14)`"
prettier/prettier
|
| 227 |
titleStyle={{ fontSize: mvs(14) }} |
| 228 |
/> |
| 229 |
</View> |
| 230 |
|
| 231 |
<View style={styles.container}> |
| 232 |
<View style={styles.rewardMainContainer}> |
| 233 |
<View style={styles.rewardContainer}> |
| 234 |
<Regular |
| 235 |
label={`Requested Reward ${offer_details?.offer_reward_price} ${profileData?.currency?.currency_code}`} |
| Error |
Row 236, Column 27: "Replace `·color:·colors.typeHeader·` with `color:·colors.typeHeader`"
prettier/prettier
|
| 236 |
style={{ color: colors.typeHeader }} |
| 237 |
/> |
| 238 |
</View> |
| 239 |
</View> |
| 240 |
|
| 241 |
<Buttons.ButtonPrimary |
| 242 |
title="Widthdraw Offer" |
| Error |
Row 243, Column 23: "Replace `·backgroundColor:·colors.pink,·marginTop:·mvs(10)·` with `backgroundColor:·colors.pink,·marginTop:·mvs(10)`"
prettier/prettier
|
| 243 |
style={{ backgroundColor: colors.pink, marginTop: mvs(10) }} |
| 244 |
onClick={() => { |
| 245 |
setWidthdrawModal(true); |
| 246 |
}} |
| 247 |
/> |
| 248 |
|
| 249 |
<TouchableOpacity |
| 250 |
disabled={true} |
| 251 |
onPress={() => props.navigation.navigate('chat')} |
| 252 |
style={styles.chatContainer}> |
| 253 |
<Chat /> |
| 254 |
<Light |
| 255 |
label="Message Buyer" |
| Error |
Row 256, Column 25: "Replace `·...styles.value1,·color:·colors.white·` with `...styles.value1,·color:·colors.white`"
prettier/prettier
|
| 256 |
style={{ ...styles.value1, color: colors.white }} |
| 257 |
/> |
| 258 |
</TouchableOpacity> |
| 259 |
</View> |
| 260 |
</ScrollView> |
| 261 |
</View> |
| 262 |
<Widthdraw |
| 263 |
visible={widthdrawModal} |
| 264 |
requested |
| 265 |
loading={deleteLoading} |
| 266 |
title="Widthdraw" |
| 267 |
name={offer_details?.order_title} |
| Error |
Row 268, Column 15: "Replace `offer_details?.order_shop_name?.length·>·8·?·`${offer_details?.order_shop_name?.substring(0,·8)}·...`·:·offer_details?.order_shop_name·||·offer_details?.order_site` with `⏎··········offer_details?.order_shop_name?.length·>·8⏎············?·`${offer_details?.order_shop_name?.substring(0,·8)}·...`⏎············:·offer_details?.order_shop_name·||·offer_details?.order_site⏎········`"
prettier/prettier
|
| 268 |
site={offer_details?.order_shop_name?.length > 8 ? `${offer_details?.order_shop_name?.substring(0, 8)} ...` : offer_details?.order_shop_name || offer_details?.order_site} |
| 269 |
price={offer_details?.order_price} |
| 270 |
image={offer_details?.order_image} |
| 271 |
reward={`${offer_details?.order_reward_price}`} |
| 272 |
offer_reward={offer_details?.offer_reward_price} |
| 273 |
isLocal={!offer_details?.is_international} |
| 274 |
flagFrom={offer_details?.order_from_flag} |
| 275 |
flagTo={offer_details?.order_to_flag} |
| 276 |
from={offer_details?.order_from} |
| 277 |
to={offer_details?.order_to} |
| 278 |
onClose={() => setWidthdrawModal(false)} |
| 279 |
onConfirm={async () => { |
| 280 |
try { |
| 281 |
setDeleteLoading(true); |
| Error |
Row 282, Column 19: "'client' is not defined."
no-undef
|
| Error |
Row 282, Column 33: "Replace ``${services.create_order.widthdraw_offer}/${offer_details?.offer_id}`` with `⏎··············`${services.create_order.widthdraw_offer}/${offer_details?.offer_id}`,⏎············`"
prettier/prettier
|
| 282 |
await client.delete(`${services.create_order.widthdraw_offer}/${offer_details?.offer_id}`); |
| 283 |
const obj = { |
| 284 |
...myOffersList, |
| Error |
Row 285, Column 19: "Replace `·:·myOffersList?.data?.filter(x·=>·x.offer_id·!==·offer_details?.offer_id)` with `:·myOffersList?.data?.filter(⏎················x·=>·x.offer_id·!==·offer_details?.offer_id,⏎··············),`"
prettier/prettier
|
| Warning |
Row 285, Column 93: "Missing trailing comma."
comma-dangle
|
| 285 |
data : myOffersList?.data?.filter(x => x.offer_id !== offer_details?.offer_id) |
| Error |
Row 286, Column 14: "Insert `;`"
prettier/prettier
|
| Warning |
Row 286, Column 14: "Missing semicolon."
semi
|
| 286 |
} |
| Error |
Row 287, Column 37: "Insert `;`"
prettier/prettier
|
| Warning |
Row 287, Column 37: "Missing semicolon."
semi
|
| 287 |
await clearMyOffers(obj) |
| 288 |
props.navigation.pop(); |
| 289 |
setDeleteLoading(false); |
| 290 |
setWidthdrawModal(false); |
| 291 |
alertRef.current.alertWithType( |
| 292 |
'success', |
| 293 |
'Successfully Widthdraw.', |
| 294 |
'Your offer has been widthdraw successfully', |
| 295 |
); |
| 296 |
} catch (error) { |
| 297 |
setDeleteLoading(false); |
| 298 |
setWidthdrawModal(false); |
| 299 |
alertRef.current.alertWithType( |
| 300 |
'error', |
| 301 |
'Error', |
| 302 |
UI_API._returnError(error), |
| 303 |
); |
| 304 |
} |
| 305 |
}} |
| 306 |
/> |
| Error |
Row 307, Column 21: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎········translucent⏎········activeStatusBarStyle={'light-content'}⏎········inactiveStatusBarBackgroundColor={colors.primary}⏎········ref={alertRef}⏎·····`"
prettier/prettier
|
| 307 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 308 |
</KeyboardAvoidingView> |
| 309 |
); |
| 310 |
}; |
| 311 |
export const mapStateToProps = state => ({ |
| 312 |
orderHistoryOfferDetails: state.menu_orders?.orderHistoryOfferDetails, |
| 313 |
profileData: state.auth.userInfo?.profile || {}, |
| 314 |
myOffersList: state.menu_orders?.myOffersList, |
| 315 |
}); |
| 316 |
|
| 317 |
export const mapDispatchToProps = dispatch => ({ |
| 318 |
fetchOrderHistoryOffersDetails: offer_id => |
| 319 |
TAKE_TO_ACTIONS.fetchOrderHistoryOffersDetails(offer_id), |
| 320 |
fetchMyOffersList: () => TAKE_TO_ACTIONS.fetchMyOffersList(), |
| Error |
Row 321, Column 18: "Replace `(obj)` with `obj`"
prettier/prettier
|
| 321 |
clearMyOffers: (obj) => dispatch(TAKE_TO_ACTIONS.clearMyOffers(obj)), |
| 322 |
}); |
| 323 |
export default connect(mapStateToProps, mapDispatchToProps)(MyOfferDetails); |
| 324 |
|
| 325 |
const styles = StyleSheet.create({ |
| 326 |
mainContainer: { |
| 327 |
flex: 1, |
| 328 |
backgroundColor: colors.white, |
| 329 |
}, |
| 330 |
optionsContainer: { |
| 331 |
// height: mvs(270), |
| 332 |
width: '100%', |
| 333 |
borderBottomEndRadius: mvs(20), |
| 334 |
borderBottomStartRadius: mvs(20), |
| 335 |
backgroundColor: colors.white, |
| 336 |
paddingBottom: mvs(15), |
| 337 |
paddingHorizontal: mvs(22), |
| 338 |
// paddingTop: mvs(30), |
| 339 |
//borderWidth:1 |
| 340 |
}, |
| 341 |
optionsMainContainer: { |
| 342 |
flex: 1, |
| 343 |
paddingHorizontal: mvs(22), |
| 344 |
}, |
| 345 |
option1: { |
| 346 |
//height : mvs(56), |
| 347 |
width: '100%', |
| 348 |
alignSelf: 'center', |
| 349 |
marginTop: mvs(30), |
| 350 |
borderWidth: 1, |
| 351 |
borderColor: colors.primary, |
| 352 |
borderRadius: mvs(10), |
| 353 |
paddingHorizontal: mvs(10), |
| 354 |
paddingTop: mvs(12), |
| 355 |
paddingBottom: mvs(13), |
| 356 |
}, |
| 357 |
option2: { |
| 358 |
//height : mvs(71), |
| 359 |
width: '100%', |
| 360 |
alignSelf: 'center', |
| 361 |
marginTop: mvs(12), |
| 362 |
borderWidth: 1, |
| 363 |
borderColor: colors.primary, |
| 364 |
borderRadius: mvs(10), |
| 365 |
paddingHorizontal: mvs(10), |
| 366 |
paddingTop: mvs(12), |
| 367 |
paddingBottom: mvs(13), |
| 368 |
}, |
| 369 |
optionTitle: { |
| 370 |
fontSize: mvs(15), |
| 371 |
color: colors.primary, |
| 372 |
}, |
| 373 |
optionDetail: { |
| 374 |
fontSize: mvs(12), |
| 375 |
color: colors.headerTitle, |
| 376 |
marginTop: mvs(4), |
| 377 |
}, |
| 378 |
// buttonContainer: { |
| 379 |
// marginVertical : mvs(18), |
| 380 |
// paddingHorizontal : mvs(22) |
| 381 |
// } , |
| 382 |
trackContainer: { |
| 383 |
//borderWidth : 1, |
| 384 |
width: '68%', |
| 385 |
alignSelf: 'flex-end', |
| 386 |
height: mvs(53.92), |
| 387 |
marginTop: mvs(14.2), |
| 388 |
}, |
| 389 |
offersMainContainer: { |
| 390 |
//flex : 1, |
| 391 |
paddingHorizontal: mvs(22), |
| 392 |
//borderWidth : 1 |
| 393 |
}, |
| 394 |
moreDetailsContainer: { |
| 395 |
marginTop: mvs(11), |
| 396 |
}, |
| 397 |
flatlistContainer: { |
| 398 |
height: mvs(233), |
| 399 |
//borderWidth:1, |
| 400 |
marginTop: mvs(11), |
| 401 |
marginBottom: mvs(20), |
| 402 |
}, |
| 403 |
normal: { |
| 404 |
//height : mvs(58), |
| 405 |
width: '100%', |
| 406 |
//borderWidth : 1, |
| 407 |
paddingHorizontal: mvs(22), |
| 408 |
//borderRadius: mvs(10), |
| 409 |
backgroundColor: colors.white, |
| 410 |
paddingBottom: mvs(3), |
| 411 |
//marginTop: mvs(10), |
| 412 |
//justifyContent : 'center' |
| 413 |
}, |
| 414 |
titleContainer: { |
| 415 |
flexDirection: 'row', |
| 416 |
width: '100%', |
| 417 |
//borderWidth : 1, |
| 418 |
marginTop: mvs(20.3), |
| 419 |
justifyContent: 'space-between', |
| 420 |
alignItems: 'center', |
| 421 |
}, |
| 422 |
title: { |
| 423 |
fontSize: mvs(15), |
| 424 |
color: colors.primary, |
| 425 |
textDecorationLine: 'underline', |
| 426 |
}, |
| 427 |
infoContainer: { |
| 428 |
width: '100%', |
| 429 |
flexDirection: 'row', |
| 430 |
alignItems: 'center', |
| 431 |
marginTop: mvs(12), |
| 432 |
//borderWidth : 1, |
| 433 |
justifyContent: 'space-between', |
| 434 |
}, |
| 435 |
label: { |
| 436 |
fontSize: mvs(13), |
| 437 |
color: colors.lightgrey2, |
| 438 |
}, |
| 439 |
value: { |
| 440 |
fontSize: mvs(13), |
| 441 |
color: colors.typeHeader, |
| 442 |
}, |
| 443 |
line: { |
| 444 |
width: '100%', |
| 445 |
borderBottomWidth: mvs(0.5), |
| 446 |
borderColor: colors.doted, |
| 447 |
//marginTop: mvs(11), |
| 448 |
}, |
| 449 |
dp: { |
| 450 |
height: mvs(37), |
| 451 |
width: mvs(37), |
| 452 |
borderRadius: mvs(8), |
| 453 |
}, |
| 454 |
name: { |
| 455 |
fontSize: mvs(15), |
| 456 |
color: colors.headerTitle, |
| 457 |
marginLeft: mvs(5), |
| 458 |
}, |
| 459 |
container: { |
| 460 |
flex: 1, |
| 461 |
paddingHorizontal: mvs(22), |
| 462 |
//borderWidth : 1, |
| 463 |
paddingBottom: mvs(40), |
| 464 |
}, |
| 465 |
buyingInstractions: { |
| 466 |
width: '100%', |
| 467 |
borderRadius: mvs(10), |
| 468 |
marginTop: mvs(10), |
| 469 |
backgroundColor: colors.white, |
| 470 |
paddingHorizontal: mvs(13), |
| 471 |
paddingVertical: mvs(13), |
| 472 |
}, |
| 473 |
input: { |
| 474 |
//borderWidth : 1, |
| 475 |
fontSize: mvs(15), |
| 476 |
fontFamily: fonts.carosSoftRegular, |
| 477 |
color: colors.headerTitle, |
| 478 |
padding: 0, |
| 479 |
minHeight: mvs(60), |
| 480 |
textAlignVertical: 'top', |
| 481 |
marginTop: mvs(6), |
| 482 |
}, |
| 483 |
rewardMainContainer: { |
| 484 |
height: mvs(58), |
| 485 |
width: '100%', |
| 486 |
justifyContent: 'space-between', |
| 487 |
flexDirection: 'row', |
| 488 |
alignItems: 'center', |
| 489 |
backgroundColor: colors.white, |
| 490 |
borderRadius: mvs(10), |
| 491 |
marginTop: mvs(15), |
| 492 |
//paddingHorizontal: mvs(10), |
| 493 |
//borderWidth:0.3, |
| 494 |
borderColor: colors.lightgrey2, |
| 495 |
}, |
| 496 |
rewardValue: { |
| 497 |
fontSize: mvs(20), |
| 498 |
color: colors.green, |
| 499 |
}, |
| 500 |
chatContainer: { |
| 501 |
height: mvs(52), |
| 502 |
width: '100%', |
| 503 |
justifyContent: 'center', |
| 504 |
flexDirection: 'row', |
| 505 |
alignItems: 'center', |
| 506 |
backgroundColor: colors.primary, |
| 507 |
borderRadius: mvs(10), |
| 508 |
marginTop: mvs(12), |
| 509 |
borderWidth: 0.5, |
| 510 |
borderColor: colors.label, |
| 511 |
}, |
| 512 |
value1: { |
| 513 |
color: colors.headerTitle, |
| 514 |
marginLeft: mvs(14), |
| 515 |
}, |
| 516 |
buttonsContainer: { |
| 517 |
//height : mvs(52), |
| 518 |
width: '100%', |
| 519 |
// borderWidth : 1, |
| 520 |
marginTop: mvs(15), |
| 521 |
flexDirection: 'row', |
| 522 |
justifyContent: 'space-between', |
| 523 |
}, |
| 524 |
button: { |
| 525 |
width: '48.5%', |
| 526 |
}, |
| 527 |
routeContainer: { |
| 528 |
width: '60%', |
| 529 |
}, |
| 530 |
SUB_LOCATION_DESTINATION: { |
| 531 |
// flex: 1, |
| 532 |
justifyContent: 'space-between', |
| 533 |
alignItems: 'center', |
| 534 |
width: '100%', |
| 535 |
alignSelf: 'flex-end', |
| 536 |
|
| 537 |
// backgroundColor:'red' |
| 538 |
//borderWidth:1, |
| 539 |
// borderColor : 'orange' |
| 540 |
}, |
| 541 |
profileMainContainer: { |
| 542 |
height: mvs(37), |
| 543 |
width: '100%', |
| 544 |
//borderWidth : 1, |
| 545 |
marginTop: mvs(30), |
| 546 |
flexDirection: 'row', |
| 547 |
justifyContent: 'space-between', |
| 548 |
alignItems: 'center', |
| 549 |
}, |
| 550 |
profileContainer: { |
| 551 |
height: '100%', |
| 552 |
//width : mvs(126), |
| 553 |
//borderWidth:1, |
| 554 |
flexDirection: 'row', |
| 555 |
alignItems: 'center', |
| 556 |
}, |
| 557 |
trackMainContainer: { |
| 558 |
// borderWidth : 1, |
| 559 |
width: '100%', |
| 560 |
paddingRight: mvs(134), |
| 561 |
marginTop: mvs(22), |
| 562 |
}, |
| 563 |
userContainer: { |
| 564 |
height: '100%', |
| 565 |
position: 'absolute', |
| 566 |
right: 0, |
| 567 |
justifyContent: 'space-between', |
| Error |
Row 568, Column 16: "Insert `·`"
prettier/prettier
|
| 568 |
alignItems:'center', |
| 569 |
}, |
| 570 |
rewardContainer: { |
| 571 |
width: '100%', |
| 572 |
height: '100%', |
| 573 |
borderRadius: mvs(10), |
| 574 |
borderWidth: mvs(0.5), |
| 575 |
borderColor: colors.doted, |
| 576 |
justifyContent: 'center', |
| 577 |
alignItems: 'center', |
| 578 |
}, |
| 579 |
}); |
| 580 |
|
|
| Severity |
Rule |
| Error |
Row 4, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| Error |
Row 5, Column 9: "Replace `·ActivityIndicator,·FlatList,·StyleSheet,·View·` with `ActivityIndicator,·FlatList,·StyleSheet,·View`"
prettier/prettier
|
| Error |
Row 6, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Warning |
Row 7, Column 13: "'Images' is defined but never used."
no-unused-vars
|
| Error |
Row 12, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 18, Column 10: "Replace `·my_orders,·fetchCreatedOrders,profileData·` with `my_orders,·fetchCreatedOrders,·profileData`"
prettier/prettier
|
| Warning |
Row 26, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 26, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 27, Column 30: "'setLoading' is already declared in the upper scope."
no-shadow
|
| Error |
Row 30, Column 29: "Insert `·`"
prettier/prettier
|
| Error |
Row 35, Column 38: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 49, Column 6: "React Hook React.useEffect has a missing dependency: 'onPagination'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 56, Column 18: "Inline style: { justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 63, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}·/>⏎` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎········/>`"
prettier/prettier
|
| Error |
Row 67, Column 14: "Replace `!loading·&&·my_orders?.data?.length·<=·0·||·my_orders?.data·===·undefined` with `⏎····(!loading·&&·my_orders?.data?.length·<=·0)·||⏎····my_orders?.data·===·undefined⏎··`"
prettier/prettier
|
| Warning |
Row 72, Column 18: "Inline style: { justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 78, Column 20: "Strings must use singlequote."
quotes
|
| Warning |
Row 79, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 79, Column 21: "Replace `·textAlign:·'center',·color:·colors.primary·` with `textAlign:·'center',·color:·colors.primary`"
prettier/prettier
|
| Error |
Row 82, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}·/>⏎` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎········/>`"
prettier/prettier
|
| Warning |
Row 86, Column 5: "Expected { after 'else'."
curly
|
| Error |
Row 93, Column 33: "Insert `·`"
prettier/prettier
|
| Error |
Row 100, Column 27: "Replace `·item·` with `item`"
prettier/prettier
|
| Error |
Row 105, Column 29: "Replace `·backgroundColor:·colors.secondary·` with `backgroundColor:·colors.secondary`"
prettier/prettier
|
| Error |
Row 108, Column 28: "Replace `''` with `""`"
prettier/prettier
|
| Warning |
Row 108, Column 28: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 110, Column 34: "Strings must use singlequote."
quotes
|
| Error |
Row 116, Column 34: "Replace `·fontSize:·mvs(18)·` with `fontSize:·mvs(18)`"
prettier/prettier
|
| Error |
Row 129, Column 33: "Replace `·marginTop:·mvs(20)·` with `marginTop:·mvs(20)`"
prettier/prettier
|
| Error |
Row 137, Column 25: "Replace `(⏎·········⏎········)` with ``"
prettier/prettier
|
| Error |
Row 146, Column 21: "'client' is not defined."
no-undef
|
| Error |
Row 177, Column 11: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Error |
Row 178, Column 17: "Replace `selected?.order_shop_name?.length·>·8·?·`${selected?.order_shop_name?.substring(0,·8)}·...`·:·selected?.order_shop_name·||·selected?.order_site` with `⏎············selected?.order_shop_name?.length·>·8⏎··············?·`${selected?.order_shop_name?.substring(0,·8)}·...`⏎··············:·selected?.order_shop_name·||·selected?.order_site⏎··········`"
prettier/prettier
|
| Error |
Row 180, Column 11: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Error |
Row 188, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 190, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| Error |
Row 201, Column 23: "Replace `(page)` with `page`"
prettier/prettier
|
| Line |
Source |
| 1 |
import services from '@khan_ahmad786/common/api/services'; |
| 2 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 3 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| Error |
Row 4, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| 4 |
import React, { useState } from 'react'; |
| Error |
Row 5, Column 9: "Replace `·ActivityIndicator,·FlatList,·StyleSheet,·View·` with `ActivityIndicator,·FlatList,·StyleSheet,·View`"
prettier/prettier
|
| 5 |
import { ActivityIndicator, FlatList, StyleSheet, View } from 'react-native'; |
| Error |
Row 6, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 6 |
import { connect } from 'react-redux'; |
| Warning |
Row 7, Column 13: "'Images' is defined but never used."
no-unused-vars
|
| 7 |
import * as Images from '../../../../resource/assets/order-car-icons'; |
| 8 |
import Header from '../../../components/molecules/header/header-1x'; |
| 9 |
import Widthdraw from '../../../components/molecules/modals/widthdraw'; |
| 10 |
import HistoryOrderCard from '../../../components/molecules/order_card/history-offer-card'; |
| 11 |
import colors from '../../../config/colors'; |
| Error |
Row 12, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 12 |
import { mvs } from '../../../config/metrices'; |
| 13 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 14 |
import Regular from '../../../presentation/typography/regular-text'; |
| 15 |
import PagingLoader from '../../../components/atoms/paging-loader'; |
| 16 |
|
| 17 |
const MyOrders = props => { |
| Error |
Row 18, Column 10: "Replace `·my_orders,·fetchCreatedOrders,profileData·` with `my_orders,·fetchCreatedOrders,·profileData`"
prettier/prettier
|
| 18 |
const { my_orders, fetchCreatedOrders,profileData } = props; |
| 19 |
const alertRef = React.useRef(); |
| 20 |
const [selected, setSelected] = useState(''); |
| 21 |
const [model, setModal] = useState(false); |
| 22 |
const [loading, setLoading] = React.useState(true); |
| 23 |
const [pageLoading, setPageLoading] = React.useState(false); |
| 24 |
|
| 25 |
const [deleteLoading, setDeleteLoading] = React.useState(false); |
| Warning |
Row 26, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 26, Column 1: "Delete `··`"
prettier/prettier
|
| 26 |
|
| Warning |
Row 27, Column 30: "'setLoading' is already declared in the upper scope."
no-shadow
|
| 27 |
const onPagination = async setLoading => { |
| 28 |
try { |
| 29 |
let page = UI_API._returnPage(my_orders); |
| Error |
Row 30, Column 29: "Insert `·`"
prettier/prettier
|
| 30 |
console.log('page:::',page); |
| 31 |
if (!page) { |
| 32 |
return; |
| 33 |
} |
| 34 |
setLoading(true); |
| Error |
Row 35, Column 38: "Delete `⏎`"
prettier/prettier
|
| 35 |
await fetchCreatedOrders(page); |
| 36 |
|
| 37 |
} catch (error) { |
| 38 |
alertRef.current.alertWithType( |
| 39 |
'error', |
| 40 |
'Error', |
| 41 |
UI_API._returnError(error), |
| 42 |
); |
| 43 |
} finally { |
| 44 |
setLoading(false); |
| 45 |
} |
| 46 |
}; |
| 47 |
React.useEffect(() => { |
| 48 |
onPagination(setLoading); |
| Error |
Row 49, Column 6: "React Hook React.useEffect has a missing dependency: 'onPagination'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 49 |
}, [profileData?.currency]); |
| 50 |
|
| 51 |
if (loading) { |
| 52 |
return ( |
| 53 |
<View style={styles.mainContainer}> |
| 54 |
<Header {...props} title="My orders" allowBackBtn bellIcon /> |
| 55 |
<View |
| Warning |
Row 56, Column 18: "Inline style: { justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 56 |
style={{ |
| 57 |
...styles.container, |
| 58 |
justifyContent: 'center', |
| 59 |
alignItems: 'center', |
| 60 |
}}> |
| 61 |
<ActivityIndicator size="small" color={colors.primary} /> |
| 62 |
</View> |
| Error |
Row 63, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}·/>⏎` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎········/>`"
prettier/prettier
|
| 63 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 64 |
|
| 65 |
</View> |
| 66 |
); |
| Error |
Row 67, Column 14: "Replace `!loading·&&·my_orders?.data?.length·<=·0·||·my_orders?.data·===·undefined` with `⏎····(!loading·&&·my_orders?.data?.length·<=·0)·||⏎····my_orders?.data·===·undefined⏎··`"
prettier/prettier
|
| 67 |
} else if (!loading && my_orders?.data?.length <= 0 || my_orders?.data === undefined) { |
| 68 |
return ( |
| 69 |
<View style={styles.mainContainer}> |
| 70 |
<Header {...props} title="My orders" allowBackBtn bellIcon /> |
| 71 |
<View |
| Warning |
Row 72, Column 18: "Inline style: { justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 72 |
style={{ |
| 73 |
...styles.container, |
| 74 |
justifyContent: 'center', |
| 75 |
alignItems: 'center', |
| 76 |
}}> |
| 77 |
<Regular |
| Warning |
Row 78, Column 20: "Strings must use singlequote."
quotes
|
| 78 |
label={`Oops! it seems you haven't created an order.`} |
| Warning |
Row 79, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 79, Column 21: "Replace `·textAlign:·'center',·color:·colors.primary·` with `textAlign:·'center',·color:·colors.primary`"
prettier/prettier
|
| 79 |
style={{ textAlign: 'center', color: colors.primary }} |
| 80 |
/> |
| 81 |
</View> |
| Error |
Row 82, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}·/>⏎` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎········/>`"
prettier/prettier
|
| 82 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 83 |
|
| 84 |
</View> |
| 85 |
); |
| Warning |
Row 86, Column 5: "Expected { after 'else'."
curly
|
| 86 |
} else |
| 87 |
return ( |
| 88 |
<View style={styles.mainContainer}> |
| 89 |
<Header {...props} title="My orders" allowBackBtn bellIcon /> |
| 90 |
<View style={styles.container}> |
| 91 |
<FlatList |
| 92 |
data={my_orders?.data} |
| Error |
Row 93, Column 33: "Insert `·`"
prettier/prettier
|
| 93 |
keyExtractor={(item,index) => index?.toString()} |
| 94 |
showsVerticalScrollIndicator={false} |
| 95 |
contentContainerStyle={{ |
| 96 |
...styles.SCROLL_CONTAINER, |
| 97 |
//paddingTop: mvs(20), |
| 98 |
paddingBottom: mvs(22), |
| 99 |
}} |
| Error |
Row 100, Column 27: "Replace `·item·` with `item`"
prettier/prettier
|
| 100 |
renderItem={({ item }) => { |
| 101 |
return ( |
| 102 |
<> |
| 103 |
<HistoryOrderCard |
| 104 |
{...props} |
| Error |
Row 105, Column 29: "Replace `·backgroundColor:·colors.secondary·` with `backgroundColor:·colors.secondary`"
prettier/prettier
|
| 105 |
style={{ backgroundColor: colors.secondary }} |
| 106 |
{...UI_API._returnOrderProps(item)} |
| 107 |
type={'Reward'} |
| Error |
Row 108, Column 28: "Replace `''` with `""`"
prettier/prettier
|
| Warning |
Row 108, Column 28: "Unexpected usage of singlequote."
jsx-quotes
|
| 108 |
status='' |
| 109 |
//buttonLabel={item?.order_next_step?.split(' ')[0]} |
| Warning |
Row 110, Column 34: "Strings must use singlequote."
quotes
|
| 110 |
buttonLabel={`Cancel Order`} |
| 111 |
styleButton={{ |
| 112 |
height: mvs(57), |
| 113 |
backgroundColor: colors.pink, |
| 114 |
}} |
| 115 |
// buttonLabel1={'US$ 45'} |
| Error |
Row 116, Column 34: "Replace `·fontSize:·mvs(18)·` with `fontSize:·mvs(18)`"
prettier/prettier
|
| 116 |
textStyle1={{ fontSize: mvs(18) }} |
| 117 |
color={colors.pink} |
| 118 |
onClick={() => { |
| 119 |
//.log(item) |
| 120 |
setSelected(item); |
| 121 |
setModal(true); |
| 122 |
}} |
| 123 |
order_site={item?.order_site} |
| 124 |
order_from={item.order_from} |
| 125 |
order_to={item.order_to} |
| 126 |
order_from_img={item.order_from_flag} |
| 127 |
order_to_img={item.order_to_flag} |
| 128 |
/> |
| Error |
Row 129, Column 33: "Replace `·marginTop:·mvs(20)·` with `marginTop:·mvs(20)`"
prettier/prettier
|
| 129 |
<View style={{ marginTop: mvs(20) }} /> |
| 130 |
</> |
| 131 |
); |
| 132 |
}} |
| 133 |
onEndReachedThreshold={0.5} |
| 134 |
onEndReached={() => onPagination(setPageLoading)} |
| 135 |
/> |
| 136 |
</View> |
| Error |
Row 137, Column 25: "Replace `(⏎·········⏎········)` with ``"
prettier/prettier
|
| 137 |
{pageLoading && ( |
| 138 |
<PagingLoader/> |
| 139 |
)} |
| 140 |
<Widthdraw |
| 141 |
{...props} |
| 142 |
loading={deleteLoading} |
| 143 |
onConfirm={async () => { |
| 144 |
try { |
| 145 |
setDeleteLoading(true); |
| Error |
Row 146, Column 21: "'client' is not defined."
no-undef
|
| 146 |
await client.delete( |
| 147 |
`${services.create_order.cancel_order}/${selected?.order_id}`, |
| 148 |
); |
| 149 |
await fetchCreatedOrders(); |
| 150 |
setDeleteLoading(false); |
| 151 |
setModal(false); |
| 152 |
alertRef.current.alertWithType( |
| 153 |
'success', |
| 154 |
'Successfully Deleted.', |
| 155 |
'Your order has been deleted successfully', |
| 156 |
); |
| 157 |
} catch (error) { |
| 158 |
setDeleteLoading(false); |
| 159 |
setModal(false); |
| 160 |
alertRef.current.alertWithType( |
| 161 |
'error', |
| 162 |
'Error', |
| 163 |
UI_API._returnError(error), |
| 164 |
); |
| 165 |
} |
| 166 |
}} |
| 167 |
onClose={() => { |
| 168 |
setModal(false); |
| 169 |
}} |
| 170 |
requestedReward={false} |
| 171 |
requested |
| 172 |
subtitle="Are you sure you want to cancel your order?" |
| 173 |
title="Cancel Order" |
| 174 |
name={selected?.order_title} |
| 175 |
image={selected?.order_image} |
| 176 |
visible={model} |
| Error |
Row 177, Column 11: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 177 |
name={selected?.order_title} |
| Error |
Row 178, Column 17: "Replace `selected?.order_shop_name?.length·>·8·?·`${selected?.order_shop_name?.substring(0,·8)}·...`·:·selected?.order_shop_name·||·selected?.order_site` with `⏎············selected?.order_shop_name?.length·>·8⏎··············?·`${selected?.order_shop_name?.substring(0,·8)}·...`⏎··············:·selected?.order_shop_name·||·selected?.order_site⏎··········`"
prettier/prettier
|
| 178 |
site={selected?.order_shop_name?.length > 8 ? `${selected?.order_shop_name?.substring(0, 8)} ...` : selected?.order_shop_name || selected?.order_site} |
| 179 |
price={selected?.order_price} |
| Error |
Row 180, Column 11: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 180 |
image={selected?.order_image} |
| 181 |
reward={`${selected?.order_reward_price}`} |
| 182 |
offer_reward={selected?.offer_reward_price} |
| 183 |
isLocal={!selected?.is_international} |
| 184 |
flagFrom={selected?.order_from_flag} |
| 185 |
flagTo={selected?.order_to_flag} |
| 186 |
from={selected?.order_from} |
| 187 |
to={selected?.order_to} |
| Error |
Row 188, Column 1: "Delete `⏎`"
prettier/prettier
|
| 188 |
|
| 189 |
/> |
| Error |
Row 190, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| 190 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 191 |
</View> |
| 192 |
); |
| 193 |
}; |
| 194 |
|
| 195 |
export const mapStateToProps = state => ({ |
| 196 |
my_orders: state.order.my_orders, |
| 197 |
profileData: state.auth.userInfo?.profile || {}, |
| 198 |
}); |
| 199 |
|
| 200 |
export const mapDispatchToProps = { |
| Error |
Row 201, Column 23: "Replace `(page)` with `page`"
prettier/prettier
|
| 201 |
fetchCreatedOrders: (page) => TAKE_TO_ACTIONS.fetchCreatedOrders(page), |
| 202 |
}; |
| 203 |
export default connect(mapStateToProps, mapDispatchToProps)(MyOrders); |
| 204 |
|
| 205 |
const styles = StyleSheet.create({ |
| 206 |
mainContainer: { |
| 207 |
flex: 1, |
| 208 |
backgroundColor: colors.white, |
| 209 |
}, |
| 210 |
container: { |
| 211 |
flex: 1, |
| 212 |
}, |
| 213 |
SCROLL_CONTAINER: { |
| 214 |
paddingHorizontal: mvs(22), |
| 215 |
}, |
| 216 |
buttonsContainer: { |
| 217 |
height: mvs(44), |
| 218 |
width: '100%', |
| 219 |
//borderWidth : 1, |
| 220 |
marginTop: mvs(30), |
| 221 |
flexDirection: 'row', |
| 222 |
justifyContent: 'space-between', |
| 223 |
}, |
| 224 |
topButton: { |
| 225 |
height: '100%', |
| 226 |
width: '48%', |
| 227 |
borderWidth: 1, |
| 228 |
borderRadius: mvs(10), |
| 229 |
justifyContent: 'center', |
| 230 |
alignItems: 'center', |
| 231 |
flexDirection: 'row', |
| 232 |
borderColor: colors.primary, |
| 233 |
}, |
| 234 |
pageLoader: { |
| 235 |
height: mvs(50), |
| 236 |
width: mvs(50), |
| 237 |
borderRadius: mvs(25), |
| 238 |
position: 'absolute', |
| 239 |
bottom: mvs(20), |
| 240 |
alignSelf: 'center', |
| 241 |
justifyContent: 'center', |
| 242 |
alignItems: 'center', |
| 243 |
}, |
| 244 |
}); |
| 245 |
|
|
| Severity |
Rule |
| Warning |
Row 2, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| Error |
Row 3, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| Error |
Row 12, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 13, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 13, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Error |
Row 19, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 25, Column 10: "Replace `·fetchOrderHistory,·history_orders,·langauge·` with `fetchOrderHistory,·history_orders,·langauge`"
prettier/prettier
|
| Warning |
Row 26, Column 28: "["aeroplane_white"] is better written in dot notation."
dot-notation
|
| Warning |
Row 27, Column 34: "["aeroplane_active"] is better written in dot notation."
dot-notation
|
| Warning |
Row 28, Column 22: "["car_white"] is better written in dot notation."
dot-notation
|
| Warning |
Row 29, Column 28: "["car_active"] is better written in dot notation."
dot-notation
|
| Error |
Row 38, Column 16: "Replace `=async(selected=` with `·=·async·(selected·=·`"
prettier/prettier
|
| Warning |
Row 38, Column 16: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 38, Column 23: "'selected' is already declared in the upper scope."
no-shadow
|
| Warning |
Row 38, Column 31: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 52, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 52, Column 4: "Missing semicolon."
semi
|
| Warning |
Row 60, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 60, Column 1: "Delete `···⏎`"
prettier/prettier
|
| Error |
Row 61, Column 6: "React Hook React.useEffect has missing dependencies: 'getData' and 'props?.navigation'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 67, Column 27: "Replace `setSelected(0);getData(0)` with `⏎············setSelected(0);⏎············getData(0);⏎··········`"
prettier/prettier
|
| Warning |
Row 67, Column 41: "Missing whitespace after semicolon."
semi-spacing
|
| Warning |
Row 67, Column 52: "Missing semicolon."
semi
|
| Warning |
Row 70, Column 39: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 72, Column 21: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 76, Column 31: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 83, Column 10: "Replace `onPress={()·=>·{setSelected(1);getData(1)` with `·onPress={()·=>·{⏎············setSelected(1);⏎············getData(1);⏎··········`"
prettier/prettier
|
| Warning |
Row 83, Column 40: "Missing whitespace after semicolon."
semi-spacing
|
| Warning |
Row 83, Column 51: "Missing semicolon."
semi
|
| Warning |
Row 86, Column 39: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 88, Column 21: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 92, Column 31: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 106, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 106, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| Warning |
Row 117, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 124, Column 20: "Strings must use singlequote."
quotes
|
| Warning |
Row 125, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 125, Column 21: "Replace `·textAlign:·'center',·color:·colors.primary·` with `textAlign:·'center',·color:·colors.primary`"
prettier/prettier
|
| Warning |
Row 130, Column 5: "Expected { after 'else'."
curly
|
| Error |
Row 132, Column 42: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 147, Column 27: "Replace `·item,·index·` with `item,·index`"
prettier/prettier
|
| Error |
Row 148, Column 34: "Insert `·`"
prettier/prettier
|
| Error |
Row 154, Column 29: "Replace `·backgroundColor:·colors.secondary·` with `backgroundColor:·colors.secondary`"
prettier/prettier
|
| Error |
Row 156, Column 27: "Replace `item.order_next_step·==·'view_offers'` with `⏎······················item.order_next_step·==·'view_offers'⏎·······················`"
prettier/prettier
|
| Warning |
Row 156, Column 48: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 157, Column 25: "Insert `····`"
prettier/prettier
|
| Warning |
Row 157, Column 25: "["pending_reward"] is better written in dot notation."
dot-notation
|
| Error |
Row 158, Column 23: "Replace `].split('·')[1]·:·''` with `····].split('·')[1]⏎························:·''⏎····················`"
prettier/prettier
|
| Warning |
Row 160, Column 44: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 160, Column 60: "Insert `⏎·······················`"
prettier/prettier
|
| Error |
Row 161, Column 25: "Insert `····`"
prettier/prettier
|
| Warning |
Row 161, Column 25: "["pending_reward"] is better written in dot notation."
dot-notation
|
| Error |
Row 162, Column 23: "Replace `].split('·')[0]` with `····].split('·')[0]⏎·······················`"
prettier/prettier
|
| Error |
Row 163, Column 25: "Insert `····`"
prettier/prettier
|
| Warning |
Row 163, Column 25: "["reward"] is better written in dot notation."
dot-notation
|
| Error |
Row 164, Column 1: "Replace `······················` with `··························`"
prettier/prettier
|
| Error |
Row 168, Column 23: "Insert `··`"
prettier/prettier
|
| Error |
Row 171, Column 34: "Replace `·fontSize:·mvs(12)·` with `fontSize:·mvs(12)`"
prettier/prettier
|
| Warning |
Row 174, Column 48: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 186, Column 44: "Replace `'',` with `·'',·`"
prettier/prettier
|
| Warning |
Row 189, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 189, Column 21: "Delete `··⏎····················`"
prettier/prettier
|
| Error |
Row 192, Column 33: "Replace `·marginTop:·mvs(20)·` with `marginTop:·mvs(20)`"
prettier/prettier
|
| Warning |
Row 210, Column 28: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 212, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| Warning |
Row 2, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| 2 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| Error |
Row 3, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| 3 |
import React, { useState } from 'react'; |
| 4 |
import { |
| 5 |
ActivityIndicator, |
| 6 |
FlatList, |
| 7 |
StyleSheet, |
| 8 |
TouchableOpacity, |
| 9 |
View, |
| 10 |
} from 'react-native'; |
| 11 |
|
| Error |
Row 12, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 12 |
import { connect } from 'react-redux'; |
| Error |
Row 13, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 13, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 13 |
import { TAKE_TO_IMAGES } from '../../../../resource/assets/image_resouce'; |
| 14 |
import * as Images from '../../../../resource/assets/order-car-icons'; |
| 15 |
import Header from '../../../components/molecules/header/header-1x'; |
| 16 |
import DeliveryAddressRequested from '../../../components/molecules/modals/delivery-address-requested'; |
| 17 |
import HistoryOrderCard from '../../../components/molecules/order_card/history-offer-card'; |
| 18 |
import colors from '../../../config/colors'; |
| Error |
Row 19, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 19 |
import { mvs } from '../../../config/metrices'; |
| 20 |
import Regular from '../../../presentation/typography/regular-text'; |
| 21 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 22 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 23 |
|
| 24 |
const OrderHistory = props => { |
| Error |
Row 25, Column 10: "Replace `·fetchOrderHistory,·history_orders,·langauge·` with `fetchOrderHistory,·history_orders,·langauge`"
prettier/prettier
|
| 25 |
const { fetchOrderHistory, history_orders, langauge } = props; |
| Warning |
Row 26, Column 28: "["aeroplane_white"] is better written in dot notation."
dot-notation
|
| 26 |
const Aeroplane = Images['aeroplane_white']; |
| Warning |
Row 27, Column 34: "["aeroplane_active"] is better written in dot notation."
dot-notation
|
| 27 |
const AeroplaneActive = Images['aeroplane_active']; |
| Warning |
Row 28, Column 22: "["car_white"] is better written in dot notation."
dot-notation
|
| 28 |
const Car = Images['car_white']; |
| Warning |
Row 29, Column 28: "["car_active"] is better written in dot notation."
dot-notation
|
| 29 |
const CarActive = Images['car_active']; |
| 30 |
// console.log(langauge); |
| 31 |
const [selected, setSelected] = useState(0); |
| 32 |
const [modal, setModal] = useState(false); |
| 33 |
const [step, setStep] = useState(0); |
| 34 |
const [loading, setLoading] = React.useState(true); |
| 35 |
const alertRef = React.useRef(); |
| 36 |
const scrollRef = React.useRef(); |
| 37 |
// console.log(history_orders) |
| Error |
Row 38, Column 16: "Replace `=async(selected=` with `·=·async·(selected·=·`"
prettier/prettier
|
| Warning |
Row 38, Column 16: "Operator '=' must be spaced."
space-infix-ops
|
| Warning |
Row 38, Column 23: "'selected' is already declared in the upper scope."
no-shadow
|
| Warning |
Row 38, Column 31: "Operator '=' must be spaced."
space-infix-ops
|
| 38 |
const getData=async(selected=0) => { |
| 39 |
try { |
| 40 |
setLoading(true); |
| 41 |
await fetchOrderHistory(selected ? true : false); |
| 42 |
setLoading(false); |
| 43 |
} catch (error) { |
| 44 |
setLoading(false); |
| 45 |
// scrollRef.current.scrollTo({x: 0, y: 0, animated: true}); |
| 46 |
alertRef.current.alertWithType( |
| 47 |
'error', |
| 48 |
'Error', |
| 49 |
UI_API._returnError(error), |
| 50 |
); |
| 51 |
} |
| Error |
Row 52, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 52, Column 4: "Missing semicolon."
semi
|
| 52 |
} |
| 53 |
React.useEffect(() => { |
| 54 |
const unsubscribe = props?.navigation.addListener('focus', () => { |
| 55 |
// (async )(); |
| 56 |
getData(selected); |
| 57 |
}); |
| 58 |
// Return the function to unsubscribe from the event so it gets removed on unmount |
| 59 |
return unsubscribe; |
| Warning |
Row 60, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 60, Column 1: "Delete `···⏎`"
prettier/prettier
|
| 60 |
|
| Error |
Row 61, Column 6: "React Hook React.useEffect has missing dependencies: 'getData' and 'props?.navigation'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| 61 |
}, [selected]); |
| 62 |
|
| 63 |
const ButtonsDom = () => { |
| 64 |
return ( |
| 65 |
<View style={styles.buttonsContainer}> |
| 66 |
<TouchableOpacity |
| Error |
Row 67, Column 27: "Replace `setSelected(0);getData(0)` with `⏎············setSelected(0);⏎············getData(0);⏎··········`"
prettier/prettier
|
| Warning |
Row 67, Column 41: "Missing whitespace after semicolon."
semi-spacing
|
| Warning |
Row 67, Column 52: "Missing semicolon."
semi
|
| 67 |
onPress={() => {setSelected(0);getData(0)}} |
| 68 |
style={{ |
| 69 |
...styles.topButton, |
| Warning |
Row 70, Column 39: "Expected '===' and instead saw '=='."
eqeqeq
|
| 70 |
backgroundColor: selected == 0 ? colors.primary : colors.white, |
| 71 |
}}> |
| Warning |
Row 72, Column 21: "Expected '===' and instead saw '=='."
eqeqeq
|
| 72 |
{selected == 0 ? <Aeroplane /> : <AeroplaneActive />} |
| 73 |
<Regular |
| 74 |
label="International" |
| 75 |
style={{ |
| Warning |
Row 76, Column 31: "Expected '===' and instead saw '=='."
eqeqeq
|
| 76 |
color: selected == 0 ? colors.white : colors.primary, |
| 77 |
marginLeft: mvs(11), |
| 78 |
}} |
| 79 |
/> |
| 80 |
</TouchableOpacity> |
| 81 |
|
| 82 |
<TouchableOpacity |
| Error |
Row 83, Column 10: "Replace `onPress={()·=>·{setSelected(1);getData(1)` with `·onPress={()·=>·{⏎············setSelected(1);⏎············getData(1);⏎··········`"
prettier/prettier
|
| Warning |
Row 83, Column 40: "Missing whitespace after semicolon."
semi-spacing
|
| Warning |
Row 83, Column 51: "Missing semicolon."
semi
|
| 83 |
onPress={() => {setSelected(1);getData(1)}} |
| 84 |
style={{ |
| 85 |
...styles.topButton, |
| Warning |
Row 86, Column 39: "Expected '===' and instead saw '=='."
eqeqeq
|
| 86 |
backgroundColor: selected == 1 ? colors.primary : colors.white, |
| 87 |
}}> |
| Warning |
Row 88, Column 21: "Expected '===' and instead saw '=='."
eqeqeq
|
| 88 |
{selected == 1 ? <Car /> : <CarActive />} |
| 89 |
<Regular |
| 90 |
label="Local" |
| 91 |
style={{ |
| Warning |
Row 92, Column 31: "Expected '===' and instead saw '=='."
eqeqeq
|
| 92 |
color: selected == 1 ? colors.white : colors.primary, |
| 93 |
marginLeft: mvs(11), |
| 94 |
}} |
| 95 |
/> |
| 96 |
</TouchableOpacity> |
| 97 |
</View> |
| 98 |
); |
| 99 |
}; |
| 100 |
|
| 101 |
if (loading) { |
| 102 |
return ( |
| 103 |
<View style={styles.mainContainer}> |
| 104 |
<Header {...props} title="Order History" allowBackBtn bellIcon /> |
| 105 |
{ButtonsDom()} |
| Warning |
Row 106, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 106, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| 106 |
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> |
| 107 |
<ActivityIndicator size="small" color={colors.primary} /> |
| 108 |
</View> |
| 109 |
</View> |
| 110 |
); |
| 111 |
} else if (!loading && history_orders?.data?.length <= 0) { |
| 112 |
return ( |
| 113 |
<View style={styles.mainContainer}> |
| 114 |
<Header {...props} title="Order History" allowBackBtn bellIcon /> |
| 115 |
{ButtonsDom()} |
| 116 |
<View |
| Warning |
Row 117, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 117 |
style={{ |
| 118 |
flex: 1, |
| 119 |
justifyContent: 'center', |
| 120 |
alignItems: 'center', |
| 121 |
paddingHorizontal: mvs(20), |
| 122 |
}}> |
| 123 |
<Regular |
| Warning |
Row 124, Column 20: "Strings must use singlequote."
quotes
|
| 124 |
label={`No Record Found`} |
| Warning |
Row 125, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 125, Column 21: "Replace `·textAlign:·'center',·color:·colors.primary·` with `textAlign:·'center',·color:·colors.primary`"
prettier/prettier
|
| 125 |
style={{ textAlign: 'center', color: colors.primary }} |
| 126 |
/> |
| 127 |
</View> |
| 128 |
</View> |
| 129 |
); |
| Warning |
Row 130, Column 5: "Expected { after 'else'."
curly
|
| 130 |
} else |
| 131 |
return ( |
| Error |
Row 132, Column 42: "Delete `⏎`"
prettier/prettier
|
| 132 |
<View style={styles.mainContainer}> |
| 133 |
|
| 134 |
<Header {...props} title="Order History" allowBackBtn bellIcon /> |
| 135 |
<View style={styles.container}> |
| 136 |
{ButtonsDom()} |
| 137 |
<FlatList |
| 138 |
ref={scrollRef} |
| 139 |
data={history_orders?.data} |
| 140 |
keyExtractor={item => item.order_created_at.toString()} |
| 141 |
showsVerticalScrollIndicator={false} |
| 142 |
contentContainerStyle={{ |
| 143 |
...styles.SCROLL_CONTAINER, |
| 144 |
paddingTop: mvs(20), |
| 145 |
paddingBottom: mvs(22), |
| 146 |
}} |
| Error |
Row 147, Column 27: "Replace `·item,·index·` with `item,·index`"
prettier/prettier
|
| 147 |
renderItem={({ item, index }) => { |
| Error |
Row 148, Column 34: "Insert `·`"
prettier/prettier
|
| 148 |
console.log('item',item); |
| 149 |
return ( |
| 150 |
<> |
| 151 |
<HistoryOrderCard |
| 152 |
{...props} |
| 153 |
// local={selecte} |
| Error |
Row 154, Column 29: "Replace `·backgroundColor:·colors.secondary·` with `backgroundColor:·colors.secondary`"
prettier/prettier
|
| 154 |
style={{ backgroundColor: colors.secondary }} |
| 155 |
{...UI_API._returnOrderProps(item)} |
| Error |
Row 156, Column 27: "Replace `item.order_next_step·==·'view_offers'` with `⏎······················item.order_next_step·==·'view_offers'⏎·······················`"
prettier/prettier
|
| Warning |
Row 156, Column 48: "Expected '===' and instead saw '=='."
eqeqeq
|
| 156 |
type={item.order_next_step == 'view_offers' ? langauge?.translations?.order_history_steps[ |
| Error |
Row 157, Column 25: "Insert `····`"
prettier/prettier
|
| Warning |
Row 157, Column 25: "["pending_reward"] is better written in dot notation."
dot-notation
|
| 157 |
'pending_reward' |
| Error |
Row 158, Column 23: "Replace `].split('·')[1]·:·''` with `····].split('·')[1]⏎························:·''⏎····················`"
prettier/prettier
|
| 158 |
].split(' ')[1] : ''} |
| 159 |
status={ |
| Warning |
Row 160, Column 44: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 160, Column 60: "Insert `⏎·······················`"
prettier/prettier
|
| 160 |
item.order_next_step == 'view_offers' ? langauge?.translations?.order_history_steps[ |
| Error |
Row 161, Column 25: "Insert `····`"
prettier/prettier
|
| Warning |
Row 161, Column 25: "["pending_reward"] is better written in dot notation."
dot-notation
|
| 161 |
'pending_reward' |
| Error |
Row 162, Column 23: "Replace `].split('·')[0]` with `····].split('·')[0]⏎·······················`"
prettier/prettier
|
| 162 |
].split(' ')[0] : langauge?.translations?.delivery_history_steps[ |
| Error |
Row 163, Column 25: "Insert `····`"
prettier/prettier
|
| Warning |
Row 163, Column 25: "["reward"] is better written in dot notation."
dot-notation
|
| 163 |
'reward' |
| Error |
Row 164, Column 1: "Replace `······················` with `··························`"
prettier/prettier
|
| 164 |
].split(' ')[0] |
| 165 |
} |
| 166 |
buttonLabel={ |
| 167 |
langauge?.translations?.order_history_steps[ |
| Error |
Row 168, Column 23: "Insert `··`"
prettier/prettier
|
| 168 |
item?.order_status |
| 169 |
] |
| 170 |
} |
| Error |
Row 171, Column 34: "Replace `·fontSize:·mvs(12)·` with `fontSize:·mvs(12)`"
prettier/prettier
|
| 171 |
textStyle1={{ fontSize: mvs(12) }} |
| 172 |
color={colors.primary} |
| 173 |
onClick={() => { |
| Warning |
Row 174, Column 48: "Expected '===' and instead saw '=='."
eqeqeq
|
| 174 |
if (item.order_next_step == 'view_offers') { |
| 175 |
props.navigation.navigate('pendingdetails', { |
| 176 |
isLocalOrders: !item?.is_international, |
| 177 |
order_id: item?.order_id, |
| 178 |
}); |
| 179 |
} else { |
| 180 |
// props.navigation.navigate('pendingdetails', { |
| 181 |
// isLocalOrders: !item?.is_international, |
| 182 |
// order_id: item?.order_id, |
| 183 |
// }); |
| 184 |
props.navigation.navigate('chat', { |
| 185 |
thread_id: item?.thread_id, |
| Error |
Row 186, Column 44: "Replace `'',` with `·'',·`"
prettier/prettier
|
| 186 |
participant_name:'',//item?.order_by?.user_name |
| 187 |
}); |
| 188 |
} |
| Warning |
Row 189, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 189, Column 21: "Delete `··⏎····················`"
prettier/prettier
|
| 189 |
|
| 190 |
}} |
| 191 |
/> |
| Error |
Row 192, Column 33: "Replace `·marginTop:·mvs(20)·` with `marginTop:·mvs(20)`"
prettier/prettier
|
| 192 |
<View style={{ marginTop: mvs(20) }} /> |
| 193 |
</> |
| 194 |
); |
| 195 |
}} |
| 196 |
/> |
| 197 |
</View> |
| 198 |
<DeliveryAddressRequested |
| 199 |
visible={modal} |
| 200 |
onClose={() => setModal(false)} |
| 201 |
step={step} |
| 202 |
onNext={() => { |
| 203 |
if (step < 2) { |
| 204 |
setStep(step + 1); |
| 205 |
} else { |
| 206 |
setModal(false); |
| 207 |
setStep(0); |
| 208 |
} |
| 209 |
}} |
| Warning |
Row 210, Column 28: "Expected '===' and instead saw '=='."
eqeqeq
|
| 210 |
backButton={step == 0 ? true : false} |
| 211 |
/> |
| Error |
Row 212, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| 212 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 213 |
</View> |
| 214 |
); |
| 215 |
}; |
| 216 |
|
| 217 |
export const mapStateToProps = state => ({ |
| 218 |
history_orders: state.menu_orders?.history_orders, |
| 219 |
langauge: state.common?.langauge, |
| 220 |
}); |
| 221 |
|
| 222 |
export const mapDispatchToProps = { |
| 223 |
fetchOrderHistory: local => TAKE_TO_ACTIONS.fetchOrderHistory(local), |
| 224 |
}; |
| 225 |
export default connect(mapStateToProps, mapDispatchToProps)(OrderHistory); |
| 226 |
|
| 227 |
const styles = StyleSheet.create({ |
| 228 |
mainContainer: { |
| 229 |
flex: 1, |
| 230 |
backgroundColor: colors.white, |
| 231 |
}, |
| 232 |
SCROLL_CONTAINER: { |
| 233 |
paddingHorizontal: mvs(22), |
| 234 |
}, |
| 235 |
container: { |
| 236 |
flex: 1, |
| 237 |
}, |
| 238 |
buttonsContainer: { |
| 239 |
//height: mvs(44), |
| 240 |
paddingHorizontal: mvs(22), |
| 241 |
width: '100%', |
| 242 |
//borderWidth : 1, |
| 243 |
// marginTop: mvs(30), |
| 244 |
marginBottom: mvs(2), |
| 245 |
flexDirection: 'row', |
| 246 |
justifyContent: 'space-between', |
| 247 |
paddingBottom: mvs(20), |
| 248 |
}, |
| 249 |
topButton: { |
| 250 |
height: mvs(44), |
| 251 |
width: '48%', |
| 252 |
borderWidth: 1, |
| 253 |
borderRadius: mvs(10), |
| 254 |
justifyContent: 'center', |
| 255 |
alignItems: 'center', |
| 256 |
flexDirection: 'row', |
| 257 |
borderColor: colors.primary, |
| 258 |
}, |
| 259 |
}); |
| 260 |
|
|
| Severity |
Rule |
| Warning |
Row 4, Column 3: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 7, Column 3: "'TouchableOpacity' is defined but never used."
no-unused-vars
|
| Warning |
Row 10, Column 3: "'Linking' is defined but never used."
no-unused-vars
|
| Error |
Row 22, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 22, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Error |
Row 23, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 26, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 31, Column 5: "'navigation' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 36, Column 10: "Replace `·isLocalOrders,·order_id·` with `isLocalOrders,·order_id`"
prettier/prettier
|
| Warning |
Row 36, Column 11: "'isLocalOrders' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 37, Column 9: "'CarActive' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 37, Column 28: "["car_active"] is better written in dot notation."
dot-notation
|
| Warning |
Row 38, Column 27: "["location"] is better written in dot notation."
dot-notation
|
| Warning |
Row 42, Column 9: "'scrollRef' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 56, Column 11: "'UI_API' is not defined."
no-undef
|
| Error |
Row 61, Column 6: "React Hook React.useEffect has missing dependencies: 'fetchSingleOrderHistoryOffers' and 'order_id'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 63, Column 3: "Nested block is redundant."
no-lone-blocks
|
| Error |
Row 63, Column 4: "Replace `·console.log('orderyHistoryOffers?.is_international::',·orderyHistoryOffers?.is_international)` with `⏎····console.log(⏎······'orderyHistoryOffers?.is_international::',⏎······orderyHistoryOffers?.is_international,⏎····);⏎·`"
prettier/prettier
|
| Warning |
Row 63, Column 98: "Missing semicolon."
semi
|
| Error |
Row 67, Column 23: "Replace `·backgroundColor:·colors.white·` with `backgroundColor:·colors.white`"
prettier/prettier
|
| Error |
Row 70, Column 20: "Replace `(!orderyHistoryOffers?.is_international)·&&·'Local·Offers'·||·orderyHistoryOffers?.is_international·&&·'International·Offers'·||·''` with `⏎··············(!orderyHistoryOffers?.is_international·&&·'Local·Offers')·||⏎··············(orderyHistoryOffers?.is_international·&&⏎················'International·Offers')·||⏎··············''⏎············`"
prettier/prettier
|
| Warning |
Row 76, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 76, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| Error |
Row 84, Column 23: "Replace `·backgroundColor:·colors.white·` with `backgroundColor:·colors.white`"
prettier/prettier
|
| Error |
Row 87, Column 20: "Replace `(!orderyHistoryOffers?.is_international)·&&·'Local·Offers'·||·orderyHistoryOffers?.is_international·&&·'International·Offers'·||·''` with `⏎··············(!orderyHistoryOffers?.is_international·&&·'Local·Offers')·||⏎··············(orderyHistoryOffers?.is_international·&&⏎················'International·Offers')·||⏎··············''⏎············`"
prettier/prettier
|
| Warning |
Row 94, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 101, Column 20: "Strings must use singlequote."
quotes
|
| Warning |
Row 102, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 102, Column 21: "Replace `·textAlign:·'center',·color:·colors.primary·` with `textAlign:·'center',·color:·colors.primary`"
prettier/prettier
|
| Warning |
Row 107, Column 5: "Expected { after 'else'."
curly
|
| Error |
Row 110, Column 1: "Replace `⏎········prettier/prettier
|
| Error |
Row 114, Column 20: "Replace `(!orderyHistoryOffers?.is_international)·&&·'Local·Offers'·||·orderyHistoryOffers?.is_international·&&·'International·Offers'·||·''` with `⏎··············(!orderyHistoryOffers?.is_international·&&·'Local·Offers')·||⏎··············(orderyHistoryOffers?.is_international·&&⏎················'International·Offers')·||⏎··············''⏎············`"
prettier/prettier
|
| Warning |
Row 119, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 119, Column 23: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| Error |
Row 138, Column 31: "Replace `(!orderyHistoryOffers?.is_international)·?·Images.car·:·Images.aeroplane` with `⏎······················!orderyHistoryOffers?.is_international⏎························?·Images.car⏎························:·Images.aeroplane⏎····················`"
prettier/prettier
|
| Error |
Row 142, Column 33: "Replace `·uri:·orderyHistoryOffers?.order_from_flag·` with `uri:·orderyHistoryOffers?.order_from_flag`"
prettier/prettier
|
| Error |
Row 143, Column 31: "Replace `·uri:·orderyHistoryOffers?.order_to_flag·` with `uri:·orderyHistoryOffers?.order_to_flag`"
prettier/prettier
|
| Error |
Row 145, Column 29: "Replace `·marginTop:·mvs(11.3)·` with `marginTop:·mvs(11.3)`"
prettier/prettier
|
| Warning |
Row 175, Column 24: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 186, Column 33: "Replace `·item,·index·` with `item,·index`"
prettier/prettier
|
| Error |
Row 198, Column 31: "Replace `·marginTop:·mvs(10)·` with `marginTop:·mvs(10)`"
prettier/prettier
|
| Error |
Row 201, Column 58: "Delete `·?`"
prettier/prettier
|
| Error |
Row 202, Column 26: "Insert `·?`"
prettier/prettier
|
| Error |
Row 203, Column 28: "Replace `⏎··························item?.offer_status·===·'accepted'·?` with `·item?.offer_status·===·'accepted'`"
prettier/prettier
|
| Error |
Row 205, Column 27: "Replace `·` with `?`"
prettier/prettier
|
| Error |
Row 206, Column 1: "Replace `····························:⏎····························item?.offer_status·===·'rejected'·?` with `··························:·item?.offer_status·===·'rejected'`"
prettier/prettier
|
| Error |
Row 208, Column 27: "Replace `···` with `?`"
prettier/prettier
|
| Error |
Row 209, Column 27: "Replace `····:⏎·····························` with `:`"
prettier/prettier
|
| Error |
Row 211, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 212, Column 29: "Replace `··})` with `});`"
prettier/prettier
|
| Warning |
Row 212, Column 33: "Missing semicolon."
semi
|
| Error |
Row 213, Column 24: "Delete `⏎······················`"
prettier/prettier
|
| Error |
Row 223, Column 9: "Replace `·⏎` with ``"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| 2 |
import { |
| 3 |
View, |
| Warning |
Row 4, Column 3: "'Text' is defined but never used."
no-unused-vars
|
| 4 |
Text, |
| 5 |
StyleSheet, |
| 6 |
ScrollView, |
| Warning |
Row 7, Column 3: "'TouchableOpacity' is defined but never used."
no-unused-vars
|
| 7 |
TouchableOpacity, |
| 8 |
FlatList, |
| 9 |
ActivityIndicator, |
| Warning |
Row 10, Column 3: "'Linking' is defined but never used."
no-unused-vars
|
| 10 |
Linking, |
| 11 |
} from 'react-native'; |
| 12 |
import Header from '../../../../components/molecules/header/header-1x'; |
| 13 |
import colors from '../../../../config/colors'; |
| 14 |
|
| 15 |
import Regular from '../../../../presentation/typography/regular-text'; |
| 16 |
import ProductInfo from '../../../../components/molecules/product-info'; |
| 17 |
import OrderDestination from '../../../../components/atoms/OrderDestination'; |
| 18 |
import OrderDestinationAddress from '../../../../components/atoms/OrderDestinationAddress'; |
| 19 |
import * as Images from '../../../../../resource/assets/order-car-icons'; |
| 20 |
import OfferCard from '../../../../components/molecules/order_card/offer-card'; |
| 21 |
import OrderDetailsAnimated from '../../../../components/molecules/order_card/order-details-animated'; |
| Error |
Row 22, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 22, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 22 |
import { TAKE_TO_IMAGES } from '../../../../../resource/assets/image_resouce'; |
| Error |
Row 23, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 23 |
import { connect } from 'react-redux'; |
| 24 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 25 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| Error |
Row 26, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 26 |
import { mvs } from '../../../../config/metrices'; |
| 27 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 28 |
|
| 29 |
const PendingDetails = props => { |
| 30 |
const { |
| Warning |
Row 31, Column 5: "'navigation' is assigned a value but never used."
no-unused-vars
|
| 31 |
navigation, |
| 32 |
route, |
| 33 |
fetchSingleOrderHistoryOffers, |
| 34 |
orderyHistoryOffers, |
| 35 |
} = props; |
| Error |
Row 36, Column 10: "Replace `·isLocalOrders,·order_id·` with `isLocalOrders,·order_id`"
prettier/prettier
|
| Warning |
Row 36, Column 11: "'isLocalOrders' is assigned a value but never used."
no-unused-vars
|
| 36 |
const { isLocalOrders, order_id } = route?.params; |
| Warning |
Row 37, Column 9: "'CarActive' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 37, Column 28: "["car_active"] is better written in dot notation."
dot-notation
|
| 37 |
const CarActive = Images['car_active']; |
| Warning |
Row 38, Column 27: "["location"] is better written in dot notation."
dot-notation
|
| 38 |
const Location = Images['location']; |
| 39 |
|
| 40 |
const [loading, setLoading] = React.useState(true); |
| 41 |
const alertRef = React.useRef(); |
| Warning |
Row 42, Column 9: "'scrollRef' is assigned a value but never used."
no-unused-vars
|
| 42 |
const scrollRef = React.useRef(); |
| 43 |
// console.log(orderyHistoryOffers) |
| 44 |
|
| 45 |
React.useEffect(() => { |
| 46 |
(async () => { |
| 47 |
try { |
| 48 |
setLoading(true); |
| 49 |
await fetchSingleOrderHistoryOffers(order_id); |
| 50 |
setLoading(false); |
| 51 |
} catch (error) { |
| 52 |
setLoading(false); |
| 53 |
alertRef.current.alertWithType( |
| 54 |
'error', |
| 55 |
'Error', |
| Error |
Row 56, Column 11: "'UI_API' is not defined."
no-undef
|
| 56 |
UI_API._returnError(error), |
| 57 |
); |
| 58 |
// scrollRef.current.scrollTo({x: 0, y: 0, animated: true}); |
| 59 |
} |
| 60 |
})(); |
| Error |
Row 61, Column 6: "React Hook React.useEffect has missing dependencies: 'fetchSingleOrderHistoryOffers' and 'order_id'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| 61 |
}, []); |
| 62 |
|
| Warning |
Row 63, Column 3: "Nested block is redundant."
no-lone-blocks
|
| Error |
Row 63, Column 4: "Replace `·console.log('orderyHistoryOffers?.is_international::',·orderyHistoryOffers?.is_international)` with `⏎····console.log(⏎······'orderyHistoryOffers?.is_international::',⏎······orderyHistoryOffers?.is_international,⏎····);⏎·`"
prettier/prettier
|
| Warning |
Row 63, Column 98: "Missing semicolon."
semi
|
| 63 |
{ console.log('orderyHistoryOffers?.is_international::', orderyHistoryOffers?.is_international) } |
| 64 |
if (loading) { |
| 65 |
return ( |
| 66 |
<View style={styles.mainContainer}> |
| Error |
Row 67, Column 23: "Replace `·backgroundColor:·colors.white·` with `backgroundColor:·colors.white`"
prettier/prettier
|
| 67 |
<View style={{ backgroundColor: colors.white }}> |
| 68 |
<Header |
| 69 |
{...props} |
| Error |
Row 70, Column 20: "Replace `(!orderyHistoryOffers?.is_international)·&&·'Local·Offers'·||·orderyHistoryOffers?.is_international·&&·'International·Offers'·||·''` with `⏎··············(!orderyHistoryOffers?.is_international·&&·'Local·Offers')·||⏎··············(orderyHistoryOffers?.is_international·&&⏎················'International·Offers')·||⏎··············''⏎············`"
prettier/prettier
|
| 70 |
title={(!orderyHistoryOffers?.is_international) && 'Local Offers' || orderyHistoryOffers?.is_international && 'International Offers' || ''} |
| 71 |
allowBackBtn |
| 72 |
bellIcon |
| 73 |
/> |
| 74 |
</View> |
| 75 |
|
| Warning |
Row 76, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 76, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| 76 |
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> |
| 77 |
<ActivityIndicator size="small" color={colors.primary} /> |
| 78 |
</View> |
| 79 |
</View> |
| 80 |
); |
| 81 |
} else if (!loading && Object.keys(orderyHistoryOffers).length <= 0) { |
| 82 |
return ( |
| 83 |
<View style={styles.mainContainer}> |
| Error |
Row 84, Column 23: "Replace `·backgroundColor:·colors.white·` with `backgroundColor:·colors.white`"
prettier/prettier
|
| 84 |
<View style={{ backgroundColor: colors.white }}> |
| 85 |
<Header |
| 86 |
{...props} |
| Error |
Row 87, Column 20: "Replace `(!orderyHistoryOffers?.is_international)·&&·'Local·Offers'·||·orderyHistoryOffers?.is_international·&&·'International·Offers'·||·''` with `⏎··············(!orderyHistoryOffers?.is_international·&&·'Local·Offers')·||⏎··············(orderyHistoryOffers?.is_international·&&⏎················'International·Offers')·||⏎··············''⏎············`"
prettier/prettier
|
| 87 |
title={(!orderyHistoryOffers?.is_international) && 'Local Offers' || orderyHistoryOffers?.is_international && 'International Offers' || ''} |
| 88 |
allowBackBtn |
| 89 |
bellIcon |
| 90 |
/> |
| 91 |
</View> |
| 92 |
|
| 93 |
<View |
| Warning |
Row 94, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 94 |
style={{ |
| 95 |
flex: 1, |
| 96 |
justifyContent: 'center', |
| 97 |
alignItems: 'center', |
| 98 |
paddingHorizontal: mvs(20), |
| 99 |
}}> |
| 100 |
<Regular |
| Warning |
Row 101, Column 20: "Strings must use singlequote."
quotes
|
| 101 |
label={`Oops! it seems something went wrong. While fetching International orders details`} |
| Warning |
Row 102, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 102, Column 21: "Replace `·textAlign:·'center',·color:·colors.primary·` with `textAlign:·'center',·color:·colors.primary`"
prettier/prettier
|
| 102 |
style={{ textAlign: 'center', color: colors.primary }} |
| 103 |
/> |
| 104 |
</View> |
| 105 |
</View> |
| 106 |
); |
| Warning |
Row 107, Column 5: "Expected { after 'else'."
curly
|
| 107 |
} else |
| 108 |
return ( |
| 109 |
<View style={styles.mainContainer}> |
| Error |
Row 110, Column 1: "Replace `⏎········prettier/prettier
|
| 110 |
|
| 111 |
<View style={{ backgroundColor: colors.white }}> |
| 112 |
<Header |
| 113 |
{...props} |
| Error |
Row 114, Column 20: "Replace `(!orderyHistoryOffers?.is_international)·&&·'Local·Offers'·||·orderyHistoryOffers?.is_international·&&·'International·Offers'·||·''` with `⏎··············(!orderyHistoryOffers?.is_international·&&·'Local·Offers')·||⏎··············(orderyHistoryOffers?.is_international·&&⏎················'International·Offers')·||⏎··············''⏎············`"
prettier/prettier
|
| 114 |
title={(!orderyHistoryOffers?.is_international) && 'Local Offers' || orderyHistoryOffers?.is_international && 'International Offers' || ''} |
| 115 |
allowBackBtn |
| 116 |
bellIcon |
| 117 |
/> |
| 118 |
</View> |
| Warning |
Row 119, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 119, Column 23: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| 119 |
<View style={{ flex: 1 }}> |
| 120 |
<ScrollView nestedScrollEnabled> |
| 121 |
<View style={styles.optionsContainer}> |
| 122 |
<ProductInfo |
| 123 |
order_img={orderyHistoryOffers?.order_image} |
| 124 |
priceTitle="Product Price" |
| 125 |
name={orderyHistoryOffers?.order_title} |
| 126 |
total={`${orderyHistoryOffers?.order_price}`} |
| 127 |
reward={`${orderyHistoryOffers?.order_reward_price}`} |
| 128 |
/> |
| 129 |
<View style={styles.trackMainContainer}> |
| 130 |
<View style={styles.trackContainer}> |
| 131 |
<OrderDestination |
| 132 |
label={ |
| 133 |
' - - - - - - - - - - - - - - - - - - - - - - - - - - ' |
| 134 |
} |
| 135 |
containerStyle={{}} |
| 136 |
width={mvs(62)} |
| 137 |
value={0} |
| Error |
Row 138, Column 31: "Replace `(!orderyHistoryOffers?.is_international)·?·Images.car·:·Images.aeroplane` with `⏎······················!orderyHistoryOffers?.is_international⏎························?·Images.car⏎························:·Images.aeroplane⏎····················`"
prettier/prettier
|
| 138 |
SVGFirst={(!orderyHistoryOffers?.is_international) ? Images.car : Images.aeroplane} |
| 139 |
SVGSecond={Location} |
| 140 |
/> |
| 141 |
<OrderDestinationAddress |
| Error |
Row 142, Column 33: "Replace `·uri:·orderyHistoryOffers?.order_from_flag·` with `uri:·orderyHistoryOffers?.order_from_flag`"
prettier/prettier
|
| 142 |
imageFrom={{ uri: orderyHistoryOffers?.order_from_flag }} |
| Error |
Row 143, Column 31: "Replace `·uri:·orderyHistoryOffers?.order_to_flag·` with `uri:·orderyHistoryOffers?.order_to_flag`"
prettier/prettier
|
| 143 |
imageTo={{ uri: orderyHistoryOffers?.order_to_flag }} |
| 144 |
fontSize={12} |
| Error |
Row 145, Column 29: "Replace `·marginTop:·mvs(11.3)·` with `marginTop:·mvs(11.3)`"
prettier/prettier
|
| 145 |
style={{ marginTop: mvs(11.3) }} |
| 146 |
label={`${orderyHistoryOffers?.order_from} - ${orderyHistoryOffers?.order_to}`} |
| 147 |
/> |
| 148 |
</View> |
| 149 |
</View> |
| 150 |
</View> |
| 151 |
<View style={styles.moreDetailsContainer}> |
| 152 |
<OrderDetailsAnimated |
| 153 |
{...props} |
| 154 |
instruction={orderyHistoryOffers?.order_instructions} |
| 155 |
product_details={orderyHistoryOffers?.order_detail} |
| 156 |
deliveryBefore={TAKE_TO_CONSTANT.getDate( |
| 157 |
orderyHistoryOffers?.order_deliver_before, |
| 158 |
)} |
| 159 |
quantity={orderyHistoryOffers.order_quantity} |
| 160 |
packaging={ |
| 161 |
orderyHistoryOffers?.order_packaging |
| 162 |
? 'With box' |
| 163 |
: 'Without box' |
| 164 |
} |
| 165 |
location={orderyHistoryOffers?.shop_location || {}} |
| 166 |
//site_url={orderyHistoryOffers?.order_store_url||''} |
| 167 |
//site = {orderyHistoryOffers?.order_site || orderyHistoryOffers?.order_shop_name} |
| 168 |
order_data={orderyHistoryOffers} |
| 169 |
/> |
| 170 |
</View> |
| 171 |
|
| 172 |
<View style={styles.offersMainContainer}> |
| 173 |
<Regular |
| 174 |
label="Offers" |
| Warning |
Row 175, Column 24: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| 175 |
style={{ |
| 176 |
color: colors.headerTitle, |
| 177 |
marginTop: mvs(22), |
| 178 |
alignSelf: 'center', |
| 179 |
}} |
| 180 |
/> |
| 181 |
<View style={styles.flatlistContainer}> |
| 182 |
<FlatList |
| 183 |
nestedScrollEnabled |
| 184 |
data={orderyHistoryOffers?.offers_list} |
| 185 |
showsVerticalScrollIndicator={false} |
| Error |
Row 186, Column 33: "Replace `·item,·index·` with `item,·index`"
prettier/prettier
|
| 186 |
renderItem={({ item, index }) => ( |
| 187 |
<OfferCard |
| 188 |
name={item?.offer_by} |
| 189 |
image={item?.user_image} |
| 190 |
price={`${item?.offer_reward}`} |
| 191 |
deliveryOn={TAKE_TO_CONSTANT.getDate( |
| 192 |
item?.offer_delivery_on, |
| 193 |
)} |
| 194 |
deliveryBefore={TAKE_TO_CONSTANT.getDate( |
| 195 |
orderyHistoryOffers?.offer_delivery_on, |
| 196 |
)} |
| 197 |
type={item?.offer_status} |
| Error |
Row 198, Column 31: "Replace `·marginTop:·mvs(10)·` with `marginTop:·mvs(10)`"
prettier/prettier
|
| 198 |
style={{ marginTop: mvs(10) }} |
| 199 |
onClick={() => { |
| 200 |
// alert(item?.offer_status) |
| Error |
Row 201, Column 58: "Delete `·?`"
prettier/prettier
|
| 201 |
item?.offer_status === 'Disputed' ? |
| Error |
Row 202, Column 26: "Insert `·?`"
prettier/prettier
|
| 202 |
props.navigation.navigate('disputes') |
| Error |
Row 203, Column 28: "Replace `⏎··························item?.offer_status·===·'accepted'·?` with `·item?.offer_status·===·'accepted'`"
prettier/prettier
|
| 203 |
: |
| 204 |
item?.offer_status === 'accepted' ? |
| Error |
Row 205, Column 27: "Replace `·` with `?`"
prettier/prettier
|
| 205 |
{} |
| Error |
Row 206, Column 1: "Replace `····························:⏎····························item?.offer_status·===·'rejected'·?` with `··························:·item?.offer_status·===·'rejected'`"
prettier/prettier
|
| 206 |
: |
| 207 |
item?.offer_status === 'rejected' ? |
| Error |
Row 208, Column 27: "Replace `···` with `?`"
prettier/prettier
|
| 208 |
{} |
| Error |
Row 209, Column 27: "Replace `····:⏎·····························` with `:`"
prettier/prettier
|
| 209 |
: |
| 210 |
props.navigation.navigate('offerrequest', { |
| Error |
Row 211, Column 1: "Delete `··`"
prettier/prettier
|
| 211 |
offer_id: item?.offer_id, |
| Error |
Row 212, Column 29: "Replace `··})` with `});`"
prettier/prettier
|
| Warning |
Row 212, Column 33: "Missing semicolon."
semi
|
| 212 |
}) |
| Error |
Row 213, Column 24: "Delete `⏎······················`"
prettier/prettier
|
| 213 |
} |
| 214 |
} |
| 215 |
/> |
| 216 |
)} |
| 217 |
keyExtractor={(item, index) => index?.toString()} |
| 218 |
/> |
| 219 |
</View> |
| 220 |
</View> |
| 221 |
</ScrollView> |
| 222 |
</View> |
| Error |
Row 223, Column 9: "Replace `·⏎` with ``"
prettier/prettier
|
| 223 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 224 |
|
| 225 |
</View> |
| 226 |
); |
| 227 |
}; |
| 228 |
export const mapStateToProps = state => ({ |
| 229 |
orderyHistoryOffers: state.menu_orders?.orderyHistoryOffers, |
| 230 |
}); |
| 231 |
|
| 232 |
export const mapDispatchToProps = { |
| 233 |
fetchSingleOrderHistoryOffers: order_id => |
| 234 |
TAKE_TO_ACTIONS.fetchSingleOrderHistoryOffers(order_id), |
| 235 |
}; |
| 236 |
export default connect(mapStateToProps, mapDispatchToProps)(PendingDetails); |
| 237 |
|
| 238 |
const styles = StyleSheet.create({ |
| 239 |
mainContainer: { |
| 240 |
flex: 1, |
| 241 |
backgroundColor: colors.white, |
| 242 |
}, |
| 243 |
optionsContainer: { |
| 244 |
// height: mvs(270), |
| 245 |
width: '100%', |
| 246 |
borderBottomEndRadius: mvs(20), |
| 247 |
borderBottomStartRadius: mvs(20), |
| 248 |
backgroundColor: colors.white, |
| 249 |
paddingBottom: mvs(20), |
| 250 |
paddingHorizontal: mvs(22), |
| 251 |
//paddingTop: mvs(30), |
| 252 |
}, |
| 253 |
optionsMainContainer: { |
| 254 |
flex: 1, |
| 255 |
paddingHorizontal: mvs(22), |
| 256 |
}, |
| 257 |
option1: { |
| 258 |
//height : mvs(56), |
| 259 |
width: '100%', |
| 260 |
alignSelf: 'center', |
| 261 |
marginTop: mvs(30), |
| 262 |
borderWidth: 1, |
| 263 |
borderColor: colors.primary, |
| 264 |
borderRadius: mvs(10), |
| 265 |
paddingHorizontal: mvs(10), |
| 266 |
paddingTop: mvs(12), |
| 267 |
paddingBottom: mvs(13), |
| 268 |
}, |
| 269 |
option2: { |
| 270 |
//height : mvs(71), |
| 271 |
width: '100%', |
| 272 |
alignSelf: 'center', |
| 273 |
marginTop: mvs(12), |
| 274 |
borderWidth: 1, |
| 275 |
borderColor: colors.primary, |
| 276 |
borderRadius: mvs(10), |
| 277 |
paddingHorizontal: mvs(10), |
| 278 |
paddingTop: mvs(12), |
| 279 |
paddingBottom: mvs(13), |
| 280 |
}, |
| 281 |
optionTitle: { |
| 282 |
fontSize: mvs(15), |
| 283 |
color: colors.primary, |
| 284 |
}, |
| 285 |
optionDetail: { |
| 286 |
fontSize: mvs(12), |
| 287 |
color: colors.headerTitle, |
| 288 |
marginTop: mvs(4), |
| 289 |
}, |
| 290 |
buttonContainer: { |
| 291 |
marginVertical: mvs(18), |
| 292 |
paddingHorizontal: mvs(22), |
| 293 |
}, |
| 294 |
trackMainContainer: { |
| 295 |
//borderWidth : 1, |
| 296 |
width: '100%', |
| 297 |
paddingLeft: mvs(113), |
| 298 |
marginTop: mvs(14.2), |
| 299 |
}, |
| 300 |
trackContainer: { |
| 301 |
//borderWidth : 1, |
| 302 |
width: '100%', |
| 303 |
alignSelf: 'flex-end', |
| 304 |
//height: mvs(53.92), |
| 305 |
|
| 306 |
alignItems: 'center', |
| 307 |
}, |
| 308 |
offersMainContainer: { |
| 309 |
//flex : 1, |
| 310 |
paddingHorizontal: mvs(22), |
| 311 |
//borderWidth : 1 |
| 312 |
}, |
| 313 |
moreDetailsContainer: { |
| 314 |
marginTop: mvs(11), |
| 315 |
}, |
| 316 |
flatlistContainer: { |
| 317 |
// height : mvs(233), |
| 318 |
//borderWidth:1, |
| 319 |
marginTop: mvs(11), |
| 320 |
marginBottom: mvs(20), |
| 321 |
}, |
| 322 |
}); |
| 323 |
|
|
| Severity |
Rule |
| Error |
Row 1, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| Warning |
Row 3, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| Warning |
Row 11, Column 3: "'TextInput' is defined but never used."
no-unused-vars
|
| Error |
Row 15, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 16, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 16, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 18, Column 13: "'SVG' is defined but never used."
no-unused-vars
|
| Error |
Row 27, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 28, Column 8: "'Light' is defined but never used."
no-unused-vars
|
| Warning |
Row 31, Column 13: "'ImagesCommon' is defined but never used."
no-unused-vars
|
| Warning |
Row 32, Column 8: "'InputWithTitle' is defined but never used."
no-unused-vars
|
| Warning |
Row 33, Column 8: "'RewardAcceptedModal' is defined but never used."
no-unused-vars
|
| Warning |
Row 34, Column 8: "'ProductAcceptedModal' is defined but never used."
no-unused-vars
|
| Error |
Row 48, Column 20: "Insert `,`"
prettier/prettier
|
| Warning |
Row 48, Column 20: "Missing trailing comma."
comma-dangle
|
| Error |
Row 51, Column 10: "Replace `·offer_id·` with `offer_id`"
prettier/prettier
|
| Warning |
Row 52, Column 9: "'CarActive' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 52, Column 28: "["car_active"] is better written in dot notation."
dot-notation
|
| Warning |
Row 53, Column 27: "["location"] is better written in dot notation."
dot-notation
|
| Warning |
Row 54, Column 9: "'LocationBlue' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 54, Column 31: "["location_active"] is better written in dot notation."
dot-notation
|
| Warning |
Row 55, Column 23: "["chat"] is better written in dot notation."
dot-notation
|
| Warning |
Row 63, Column 9: "'scrollRef' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 66, Column 10: "'btnLoaderThread' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 85, Column 6: "React Hook React.useEffect has missing dependencies: 'fetchOrderHistoryOffersDetails' and 'offer_id'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 97, Column 1: "Replace `⏎······const·thread_id·=·await·client.post(`${services.messanger.create_thread}`,` with `······const·thread_id·=·await·client.post(⏎········`${services.messanger.create_thread}`,⏎·······`"
prettier/prettier
|
| Error |
Row 98, Column 31: "'client' is not defined."
no-undef
|
| Error |
Row 99, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 100, Column 7: "Replace `}` with `··},⏎······`"
prettier/prettier
|
| Error |
Row 105, Column 35: "Insert `,`"
prettier/prettier
|
| Warning |
Row 105, Column 35: "Missing trailing comma."
comma-dangle
|
| Error |
Row 109, Column 13: "'client' is not defined."
no-undef
|
| Error |
Row 112, Column 30: "Insert `;`"
prettier/prettier
|
| Warning |
Row 112, Column 30: "Missing semicolon."
semi
|
| Error |
Row 116, Column 15: "Insert `;`"
prettier/prettier
|
| Warning |
Row 116, Column 15: "Missing semicolon."
semi
|
| Error |
Row 134, Column 33: "'client' is not defined."
no-undef
|
| Error |
Row 134, Column 45: "Replace ``${services.messanger.create_thread}`,` with `⏎··········`${services.messanger.create_thread}`,⏎·········`"
prettier/prettier
|
| Error |
Row 135, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 136, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 137, Column 9: "Replace `}` with `··},⏎········`"
prettier/prettier
|
| Error |
Row 140, Column 32: "Insert `·`"
prettier/prettier
|
| Error |
Row 157, Column 29: "Insert `;`"
prettier/prettier
|
| Warning |
Row 157, Column 29: "Missing semicolon."
semi
|
| Error |
Row 160, Column 13: "'client' is not defined."
no-undef
|
| Error |
Row 180, Column 23: "Replace `·backgroundColor:·colors.white·` with `backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 183, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 183, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| Error |
Row 191, Column 23: "Replace `·backgroundColor:·colors.white·` with `backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 195, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 202, Column 20: "Strings must use singlequote."
quotes
|
| Warning |
Row 203, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 203, Column 21: "Replace `·textAlign:·'center',·color:·colors.primary·` with `textAlign:·'center',·color:·colors.primary`"
prettier/prettier
|
| Warning |
Row 208, Column 5: "Expected { after 'else'."
curly
|
| Error |
Row 213, Column 1: "Replace `⏎········prettier/prettier
|
| Warning |
Row 217, Column 28: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 217, Column 29: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| Warning |
Row 233, Column 26: "Comparing to itself is potentially pointless."
no-self-compare
|
| Warning |
Row 233, Column 28: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 241, Column 31: "Replace `·marginTop:·mvs(8)·` with `marginTop:·mvs(8)`"
prettier/prettier
|
| Error |
Row 243, Column 31: "Replace `·uri:·offer_details?.order_from_flag·` with `uri:·offer_details?.order_from_flag`"
prettier/prettier
|
| Error |
Row 244, Column 29: "Replace `·uri:·offer_details?.order_to_flag·` with `uri:·offer_details?.order_to_flag`"
prettier/prettier
|
| Error |
Row 252, Column 25: "Replace `·...styles.normal·` with `...styles.normal`"
prettier/prettier
|
| Error |
Row 254, Column 29: "Replace `·navigation.navigate('userprofile',·{·user_id:·offer_details?.offer_by?.user_id·})` with `⏎················navigation.navigate('userprofile',·{⏎··················user_id:·offer_details?.offer_by?.user_id,⏎················})⏎··············`"
prettier/prettier
|
| Error |
Row 258, Column 25: "Replace `·color:·colors.typeHeader,·fontSize:·mvs(14)·` with `color:·colors.typeHeader,·fontSize:·mvs(14)`"
prettier/prettier
|
| Warning |
Row 263, Column 35: "Inline style: { height: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 272, Column 27: "Replace `·color:·colors.primary,·marginLeft:·mvs(5)·` with `color:·colors.primary,·marginLeft:·mvs(5)`"
prettier/prettier
|
| Error |
Row 302, Column 27: "Replace `·backgroundColor:·colors.green·` with `backgroundColor:·colors.green`"
prettier/prettier
|
| Error |
Row 312, Column 27: "Replace `·backgroundColor:·colors.pink·` with `backgroundColor:·colors.pink`"
prettier/prettier
|
| Error |
Row 324, Column 25: "Replace `·...styles.value1,·color:·colors.white·` with `...styles.value1,·color:·colors.white`"
prettier/prettier
|
| Error |
Row 358, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}·inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| Line |
Source |
| Error |
Row 1, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| 1 |
import React, { useState } from 'react'; |
| 2 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| Warning |
Row 3, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| 3 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 4 |
|
| 5 |
import { |
| 6 |
ActivityIndicator, |
| 7 |
KeyboardAvoidingView, |
| 8 |
Platform, |
| 9 |
ScrollView, |
| 10 |
StyleSheet, |
| Warning |
Row 11, Column 3: "'TextInput' is defined but never used."
no-unused-vars
|
| 11 |
TextInput, |
| 12 |
TouchableOpacity, |
| 13 |
View, |
| 14 |
} from 'react-native'; |
| Error |
Row 15, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 15 |
import { connect } from 'react-redux'; |
| Error |
Row 16, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 16, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 16 |
import { TAKE_TO_IMAGES } from '../../../../../../resource/assets/image_resouce'; |
| 17 |
import * as Images from '../../../../../../resource/assets/order-car-icons'; |
| Warning |
Row 18, Column 13: "'SVG' is defined but never used."
no-unused-vars
|
| 18 |
import * as SVG from '../../../../../../resource/assets/tabbar-icons'; |
| 19 |
import Buttons from '../../../../../components/atoms/Button'; |
| 20 |
import OrderDestination from '../../../../../components/atoms/OrderDestination'; |
| 21 |
import OrderDestinationAddress from '../../../../../components/atoms/OrderDestinationAddress'; |
| 22 |
import ImagePlaceholder from '../../../../../components/atoms/Placeholder'; |
| 23 |
import Header from '../../../../../components/molecules/header/header-1x'; |
| 24 |
import ProductInfo from '../../../../../components/molecules/product-info'; |
| 25 |
import colors from '../../../../../config/colors'; |
| 26 |
import fonts from '../../../../../config/fonts'; |
| Error |
Row 27, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 27 |
import { mvs } from '../../../../../config/metrices'; |
| Warning |
Row 28, Column 8: "'Light' is defined but never used."
no-unused-vars
|
| 28 |
import Light from '../../../../../presentation/typography/light-text'; |
| 29 |
import Medium from '../../../../../presentation/typography/medium-text'; |
| 30 |
import Regular from '../../../../../presentation/typography/regular-text'; |
| Warning |
Row 31, Column 13: "'ImagesCommon' is defined but never used."
no-unused-vars
|
| 31 |
import * as ImagesCommon from '../../../../../../resource/assets/common-icons'; |
| Warning |
Row 32, Column 8: "'InputWithTitle' is defined but never used."
no-unused-vars
|
| 32 |
import InputWithTitle from '../../../../../components/molecules/input-with-title'; |
| Warning |
Row 33, Column 8: "'RewardAcceptedModal' is defined but never used."
no-unused-vars
|
| 33 |
import RewardAcceptedModal from '../../../../../components/molecules/modals/reward-accepted-modal'; |
| Warning |
Row 34, Column 8: "'ProductAcceptedModal' is defined but never used."
no-unused-vars
|
| 34 |
import ProductAcceptedModal from '../../../../../components/molecules/modals/product-accepted-modal'; |
| 35 |
import StatusModal from '../../../../../components/molecules/modals/status-modal'; |
| 36 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 37 |
import services from '@khan_ahmad786/common/api/services'; |
| 38 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 39 |
|
| 40 |
const OfferRequest = props => { |
| 41 |
const { |
| 42 |
navigation, |
| 43 |
route, |
| 44 |
fetchOrderHistoryOffersDetails, |
| 45 |
orderHistoryOfferDetails: offer_details, |
| 46 |
fetchOrderHistory, |
| 47 |
fetchSingleOrderHistoryOffers, |
| Error |
Row 48, Column 20: "Insert `,`"
prettier/prettier
|
| Warning |
Row 48, Column 20: "Missing trailing comma."
comma-dangle
|
| 48 |
fetchHomeOrders |
| 49 |
} = props; |
| 50 |
|
| Error |
Row 51, Column 10: "Replace `·offer_id·` with `offer_id`"
prettier/prettier
|
| 51 |
const { offer_id } = route?.params; |
| Warning |
Row 52, Column 9: "'CarActive' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 52, Column 28: "["car_active"] is better written in dot notation."
dot-notation
|
| 52 |
const CarActive = Images['car_active']; |
| Warning |
Row 53, Column 27: "["location"] is better written in dot notation."
dot-notation
|
| 53 |
const Location = Images['location']; |
| Warning |
Row 54, Column 9: "'LocationBlue' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 54, Column 31: "["location_active"] is better written in dot notation."
dot-notation
|
| 54 |
const LocationBlue = Images['location_active']; |
| Warning |
Row 55, Column 23: "["chat"] is better written in dot notation."
dot-notation
|
| 55 |
const Chat = Images['chat']; |
| 56 |
//const Location = ImagesCommon['location_pink']; |
| 57 |
|
| 58 |
const [approveModal, setApproveModal] = useState(false); |
| 59 |
const [declineModal, setDeclineModal] = useState(false); |
| 60 |
|
| 61 |
const [loading, setLoading] = React.useState(true); |
| 62 |
const alertRef = React.useRef(); |
| Warning |
Row 63, Column 9: "'scrollRef' is assigned a value but never used."
no-unused-vars
|
| 63 |
const scrollRef = React.useRef(); |
| 64 |
const [btnLoader, setBtnLoader] = React.useState(false); |
| 65 |
const [btnLoaderReject, setBtnLoaderReject] = React.useState(false); |
| Warning |
Row 66, Column 10: "'btnLoaderThread' is assigned a value but never used."
no-unused-vars
|
| 66 |
const [btnLoaderThread, setBtnLoaderThread] = React.useState(false); |
| 67 |
// console.log(history_orders) |
| 68 |
|
| 69 |
React.useEffect(() => { |
| 70 |
(async () => { |
| 71 |
try { |
| 72 |
setLoading(true); |
| 73 |
await fetchOrderHistoryOffersDetails(offer_id); |
| 74 |
setLoading(false); |
| 75 |
} catch (error) { |
| 76 |
setLoading(false); |
| 77 |
// scrollRef.current.scrollTo({x: 0, y: 0, animated: true}); |
| 78 |
alertRef.current.alertWithType( |
| 79 |
'error', |
| 80 |
'Error', |
| 81 |
UI_API._returnError(error), |
| 82 |
); |
| 83 |
} |
| 84 |
})(); |
| Error |
Row 85, Column 6: "React Hook React.useEffect has missing dependencies: 'fetchOrderHistoryOffersDetails' and 'offer_id'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| 85 |
}, []); |
| 86 |
|
| 87 |
// console.log(offer_details) |
| 88 |
// console.log({ |
| 89 |
// traveller_id: offer_details?.offer_by?.user_id, |
| 90 |
// }) |
| 91 |
|
| 92 |
const approveOfferHandler = async () => { |
| 93 |
try { |
| 94 |
setApproveModal(false); |
| 95 |
setBtnLoader(true); |
| 96 |
|
| Error |
Row 97, Column 1: "Replace `⏎······const·thread_id·=·await·client.post(`${services.messanger.create_thread}`,` with `······const·thread_id·=·await·client.post(⏎········`${services.messanger.create_thread}`,⏎·······`"
prettier/prettier
|
| 97 |
|
| Error |
Row 98, Column 31: "'client' is not defined."
no-undef
|
| 98 |
const thread_id = await client.post(`${services.messanger.create_thread}`, { |
| Error |
Row 99, Column 9: "Insert `··`"
prettier/prettier
|
| 99 |
traveller_id: offer_details?.offer_by?.user_id, |
| Error |
Row 100, Column 7: "Replace `}` with `··},⏎······`"
prettier/prettier
|
| 100 |
}); |
| 101 |
const payload = { |
| 102 |
offer_id: offer_id, |
| 103 |
order_request_id: offer_details?.order_id, |
| 104 |
reward: offer_details?.raw_offer_reward_price, // after negotiation final reward price will be sent |
| Error |
Row 105, Column 35: "Insert `,`"
prettier/prettier
|
| Warning |
Row 105, Column 35: "Missing trailing comma."
comma-dangle
|
| 105 |
thread_id: thread_id?.data |
| 106 |
}; |
| 107 |
console.log(payload); |
| 108 |
|
| Error |
Row 109, Column 13: "'client' is not defined."
no-undef
|
| 109 |
await client.post(`${services.create_order.accept_offer}`, payload); |
| 110 |
|
| 111 |
await fetchOrderHistory(false); |
| Error |
Row 112, Column 30: "Insert `;`"
prettier/prettier
|
| Warning |
Row 112, Column 30: "Missing semicolon."
semi
|
| 112 |
await fetchHomeOrders() |
| 113 |
// setApproveModal(false); |
| 114 |
setTimeout(() => { |
| 115 |
props.navigation.navigate('orderhistory'); |
| Error |
Row 116, Column 15: "Insert `;`"
prettier/prettier
|
| Warning |
Row 116, Column 15: "Missing semicolon."
semi
|
| 116 |
}, 2000) |
| 117 |
setBtnLoader(false); |
| 118 |
} catch (error) { |
| 119 |
setBtnLoader(false); |
| 120 |
alertRef.current.alertWithType( |
| 121 |
'error', |
| 122 |
'Error', |
| 123 |
UI_API._returnError(error), |
| 124 |
); |
| 125 |
} |
| 126 |
}; |
| 127 |
|
| 128 |
const createThreadonMessageTraveler = async () => { |
| 129 |
try { |
| 130 |
setBtnLoaderThread(true); |
| 131 |
if (offer_details?.thread_id !== null) { |
| 132 |
//move to chat screen with thread_id |
| 133 |
} else { |
| Error |
Row 134, Column 33: "'client' is not defined."
no-undef
|
| Error |
Row 134, Column 45: "Replace ``${services.messanger.create_thread}`,` with `⏎··········`${services.messanger.create_thread}`,⏎·········`"
prettier/prettier
|
| 134 |
const thread_id = await client.post(`${services.messanger.create_thread}`, { |
| Error |
Row 135, Column 1: "Insert `··`"
prettier/prettier
|
| 135 |
traveller_id: offer_details?.offer_by?.user_id, |
| Error |
Row 136, Column 11: "Insert `··`"
prettier/prettier
|
| 136 |
offer_id: offer_id, |
| Error |
Row 137, Column 9: "Replace `}` with `··},⏎········`"
prettier/prettier
|
| 137 |
}); |
| 138 |
props.navigation.navigate('chat', { |
| 139 |
thread_id: thread_id, |
| Error |
Row 140, Column 32: "Insert `·`"
prettier/prettier
|
| 140 |
participant_name: '',//item?.order_by?.user_name |
| 141 |
}); |
| 142 |
} |
| 143 |
// setDeclineModal(true); |
| 144 |
setBtnLoaderThread(false); |
| 145 |
} catch (error) { |
| 146 |
setBtnLoaderThread(false); |
| 147 |
alertRef.current.alertWithType( |
| 148 |
'error', |
| 149 |
'Error', |
| 150 |
UI_API._returnError(error), |
| 151 |
); |
| 152 |
} |
| 153 |
}; |
| 154 |
|
| 155 |
const rejectOfferHandler = async () => { |
| 156 |
try { |
| Error |
Row 157, Column 29: "Insert `;`"
prettier/prettier
|
| Warning |
Row 157, Column 29: "Missing semicolon."
semi
|
| 157 |
setDeclineModal(false) |
| 158 |
setBtnLoaderReject(true); |
| 159 |
//console.log(payload); |
| Error |
Row 160, Column 13: "'client' is not defined."
no-undef
|
| 160 |
await client.get(`${services.create_order?.reject_offer}/${offer_id}`); |
| 161 |
await fetchOrderHistory(false); |
| 162 |
await fetchSingleOrderHistoryOffers(offer_details?.order_id); |
| 163 |
|
| 164 |
setBtnLoaderReject(false); |
| 165 |
props.navigation.pop(); |
| 166 |
} catch (error) { |
| 167 |
setBtnLoaderReject(false); |
| 168 |
alertRef.current.alertWithType( |
| 169 |
'error', |
| 170 |
'Error', |
| 171 |
UI_API._returnError(error), |
| 172 |
); |
| 173 |
} |
| 174 |
}; |
| 175 |
// console.log(offer_details) |
| 176 |
|
| 177 |
if (loading) { |
| 178 |
return ( |
| 179 |
<View style={styles.mainContainer}> |
| Error |
Row 180, Column 23: "Replace `·backgroundColor:·colors.white·` with `backgroundColor:·colors.white`"
prettier/prettier
|
| 180 |
<View style={{ backgroundColor: colors.white }}> |
| 181 |
<Header {...props} title="offer details" allowBackBtn bellIcon /> |
| 182 |
</View> |
| Warning |
Row 183, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 183, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| 183 |
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> |
| 184 |
<ActivityIndicator size="small" color={colors.primary} /> |
| 185 |
</View> |
| 186 |
</View> |
| 187 |
); |
| 188 |
} else if (!loading && Object.keys(offer_details).length <= 0) { |
| 189 |
return ( |
| 190 |
<View style={styles.mainContainer}> |
| Error |
Row 191, Column 23: "Replace `·backgroundColor:·colors.white·` with `backgroundColor:·colors.white`"
prettier/prettier
|
| 191 |
<View style={{ backgroundColor: colors.white }}> |
| 192 |
<Header {...props} title="offer details" allowBackBtn bellIcon /> |
| 193 |
</View> |
| 194 |
<View |
| Warning |
Row 195, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 195 |
style={{ |
| 196 |
flex: 1, |
| 197 |
justifyContent: 'center', |
| 198 |
alignItems: 'center', |
| 199 |
paddingHorizontal: mvs(20), |
| 200 |
}}> |
| 201 |
<Regular |
| Warning |
Row 202, Column 20: "Strings must use singlequote."
quotes
|
| 202 |
label={`Oops! it seems something went wrong. While fetching your offers details`} |
| Warning |
Row 203, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 203, Column 21: "Replace `·textAlign:·'center',·color:·colors.primary·` with `textAlign:·'center',·color:·colors.primary`"
prettier/prettier
|
| 203 |
style={{ textAlign: 'center', color: colors.primary }} |
| 204 |
/> |
| 205 |
</View> |
| 206 |
</View> |
| 207 |
); |
| Warning |
Row 208, Column 5: "Expected { after 'else'."
curly
|
| 208 |
} else |
| 209 |
return ( |
| 210 |
<KeyboardAvoidingView |
| 211 |
behavior={Platform.OS === 'ios' ? 'padding' : 'height'} |
| 212 |
style={styles.mainContainer}> |
| Error |
Row 213, Column 1: "Replace `⏎········prettier/prettier
|
| 213 |
|
| 214 |
<View style={{ backgroundColor: colors.white }}> |
| 215 |
<Header {...props} title="offer details" allowBackBtn bellIcon /> |
| 216 |
</View> |
| Warning |
Row 217, Column 28: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 217, Column 29: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| 217 |
<ScrollView style={{ flex: 1 }}> |
| 218 |
<View style={styles.optionsContainer}> |
| 219 |
<ProductInfo |
| 220 |
order_img={offer_details?.order_image} |
| 221 |
name={offer_details?.order_title} |
| 222 |
total={`${offer_details?.order_price}`} |
| 223 |
priceTitle="Product Price" |
| 224 |
reward={` ${offer_details?.order_reward_price}`} |
| 225 |
/> |
| 226 |
<View style={styles.trackMainContainer}> |
| 227 |
<View style={styles.SUB_LOCATION_DESTINATION}> |
| 228 |
<OrderDestination |
| 229 |
label={ |
| 230 |
' - - - - - - - - - - - - - - - - - - - - - - - - - - ' |
| 231 |
} |
| 232 |
value={0} |
| Warning |
Row 233, Column 26: "Comparing to itself is potentially pointless."
no-self-compare
|
| Warning |
Row 233, Column 28: "Expected '===' and instead saw '=='."
eqeqeq
|
| 233 |
width={2 == 2 ? mvs(100) : mvs(50)} |
| 234 |
SVGFirst={ |
| 235 |
offer_details?.is_international |
| 236 |
? Images.aeroplane |
| 237 |
: Images.car |
| 238 |
} |
| 239 |
SVGSecond={Location} |
| 240 |
/> |
| Error |
Row 241, Column 31: "Replace `·marginTop:·mvs(8)·` with `marginTop:·mvs(8)`"
prettier/prettier
|
| 241 |
<View style={{ marginTop: mvs(8) }} /> |
| 242 |
<OrderDestinationAddress |
| Error |
Row 243, Column 31: "Replace `·uri:·offer_details?.order_from_flag·` with `uri:·offer_details?.order_from_flag`"
prettier/prettier
|
| 243 |
imageFrom={{ uri: offer_details?.order_from_flag }} |
| Error |
Row 244, Column 29: "Replace `·uri:·offer_details?.order_to_flag·` with `uri:·offer_details?.order_to_flag`"
prettier/prettier
|
| 244 |
imageTo={{ uri: offer_details?.order_to_flag }} |
| 245 |
label={`${offer_details?.order_from} - ${offer_details?.order_to}`} |
| 246 |
fontSize={mvs(12)} |
| 247 |
/> |
| 248 |
</View> |
| 249 |
</View> |
| 250 |
</View> |
| 251 |
|
| Error |
Row 252, Column 25: "Replace `·...styles.normal·` with `...styles.normal`"
prettier/prettier
|
| 252 |
<View style={{ ...styles.normal }}> |
| 253 |
<TouchableOpacity |
| Error |
Row 254, Column 29: "Replace `·navigation.navigate('userprofile',·{·user_id:·offer_details?.offer_by?.user_id·})` with `⏎················navigation.navigate('userprofile',·{⏎··················user_id:·offer_details?.offer_by?.user_id,⏎················})⏎··············`"
prettier/prettier
|
| 254 |
onPress={() => navigation.navigate('userprofile', { user_id: offer_details?.offer_by?.user_id })} |
| 255 |
style={styles.profileMainContainer}> |
| 256 |
<Regular |
| 257 |
label="Deliverer Profile" |
| Error |
Row 258, Column 25: "Replace `·color:·colors.typeHeader,·fontSize:·mvs(14)·` with `color:·colors.typeHeader,·fontSize:·mvs(14)`"
prettier/prettier
|
| 258 |
style={{ color: colors.typeHeader, fontSize: mvs(14) }} |
| 259 |
/> |
| 260 |
<View style={styles.profileContainer}> |
| 261 |
<ImagePlaceholder |
| 262 |
bg_img={offer_details?.offer_by?.user_image} |
| Warning |
Row 263, Column 35: "Inline style: { height: '100%' }"
react-native/no-inline-styles
|
| 263 |
containerStyle={{ |
| 264 |
height: '100%', |
| 265 |
width: mvs(37), |
| 266 |
borderRadius: mvs(8), |
| 267 |
//backgroundColor :'red' |
| 268 |
}} |
| 269 |
/> |
| 270 |
<Regular |
| 271 |
label={offer_details?.offer_by?.user_name} |
| Error |
Row 272, Column 27: "Replace `·color:·colors.primary,·marginLeft:·mvs(5)·` with `color:·colors.primary,·marginLeft:·mvs(5)`"
prettier/prettier
|
| 272 |
style={{ color: colors.primary, marginLeft: mvs(5) }} |
| 273 |
/> |
| 274 |
</View> |
| 275 |
</TouchableOpacity> |
| 276 |
</View> |
| 277 |
|
| 278 |
<View style={styles.container}> |
| 279 |
<View style={styles.rewardContainer}> |
| 280 |
<Regular |
| 281 |
label="Requested Reward" |
| 282 |
style={{ |
| 283 |
...styles.value, |
| 284 |
fontSize: mvs(15), |
| 285 |
color: colors.headerTitle, |
| 286 |
}} |
| 287 |
/> |
| 288 |
<Medium |
| 289 |
label={`${offer_details?.offer_reward_price}`} |
| 290 |
style={styles.rewardValue} |
| 291 |
/> |
| 292 |
</View> |
| 293 |
|
| 294 |
<View style={styles.buttonsContainer}> |
| 295 |
<View style={styles.button}> |
| 296 |
<Buttons.ButtonPrimary |
| 297 |
onClick={() => setApproveModal(true)} |
| 298 |
loading={btnLoader} |
| 299 |
loaderColor={colors.white} |
| 300 |
disabled={btnLoader} |
| 301 |
title="Approve" |
| Error |
Row 302, Column 27: "Replace `·backgroundColor:·colors.green·` with `backgroundColor:·colors.green`"
prettier/prettier
|
| 302 |
style={{ backgroundColor: colors.green }} |
| 303 |
/> |
| 304 |
</View> |
| 305 |
<View style={styles.button}> |
| 306 |
<Buttons.ButtonPrimary |
| 307 |
onClick={() => setDeclineModal(true)} |
| 308 |
loading={btnLoaderReject} |
| 309 |
loaderColor={colors.white} |
| 310 |
disabled={btnLoaderReject} |
| 311 |
title="Reject" |
| Error |
Row 312, Column 27: "Replace `·backgroundColor:·colors.pink·` with `backgroundColor:·colors.pink`"
prettier/prettier
|
| 312 |
style={{ backgroundColor: colors.pink }} |
| 313 |
/> |
| 314 |
</View> |
| 315 |
</View> |
| 316 |
|
| 317 |
<TouchableOpacity |
| 318 |
disabled={true} |
| 319 |
onPress={createThreadonMessageTraveler} |
| 320 |
style={styles.chatContainer}> |
| 321 |
<Chat /> |
| 322 |
<Regular |
| 323 |
label="Message Traveller" |
| Error |
Row 324, Column 25: "Replace `·...styles.value1,·color:·colors.white·` with `...styles.value1,·color:·colors.white`"
prettier/prettier
|
| 324 |
style={{ ...styles.value1, color: colors.white }} |
| 325 |
/> |
| 326 |
</TouchableOpacity> |
| 327 |
</View> |
| 328 |
</ScrollView> |
| 329 |
<StatusModal |
| 330 |
title="Approve Reward" |
| 331 |
visible={approveModal} |
| 332 |
endButton |
| 333 |
name={offer_details?.offer_by?.user_name} |
| 334 |
buttonTitle={'Confirm'} |
| 335 |
endButtonTitle={'Cancel'} |
| 336 |
mainButton |
| 337 |
product |
| 338 |
onClose={() => { |
| 339 |
setApproveModal(false); |
| 340 |
// props.navigation.navigate('orderhistory'); |
| 341 |
}} |
| 342 |
onConfirm={() => approveOfferHandler()} |
| 343 |
/> |
| 344 |
|
| 345 |
<StatusModal |
| 346 |
title="Reject Offer" |
| 347 |
name={offer_details?.offer_by?.user_name} |
| 348 |
visible={declineModal} |
| 349 |
mainButton |
| 350 |
endButton |
| 351 |
buttonTitle={'Confirm & Prceed to Offers'} |
| 352 |
endButtonTitle={'Cancel'} |
| 353 |
onClose={() => { |
| 354 |
setDeclineModal(false); |
| 355 |
}} |
| 356 |
onConfirm={rejectOfferHandler} |
| 357 |
/> |
| Error |
Row 358, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}·inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| 358 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 359 |
</KeyboardAvoidingView> |
| 360 |
); |
| 361 |
}; |
| 362 |
export const mapStateToProps = state => ({ |
| 363 |
orderHistoryOfferDetails: state.menu_orders?.orderHistoryOfferDetails, |
| 364 |
}); |
| 365 |
|
| 366 |
export const mapDispatchToProps = { |
| 367 |
fetchOrderHistoryOffersDetails: offer_id => |
| 368 |
TAKE_TO_ACTIONS.fetchOrderHistoryOffersDetails(offer_id), |
| 369 |
fetchOrderHistory: local => TAKE_TO_ACTIONS.fetchOrderHistory(local), |
| 370 |
fetchSingleOrderHistoryOffers: order_id => |
| 371 |
TAKE_TO_ACTIONS.fetchSingleOrderHistoryOffers(order_id), |
| 372 |
fetchHomeOrders: () => TAKE_TO_ACTIONS.fetchHomeOrders(), |
| 373 |
}; |
| 374 |
export default connect(mapStateToProps, mapDispatchToProps)(OfferRequest); |
| 375 |
|
| 376 |
const styles = StyleSheet.create({ |
| 377 |
mainContainer: { |
| 378 |
flex: 1, |
| 379 |
backgroundColor: colors.white, |
| 380 |
}, |
| 381 |
optionsContainer: { |
| 382 |
// height: mvs(270), |
| 383 |
width: '100%', |
| 384 |
borderBottomEndRadius: mvs(20), |
| 385 |
borderBottomStartRadius: mvs(20), |
| 386 |
backgroundColor: colors.white, |
| 387 |
paddingBottom: mvs(20), |
| 388 |
paddingHorizontal: mvs(22), |
| 389 |
//paddingTop: mvs(30), |
| 390 |
}, |
| 391 |
optionsMainContainer: { |
| 392 |
flex: 1, |
| 393 |
paddingHorizontal: mvs(22), |
| 394 |
}, |
| 395 |
option1: { |
| 396 |
//height : mvs(56), |
| 397 |
width: '100%', |
| 398 |
alignSelf: 'center', |
| 399 |
marginTop: mvs(30), |
| 400 |
borderWidth: 1, |
| 401 |
borderColor: colors.primary, |
| 402 |
borderRadius: mvs(10), |
| 403 |
paddingHorizontal: mvs(10), |
| 404 |
paddingTop: mvs(12), |
| 405 |
paddingBottom: mvs(13), |
| 406 |
}, |
| 407 |
option2: { |
| 408 |
//height : mvs(71), |
| 409 |
width: '100%', |
| 410 |
alignSelf: 'center', |
| 411 |
marginTop: mvs(12), |
| 412 |
borderWidth: 1, |
| 413 |
borderColor: colors.primary, |
| 414 |
borderRadius: mvs(10), |
| 415 |
paddingHorizontal: mvs(10), |
| 416 |
paddingTop: mvs(12), |
| 417 |
paddingBottom: mvs(13), |
| 418 |
}, |
| 419 |
optionTitle: { |
| 420 |
fontSize: mvs(15), |
| 421 |
color: colors.primary, |
| 422 |
}, |
| 423 |
optionDetail: { |
| 424 |
fontSize: mvs(12), |
| 425 |
color: colors.headerTitle, |
| 426 |
marginTop: mvs(4), |
| 427 |
}, |
| 428 |
// buttonContainer: { |
| 429 |
// marginVertical : mvs(18), |
| 430 |
// paddingHorizontal : mvs(22) |
| 431 |
// } , |
| 432 |
trackContainer: { |
| 433 |
//borderWidth : 1, |
| 434 |
width: '68%', |
| 435 |
alignSelf: 'flex-end', |
| 436 |
height: mvs(53.92), |
| 437 |
marginTop: mvs(14.2), |
| 438 |
}, |
| 439 |
offersMainContainer: { |
| 440 |
//flex : 1, |
| 441 |
paddingHorizontal: mvs(22), |
| 442 |
//borderWidth : 1 |
| 443 |
}, |
| 444 |
moreDetailsContainer: { |
| 445 |
marginTop: mvs(11), |
| 446 |
}, |
| 447 |
flatlistContainer: { |
| 448 |
height: mvs(233), |
| 449 |
//borderWidth:1, |
| 450 |
marginTop: mvs(11), |
| 451 |
marginBottom: mvs(20), |
| 452 |
}, |
| 453 |
normal: { |
| 454 |
//height : mvs(58), |
| 455 |
width: '100%', |
| 456 |
//borderWidth : 1, |
| 457 |
paddingHorizontal: mvs(22), |
| 458 |
//borderRadius: mvs(10), |
| 459 |
backgroundColor: colors.white, |
| 460 |
paddingBottom: mvs(3), |
| 461 |
marginTop: mvs(10), |
| 462 |
//justifyContent : 'center' |
| 463 |
}, |
| 464 |
titleContainer: { |
| 465 |
flexDirection: 'row', |
| 466 |
width: '100%', |
| 467 |
//borderWidth : 1, |
| 468 |
marginTop: mvs(20.3), |
| 469 |
justifyContent: 'space-between', |
| 470 |
alignItems: 'center', |
| 471 |
}, |
| 472 |
title: { |
| 473 |
fontSize: mvs(15), |
| 474 |
color: colors.primary, |
| 475 |
textDecorationLine: 'underline', |
| 476 |
}, |
| 477 |
infoContainer: { |
| 478 |
width: '100%', |
| 479 |
flexDirection: 'row', |
| 480 |
alignItems: 'center', |
| 481 |
marginTop: mvs(12), |
| 482 |
//borderWidth : 1, |
| 483 |
justifyContent: 'space-between', |
| 484 |
}, |
| 485 |
label: { |
| 486 |
fontSize: mvs(13), |
| 487 |
color: colors.lightgrey2, |
| 488 |
}, |
| 489 |
value: { |
| 490 |
fontSize: mvs(13), |
| 491 |
color: colors.typeHeader, |
| 492 |
}, |
| 493 |
line: { |
| 494 |
width: '100%', |
| 495 |
borderBottomWidth: 0.3, |
| 496 |
borderColor: colors.horizontalLine, |
| 497 |
marginTop: mvs(11), |
| 498 |
}, |
| 499 |
userContainer: { |
| 500 |
flexDirection: 'row', |
| 501 |
alignItems: 'center', |
| 502 |
}, |
| 503 |
dp: { |
| 504 |
height: mvs(37), |
| 505 |
width: mvs(37), |
| 506 |
borderRadius: mvs(8), |
| 507 |
}, |
| 508 |
name: { |
| 509 |
fontSize: mvs(15), |
| 510 |
color: colors.headerTitle, |
| 511 |
marginLeft: mvs(5), |
| 512 |
}, |
| 513 |
container: { |
| 514 |
//flex: 1, |
| 515 |
paddingHorizontal: mvs(22), |
| 516 |
//borderWidth : 1, |
| 517 |
width: '100%', |
| 518 |
paddingBottom: mvs(40), |
| 519 |
marginTop: mvs(200), |
| 520 |
// position : "absolute", |
| 521 |
// bottom : 0 |
| 522 |
}, |
| 523 |
buyingInstractions: { |
| 524 |
width: '100%', |
| 525 |
borderRadius: mvs(10), |
| 526 |
marginTop: mvs(10), |
| 527 |
backgroundColor: colors.white, |
| 528 |
paddingHorizontal: mvs(13), |
| 529 |
paddingVertical: mvs(13), |
| 530 |
}, |
| 531 |
input: { |
| 532 |
//borderWidth : 1, |
| 533 |
fontSize: mvs(15), |
| 534 |
fontFamily: fonts.carosSoftRegular, |
| 535 |
color: colors.headerTitle, |
| 536 |
padding: 0, |
| 537 |
minHeight: mvs(60), |
| 538 |
textAlignVertical: 'top', |
| 539 |
marginTop: mvs(6), |
| 540 |
}, |
| 541 |
rewardContainer: { |
| 542 |
height: mvs(58), |
| 543 |
width: '100%', |
| 544 |
justifyContent: 'space-between', |
| 545 |
flexDirection: 'row', |
| 546 |
alignItems: 'center', |
| 547 |
backgroundColor: colors.white, |
| 548 |
borderRadius: mvs(10), |
| 549 |
marginTop: mvs(27), |
| 550 |
paddingHorizontal: mvs(10), |
| 551 |
borderWidth: StyleSheet.hairlineWidth, |
| 552 |
borderColor: colors.lightgrey2, |
| 553 |
}, |
| 554 |
rewardValue: { |
| 555 |
fontSize: mvs(20), |
| 556 |
color: colors.green, |
| 557 |
}, |
| 558 |
chatContainer: { |
| 559 |
height: mvs(52), |
| 560 |
width: '100%', |
| 561 |
justifyContent: 'center', |
| 562 |
flexDirection: 'row', |
| 563 |
alignItems: 'center', |
| 564 |
backgroundColor: colors.primary, |
| 565 |
borderRadius: mvs(10), |
| 566 |
marginTop: mvs(12), |
| 567 |
// borderWidth: 0.5, |
| 568 |
borderColor: colors.label, |
| 569 |
}, |
| 570 |
value1: { |
| 571 |
color: colors.headerTitle, |
| 572 |
marginLeft: mvs(14), |
| 573 |
}, |
| 574 |
buttonsContainer: { |
| 575 |
//height : mvs(52), |
| 576 |
width: '100%', |
| 577 |
// borderWidth : 1, |
| 578 |
marginTop: mvs(15), |
| 579 |
flexDirection: 'row', |
| 580 |
justifyContent: 'space-between', |
| 581 |
}, |
| 582 |
button: { |
| 583 |
width: '48.5%', |
| 584 |
}, |
| 585 |
routeContainer: { |
| 586 |
width: '60%', |
| 587 |
}, |
| 588 |
SUB_LOCATION_DESTINATION: { |
| 589 |
// flex: 1, |
| 590 |
justifyContent: 'space-between', |
| 591 |
alignItems: 'center', |
| 592 |
width: '100%', |
| 593 |
alignSelf: 'flex-end', |
| 594 |
|
| 595 |
// backgroundColor:'red' |
| 596 |
//borderWidth:1, |
| 597 |
// borderColor : 'orange' |
| 598 |
}, |
| 599 |
profileMainContainer: { |
| 600 |
height: mvs(37), |
| 601 |
width: '100%', |
| 602 |
//borderWidth : 1, |
| 603 |
//marginTop: mvs(20), |
| 604 |
flexDirection: 'row', |
| 605 |
justifyContent: 'space-between', |
| 606 |
alignItems: 'center', |
| 607 |
}, |
| 608 |
profileContainer: { |
| 609 |
height: '100%', |
| 610 |
//width : mvs(126), |
| 611 |
//borderWidth:1, |
| 612 |
flexDirection: 'row', |
| 613 |
alignItems: 'center', |
| 614 |
}, |
| 615 |
trackMainContainer: { |
| 616 |
//borderWidth : 1, |
| 617 |
width: '100%', |
| 618 |
paddingLeft: mvs(113), |
| 619 |
marginTop: mvs(22), |
| 620 |
}, |
| 621 |
}); |
| 622 |
|
|
| Severity |
Rule |
| Error |
Row 1, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 1, Column 26: "Missing semicolon."
semi
|
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·Text,·View,·ScrollView·}·from·'react-native'` with `StyleSheet,·Text,·View,·ScrollView}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 2, Column 22: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 34: "'ScrollView' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 66: "Missing semicolon."
semi
|
| Error |
Row 3, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 3, Column 44: "Missing semicolon."
semi
|
| Error |
Row 4, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 4, Column 68: "Missing semicolon."
semi
|
| Warning |
Row 5, Column 8: "'InputWithTitle' is defined but never used."
no-unused-vars
|
| Error |
Row 5, Column 76: "Insert `;`"
prettier/prettier
|
| Warning |
Row 5, Column 76: "Missing semicolon."
semi
|
| Error |
Row 6, Column 9: "Replace `·mvs·}·from·'../../../config/metrices'` with `mvs}·from·'../../../config/metrices';`"
prettier/prettier
|
| Warning |
Row 6, Column 47: "Missing semicolon."
semi
|
| Warning |
Row 7, Column 8: "'Buttons' is defined but never used."
no-unused-vars
|
| Error |
Row 7, Column 55: "Insert `;`"
prettier/prettier
|
| Warning |
Row 7, Column 55: "Missing semicolon."
semi
|
| Error |
Row 8, Column 9: "Replace `·HeaderLogo·}·from·'../../../../resource/assets/common-icons'` with `HeaderLogo}·from·'../../../../resource/assets/common-icons';`"
prettier/prettier
|
| Warning |
Row 8, Column 70: "Missing semicolon."
semi
|
| Error |
Row 9, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 9, Column 68: "Missing semicolon."
semi
|
| Error |
Row 10, Column 43: "Insert `;`"
prettier/prettier
|
| Warning |
Row 10, Column 43: "Missing semicolon."
semi
|
| Error |
Row 12, Column 23: "Replace `(props)` with `props`"
prettier/prettier
|
| Error |
Row 13, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 14, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 15, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 16, Column 5: "Replace `····prettier/prettier
|
| Error |
Row 17, Column 7: "Replace `······` with ``"
prettier/prettier
|
| Warning |
Row 17, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 22, Column 14: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 24, Column 1: "Replace `···········prettier/prettier
|
| Error |
Row 25, Column 1: "Replace `··············prettier/prettier
|
| Error |
Row 26, Column 1: "Replace `··················prettier/prettier
|
| Error |
Row 27, Column 1: "Replace `···············` with `········`"
prettier/prettier
|
| Warning |
Row 27, Column 22: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 28, Column 1: "Replace `·············prettier/prettier
|
| Error |
Row 29, Column 11: "Replace `·····prettier/prettier
|
| Warning |
Row 29, Column 24: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 30, Column 1: "Replace `···············label·=·` with `············label=`"
prettier/prettier
|
| Error |
Row 31, Column 1: "Replace `···············style·=·{{fontSize·:·mvs(18),·color·` with `············style={{fontSize:·mvs(18),·color`"
prettier/prettier
|
| Error |
Row 32, Column 1: "Replace `···············` with `··········`"
prettier/prettier
|
| Error |
Row 33, Column 1: "Delete `·····`"
prettier/prettier
|
| Error |
Row 34, Column 1: "Replace `·············prettier/prettier
|
| Warning |
Row 34, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 35, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 36, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 37, Column 11: "Replace `···style·=·` with `style=`"
prettier/prettier
|
| Error |
Row 38, Column 1: "Replace `···············` with `··········`"
prettier/prettier
|
| Warning |
Row 38, Column 28: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 42, Column 11: "Replace `·····` with `prettier/prettier
|
| Warning |
Row 42, Column 110: "Inline style: { backgroundColor: 'transparent' }"
react-native/no-inline-styles
|
| Error |
Row 43, Column 1: "Replace `·····` with `··········/>⏎`"
prettier/prettier
|
| Error |
Row 44, Column 1: "Replace `···········` with `······`"
prettier/prettier
|
| Error |
Row 45, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 46, Column 3: "Replace `··)` with `);`"
prettier/prettier
|
| Warning |
Row 46, Column 6: "Missing semicolon."
semi
|
| Error |
Row 47, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 47, Column 2: "Missing semicolon."
semi
|
| Error |
Row 49, Column 29: "Insert `;`"
prettier/prettier
|
| Warning |
Row 49, Column 29: "Missing semicolon."
semi
|
| Error |
Row 52, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 53, Column 5: "Replace `····flex·` with `flex`"
prettier/prettier
|
| Error |
Row 54, Column 5: "Replace `····backgroundColor·:·colors.white` with `backgroundColor:·colors.white,`"
prettier/prettier
|
| Warning |
Row 54, Column 39: "Missing trailing comma."
comma-dangle
|
| Error |
Row 55, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 56, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 57, Column 1: "Replace `········flex·` with `····flex`"
prettier/prettier
|
| Error |
Row 58, Column 1: "Replace `········paddingHorizontal·:·mvs(22)` with `····paddingHorizontal:·mvs(22),`"
prettier/prettier
|
| Warning |
Row 58, Column 36: "Missing trailing comma."
comma-dangle
|
| Error |
Row 59, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 60, Column 1: "Replace `····headerContainer:` with `··headerContainer:·`"
prettier/prettier
|
| Error |
Row 61, Column 1: "Replace `········height·` with `····height`"
prettier/prettier
|
| Error |
Row 62, Column 1: "Replace `········width·` with `····width`"
prettier/prettier
|
| Error |
Row 63, Column 1: "Replace `········backgroundColor·` with `····backgroundColor`"
prettier/prettier
|
| Error |
Row 64, Column 5: "Replace `····borderRadius·` with `borderRadius`"
prettier/prettier
|
| Error |
Row 65, Column 1: "Replace `········marginTop·` with `····marginTop`"
prettier/prettier
|
| Error |
Row 66, Column 1: "Replace `········justifyContent·` with `····justifyContent`"
prettier/prettier
|
| Error |
Row 67, Column 1: "Replace `········paddingLeft·` with `····paddingLeft`"
prettier/prettier
|
| Error |
Row 68, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 69, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 70, Column 5: "Replace `····flex·` with `flex`"
prettier/prettier
|
| Error |
Row 71, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 72, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 73, Column 5: "Replace `····width·:·"100%",·` with `width:·'100%',`"
prettier/prettier
|
| Warning |
Row 73, Column 17: "Strings must use singlequote."
quotes
|
| Warning |
Row 73, Column 24: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 74, Column 5: "Replace `····backgroundColor·` with `backgroundColor`"
prettier/prettier
|
| Error |
Row 75, Column 1: "Replace `········borderRadius·` with `····borderRadius`"
prettier/prettier
|
| Error |
Row 76, Column 1: "Replace `········marginTop·` with `····marginTop`"
prettier/prettier
|
| Error |
Row 77, Column 1: "Replace `········marginBottom·:·mvs(40)·` with `····marginBottom:·mvs(40),`"
prettier/prettier
|
| Warning |
Row 77, Column 31: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 77, Column 31: "Missing trailing comma."
comma-dangle
|
| Error |
Row 78, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 79, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 80, Column 1: "Replace `········alignItems·` with `····alignItems`"
prettier/prettier
|
| Error |
Row 81, Column 3: "Replace `··}` with `},`"
prettier/prettier
|
| Warning |
Row 81, Column 6: "Missing trailing comma."
comma-dangle
|
| Error |
Row 82, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 82, Column 3: "Missing semicolon."
semi
|
| Line |
Source |
| Error |
Row 1, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 1, Column 26: "Missing semicolon."
semi
|
| 1 |
import React from 'react' |
| Error |
Row 2, Column 9: "Replace `·StyleSheet,·Text,·View,·ScrollView·}·from·'react-native'` with `StyleSheet,·Text,·View,·ScrollView}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 2, Column 22: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 34: "'ScrollView' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 66: "Missing semicolon."
semi
|
| 2 |
import { StyleSheet, Text, View, ScrollView } from 'react-native' |
| Error |
Row 3, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 3, Column 44: "Missing semicolon."
semi
|
| 3 |
import colors from '../../../config/colors' |
| Error |
Row 4, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 4, Column 68: "Missing semicolon."
semi
|
| 4 |
import Header from '../../../components/molecules/header/header-1x' |
| Warning |
Row 5, Column 8: "'InputWithTitle' is defined but never used."
no-unused-vars
|
| Error |
Row 5, Column 76: "Insert `;`"
prettier/prettier
|
| Warning |
Row 5, Column 76: "Missing semicolon."
semi
|
| 5 |
import InputWithTitle from '../../../components/molecules/input-with-title' |
| Error |
Row 6, Column 9: "Replace `·mvs·}·from·'../../../config/metrices'` with `mvs}·from·'../../../config/metrices';`"
prettier/prettier
|
| Warning |
Row 6, Column 47: "Missing semicolon."
semi
|
| 6 |
import { mvs } from '../../../config/metrices' |
| Warning |
Row 7, Column 8: "'Buttons' is defined but never used."
no-unused-vars
|
| Error |
Row 7, Column 55: "Insert `;`"
prettier/prettier
|
| Warning |
Row 7, Column 55: "Missing semicolon."
semi
|
| 7 |
import Buttons from '../../../components/atoms/Button' |
| Error |
Row 8, Column 9: "Replace `·HeaderLogo·}·from·'../../../../resource/assets/common-icons'` with `HeaderLogo}·from·'../../../../resource/assets/common-icons';`"
prettier/prettier
|
| Warning |
Row 8, Column 70: "Missing semicolon."
semi
|
| 8 |
import { HeaderLogo } from '../../../../resource/assets/common-icons' |
| Error |
Row 9, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 9, Column 68: "Missing semicolon."
semi
|
| 9 |
import Regular from '../../../presentation/typography/regular-text' |
| Error |
Row 10, Column 43: "Insert `;`"
prettier/prettier
|
| Warning |
Row 10, Column 43: "Missing semicolon."
semi
|
| 10 |
import WebView from 'react-native-webview' |
| 11 |
|
| Error |
Row 12, Column 23: "Replace `(props)` with `props`"
prettier/prettier
|
| 12 |
const PrivacyPolicy = (props) => { |
| Error |
Row 13, Column 3: "Delete `··`"
prettier/prettier
|
| 13 |
const {route} = props; |
| Error |
Row 14, Column 1: "Delete `··`"
prettier/prettier
|
| 14 |
const {URL} = route?.params; |
| Error |
Row 15, Column 1: "Delete `··`"
prettier/prettier
|
| 15 |
return ( |
| Error |
Row 16, Column 5: "Replace `····prettier/prettier
|
| 16 |
<View style = {styles.mainContainer}> |
| Error |
Row 17, Column 7: "Replace `······` with ``"
prettier/prettier
|
| Warning |
Row 17, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| 17 |
<Header |
| 18 |
{...props} |
| 19 |
title = "Privacy policy" |
| 20 |
allowBackBtn |
| 21 |
userIcon = {false} |
| Warning |
Row 22, Column 14: "Trailing spaces not allowed."
no-trailing-spaces
|
| 22 |
/> |
| 23 |
|
| Error |
Row 24, Column 1: "Replace `···········prettier/prettier
|
| 24 |
<View style = {styles.container}> |
| Error |
Row 25, Column 1: "Replace `··············prettier/prettier
|
| 25 |
<View style = {styles.logoContainer}> |
| Error |
Row 26, Column 1: "Replace `··················prettier/prettier
|
| 26 |
<HeaderLogo/> |
| Error |
Row 27, Column 1: "Replace `···············` with `········`"
prettier/prettier
|
| Warning |
Row 27, Column 22: "Trailing spaces not allowed."
no-trailing-spaces
|
| 27 |
</View> |
| Error |
Row 28, Column 1: "Replace `·············prettier/prettier
|
| 28 |
<View style = {styles.headerContainer}> |
| Error |
Row 29, Column 11: "Replace `·····prettier/prettier
|
| Warning |
Row 29, Column 24: "Trailing spaces not allowed."
no-trailing-spaces
|
| 29 |
<Regular |
| Error |
Row 30, Column 1: "Replace `···············label·=·` with `············label=`"
prettier/prettier
|
| 30 |
label = "Privacy Policy" |
| Error |
Row 31, Column 1: "Replace `···············style·=·{{fontSize·:·mvs(18),·color·` with `············style={{fontSize:·mvs(18),·color`"
prettier/prettier
|
| 31 |
style = {{fontSize : mvs(18), color : colors.primary}} |
| Error |
Row 32, Column 1: "Replace `···············` with `··········`"
prettier/prettier
|
| 32 |
/> |
| Error |
Row 33, Column 1: "Delete `·····`"
prettier/prettier
|
| 33 |
</View> |
| Error |
Row 34, Column 1: "Replace `·············prettier/prettier
|
| Warning |
Row 34, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| 34 |
<View |
| Error |
Row 35, Column 1: "Delete `··`"
prettier/prettier
|
| 35 |
// showsVerticalScrollIndicator = {false} |
| Error |
Row 36, Column 1: "Delete `··`"
prettier/prettier
|
| 36 |
// contentContainerStyle = {{paddingBottom : mvs(20)}} |
| Error |
Row 37, Column 11: "Replace `···style·=·` with `style=`"
prettier/prettier
|
| 37 |
style = {styles.termsContainer}> |
| Error |
Row 38, Column 1: "Replace `···············` with `··········`"
prettier/prettier
|
| Warning |
Row 38, Column 28: "Trailing spaces not allowed."
no-trailing-spaces
|
| 38 |
{/* <Regular |
| 39 |
label = {terms} |
| 40 |
style = {{fontSize : mvs(12), color : colors.typeHeader}} |
| 41 |
/> */} |
| Error |
Row 42, Column 11: "Replace `·····` with `prettier/prettier
|
| Warning |
Row 42, Column 110: "Inline style: { backgroundColor: 'transparent' }"
react-native/no-inline-styles
|
| 42 |
<WebView source={{uri:`https://taketo.exodevs.com/pages/${URL}`}} startInLoadingState style={{backgroundColor:'transparent'}}/> |
| Error |
Row 43, Column 1: "Replace `·····` with `··········/>⏎`"
prettier/prettier
|
| 43 |
</View> |
| Error |
Row 44, Column 1: "Replace `···········` with `······`"
prettier/prettier
|
| 44 |
</View> |
| Error |
Row 45, Column 1: "Delete `····`"
prettier/prettier
|
| 45 |
</View> |
| Error |
Row 46, Column 3: "Replace `··)` with `);`"
prettier/prettier
|
| Warning |
Row 46, Column 6: "Missing semicolon."
semi
|
| 46 |
) |
| Error |
Row 47, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 47, Column 2: "Missing semicolon."
semi
|
| 47 |
} |
| 48 |
|
| Error |
Row 49, Column 29: "Insert `;`"
prettier/prettier
|
| Warning |
Row 49, Column 29: "Missing semicolon."
semi
|
| 49 |
export default PrivacyPolicy |
| 50 |
|
| 51 |
const styles = StyleSheet.create({ |
| Error |
Row 52, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 52 |
mainContainer: { |
| Error |
Row 53, Column 5: "Replace `····flex·` with `flex`"
prettier/prettier
|
| 53 |
flex : 1, |
| Error |
Row 54, Column 5: "Replace `····backgroundColor·:·colors.white` with `backgroundColor:·colors.white,`"
prettier/prettier
|
| Warning |
Row 54, Column 39: "Missing trailing comma."
comma-dangle
|
| 54 |
backgroundColor : colors.white |
| Error |
Row 55, Column 3: "Delete `··`"
prettier/prettier
|
| 55 |
}, |
| Error |
Row 56, Column 1: "Delete `··`"
prettier/prettier
|
| 56 |
container: { |
| Error |
Row 57, Column 1: "Replace `········flex·` with `····flex`"
prettier/prettier
|
| 57 |
flex : 1, |
| Error |
Row 58, Column 1: "Replace `········paddingHorizontal·:·mvs(22)` with `····paddingHorizontal:·mvs(22),`"
prettier/prettier
|
| Warning |
Row 58, Column 36: "Missing trailing comma."
comma-dangle
|
| 58 |
paddingHorizontal : mvs(22) |
| Error |
Row 59, Column 3: "Delete `··`"
prettier/prettier
|
| 59 |
}, |
| Error |
Row 60, Column 1: "Replace `····headerContainer:` with `··headerContainer:·`"
prettier/prettier
|
| 60 |
headerContainer:{ |
| Error |
Row 61, Column 1: "Replace `········height·` with `····height`"
prettier/prettier
|
| 61 |
height : mvs(41), |
| Error |
Row 62, Column 1: "Replace `········width·` with `····width`"
prettier/prettier
|
| 62 |
width : '100%', |
| Error |
Row 63, Column 1: "Replace `········backgroundColor·` with `····backgroundColor`"
prettier/prettier
|
| 63 |
backgroundColor : colors.lightgrey, |
| Error |
Row 64, Column 5: "Replace `····borderRadius·` with `borderRadius`"
prettier/prettier
|
| 64 |
borderRadius : mvs(10), |
| Error |
Row 65, Column 1: "Replace `········marginTop·` with `····marginTop`"
prettier/prettier
|
| 65 |
marginTop : mvs(38), |
| Error |
Row 66, Column 1: "Replace `········justifyContent·` with `····justifyContent`"
prettier/prettier
|
| 66 |
justifyContent : 'center', |
| Error |
Row 67, Column 1: "Replace `········paddingLeft·` with `····paddingLeft`"
prettier/prettier
|
| 67 |
paddingLeft : mvs(10), |
| Error |
Row 68, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 68 |
}, |
| Error |
Row 69, Column 1: "Delete `··`"
prettier/prettier
|
| 69 |
termsContainer: { |
| Error |
Row 70, Column 5: "Replace `····flex·` with `flex`"
prettier/prettier
|
| 70 |
flex : 1, |
| Error |
Row 71, Column 1: "Delete `····`"
prettier/prettier
|
| 71 |
// paddingHorizontal : mvs(10), |
| Error |
Row 72, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 72 |
// paddingVertical : mvs(20), |
| Error |
Row 73, Column 5: "Replace `····width·:·"100%",·` with `width:·'100%',`"
prettier/prettier
|
| Warning |
Row 73, Column 17: "Strings must use singlequote."
quotes
|
| Warning |
Row 73, Column 24: "Trailing spaces not allowed."
no-trailing-spaces
|
| 73 |
width : "100%", |
| Error |
Row 74, Column 5: "Replace `····backgroundColor·` with `backgroundColor`"
prettier/prettier
|
| 74 |
backgroundColor : colors.lightgrey, |
| Error |
Row 75, Column 1: "Replace `········borderRadius·` with `····borderRadius`"
prettier/prettier
|
| 75 |
borderRadius : mvs(10), |
| Error |
Row 76, Column 1: "Replace `········marginTop·` with `····marginTop`"
prettier/prettier
|
| 76 |
marginTop : mvs(19), |
| Error |
Row 77, Column 1: "Replace `········marginBottom·:·mvs(40)·` with `····marginBottom:·mvs(40),`"
prettier/prettier
|
| Warning |
Row 77, Column 31: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 77, Column 31: "Missing trailing comma."
comma-dangle
|
| 77 |
marginBottom : mvs(40) |
| Error |
Row 78, Column 1: "Delete `··`"
prettier/prettier
|
| 78 |
}, |
| Error |
Row 79, Column 3: "Delete `··`"
prettier/prettier
|
| 79 |
logoContainer: { |
| Error |
Row 80, Column 1: "Replace `········alignItems·` with `····alignItems`"
prettier/prettier
|
| 80 |
alignItems : 'center', |
| Error |
Row 81, Column 3: "Replace `··}` with `},`"
prettier/prettier
|
| Warning |
Row 81, Column 6: "Missing trailing comma."
comma-dangle
|
| 81 |
} |
| Error |
Row 82, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 82, Column 3: "Missing semicolon."
semi
|
| 82 |
}) |
| 83 |
|
|
| Severity |
Rule |
| Warning |
Row 2, Column 21: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 28, Column 7: "Expected { after 'if' condition."
curly
|
| Error |
Row 64, Column 31: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 75, Column 31: "Replace `·=·` with `=`"
prettier/prettier
|
| Warning |
Row 77, Column 22: "Inline style: { textAlignVertical: 'top' }"
react-native/no-inline-styles
|
| Error |
Row 93, Column 21: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎········translucent⏎········activeStatusBarStyle={'light-content'}⏎········inactiveStatusBarBackgroundColor={colors.primary}⏎········ref={alertRef}⏎·····`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Warning |
Row 2, Column 21: "'Text' is defined but never used."
no-unused-vars
|
| 2 |
import {StyleSheet, Text, View, ScrollView} from 'react-native'; |
| 3 |
import colors from '../../../config/colors'; |
| 4 |
import Header from '../../../components/molecules/header/header-1x'; |
| 5 |
import InputWithTitle from '../../../components/molecules/input-with-title'; |
| 6 |
import {mvs} from '../../../config/metrices'; |
| 7 |
import Buttons from '../../../components/atoms/Button'; |
| 8 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 9 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 10 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 11 |
|
| 12 |
const SubmitRequest = props => { |
| 13 |
const alertRef = React.useRef(); |
| 14 |
const [loading, setLoading] = React.useState(false); |
| 15 |
const [payload, setPayload] = React.useState({ |
| 16 |
title: '', |
| 17 |
message: '', |
| 18 |
}); |
| 19 |
|
| 20 |
const onChangeField = (key, value) => { |
| 21 |
setPayload({...payload, [key]: value}); |
| 22 |
}; |
| 23 |
|
| 24 |
const onSubmitRequest = async () => { |
| 25 |
try { |
| 26 |
setLoading(true); |
| 27 |
const status = TAKE_TO_CONSTANT.submitRequestValidation(payload); |
| Warning |
Row 28, Column 7: "Expected { after 'if' condition."
curly
|
| 28 |
if (!status.status) throw new Error(status.message); |
| 29 |
|
| 30 |
await setLoading(false); |
| 31 |
|
| 32 |
setPayload({}); |
| 33 |
alertRef.current.alertWithType( |
| 34 |
'success', |
| 35 |
'Feedback', |
| 36 |
'Your request has been submitted.', |
| 37 |
); |
| 38 |
} catch (error) { |
| 39 |
setLoading(false); |
| 40 |
alertRef.current.alertWithType( |
| 41 |
'error', |
| 42 |
'Error', |
| 43 |
UI_API._returnError(error), |
| 44 |
); |
| 45 |
} |
| 46 |
}; |
| 47 |
return ( |
| 48 |
<View style={styles.mainContainer}> |
| 49 |
<Header |
| 50 |
{...props} |
| 51 |
title="Submit a request" |
| 52 |
allowBackBtn |
| 53 |
userIcon={false} |
| 54 |
/> |
| 55 |
|
| 56 |
<ScrollView style={styles.container}> |
| 57 |
<InputWithTitle |
| 58 |
singleInput |
| 59 |
value={payload?.title} |
| 60 |
onChangeText={text => onChangeField('title', text)} |
| 61 |
title={'Title'} |
| 62 |
titleStyle={{fontSize: mvs(15)}} |
| 63 |
placeholder="Title ..." |
| Error |
Row 64, Column 31: "Replace `·=·` with `=`"
prettier/prettier
|
| 64 |
placeholderTextColor = {colors.input_placehoder} |
| 65 |
style={{marginTop: mvs(22)}} |
| 66 |
/> |
| 67 |
<InputWithTitle |
| 68 |
singleInput |
| 69 |
value={payload?.message} |
| 70 |
maxLength={500} |
| 71 |
onChangeText={text => onChangeField('message', text)} |
| 72 |
title={'Message'} |
| 73 |
titleStyle={{fontSize: mvs(15)}} |
| 74 |
placeholder="Type your message …" |
| Error |
Row 75, Column 31: "Replace `·=·` with `=`"
prettier/prettier
|
| 75 |
placeholderTextColor = {colors.input_placehoder} |
| 76 |
style={{marginTop: mvs(22)}} |
| Warning |
Row 77, Column 22: "Inline style: { textAlignVertical: 'top' }"
react-native/no-inline-styles
|
| 77 |
textStyle={{ |
| 78 |
height: mvs(187), |
| 79 |
textAlignVertical: 'top', |
| 80 |
}} |
| 81 |
multiline |
| 82 |
/> |
| 83 |
|
| 84 |
<Buttons.ButtonPrimary |
| 85 |
title="Submit" |
| 86 |
loaderColor={colors.white} |
| 87 |
loading={loading} |
| 88 |
disabled={loading} |
| 89 |
onClick={onSubmitRequest} |
| 90 |
style={{marginTop: mvs(314), marginBottom: mvs(40)}} |
| 91 |
/> |
| 92 |
</ScrollView> |
| Error |
Row 93, Column 21: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎········translucent⏎········activeStatusBarStyle={'light-content'}⏎········inactiveStatusBarBackgroundColor={colors.primary}⏎········ref={alertRef}⏎·····`"
prettier/prettier
|
| 93 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 94 |
</View> |
| 95 |
); |
| 96 |
}; |
| 97 |
|
| 98 |
export default SubmitRequest; |
| 99 |
|
| 100 |
const styles = StyleSheet.create({ |
| 101 |
mainContainer: { |
| 102 |
flex: 1, |
| 103 |
backgroundColor: colors.white, |
| 104 |
}, |
| 105 |
container: { |
| 106 |
//flex : 1, |
| 107 |
paddingHorizontal: mvs(22), |
| 108 |
}, |
| 109 |
}); |
| 110 |
|
|
| Severity |
Rule |
| Warning |
Row 2, Column 21: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 33: "'ScrollView' is defined but never used."
no-unused-vars
|
| Warning |
Row 5, Column 8: "'InputWithTitle' is defined but never used."
no-unused-vars
|
| Warning |
Row 7, Column 8: "'Buttons' is defined but never used."
no-unused-vars
|
| Warning |
Row 33, Column 23: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 40, Column 20: "Inline style: { backgroundColor: 'transparent' }"
react-native/no-inline-styles
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Warning |
Row 2, Column 21: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 33: "'ScrollView' is defined but never used."
no-unused-vars
|
| 2 |
import {StyleSheet, Text, View, ScrollView} from 'react-native'; |
| 3 |
import colors from '../../../config/colors'; |
| 4 |
import Header from '../../../components/molecules/header/header-1x'; |
| Warning |
Row 5, Column 8: "'InputWithTitle' is defined but never used."
no-unused-vars
|
| 5 |
import InputWithTitle from '../../../components/molecules/input-with-title'; |
| 6 |
import {mvs} from '../../../config/metrices'; |
| Warning |
Row 7, Column 8: "'Buttons' is defined but never used."
no-unused-vars
|
| 7 |
import Buttons from '../../../components/atoms/Button'; |
| 8 |
import {HeaderLogo} from '../../../../resource/assets/common-icons'; |
| 9 |
import Regular from '../../../presentation/typography/regular-text'; |
| 10 |
import WebView from 'react-native-webview'; |
| 11 |
|
| 12 |
const TermsOfUse = props => { |
| 13 |
const {route} = props; |
| 14 |
const {URL} = route?.params; |
| 15 |
return ( |
| 16 |
<View style={styles.mainContainer}> |
| 17 |
<Header {...props} title="Terms of use" allowBackBtn userIcon={false} /> |
| 18 |
|
| 19 |
<View style={styles.container}> |
| 20 |
<View style={styles.logoContainer}> |
| 21 |
<HeaderLogo /> |
| 22 |
</View> |
| 23 |
<View style={styles.headerContainer}> |
| 24 |
<Regular |
| 25 |
label="Terms of Use" |
| 26 |
style={{fontSize: mvs(18), color: colors.primary}} |
| 27 |
/> |
| 28 |
</View> |
| 29 |
<View |
| 30 |
// showsVerticalScrollIndicator = {false} |
| 31 |
// contentContainerStyle = {{paddingBottom : mvs(20)}} |
| 32 |
style={styles.termsContainer}> |
| Warning |
Row 33, Column 23: "Trailing spaces not allowed."
no-trailing-spaces
|
| 33 |
{/* <Regular |
| 34 |
label = {terms} |
| 35 |
style = {{fontSize : mvs(12), color : colors.typeHeader}} |
| 36 |
/> */} |
| 37 |
<WebView |
| 38 |
source={{uri: `https://taketo.exodevs.com/pages/${URL}`}} |
| 39 |
startInLoadingState |
| Warning |
Row 40, Column 20: "Inline style: { backgroundColor: 'transparent' }"
react-native/no-inline-styles
|
| 40 |
style={{backgroundColor: 'transparent'}} |
| 41 |
/> |
| 42 |
</View> |
| 43 |
</View> |
| 44 |
</View> |
| 45 |
); |
| 46 |
}; |
| 47 |
|
| 48 |
export default TermsOfUse; |
| 49 |
|
| 50 |
const styles = StyleSheet.create({ |
| 51 |
mainContainer: { |
| 52 |
flex: 1, |
| 53 |
backgroundColor: colors.white, |
| 54 |
}, |
| 55 |
container: { |
| 56 |
flex: 1, |
| 57 |
paddingHorizontal: mvs(22), |
| 58 |
}, |
| 59 |
headerContainer: { |
| 60 |
height: mvs(41), |
| 61 |
width: '100%', |
| 62 |
backgroundColor: colors.lightgrey, |
| 63 |
borderRadius: mvs(10), |
| 64 |
marginTop: mvs(38), |
| 65 |
justifyContent: 'center', |
| 66 |
paddingLeft: mvs(10), |
| 67 |
}, |
| 68 |
termsContainer: { |
| 69 |
flex: 1, |
| 70 |
// paddingHorizontal : mvs(10), |
| 71 |
// paddingVertical : mvs(20), |
| 72 |
width: '100%', |
| 73 |
backgroundColor: colors.lightgrey, |
| 74 |
borderRadius: mvs(10), |
| 75 |
marginTop: mvs(19), |
| 76 |
marginBottom: mvs(40), |
| 77 |
}, |
| 78 |
logoContainer: { |
| 79 |
alignItems: 'center', |
| 80 |
}, |
| 81 |
}); |
| 82 |
|
|
| Severity |
Rule |
| Warning |
Row 1, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| Error |
Row 3, Column 9: "Replace `·StyleSheet,·TextInput,·View,·ScrollView·` with `StyleSheet,·TextInput,·View,·ScrollView`"
prettier/prettier
|
| Warning |
Row 8, Column 8: "'InputWithTitle' is defined but never used."
no-unused-vars
|
| Error |
Row 11, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 12, Column 69: "Delete `⏎`"
prettier/prettier
|
| Warning |
Row 16, Column 9: "'Flag' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 16, Column 23: "["flag"] is better written in dot notation."
dot-notation
|
| Error |
Row 20, Column 14: "Replace `⏎········{...props}⏎········title={'Wallet'}⏎········allowBackBtn⏎········avatar⏎·····` with `·{...props}·title={'Wallet'}·allowBackBtn·avatar`"
prettier/prettier
|
| Warning |
Row 27, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 27, Column 21: "Replace `⏎········contentContainerStyle={styles.scroll}⏎········` with `contentContainerStyle={styles.scroll}`"
prettier/prettier
|
| Error |
Row 30, Column 19: "Replace `⏎············label={'Add·bank·account'}⏎············style={styles.mainTitle}⏎·········` with `·label={'Add·bank·account'}·style={styles.mainTitle}`"
prettier/prettier
|
| Warning |
Row 36, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 36, Column 1: "Delete `··········`"
prettier/prettier
|
| Error |
Row 37, Column 22: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 38, Column 24: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 39, Column 29: "Replace `·=·"Country"·style·=·{{color·:·colors.typeHeader}}/>··` with `="Country"·style={{color:·colors.typeHeader}}·/>`"
prettier/prettier
|
| Warning |
Row 39, Column 81: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 41, Column 27: "Replace `⏎············flag·=·{true}⏎···········` with `·flag={true}`"
prettier/prettier
|
| Error |
Row 46, Column 22: "Replace `·=·{{...styles.rowContainer,·marginTop·` with `={{...styles.rowContainer,·marginTop`"
prettier/prettier
|
| Error |
Row 47, Column 24: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 48, Column 29: "Replace `·=·"Bank·Name"·style·=·{{color·:·colors.typeHeader}}/>··` with `="Bank·Name"·style={{color:·colors.typeHeader}}·/>`"
prettier/prettier
|
| Warning |
Row 48, Column 83: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 50, Column 23: "Replace `⏎············style·=·{styles.input}·⏎············value·=·"Gulf·Bank"⏎···········` with `·style={styles.input}·value="Gulf·Bank"`"
prettier/prettier
|
| Warning |
Row 51, Column 35: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 56, Column 22: "Replace `·=·{{...styles.rowContainer,·marginTop·` with `={{...styles.rowContainer,·marginTop`"
prettier/prettier
|
| Error |
Row 57, Column 24: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 58, Column 23: "Replace `·label·=·"Account·Number"·style·=·{{color·:·colors.typeHeader}}/>··` with `⏎················label="Account·Number"⏎················style={{color:·colors.typeHeader}}⏎··············/>`"
prettier/prettier
|
| Warning |
Row 58, Column 88: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 60, Column 23: "Replace `⏎············style·=·{styles.input}·⏎············value·=·"1932·345*·****"⏎···········` with `·style={styles.input}·value="1932·345*·****"`"
prettier/prettier
|
| Warning |
Row 61, Column 35: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 66, Column 22: "Replace `·=·{{...styles.rowContainer,·marginTop·` with `={{...styles.rowContainer,·marginTop`"
prettier/prettier
|
| Error |
Row 67, Column 24: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 68, Column 29: "Replace `·=·"IBAN"·style·=·{{color·:·colors.typeHeader}}/>··` with `="IBAN"·style={{color:·colors.typeHeader}}·/>`"
prettier/prettier
|
| Warning |
Row 68, Column 78: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 72, Column 22: "Replace `·=·{{...styles.rowContainer,·marginTop·` with `={{...styles.rowContainer,·marginTop`"
prettier/prettier
|
| Error |
Row 74, Column 1: "Replace `············style·=·{{...styles.input,·width·:·"100%",·color·:·colors.primary}}·⏎············value·=·` with `··············style={{...styles.input,·width:·'100%',·color:·colors.primary}}⏎··············value=`"
prettier/prettier
|
| Warning |
Row 74, Column 22: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Warning |
Row 74, Column 48: "Strings must use singlequote."
quotes
|
| Warning |
Row 74, Column 80: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 77, Column 18: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 100, Column 13: "Delete `·`"
prettier/prettier
|
| Error |
Row 135, Column 20: "Delete `·`"
prettier/prettier
|
| Error |
Row 136, Column 17: "Delete `·`"
prettier/prettier
|
| Error |
Row 138, Column 10: "Delete `·`"
prettier/prettier
|
| Error |
Row 141, Column 19: "Delete `·`"
prettier/prettier
|
| Error |
Row 142, Column 12: "Replace `·:·0` with `:·0,`"
prettier/prettier
|
| Warning |
Row 142, Column 16: "Missing trailing comma."
comma-dangle
|
| Error |
Row 157, Column 18: "Replace `·:·'row',·` with `:·'row',`"
prettier/prettier
|
| Warning |
Row 157, Column 27: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 158, Column 15: "Replace `·:·'center',·` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 158, Column 27: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 159, Column 10: "Replace `·:·'100%',·` with `:·'100%',`"
prettier/prettier
|
| Warning |
Row 159, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 160, Column 19: "Replace `·:·'space-between',·` with `:·'space-between',`"
prettier/prettier
|
| Warning |
Row 160, Column 38: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 161, Column 14: "Delete `·`"
prettier/prettier
|
| Error |
Row 164, Column 11: "Replace `·:·mvs(38),·` with `:·mvs(38),`"
prettier/prettier
|
| Warning |
Row 164, Column 22: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 165, Column 10: "Replace `·:·"49%",·` with `:·'49%',`"
prettier/prettier
|
| Warning |
Row 165, Column 13: "Strings must use singlequote."
quotes
|
| Warning |
Row 165, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 166, Column 42: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 166, Column 42: "Delete `·`"
prettier/prettier
|
| Error |
Row 167, Column 17: "Replace `·:·mvs(10),·` with `:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 167, Column 28: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 168, Column 35: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 168, Column 35: "Delete `·`"
prettier/prettier
|
| Error |
Row 169, Column 20: "Insert `·`"
prettier/prettier
|
| Error |
Row 170, Column 4: "Insert `,`"
prettier/prettier
|
| Warning |
Row 170, Column 4: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| Warning |
Row 1, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| 1 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 2 |
import React from 'react'; |
| Error |
Row 3, Column 9: "Replace `·StyleSheet,·TextInput,·View,·ScrollView·` with `StyleSheet,·TextInput,·View,·ScrollView`"
prettier/prettier
|
| 3 |
import { StyleSheet, TextInput, View, ScrollView } from 'react-native'; |
| 4 |
import * as Images from '../../../../resource/assets/bank-info-icons'; |
| 5 |
import Buttons from '../../../components/atoms/Button'; |
| 6 |
import CountryPicker from '../../../components/molecules/country-picker'; |
| 7 |
import Header from '../../../components/molecules/header/header-1x'; |
| Warning |
Row 8, Column 8: "'InputWithTitle' is defined but never used."
no-unused-vars
|
| 8 |
import InputWithTitle from '../../../components/molecules/input-with-title'; |
| 9 |
import colors from '../../../config/colors'; |
| 10 |
import fonts from '../../../config/fonts'; |
| Error |
Row 11, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 11 |
import { mvs } from '../../../config/metrices'; |
| Error |
Row 12, Column 69: "Delete `⏎`"
prettier/prettier
|
| 12 |
import Regular from '../../../presentation/typography/regular-text'; |
| 13 |
|
| 14 |
|
| 15 |
const AddBankInfo = props => { |
| Warning |
Row 16, Column 9: "'Flag' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 16, Column 23: "["flag"] is better written in dot notation."
dot-notation
|
| 16 |
const Flag = Images['flag']; |
| 17 |
|
| 18 |
return ( |
| 19 |
<View style={styles.mainContainer}> |
| Error |
Row 20, Column 14: "Replace `⏎········{...props}⏎········title={'Wallet'}⏎········allowBackBtn⏎········avatar⏎·····` with `·{...props}·title={'Wallet'}·allowBackBtn·avatar`"
prettier/prettier
|
| 20 |
<Header |
| 21 |
{...props} |
| 22 |
title={'Wallet'} |
| 23 |
allowBackBtn |
| 24 |
avatar |
| 25 |
/> |
| 26 |
<View style={styles.container}> |
| Warning |
Row 27, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 27, Column 21: "Replace `⏎········contentContainerStyle={styles.scroll}⏎········` with `contentContainerStyle={styles.scroll}`"
prettier/prettier
|
| 27 |
<ScrollView |
| 28 |
contentContainerStyle={styles.scroll} |
| 29 |
> |
| Error |
Row 30, Column 19: "Replace `⏎············label={'Add·bank·account'}⏎············style={styles.mainTitle}⏎·········` with `·label={'Add·bank·account'}·style={styles.mainTitle}`"
prettier/prettier
|
| 30 |
<Regular |
| 31 |
label={'Add bank account'} |
| 32 |
style={styles.mainTitle} |
| 33 |
/> |
| 34 |
|
| 35 |
<Regular label="Ralph Wakim" style={styles.name} /> |
| Warning |
Row 36, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 36, Column 1: "Delete `··········`"
prettier/prettier
|
| 36 |
|
| Error |
Row 37, Column 22: "Replace `·=·` with `=`"
prettier/prettier
|
| 37 |
<View style = {styles.rowContainer}> |
| Error |
Row 38, Column 24: "Replace `·=·` with `=`"
prettier/prettier
|
| 38 |
<View style = {styles.title}> |
| Error |
Row 39, Column 29: "Replace `·=·"Country"·style·=·{{color·:·colors.typeHeader}}/>··` with `="Country"·style={{color:·colors.typeHeader}}·/>`"
prettier/prettier
|
| Warning |
Row 39, Column 81: "Trailing spaces not allowed."
no-trailing-spaces
|
| 39 |
<Regular label = "Country" style = {{color : colors.typeHeader}}/> |
| 40 |
</View> |
| Error |
Row 41, Column 27: "Replace `⏎············flag·=·{true}⏎···········` with `·flag={true}`"
prettier/prettier
|
| 41 |
<CountryPicker |
| 42 |
flag = {true} |
| 43 |
/> |
| 44 |
</View> |
| 45 |
|
| Error |
Row 46, Column 22: "Replace `·=·{{...styles.rowContainer,·marginTop·` with `={{...styles.rowContainer,·marginTop`"
prettier/prettier
|
| 46 |
<View style = {{...styles.rowContainer, marginTop : mvs(10)}}> |
| Error |
Row 47, Column 24: "Replace `·=·` with `=`"
prettier/prettier
|
| 47 |
<View style = {styles.title}> |
| Error |
Row 48, Column 29: "Replace `·=·"Bank·Name"·style·=·{{color·:·colors.typeHeader}}/>··` with `="Bank·Name"·style={{color:·colors.typeHeader}}·/>`"
prettier/prettier
|
| Warning |
Row 48, Column 83: "Trailing spaces not allowed."
no-trailing-spaces
|
| 48 |
<Regular label = "Bank Name" style = {{color : colors.typeHeader}}/> |
| 49 |
</View> |
| Error |
Row 50, Column 23: "Replace `⏎············style·=·{styles.input}·⏎············value·=·"Gulf·Bank"⏎···········` with `·style={styles.input}·value="Gulf·Bank"`"
prettier/prettier
|
| 50 |
<TextInput |
| Warning |
Row 51, Column 35: "Trailing spaces not allowed."
no-trailing-spaces
|
| 51 |
style = {styles.input} |
| 52 |
value = "Gulf Bank" |
| 53 |
/> |
| 54 |
</View> |
| 55 |
|
| Error |
Row 56, Column 22: "Replace `·=·{{...styles.rowContainer,·marginTop·` with `={{...styles.rowContainer,·marginTop`"
prettier/prettier
|
| 56 |
<View style = {{...styles.rowContainer, marginTop : mvs(10)}}> |
| Error |
Row 57, Column 24: "Replace `·=·` with `=`"
prettier/prettier
|
| 57 |
<View style = {styles.title}> |
| Error |
Row 58, Column 23: "Replace `·label·=·"Account·Number"·style·=·{{color·:·colors.typeHeader}}/>··` with `⏎················label="Account·Number"⏎················style={{color:·colors.typeHeader}}⏎··············/>`"
prettier/prettier
|
| Warning |
Row 58, Column 88: "Trailing spaces not allowed."
no-trailing-spaces
|
| 58 |
<Regular label = "Account Number" style = {{color : colors.typeHeader}}/> |
| 59 |
</View> |
| Error |
Row 60, Column 23: "Replace `⏎············style·=·{styles.input}·⏎············value·=·"1932·345*·****"⏎···········` with `·style={styles.input}·value="1932·345*·****"`"
prettier/prettier
|
| 60 |
<TextInput |
| Warning |
Row 61, Column 35: "Trailing spaces not allowed."
no-trailing-spaces
|
| 61 |
style = {styles.input} |
| 62 |
value = "1932 345* ****" |
| 63 |
/> |
| 64 |
</View> |
| 65 |
|
| Error |
Row 66, Column 22: "Replace `·=·{{...styles.rowContainer,·marginTop·` with `={{...styles.rowContainer,·marginTop`"
prettier/prettier
|
| 66 |
<View style = {{...styles.rowContainer, marginTop : mvs(10)}}> |
| Error |
Row 67, Column 24: "Replace `·=·` with `=`"
prettier/prettier
|
| 67 |
<View style = {styles.title}> |
| Error |
Row 68, Column 29: "Replace `·=·"IBAN"·style·=·{{color·:·colors.typeHeader}}/>··` with `="IBAN"·style={{color:·colors.typeHeader}}·/>`"
prettier/prettier
|
| Warning |
Row 68, Column 78: "Trailing spaces not allowed."
no-trailing-spaces
|
| 68 |
<Regular label = "IBAN" style = {{color : colors.typeHeader}}/> |
| 69 |
</View> |
| 70 |
</View> |
| 71 |
|
| Error |
Row 72, Column 22: "Replace `·=·{{...styles.rowContainer,·marginTop·` with `={{...styles.rowContainer,·marginTop`"
prettier/prettier
|
| 72 |
<View style = {{...styles.rowContainer, marginTop : mvs(10)}}> |
| 73 |
<TextInput |
| Error |
Row 74, Column 1: "Replace `············style·=·{{...styles.input,·width·:·"100%",·color·:·colors.primary}}·⏎············value·=·` with `··············style={{...styles.input,·width:·'100%',·color:·colors.primary}}⏎··············value=`"
prettier/prettier
|
| Warning |
Row 74, Column 22: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Warning |
Row 74, Column 48: "Strings must use singlequote."
quotes
|
| Warning |
Row 74, Column 80: "Trailing spaces not allowed."
no-trailing-spaces
|
| 74 |
style = {{...styles.input, width : "100%", color : colors.primary}} |
| 75 |
value = "KWLB0000001932345*******" |
| 76 |
/> |
| Error |
Row 77, Column 18: "Delete `⏎`"
prettier/prettier
|
| 77 |
</View> |
| 78 |
|
| 79 |
|
| 80 |
<View style={styles.button}> |
| 81 |
<Buttons.ButtonPrimary |
| 82 |
onClick={() => props.navigation.navigate('wallet', {state: true})} |
| 83 |
title="Save Payout" |
| 84 |
/> |
| 85 |
</View> |
| 86 |
</ScrollView> |
| 87 |
</View> |
| 88 |
</View> |
| 89 |
); |
| 90 |
}; |
| 91 |
|
| 92 |
export default AddBankInfo; |
| 93 |
|
| 94 |
const styles = StyleSheet.create({ |
| 95 |
mainContainer: { |
| 96 |
flex: 1, |
| 97 |
backgroundColor: colors.white, |
| 98 |
}, |
| 99 |
scroll: { |
| Error |
Row 100, Column 13: "Delete `·`"
prettier/prettier
|
| 100 |
flexGrow : 1, |
| 101 |
paddingBottom: mvs(200), |
| 102 |
paddingHorizontal: mvs(22), |
| 103 |
}, |
| 104 |
container: { |
| 105 |
flex: 1, |
| 106 |
}, |
| 107 |
mainTitle: { |
| 108 |
fontSize: mvs(15), |
| 109 |
color: colors.headerTitle, |
| 110 |
//marginTop: mvs(32), |
| 111 |
}, |
| 112 |
name: { |
| 113 |
fontSize: mvs(15), |
| 114 |
color: colors.primary, |
| 115 |
marginTop: mvs(33), |
| 116 |
marginBottom: mvs(1), |
| 117 |
}, |
| 118 |
inputContainer: { |
| 119 |
height: mvs(36), |
| 120 |
width: '100%', |
| 121 |
marginTop: mvs(10), |
| 122 |
borderRadius: mvs(10), |
| 123 |
backgroundColor: colors.lightgrey, |
| 124 |
justifyContent: 'center', |
| 125 |
}, |
| 126 |
label: { |
| 127 |
fontSize: mvs(15), |
| 128 |
color: colors.pathline, |
| 129 |
marginLeft: mvs(10), |
| 130 |
}, |
| 131 |
input: { |
| 132 |
//borderWidth:1, |
| 133 |
width: '49%', |
| 134 |
height: mvs(38), |
| Error |
Row 135, Column 20: "Delete `·`"
prettier/prettier
|
| 135 |
backgroundColor : colors.secondary, |
| Error |
Row 136, Column 17: "Delete `·`"
prettier/prettier
|
| 136 |
borderRadius : mvs(10), |
| 137 |
paddingHorizontal: mvs(10), |
| Error |
Row 138, Column 10: "Delete `·`"
prettier/prettier
|
| 138 |
color : colors.primary, |
| 139 |
fontSize: mvs(15), |
| 140 |
fontFamily: fonts.carosSoftRegular, |
| Error |
Row 141, Column 19: "Delete `·`"
prettier/prettier
|
| 141 |
justifyContent : 'center', |
| Error |
Row 142, Column 12: "Replace `·:·0` with `:·0,`"
prettier/prettier
|
| Warning |
Row 142, Column 16: "Missing trailing comma."
comma-dangle
|
| 142 |
padding : 0 |
| 143 |
}, |
| 144 |
flag: { |
| 145 |
position: 'absolute', |
| 146 |
right: mvs(10), |
| 147 |
}, |
| 148 |
button: { |
| 149 |
position: 'absolute', |
| 150 |
width: '100%', |
| 151 |
alignSelf: 'center', |
| 152 |
bottom: mvs(40), |
| 153 |
// marginTop:mvs(200) |
| 154 |
// alignSelf:'stretch' |
| 155 |
}, |
| 156 |
rowContainer: { |
| Error |
Row 157, Column 18: "Replace `·:·'row',·` with `:·'row',`"
prettier/prettier
|
| Warning |
Row 157, Column 27: "Trailing spaces not allowed."
no-trailing-spaces
|
| 157 |
flexDirection : 'row', |
| Error |
Row 158, Column 15: "Replace `·:·'center',·` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 158, Column 27: "Trailing spaces not allowed."
no-trailing-spaces
|
| 158 |
alignItems : 'center', |
| Error |
Row 159, Column 10: "Replace `·:·'100%',·` with `:·'100%',`"
prettier/prettier
|
| Warning |
Row 159, Column 20: "Trailing spaces not allowed."
no-trailing-spaces
|
| 159 |
width : '100%', |
| Error |
Row 160, Column 19: "Replace `·:·'space-between',·` with `:·'space-between',`"
prettier/prettier
|
| Warning |
Row 160, Column 38: "Trailing spaces not allowed."
no-trailing-spaces
|
| 160 |
justifyContent : 'space-between', |
| Error |
Row 161, Column 14: "Delete `·`"
prettier/prettier
|
| 161 |
marginTop : mvs(16), |
| 162 |
}, |
| 163 |
title: { |
| Error |
Row 164, Column 11: "Replace `·:·mvs(38),·` with `:·mvs(38),`"
prettier/prettier
|
| Warning |
Row 164, Column 22: "Trailing spaces not allowed."
no-trailing-spaces
|
| 164 |
height : mvs(38), |
| Error |
Row 165, Column 10: "Replace `·:·"49%",·` with `:·'49%',`"
prettier/prettier
|
| Warning |
Row 165, Column 13: "Strings must use singlequote."
quotes
|
| Warning |
Row 165, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| 165 |
width : "49%", |
| Warning |
Row 166, Column 42: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 166, Column 42: "Delete `·`"
prettier/prettier
|
| 166 |
//backgroundColor : colors.secondary, |
| Error |
Row 167, Column 17: "Replace `·:·mvs(10),·` with `:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 167, Column 28: "Trailing spaces not allowed."
no-trailing-spaces
|
| 167 |
borderRadius : mvs(10), |
| Warning |
Row 168, Column 35: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 168, Column 35: "Delete `·`"
prettier/prettier
|
| 168 |
//paddingHorizontal : mvs(10), |
| Error |
Row 169, Column 20: "Insert `·`"
prettier/prettier
|
| 169 |
justifyContent:'center', |
| Error |
Row 170, Column 4: "Insert `,`"
prettier/prettier
|
| Warning |
Row 170, Column 4: "Missing trailing comma."
comma-dangle
|
| 170 |
} |
| 171 |
}); |
| 172 |
|
|
| Severity |
Rule |
| Warning |
Row 2, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `⏎··ScrollView,·StyleSheet,·TouchableOpacity,·View⏎` with `ScrollView,·StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| Warning |
Row 5, Column 49: "Missing trailing comma."
comma-dangle
|
| Error |
Row 7, Column 9: "Replace `·mvs·}·from·'../../../config/metrices'` with `mvs}·from·'../../../config/metrices';`"
prettier/prettier
|
| Warning |
Row 7, Column 47: "Missing semicolon."
semi
|
| Error |
Row 8, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Warning |
Row 14, Column 8: "'OrderPolicy' is defined but never used."
no-unused-vars
|
| Warning |
Row 18, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Error |
Row 24, Column 10: "Replace `wallet_delivery,·fetchWalletDeliveryDetails,·navigation,·route,profileData}·=` with `⏎····wallet_delivery,⏎····fetchWalletDeliveryDetails,⏎····navigation,⏎····route,⏎····profileData,`"
prettier/prettier
|
| Warning |
Row 24, Column 55: "'navigation' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 25, Column 3: "Replace `·` with `}·=`"
prettier/prettier
|
| Warning |
Row 26, Column 10: "'order_id' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 28, Column 9: "'Car' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 28, Column 22: "["car"] is better written in dot notation."
dot-notation
|
| Warning |
Row 29, Column 9: "'Aeroplane' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 29, Column 28: "["aeroplane"] is better written in dot notation."
dot-notation
|
| Warning |
Row 30, Column 9: "'Location' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 30, Column 27: "["location"] is better written in dot notation."
dot-notation
|
| Warning |
Row 31, Column 28: "["car_active"] is better written in dot notation."
dot-notation
|
| Warning |
Row 32, Column 9: "'AeroplaneActive' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 32, Column 34: "["aeroplane_active"] is better written in dot notation."
dot-notation
|
| Warning |
Row 33, Column 9: "'LocationGreen' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 33, Column 38: "["location_green"] is better written in dot notation."
dot-notation
|
| Warning |
Row 34, Column 33: "["location_active"] is better written in dot notation."
dot-notation
|
| Error |
Row 38, Column 6: "React Hook React.useEffect has a missing dependency: 'fetchWalletDeliveryDetails'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 44, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 45, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 46, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 47, Column 9: "Replace `userIcon·=·` with `··userIcon=`"
prettier/prettier
|
| Error |
Row 48, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 52, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 52, Column 9: "Delete `⏎········`"
prettier/prettier
|
| Error |
Row 62, Column 26: "Replace `·=·{"Rewarded"` with `={'Rewarded'`"
prettier/prettier
|
| Warning |
Row 62, Column 30: "Strings must use singlequote."
quotes
|
| Error |
Row 63, Column 44: "Delete `·`"
prettier/prettier
|
| Warning |
Row 72, Column 26: "Comparing to itself is potentially pointless."
no-self-compare
|
| Warning |
Row 72, Column 28: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 107, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 109, Column 22: "Replace `·=·{styles.line}` with `={styles.line}·`"
prettier/prettier
|
| Error |
Row 111, Column 11: "Replace `singleInput·=·` with `··singleInput=`"
prettier/prettier
|
| Error |
Row 112, Column 11: "Replace `title·=·` with `··title=`"
prettier/prettier
|
| Error |
Row 113, Column 11: "Replace `value·=·` with `··value=`"
prettier/prettier
|
| Error |
Row 114, Column 11: "Replace `multiline·=·` with `··multiline=`"
prettier/prettier
|
| Error |
Row 115, Column 11: "Replace `textStyle·=·{{color·` with `··textStyle={{color`"
prettier/prettier
|
| Error |
Row 116, Column 11: "Replace `editable·=·` with `··editable=`"
prettier/prettier
|
| Error |
Row 117, Column 11: "Replace `titleStyle·=·{{fontSize·` with `··titleStyle={{fontSize`"
prettier/prettier
|
| Error |
Row 118, Column 11: "Replace `style·=·{{marginTop·` with `··style={{marginTop`"
prettier/prettier
|
| Error |
Row 119, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 119, Column 11: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Error |
Row 120, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 124, Column 23: "Replace `·label="Urgent·Delivery"·style={{...styles.label,·color·:·colors.pink}}` with `⏎················label="Urgent·Delivery"⏎················style={{...styles.label,·color:·colors.pink}}⏎·············`"
prettier/prettier
|
| Error |
Row 126, Column 24: "Replace `"Within·24·hours"` with `'Within·24·hours'`"
prettier/prettier
|
| Warning |
Row 126, Column 24: "Strings must use singlequote."
quotes
|
| Error |
Row 127, Column 47: "Delete `·`"
prettier/prettier
|
| Warning |
Row 158, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 158, Column 1: "Delete `············`"
prettier/prettier
|
| Error |
Row 159, Column 24: "Replace `·=·{{...styles.line,·marginTop·:·mvs(15)}}` with `={{...styles.line,·marginTop:·mvs(15)}}·`"
prettier/prettier
|
| Error |
Row 163, Column 1: "Replace `··········singleInput·=·` with `············singleInput=`"
prettier/prettier
|
| Error |
Row 164, Column 1: "Replace `··········title·=·` with `············title=`"
prettier/prettier
|
| Error |
Row 165, Column 11: "Replace `value·=·` with `··value=`"
prettier/prettier
|
| Error |
Row 166, Column 11: "Replace `multiline·=·` with `··multiline=`"
prettier/prettier
|
| Error |
Row 167, Column 1: "Replace `··········textStyle·=·{{color·` with `············textStyle={{color`"
prettier/prettier
|
| Error |
Row 168, Column 1: "Replace `··········editable·=·` with `············editable=`"
prettier/prettier
|
| Error |
Row 169, Column 1: "Replace `··········style·=·{{marginTop·` with `············style={{marginTop`"
prettier/prettier
|
| Error |
Row 170, Column 1: "Replace `··········titleStyle·=·{{fontSize·` with `············titleStyle={{fontSize`"
prettier/prettier
|
| Error |
Row 173, Column 22: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 175, Column 13: "Replace `label·=·` with `··label=`"
prettier/prettier
|
| Error |
Row 176, Column 13: "Replace `style·=·{{fontSize·:·mvs(12),·color·` with `··style={{fontSize:·mvs(12),·color`"
prettier/prettier
|
| Error |
Row 181, Column 11: "Replace `title·=·` with `··title=`"
prettier/prettier
|
| Error |
Row 182, Column 1: "Replace `··········titleStyle·=·{{color·` with `············titleStyle={{color`"
prettier/prettier
|
| Error |
Row 183, Column 1: "Replace `··········style·=·{{marginTop·:·mvs(16),·marginBottom·` with `············style={{marginTop:·mvs(16),·marginBottom`"
prettier/prettier
|
| Error |
Row 184, Column 11: "Replace `onClick·=·{()=>` with `··onClick={()·=>·`"
prettier/prettier
|
| Error |
Row 211, Column 20: "Replace `·:·colors.white` with `:·colors.white,`"
prettier/prettier
|
| Warning |
Row 211, Column 35: "Missing trailing comma."
comma-dangle
|
| Error |
Row 303, Column 17: "Delete `·`"
prettier/prettier
|
| Error |
Row 312, Column 12: "Replace `"100%"` with `'100%'`"
prettier/prettier
|
| Warning |
Row 312, Column 12: "Strings must use singlequote."
quotes
|
| Error |
Row 320, Column 13: "Delete `·`"
prettier/prettier
|
| Error |
Row 321, Column 10: "Delete `·`"
prettier/prettier
|
| Error |
Row 322, Column 11: "Replace `·:·"100%"` with `:·'100%',`"
prettier/prettier
|
| Warning |
Row 322, Column 14: "Strings must use singlequote."
quotes
|
| Warning |
Row 322, Column 20: "Missing trailing comma."
comma-dangle
|
| Error |
Row 343, Column 17: "Delete `·`"
prettier/prettier
|
| Error |
Row 383, Column 11: "Delete `·`"
prettier/prettier
|
| Error |
Row 384, Column 10: "Delete `·`"
prettier/prettier
|
| Error |
Row 385, Column 17: "Delete `·`"
prettier/prettier
|
| Error |
Row 386, Column 16: "Delete `·`"
prettier/prettier
|
| Error |
Row 387, Column 16: "Delete `·`"
prettier/prettier
|
| Error |
Row 388, Column 14: "Delete `·`"
prettier/prettier
|
| Error |
Row 389, Column 19: "Delete `·`"
prettier/prettier
|
| Error |
Row 390, Column 16: "Replace `·:·mvs(10)` with `:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 390, Column 26: "Missing trailing comma."
comma-dangle
|
| Error |
Row 391, Column 4: "Insert `,`"
prettier/prettier
|
| Warning |
Row 391, Column 4: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| Warning |
Row 2, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| 2 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 3 |
import React from 'react'; |
| Error |
Row 4, Column 9: "Replace `⏎··ScrollView,·StyleSheet,·TouchableOpacity,·View⏎` with `ScrollView,·StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| 4 |
import { |
| Warning |
Row 5, Column 49: "Missing trailing comma."
comma-dangle
|
| 5 |
ScrollView, StyleSheet, TouchableOpacity, View |
| 6 |
} from 'react-native'; |
| Error |
Row 7, Column 9: "Replace `·mvs·}·from·'../../../config/metrices'` with `mvs}·from·'../../../config/metrices';`"
prettier/prettier
|
| Warning |
Row 7, Column 47: "Missing semicolon."
semi
|
| 7 |
import { mvs } from '../../../config/metrices' |
| Error |
Row 8, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 8 |
import { connect } from 'react-redux'; |
| 9 |
import * as ImagesCommon from '../../../../resource/assets/common-icons'; |
| 10 |
import * as Images from '../../../../resource/assets/order-car-icons'; |
| 11 |
import OrderDestination from '../../../components/atoms/OrderDestination'; |
| 12 |
import OrderDestinationAddress from '../../../components/atoms/OrderDestinationAddress'; |
| 13 |
import ImagePlaceholder from '../../../components/atoms/Placeholder'; |
| Warning |
Row 14, Column 8: "'OrderPolicy' is defined but never used."
no-unused-vars
|
| 14 |
import OrderPolicy from '../../../components/molecules/create_order_policy/order-policy'; |
| 15 |
import Header from '../../../components/molecules/header/header-1x'; |
| 16 |
import ProductInfo from '../../../components/molecules/product-info'; |
| 17 |
import colors from '../../../config/colors'; |
| Warning |
Row 18, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| 18 |
import Medium from '../../../presentation/typography/medium-text'; |
| 19 |
import Regular from '../../../presentation/typography/regular-text'; |
| 20 |
import InputWithTitle from '../../../components/molecules/input-with-title'; |
| 21 |
import Buttons from '../../../components/atoms/Button'; |
| 22 |
|
| 23 |
const WalletDeliveryDetails = props => { |
| Error |
Row 24, Column 10: "Replace `wallet_delivery,·fetchWalletDeliveryDetails,·navigation,·route,profileData}·=` with `⏎····wallet_delivery,⏎····fetchWalletDeliveryDetails,⏎····navigation,⏎····route,⏎····profileData,`"
prettier/prettier
|
| Warning |
Row 24, Column 55: "'navigation' is assigned a value but never used."
no-unused-vars
|
| 24 |
const {wallet_delivery, fetchWalletDeliveryDetails, navigation, route,profileData} = |
| Error |
Row 25, Column 3: "Replace `·` with `}·=`"
prettier/prettier
|
| 25 |
props; |
| Warning |
Row 26, Column 10: "'order_id' is assigned a value but never used."
no-unused-vars
|
| 26 |
const {order_id} = route?.params; |
| 27 |
|
| Warning |
Row 28, Column 9: "'Car' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 28, Column 22: "["car"] is better written in dot notation."
dot-notation
|
| 28 |
const Car = Images['car']; |
| Warning |
Row 29, Column 9: "'Aeroplane' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 29, Column 28: "["aeroplane"] is better written in dot notation."
dot-notation
|
| 29 |
const Aeroplane = Images['aeroplane']; |
| Warning |
Row 30, Column 9: "'Location' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 30, Column 27: "["location"] is better written in dot notation."
dot-notation
|
| 30 |
const Location = Images['location']; |
| Warning |
Row 31, Column 28: "["car_active"] is better written in dot notation."
dot-notation
|
| 31 |
const CarActive = Images['car_active']; |
| Warning |
Row 32, Column 9: "'AeroplaneActive' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 32, Column 34: "["aeroplane_active"] is better written in dot notation."
dot-notation
|
| 32 |
const AeroplaneActive = Images['aeroplane_active']; |
| Warning |
Row 33, Column 9: "'LocationGreen' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 33, Column 38: "["location_green"] is better written in dot notation."
dot-notation
|
| 33 |
const LocationGreen = ImagesCommon['location_green']; |
| Warning |
Row 34, Column 33: "["location_active"] is better written in dot notation."
dot-notation
|
| 34 |
const LocationActive = Images['location_active']; |
| 35 |
|
| 36 |
React.useEffect(() => { |
| 37 |
fetchWalletDeliveryDetails(); |
| Error |
Row 38, Column 6: "React Hook React.useEffect has a missing dependency: 'fetchWalletDeliveryDetails'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 38 |
}, []); |
| 39 |
|
| 40 |
return ( |
| 41 |
<View style={styles.mainContainer}> |
| 42 |
<View style={styles.header}> |
| 43 |
<Header |
| Error |
Row 44, Column 9: "Insert `··`"
prettier/prettier
|
| 44 |
{...props} |
| Error |
Row 45, Column 1: "Insert `··`"
prettier/prettier
|
| 45 |
title="Wallet - Delivery Detail" |
| Error |
Row 46, Column 1: "Insert `··`"
prettier/prettier
|
| 46 |
allowBackBtn |
| Error |
Row 47, Column 9: "Replace `userIcon·=·` with `··userIcon=`"
prettier/prettier
|
| 47 |
userIcon = {false} |
| Error |
Row 48, Column 1: "Insert `··`"
prettier/prettier
|
| 48 |
/> |
| 49 |
</View> |
| 50 |
|
| 51 |
<ScrollView showsVerticalScrollIndicator={false} style={styles.container}> |
| Warning |
Row 52, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 52, Column 9: "Delete `⏎········`"
prettier/prettier
|
| 52 |
|
| 53 |
<View style={styles.productMainContainer}> |
| 54 |
<View style={styles.productContainer}> |
| 55 |
<ProductInfo |
| 56 |
order_img={wallet_delivery.order_image} |
| 57 |
priceTitle={'Product Price'} |
| 58 |
name={wallet_delivery?.order_title} |
| 59 |
//name = "iPhone 13 Pro 128GB Sierra blue" |
| 60 |
total={`US$ ${wallet_delivery?.order_price}`} |
| 61 |
reward={`US$ ${wallet_delivery?.order_reward_price}`} |
| Error |
Row 62, Column 26: "Replace `·=·{"Rewarded"` with `={'Rewarded'`"
prettier/prettier
|
| Warning |
Row 62, Column 30: "Strings must use singlequote."
quotes
|
| 62 |
rewardTitle = {"Rewarded"} |
| Error |
Row 63, Column 44: "Delete `·`"
prettier/prettier
|
| 63 |
detailsContainer={{marginLeft : mvs(30)}} |
| 64 |
/> |
| 65 |
</View> |
| 66 |
|
| 67 |
<View style={{paddingHorizontal: mvs(22)}}> |
| 68 |
<View style={styles.LOCATION_DESTINATION}> |
| 69 |
<View style={styles.SUB_LOCATION_DESTINATION}> |
| 70 |
<OrderDestination |
| 71 |
value={2} |
| Warning |
Row 72, Column 26: "Comparing to itself is potentially pointless."
no-self-compare
|
| Warning |
Row 72, Column 28: "Expected '===' and instead saw '=='."
eqeqeq
|
| 72 |
width={2 == 2 ? mvs(100) : mvs(50)} |
| 73 |
SVGFirst={CarActive} |
| 74 |
SVGSecond={LocationActive} |
| 75 |
/> |
| 76 |
<View style={{marginTop: mvs(8)}} /> |
| 77 |
<OrderDestinationAddress |
| 78 |
imageFrom={{uri: wallet_delivery?.order_from_flag}} |
| 79 |
imageTo={{uri: wallet_delivery?.order_to_flag}} |
| 80 |
label={`${wallet_delivery?.order_from} - ${wallet_delivery?.order_to}`} |
| 81 |
fontSize={12} |
| 82 |
/> |
| 83 |
</View> |
| 84 |
<TouchableOpacity style={styles.USER_IMAGE_CONTAINER}> |
| 85 |
<View style={styles.SUB_USER_IMAGE_CONTAINER}> |
| 86 |
<ImagePlaceholder |
| 87 |
bg_img={wallet_delivery?.order_by?.user_image} |
| 88 |
containerStyle={styles.USER_IMAGE} |
| 89 |
/> |
| 90 |
<Regular |
| 91 |
numberOfLines={1} |
| 92 |
label={wallet_delivery?.order_by?.user_name?.substring( |
| 93 |
0, |
| 94 |
10, |
| 95 |
)} |
| 96 |
style={{ |
| 97 |
...styles.CARD_CONTENT_LABLE, |
| 98 |
fontSize: mvs(12), |
| 99 |
}} |
| 100 |
/> |
| 101 |
</View> |
| 102 |
</TouchableOpacity> |
| 103 |
</View> |
| 104 |
</View> |
| 105 |
</View> |
| 106 |
|
| Error |
Row 107, Column 1: "Delete `⏎`"
prettier/prettier
|
| 107 |
|
| 108 |
<View style={styles.container1}> |
| Error |
Row 109, Column 22: "Replace `·=·{styles.line}` with `={styles.line}·`"
prettier/prettier
|
| 109 |
<View style = {styles.line}/> |
| 110 |
<InputWithTitle |
| Error |
Row 111, Column 11: "Replace `singleInput·=·` with `··singleInput=`"
prettier/prettier
|
| 111 |
singleInput = {true} |
| Error |
Row 112, Column 11: "Replace `title·=·` with `··title=`"
prettier/prettier
|
| 112 |
title = "Product Details" |
| Error |
Row 113, Column 11: "Replace `value·=·` with `··value=`"
prettier/prettier
|
| 113 |
value = "Lorem ipsum" |
| Error |
Row 114, Column 11: "Replace `multiline·=·` with `··multiline=`"
prettier/prettier
|
| 114 |
multiline = {true} |
| Error |
Row 115, Column 11: "Replace `textStyle·=·{{color·` with `··textStyle={{color`"
prettier/prettier
|
| 115 |
textStyle = {{color : colors.primary}} |
| Error |
Row 116, Column 11: "Replace `editable·=·` with `··editable=`"
prettier/prettier
|
| 116 |
editable = {false} |
| Error |
Row 117, Column 11: "Replace `titleStyle·=·{{fontSize·` with `··titleStyle={{fontSize`"
prettier/prettier
|
| 117 |
titleStyle = {{fontSize : mvs(14)}} |
| Error |
Row 118, Column 11: "Replace `style·=·{{marginTop·` with `··style={{marginTop`"
prettier/prettier
|
| 118 |
style = {{marginTop : mvs(17)}} |
| Error |
Row 119, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 119, Column 11: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 119 |
singleInput={false} |
| Error |
Row 120, Column 1: "Delete `··`"
prettier/prettier
|
| 120 |
moreOrLess={true} |
| 121 |
/> |
| 122 |
<View style={styles.moreInfoContainer}> |
| 123 |
<View style={{...styles.infoContainer, marginTop: mvs(0)}}> |
| Error |
Row 124, Column 23: "Replace `·label="Urgent·Delivery"·style={{...styles.label,·color·:·colors.pink}}` with `⏎················label="Urgent·Delivery"⏎················style={{...styles.label,·color:·colors.pink}}⏎·············`"
prettier/prettier
|
| 124 |
<Regular label="Urgent Delivery" style={{...styles.label, color : colors.pink}} /> |
| 125 |
<Regular |
| Error |
Row 126, Column 24: "Replace `"Within·24·hours"` with `'Within·24·hours'`"
prettier/prettier
|
| Warning |
Row 126, Column 24: "Strings must use singlequote."
quotes
|
| 126 |
label={"Within 24 hours"} |
| Error |
Row 127, Column 47: "Delete `·`"
prettier/prettier
|
| 127 |
style={{...styles.value, color : colors.pink}} |
| 128 |
/> |
| 129 |
</View> |
| 130 |
|
| 131 |
{/* <View style={styles.line}></View> */} |
| 132 |
|
| 133 |
<View style={{...styles.infoContainer, marginTop: mvs(12)}}> |
| 134 |
<Regular label="Quantity" style={styles.label} /> |
| 135 |
<Regular |
| 136 |
label={wallet_delivery?.order_quantity} |
| 137 |
style={styles.value} |
| 138 |
/> |
| 139 |
</View> |
| 140 |
|
| 141 |
<View style={{...styles.infoContainer, marginTop: mvs(12)}}> |
| 142 |
<Regular label="Packaging" style={styles.label} /> |
| 143 |
<Regular |
| 144 |
label={ |
| 145 |
wallet_delivery?.order_packaging ? 'With box' : 'Without box' |
| 146 |
} |
| 147 |
style={styles.value} |
| 148 |
/> |
| 149 |
</View> |
| 150 |
|
| 151 |
<View style={{...styles.infoContainer, marginTop: mvs(12)}}> |
| 152 |
<Regular label="Where to buy" style={styles.label} /> |
| 153 |
<Regular |
| 154 |
label={wallet_delivery?.order_store_url} |
| 155 |
style={{...styles.value, color: colors.primary}} |
| 156 |
/> |
| 157 |
</View> |
| Warning |
Row 158, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 158, Column 1: "Delete `············`"
prettier/prettier
|
| 158 |
|
| Error |
Row 159, Column 24: "Replace `·=·{{...styles.line,·marginTop·:·mvs(15)}}` with `={{...styles.line,·marginTop:·mvs(15)}}·`"
prettier/prettier
|
| 159 |
<View style = {{...styles.line, marginTop : mvs(15)}}/> |
| 160 |
</View> |
| 161 |
|
| 162 |
<InputWithTitle |
| Error |
Row 163, Column 1: "Replace `··········singleInput·=·` with `············singleInput=`"
prettier/prettier
|
| 163 |
singleInput = {true} |
| Error |
Row 164, Column 1: "Replace `··········title·=·` with `············title=`"
prettier/prettier
|
| 164 |
title = "Buying Instructions" |
| Error |
Row 165, Column 11: "Replace `value·=·` with `··value=`"
prettier/prettier
|
| 165 |
value = "Lorem ipsum" |
| Error |
Row 166, Column 11: "Replace `multiline·=·` with `··multiline=`"
prettier/prettier
|
| 166 |
multiline = {true} |
| Error |
Row 167, Column 1: "Replace `··········textStyle·=·{{color·` with `············textStyle={{color`"
prettier/prettier
|
| 167 |
textStyle = {{color : colors.primary}} |
| Error |
Row 168, Column 1: "Replace `··········editable·=·` with `············editable=`"
prettier/prettier
|
| 168 |
editable = {false} |
| Error |
Row 169, Column 1: "Replace `··········style·=·{{marginTop·` with `············style={{marginTop`"
prettier/prettier
|
| 169 |
style = {{marginTop : mvs(17)}} |
| Error |
Row 170, Column 1: "Replace `··········titleStyle·=·{{fontSize·` with `············titleStyle={{fontSize`"
prettier/prettier
|
| 170 |
titleStyle = {{fontSize : mvs(14)}} |
| 171 |
/> |
| 172 |
|
| Error |
Row 173, Column 22: "Replace `·=·` with `=`"
prettier/prettier
|
| 173 |
<View style = {styles.statusContainer}> |
| 174 |
<Regular |
| Error |
Row 175, Column 13: "Replace `label·=·` with `··label=`"
prettier/prettier
|
| 175 |
label = "Successful Delivery" |
| Error |
Row 176, Column 13: "Replace `style·=·{{fontSize·:·mvs(12),·color·` with `··style={{fontSize:·mvs(12),·color`"
prettier/prettier
|
| 176 |
style = {{fontSize : mvs(12), color : colors.typeHeader}} |
| 177 |
/> |
| 178 |
</View> |
| 179 |
|
| 180 |
<Buttons.ButtonPrimary |
| Error |
Row 181, Column 11: "Replace `title·=·` with `··title=`"
prettier/prettier
|
| 181 |
title = {`Rewarded 976 ${profileData?.currency?.currency_code}`} |
| Error |
Row 182, Column 1: "Replace `··········titleStyle·=·{{color·` with `············titleStyle={{color`"
prettier/prettier
|
| 182 |
titleStyle = {{color : colors.white}} |
| Error |
Row 183, Column 1: "Replace `··········style·=·{{marginTop·:·mvs(16),·marginBottom·` with `············style={{marginTop:·mvs(16),·marginBottom`"
prettier/prettier
|
| 183 |
style = {{marginTop : mvs(16), marginBottom : mvs(40)}} |
| Error |
Row 184, Column 11: "Replace `onClick·=·{()=>` with `··onClick={()·=>·`"
prettier/prettier
|
| 184 |
onClick = {()=>{}} |
| 185 |
/> |
| 186 |
</View> |
| 187 |
|
| 188 |
{/* <OrderPolicy style={{marginTop: mvs(20)}} /> */} |
| 189 |
</ScrollView> |
| 190 |
</View> |
| 191 |
); |
| 192 |
}; |
| 193 |
const mapStateToProps = state => ({ |
| 194 |
wallet_delivery: state.wallet.wallet_delivery, |
| 195 |
profileData: state.auth.userInfo?.profile || {}, |
| 196 |
}); |
| 197 |
|
| 198 |
const mapDispatchToProps = { |
| 199 |
fetchWalletDeliveryDetails: order_id => |
| 200 |
TAKE_TO_ACTIONS.fetchWalletDeliveryDetails(order_id), |
| 201 |
}; |
| 202 |
|
| 203 |
export default connect( |
| 204 |
mapStateToProps, |
| 205 |
mapDispatchToProps, |
| 206 |
)(WalletDeliveryDetails); |
| 207 |
|
| 208 |
const styles = StyleSheet.create({ |
| 209 |
mainContainer: { |
| 210 |
flex: 1, |
| Error |
Row 211, Column 20: "Replace `·:·colors.white` with `:·colors.white,`"
prettier/prettier
|
| Warning |
Row 211, Column 35: "Missing trailing comma."
comma-dangle
|
| 211 |
backgroundColor : colors.white |
| 212 |
}, |
| 213 |
header: { |
| 214 |
backgroundColor: colors.white, |
| 215 |
}, |
| 216 |
container: { |
| 217 |
flex: 1, |
| 218 |
//paddingBottom : mvs(40) |
| 219 |
//borderWidth : 1 |
| 220 |
}, |
| 221 |
productMainContainer: { |
| 222 |
paddingBottom: mvs(15), |
| 223 |
backgroundColor: colors.white, |
| 224 |
borderBottomLeftRadius: mvs(20), |
| 225 |
borderBottomRightRadius: mvs(20), |
| 226 |
//borderWidth : 1 |
| 227 |
//height : mvs(200) |
| 228 |
}, |
| 229 |
productContainer: { |
| 230 |
paddingHorizontal: mvs(22), |
| 231 |
minHeight: mvs(125), |
| 232 |
//marginTop: mvs(30), |
| 233 |
// borderWidth : 1, |
| 234 |
// borderColor : 'red' |
| 235 |
}, |
| 236 |
CONTAINER: { |
| 237 |
flex: 1, |
| 238 |
flexDirection: 'row', |
| 239 |
marginTop: mvs(30), |
| 240 |
}, |
| 241 |
IMAGE_CONTAINER: { |
| 242 |
borderRadius: mvs(10), |
| 243 |
height: mvs(125), |
| 244 |
width: mvs(104), |
| 245 |
backgroundColor: colors.white, |
| 246 |
overflow: 'hidden', |
| 247 |
borderWidth: StyleSheet.hairlineWidth, |
| 248 |
borderColor: colors.price_border, |
| 249 |
}, |
| 250 |
IMAGE: { |
| 251 |
height: '100%', |
| 252 |
width: '100%', |
| 253 |
borderRadius: 20, |
| 254 |
}, |
| 255 |
TITLE: { |
| 256 |
fontSize: mvs(18), |
| 257 |
color: colors.headerTitle, |
| 258 |
}, |
| 259 |
DESCRIPTION_CONTAINER: { |
| 260 |
marginLeft: mvs(9), |
| 261 |
flex: 1, |
| 262 |
// backgroundColor:'red' |
| 263 |
width: mvs(146), |
| 264 |
}, |
| 265 |
CARD_CONTENT_LABLE: { |
| 266 |
fontSize: mvs(12), |
| 267 |
color: colors.headerTitle, |
| 268 |
}, |
| 269 |
PRICE_CONTAINER: { |
| 270 |
borderColor: colors.price_border, |
| 271 |
borderTopWidth: 1, |
| 272 |
borderBottomWidth: 1, |
| 273 |
flexDirection: 'row', |
| 274 |
justifyContent: 'space-between', |
| 275 |
paddingVertical: mvs(4), |
| 276 |
marginTop: mvs(9), |
| 277 |
}, |
| 278 |
PENDING_REWARD_CONTAINER: { |
| 279 |
marginTop: mvs(13), |
| 280 |
flexDirection: 'row', |
| 281 |
justifyContent: 'space-between', |
| 282 |
}, |
| 283 |
BUTTON_CONTAINER: { |
| 284 |
marginTop: mvs(11), |
| 285 |
alignItems: 'center', |
| 286 |
flexDirection: 'row', |
| 287 |
justifyContent: 'space-between', |
| 288 |
}, |
| 289 |
TODAY: { |
| 290 |
fontSize: mvs(12), |
| 291 |
color: colors.pink, |
| 292 |
}, |
| 293 |
MAKE_OFFER: { |
| 294 |
width: mvs(73), |
| 295 |
height: mvs(31), |
| 296 |
backgroundColor: colors.green, |
| 297 |
}, |
| 298 |
LOCATION_DESTINATION: { |
| 299 |
flexDirection: 'row', |
| 300 |
justifyContent: 'space-between', |
| 301 |
marginTop: mvs(15), |
| 302 |
//borderWidth : 1, |
| Error |
Row 303, Column 17: "Delete `·`"
prettier/prettier
|
| 303 |
paddingRight : mvs(134), |
| 304 |
height: mvs(55), |
| 305 |
// borderWidth : 1, |
| 306 |
// borderColor : 'green' |
| 307 |
}, |
| 308 |
SUB_LOCATION_DESTINATION: { |
| 309 |
// flex: 1, |
| 310 |
justifyContent: 'space-between', |
| 311 |
alignItems: 'center', |
| Error |
Row 312, Column 12: "Replace `"100%"` with `'100%'`"
prettier/prettier
|
| Warning |
Row 312, Column 12: "Strings must use singlequote."
quotes
|
| 312 |
width: "100%", |
| 313 |
//borderWidth:1, |
| 314 |
// borderColor : 'orange' |
| 315 |
}, |
| 316 |
USER_IMAGE_CONTAINER: { |
| 317 |
//width: mvs(54), |
| 318 |
borderRadius: mvs(10), |
| 319 |
//borderWidth :1, |
| Error |
Row 320, Column 13: "Delete `·`"
prettier/prettier
|
| 320 |
position : 'absolute', |
| Error |
Row 321, Column 10: "Delete `·`"
prettier/prettier
|
| 321 |
right : 0, |
| Error |
Row 322, Column 11: "Replace `·:·"100%"` with `:·'100%',`"
prettier/prettier
|
| Warning |
Row 322, Column 14: "Strings must use singlequote."
quotes
|
| Warning |
Row 322, Column 20: "Missing trailing comma."
comma-dangle
|
| 322 |
height : "100%" |
| 323 |
}, |
| 324 |
SUB_USER_IMAGE_CONTAINER: { |
| 325 |
flex: 1, |
| 326 |
justifyContent: 'space-between', |
| 327 |
alignItems: 'center', |
| 328 |
//borderWidth:1 |
| 329 |
}, |
| 330 |
USER_IMAGE: { |
| 331 |
height: mvs(37), |
| 332 |
width: mvs(37), |
| 333 |
borderRadius: mvs(10), |
| 334 |
backgroundColor: colors.secondary, |
| 335 |
}, |
| 336 |
rewardContainer: { |
| 337 |
height: mvs(58), |
| 338 |
width: '100%', |
| 339 |
//borderWidth : 1, |
| 340 |
borderRadius: mvs(10), |
| 341 |
backgroundColor: colors.green, |
| 342 |
marginTop: mvs(115), |
| Error |
Row 343, Column 17: "Delete `·`"
prettier/prettier
|
| 343 |
marginBottom : mvs(40), |
| 344 |
paddingHorizontal: mvs(11), |
| 345 |
flexDirection: 'row', |
| 346 |
alignItems: 'center', |
| 347 |
justifyContent: 'space-between', |
| 348 |
}, |
| 349 |
container1: { |
| 350 |
//flex :1, |
| 351 |
paddingHorizontal: mvs(22), |
| 352 |
//borderWidth : 1 |
| 353 |
}, |
| 354 |
infoContainer: { |
| 355 |
width: '100%', |
| 356 |
flexDirection: 'row', |
| 357 |
//borderWidth : 1, |
| 358 |
justifyContent: 'space-between', |
| 359 |
}, |
| 360 |
label: { |
| 361 |
fontSize: mvs(13), |
| 362 |
color: colors.label, |
| 363 |
}, |
| 364 |
value: { |
| 365 |
fontSize: mvs(13), |
| 366 |
color: colors.headerTitle, |
| 367 |
}, |
| 368 |
line: { |
| 369 |
width: '100%', |
| 370 |
borderBottomWidth: mvs(0.5), |
| 371 |
borderColor: colors.doted, |
| 372 |
//marginTop: mvs(11), |
| 373 |
}, |
| 374 |
moreInfoContainer: { |
| 375 |
//paddingHorizontal: mvs(20), |
| 376 |
backgroundColor: colors.white, |
| 377 |
marginTop: mvs(22), |
| 378 |
//paddingBottom: mvs(22), |
| 379 |
//borderRadius: mvs(10), |
| 380 |
//borderWidth:1 |
| 381 |
}, |
| 382 |
statusContainer: { |
| Error |
Row 383, Column 11: "Delete `·`"
prettier/prettier
|
| 383 |
height : mvs(40), |
| Error |
Row 384, Column 10: "Delete `·`"
prettier/prettier
|
| 384 |
width : '100%', |
| Error |
Row 385, Column 17: "Delete `·`"
prettier/prettier
|
| 385 |
borderRadius : mvs(10), |
| Error |
Row 386, Column 16: "Delete `·`"
prettier/prettier
|
| 386 |
borderWidth : mvs(0.5), |
| Error |
Row 387, Column 16: "Delete `·`"
prettier/prettier
|
| 387 |
borderColor : colors.doted, |
| Error |
Row 388, Column 14: "Delete `·`"
prettier/prettier
|
| 388 |
marginTop : mvs(85), |
| Error |
Row 389, Column 19: "Delete `·`"
prettier/prettier
|
| 389 |
justifyContent : 'center', |
| Error |
Row 390, Column 16: "Replace `·:·mvs(10)` with `:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 390, Column 26: "Missing trailing comma."
comma-dangle
|
| 390 |
paddingLeft : mvs(10) |
| Error |
Row 391, Column 4: "Insert `,`"
prettier/prettier
|
| Warning |
Row 391, Column 4: "Missing trailing comma."
comma-dangle
|
| 391 |
} |
| 392 |
}); |
| 393 |
|
|
| Severity |
Rule |
| Warning |
Row 2, Column 31: "'Text' is defined but never used."
no-unused-vars
|
| Error |
Row 5, Column 9: "Replace `·mvs·}·from·'../../../config/metrices'` with `mvs}·from·'../../../config/metrices';`"
prettier/prettier
|
| Warning |
Row 5, Column 47: "Missing semicolon."
semi
|
| Warning |
Row 14, Column 9: "'history' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 30, Column 6: "React Hook React.useEffect has a missing dependency: 'fetchWalletHistory'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 34, Column 14: "Replace `⏎········{...props}⏎········title="Wallet·History"⏎········allowBackBtn⏎········userIcon·=·{false}⏎·····` with `·{...props}·title="Wallet·History"·allowBackBtn·userIcon={false}`"
prettier/prettier
|
| Error |
Row 48, Column 58: "Delete `·`"
prettier/prettier
|
| Error |
Row 51, Column 58: "Delete `·`"
prettier/prettier
|
| Error |
Row 54, Column 58: "Delete `·`"
prettier/prettier
|
| Warning |
Row 57, Column 26: "Inline style: { borderWidth: 0 }"
react-native/no-inline-styles
|
| Error |
Row 57, Column 55: "Replace `·:` with `:·`"
prettier/prettier
|
| Error |
Row 58, Column 23: "Replace `⏎················label="Total"⏎················style={{...styles.Txt}}⏎·············` with `·label="Total"·style={{...styles.Txt}}`"
prettier/prettier
|
| Error |
Row 67, Column 34: "Replace `·=·{{paddingBottom·:·mvs(10),·paddingHorizontal·:·mvs(1)` with `={{⏎··············paddingBottom:·mvs(10),⏎··············paddingHorizontal:·mvs(1),⏎············`"
prettier/prettier
|
| Warning |
Row 77, Column 33: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 78, Column 77: "Replace `{order_id:item?.order_id` with `·{⏎····························order_id:·item?.order_id,⏎··························`"
prettier/prettier
|
| Warning |
Row 79, Column 37: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 80, Column 75: "Replace `{order_id:item?.order_id` with `·{⏎····························order_id:·item?.order_id,⏎··························`"
prettier/prettier
|
| Warning |
Row 81, Column 37: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 82, Column 75: "Replace `{order_id:item?.order_id` with `·{⏎····························order_id:·item?.order_id,⏎··························`"
prettier/prettier
|
| Warning |
Row 86, Column 39: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 90, Column 27: "Replace `·label={TAKE_TO_CONSTANT.getDate(item?.trn_date,'DD·/·MM·/·YYYY')}·style={styles.Txt}` with `⏎····················label={TAKE_TO_CONSTANT.getDate(⏎······················item?.trn_date,⏎······················'DD·/·MM·/·YYYY',⏎····················)}⏎····················style={styles.Txt}⏎·················`"
prettier/prettier
|
| Warning |
Row 94, Column 36: "Missing radix parameter."
radix
|
| Warning |
Row 95, Column 28: "Inline style: {
color: '!item?.is_credit\n' +
" // item?.type == 'Cashout' || item?.type == 'Payout'\n" +
' ? "#EB1111"\n' +
' : colors.primary'
}"
react-native/no-inline-styles
|
| Error |
Row 97, Column 29: "Insert `·`"
prettier/prettier
|
| Error |
Row 98, Column 24: "Insert `·?`"
prettier/prettier
|
| Error |
Row 99, Column 27: "Replace `?·"#EB1111"` with `'#EB1111'`"
prettier/prettier
|
| Warning |
Row 99, Column 29: "Strings must use singlequote."
quotes
|
| Error |
Row 100, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 147, Column 21: "Insert `·`"
prettier/prettier
|
| Error |
Row 148, Column 23: "Insert `·`"
prettier/prettier
|
| Error |
Row 152, Column 14: "Replace `·:·mvs(10)` with `:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 152, Column 24: "Missing trailing comma."
comma-dangle
|
| Error |
Row 158, Column 15: "Delete `·`"
prettier/prettier
|
| Error |
Row 159, Column 20: "Delete `·`"
prettier/prettier
|
| Error |
Row 160, Column 17: "Replace `·:·mvs(10)` with `:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 160, Column 27: "Missing trailing comma."
comma-dangle
|
| Error |
Row 166, Column 15: "Delete `·`"
prettier/prettier
|
| Error |
Row 167, Column 20: "Delete `·`"
prettier/prettier
|
| Error |
Row 168, Column 17: "Replace `·:·mvs(10)` with `:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 168, Column 27: "Missing trailing comma."
comma-dangle
|
| Error |
Row 174, Column 15: "Delete `·`"
prettier/prettier
|
| Error |
Row 175, Column 20: "Delete `·`"
prettier/prettier
|
| Error |
Row 176, Column 17: "Replace `·:·mvs(10)` with `:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 176, Column 27: "Missing trailing comma."
comma-dangle
|
| Error |
Row 182, Column 15: "Delete `·`"
prettier/prettier
|
| Warning |
Row 183, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 183, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 184, Column 17: "Delete `·`"
prettier/prettier
|
| Error |
Row 185, Column 16: "Delete `·`"
prettier/prettier
|
| Error |
Row 186, Column 16: "Replace `·:·colors.typeHeader` with `:·colors.typeHeader,`"
prettier/prettier
|
| Warning |
Row 186, Column 36: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Warning |
Row 2, Column 31: "'Text' is defined but never used."
no-unused-vars
|
| 2 |
import {FlatList, StyleSheet, Text, View} from 'react-native'; |
| 3 |
import colors from '../../../config/colors'; |
| 4 |
import Header from '../../../components/molecules/header/header-1x'; |
| Error |
Row 5, Column 9: "Replace `·mvs·}·from·'../../../config/metrices'` with `mvs}·from·'../../../config/metrices';`"
prettier/prettier
|
| Warning |
Row 5, Column 47: "Missing semicolon."
semi
|
| 5 |
import { mvs } from '../../../config/metrices' |
| 6 |
import Regular from '../../../presentation/typography/regular-text'; |
| 7 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 8 |
import {connect} from 'react-redux'; |
| 9 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 10 |
import Medium from '../../../presentation/typography/medium-text'; |
| 11 |
|
| 12 |
const WalletHistory = props => { |
| 13 |
const {fetchWalletHistory, wallet_history} = props; |
| Warning |
Row 14, Column 9: "'history' is assigned a value but never used."
no-unused-vars
|
| 14 |
const history = [ |
| 15 |
{type: 'Invitation', trip: 'NA', date: '24 / 10 / 2021', total: 'US$ 30'}, |
| 16 |
{ |
| 17 |
type: 'Delivery', |
| 18 |
trip: 'Kw - Kw', |
| 19 |
date: '24 / 10 / 2021', |
| 20 |
total: 'US$ 30', |
| 21 |
}, |
| 22 |
{type: 'Refund', trip: 'Kw - USA', date: '24 / 10 / 2021', total: 'US$ 30'}, |
| 23 |
{type: 'Top-Up', trip: 'NA', date: '24 / 10 / 2021', total: 'US$ 30'}, |
| 24 |
{type: 'Cashout', trip: 'NA', date: '24 / 10 / 2021', total: 'US$ 30'}, |
| 25 |
{type: 'Payout', trip: 'Kw - USA', date: '24 / 10 / 2021', total: 'US$ 30'}, |
| 26 |
]; |
| 27 |
|
| 28 |
React.useEffect(() => { |
| 29 |
fetchWalletHistory(); |
| Error |
Row 30, Column 6: "React Hook React.useEffect has a missing dependency: 'fetchWalletHistory'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 30 |
}, []); |
| 31 |
|
| 32 |
return ( |
| 33 |
<View style={styles.mainContainer}> |
| Error |
Row 34, Column 14: "Replace `⏎········{...props}⏎········title="Wallet·History"⏎········allowBackBtn⏎········userIcon·=·{false}⏎·····` with `·{...props}·title="Wallet·History"·allowBackBtn·userIcon={false}`"
prettier/prettier
|
| 34 |
<Header |
| 35 |
{...props} |
| 36 |
title="Wallet History" |
| 37 |
allowBackBtn |
| 38 |
userIcon = {false} |
| 39 |
/> |
| 40 |
<View style={styles.container}> |
| 41 |
{/* <Regular |
| 42 |
label={TAKE_TO_CONSTANT.convertUpperCase('Wallet History')} |
| 43 |
style={styles.mainTitle} |
| 44 |
/> */} |
| 45 |
|
| 46 |
<View style={styles.table}> |
| 47 |
<View style={styles.header}> |
| Error |
Row 48, Column 58: "Delete `·`"
prettier/prettier
|
| 48 |
<View style={{...styles.type, backgroundColor : colors.white}}> |
| 49 |
<Regular label="Type" style={styles.Txt} /> |
| 50 |
</View> |
| Error |
Row 51, Column 58: "Delete `·`"
prettier/prettier
|
| 51 |
<View style={{...styles.trip, backgroundColor : colors.white}}> |
| 52 |
<Regular label="Trip" style={styles.Txt} /> |
| 53 |
</View> |
| Error |
Row 54, Column 58: "Delete `·`"
prettier/prettier
|
| 54 |
<View style={{...styles.date, backgroundColor : colors.white}}> |
| 55 |
<Regular label="Date" style={styles.Txt} /> |
| 56 |
</View> |
| Warning |
Row 57, Column 26: "Inline style: { borderWidth: 0 }"
react-native/no-inline-styles
|
| Error |
Row 57, Column 55: "Replace `·:` with `:·`"
prettier/prettier
|
| 57 |
<View style={{...styles.total, borderWidth :0}}> |
| Error |
Row 58, Column 23: "Replace `⏎················label="Total"⏎················style={{...styles.Txt}}⏎·············` with `·label="Total"·style={{...styles.Txt}}`"
prettier/prettier
|
| 58 |
<Regular |
| 59 |
label="Total" |
| 60 |
style={{...styles.Txt}} |
| 61 |
/> |
| 62 |
</View> |
| 63 |
</View> |
| 64 |
|
| 65 |
<FlatList |
| 66 |
data={wallet_history.data} |
| Error |
Row 67, Column 34: "Replace `·=·{{paddingBottom·:·mvs(10),·paddingHorizontal·:·mvs(1)` with `={{⏎··············paddingBottom:·mvs(10),⏎··············paddingHorizontal:·mvs(1),⏎············`"
prettier/prettier
|
| 67 |
contentContainerStyle = {{paddingBottom : mvs(10), paddingHorizontal : mvs(1)}} |
| 68 |
renderItem={({item, index}) => ( |
| 69 |
<View style={styles.header}> |
| 70 |
{console.log(mvs(12))} |
| 71 |
<View style={{...styles.type}}> |
| 72 |
<Regular label={item?.type} style={styles.Txt} /> |
| 73 |
</View> |
| 74 |
<View style={styles.trip}> |
| 75 |
<Regular |
| 76 |
onPress={() => { |
| Warning |
Row 77, Column 33: "Expected '===' and instead saw '=='."
eqeqeq
|
| 77 |
item.type == 'Delivery' |
| Error |
Row 78, Column 77: "Replace `{order_id:item?.order_id` with `·{⏎····························order_id:·item?.order_id,⏎··························`"
prettier/prettier
|
| 78 |
? props.navigation.navigate('walletdeliverydetails',{order_id:item?.order_id}) |
| Warning |
Row 79, Column 37: "Expected '===' and instead saw '=='."
eqeqeq
|
| 79 |
: item.type == 'Refund' |
| Error |
Row 80, Column 75: "Replace `{order_id:item?.order_id` with `·{⏎····························order_id:·item?.order_id,⏎··························`"
prettier/prettier
|
| 80 |
? props.navigation.navigate('walletrefunddetails',{order_id:item?.order_id}) |
| Warning |
Row 81, Column 37: "Expected '===' and instead saw '=='."
eqeqeq
|
| 81 |
: item.type == 'Payout' |
| Error |
Row 82, Column 75: "Replace `{order_id:item?.order_id` with `·{⏎····························order_id:·item?.order_id,⏎··························`"
prettier/prettier
|
| 82 |
? props.navigation.navigate('walletpayoutdetails',{order_id:item?.order_id}) |
| 83 |
: null; |
| 84 |
}} |
| 85 |
label={item?.trip} |
| Warning |
Row 86, Column 39: "Expected '===' and instead saw '=='."
eqeqeq
|
| 86 |
style={item?.trip == 'N-A' ? styles.Txt : styles.Txttrip} |
| 87 |
/> |
| 88 |
</View> |
| 89 |
<View style={styles.date}> |
| Error |
Row 90, Column 27: "Replace `·label={TAKE_TO_CONSTANT.getDate(item?.trn_date,'DD·/·MM·/·YYYY')}·style={styles.Txt}` with `⏎····················label={TAKE_TO_CONSTANT.getDate(⏎······················item?.trn_date,⏎······················'DD·/·MM·/·YYYY',⏎····················)}⏎····················style={styles.Txt}⏎·················`"
prettier/prettier
|
| 90 |
<Regular label={TAKE_TO_CONSTANT.getDate(item?.trn_date,'DD / MM / YYYY')} style={styles.Txt} /> |
| 91 |
</View> |
| 92 |
<View style={styles.total}> |
| 93 |
<Medium |
| Warning |
Row 94, Column 36: "Missing radix parameter."
radix
|
| 94 |
label={` US$ ${parseInt(item.total)}`} |
| Warning |
Row 95, Column 28: "Inline style: {
color: '!item?.is_credit\n' +
" // item?.type == 'Cashout' || item?.type == 'Payout'\n" +
' ? "#EB1111"\n' +
' : colors.primary'
}"
react-native/no-inline-styles
|
| 95 |
style={{ |
| 96 |
...styles.Txt, |
| Error |
Row 97, Column 29: "Insert `·`"
prettier/prettier
|
| 97 |
color:!item?.is_credit |
| Error |
Row 98, Column 24: "Insert `·?`"
prettier/prettier
|
| 98 |
// item?.type == 'Cashout' || item?.type == 'Payout' |
| Error |
Row 99, Column 27: "Replace `?·"#EB1111"` with `'#EB1111'`"
prettier/prettier
|
| Warning |
Row 99, Column 29: "Strings must use singlequote."
quotes
|
| 99 |
? "#EB1111" |
| Error |
Row 100, Column 1: "Delete `··`"
prettier/prettier
|
| 100 |
: colors.primary, |
| 101 |
}} |
| 102 |
/> |
| 103 |
</View> |
| 104 |
</View> |
| 105 |
)} |
| 106 |
/> |
| 107 |
</View> |
| 108 |
</View> |
| 109 |
</View> |
| 110 |
); |
| 111 |
}; |
| 112 |
|
| 113 |
const mapStateToProps = state => ({ |
| 114 |
wallet_history: state.wallet.wallet_history, |
| 115 |
}); |
| 116 |
|
| 117 |
const mapDispatchToProps = { |
| 118 |
fetchWalletHistory: () => TAKE_TO_ACTIONS.fetchWalletHistory(), |
| 119 |
}; |
| 120 |
|
| 121 |
export default connect(mapStateToProps, mapDispatchToProps)(WalletHistory); |
| 122 |
|
| 123 |
const styles = StyleSheet.create({ |
| 124 |
mainContainer: { |
| 125 |
flex: 1, |
| 126 |
backgroundColor: colors.white, |
| 127 |
}, |
| 128 |
container: { |
| 129 |
flex: 1, |
| 130 |
paddingHorizontal: mvs(22), |
| 131 |
}, |
| 132 |
mainTitle: { |
| 133 |
fontSize: mvs(15), |
| 134 |
color: colors.headerTitle, |
| 135 |
marginTop: mvs(32), |
| 136 |
textDecorationLine: 'underline', |
| 137 |
}, |
| 138 |
table: { |
| 139 |
//height : mvs(222), |
| 140 |
width: '100%', |
| 141 |
//marginTop: mvs(21), |
| 142 |
//borderWidth:1 |
| 143 |
}, |
| 144 |
header: { |
| 145 |
height: mvs(38), |
| 146 |
width: '100%', |
| Error |
Row 147, Column 21: "Insert `·`"
prettier/prettier
|
| 147 |
paddingVertical:mvs(2), |
| Error |
Row 148, Column 23: "Insert `·`"
prettier/prettier
|
| 148 |
paddingHorizontal:mvs(2), |
| 149 |
//borderWidth : 1, |
| 150 |
flexDirection: 'row', |
| 151 |
justifyContent: 'space-between', |
| Error |
Row 152, Column 14: "Replace `·:·mvs(10)` with `:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 152, Column 24: "Missing trailing comma."
comma-dangle
|
| 152 |
marginTop : mvs(10) |
| 153 |
}, |
| 154 |
type: { |
| 155 |
height: '100%', |
| 156 |
width: '25%', |
| 157 |
justifyContent: 'center', |
| Error |
Row 158, Column 15: "Delete `·`"
prettier/prettier
|
| 158 |
alignItems : 'center', |
| Error |
Row 159, Column 20: "Delete `·`"
prettier/prettier
|
| 159 |
backgroundColor : colors.secondary, |
| Error |
Row 160, Column 17: "Replace `·:·mvs(10)` with `:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 160, Column 27: "Missing trailing comma."
comma-dangle
|
| 160 |
borderRadius : mvs(10) |
| 161 |
}, |
| 162 |
trip: { |
| 163 |
height: '100%', |
| 164 |
width: '20%', |
| 165 |
justifyContent: 'center', |
| Error |
Row 166, Column 15: "Delete `·`"
prettier/prettier
|
| 166 |
alignItems : 'center', |
| Error |
Row 167, Column 20: "Delete `·`"
prettier/prettier
|
| 167 |
backgroundColor : colors.secondary, |
| Error |
Row 168, Column 17: "Replace `·:·mvs(10)` with `:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 168, Column 27: "Missing trailing comma."
comma-dangle
|
| 168 |
borderRadius : mvs(10) |
| 169 |
}, |
| 170 |
date: { |
| 171 |
height: '100%', |
| 172 |
width: '28%', |
| 173 |
justifyContent: 'center', |
| Error |
Row 174, Column 15: "Delete `·`"
prettier/prettier
|
| 174 |
alignItems : 'center', |
| Error |
Row 175, Column 20: "Delete `·`"
prettier/prettier
|
| 175 |
backgroundColor : colors.secondary, |
| Error |
Row 176, Column 17: "Replace `·:·mvs(10)` with `:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 176, Column 27: "Missing trailing comma."
comma-dangle
|
| 176 |
borderRadius : mvs(10) |
| 177 |
}, |
| 178 |
total: { |
| 179 |
height: '100%', |
| 180 |
width: '17%', |
| 181 |
justifyContent: 'center', |
| Error |
Row 182, Column 15: "Delete `·`"
prettier/prettier
|
| 182 |
alignItems : 'center', |
| Warning |
Row 183, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 183, Column 1: "Delete `··`"
prettier/prettier
|
| 183 |
|
| Error |
Row 184, Column 17: "Delete `·`"
prettier/prettier
|
| 184 |
borderRadius : mvs(10), |
| Error |
Row 185, Column 16: "Delete `·`"
prettier/prettier
|
| 185 |
borderWidth : StyleSheet.hairlineWidth, |
| Error |
Row 186, Column 16: "Replace `·:·colors.typeHeader` with `:·colors.typeHeader,`"
prettier/prettier
|
| Warning |
Row 186, Column 36: "Missing trailing comma."
comma-dangle
|
| 186 |
borderColor : colors.typeHeader |
| 187 |
}, |
| 188 |
Txt: { |
| 189 |
fontSize: mvs(12), |
| 190 |
color: colors.headerTitle, |
| 191 |
}, |
| 192 |
Txttrip: { |
| 193 |
fontSize: mvs(12), |
| 194 |
textDecorationLine: 'underline', |
| 195 |
color: colors.primary, |
| 196 |
}, |
| 197 |
Txttotal: { |
| 198 |
fontSize: mvs(12), |
| 199 |
color: colors.pick, |
| 200 |
}, |
| 201 |
}); |
| 202 |
|
|
| Severity |
Rule |
| Warning |
Row 2, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| Warning |
Row 5, Column 3: "'Image' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 3: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 19: "Insert `,`"
prettier/prettier
|
| Warning |
Row 10, Column 19: "Missing trailing comma."
comma-dangle
|
| Error |
Row 12, Column 9: "Replace `·mvs·}·from·'../../../config/metrices'` with `mvs}·from·'../../../config/metrices';`"
prettier/prettier
|
| Warning |
Row 12, Column 47: "Missing semicolon."
semi
|
| Warning |
Row 14, Column 9: "'Tick' is defined but never used."
no-unused-vars
|
| Warning |
Row 15, Column 9: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Warning |
Row 16, Column 9: "'InfoField' is defined but never used."
no-unused-vars
|
| Warning |
Row 21, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| Warning |
Row 22, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Error |
Row 29, Column 71: "Insert `;`"
prettier/prettier
|
| Warning |
Row 29, Column 71: "Missing semicolon."
semi
|
| Error |
Row 31, Column 9: "Replace `·Colors·` with `Colors`"
prettier/prettier
|
| Warning |
Row 31, Column 10: "'Colors' is defined but never used."
no-unused-vars
|
| Error |
Row 35, Column 10: "Replace `wallet_payout,·fetchWalletPayoutDetails,·navigation,·route,·wallet_delivery,·wallet_refund,profileData` with `⏎····wallet_payout,⏎····fetchWalletPayoutDetails,⏎····navigation,⏎····route,⏎····wallet_delivery,⏎····wallet_refund,⏎····profileData,⏎··`"
prettier/prettier
|
| Warning |
Row 35, Column 10: "'wallet_payout' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 35, Column 25: "'fetchWalletPayoutDetails' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 35, Column 51: "'navigation' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 36, Column 10: "'order_id' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 37, Column 28: "["car_active"] is better written in dot notation."
dot-notation
|
| Warning |
Row 38, Column 33: "["location_active"] is better written in dot notation."
dot-notation
|
| Error |
Row 38, Column 51: "Insert `;`"
prettier/prettier
|
| Warning |
Row 38, Column 51: "Missing semicolon."
semi
|
| Warning |
Row 39, Column 9: "'LocationPink' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 39, Column 37: "["location_green"] is better written in dot notation."
dot-notation
|
| Warning |
Row 40, Column 22: "["check"] is better written in dot notation."
dot-notation
|
| Error |
Row 40, Column 30: "Insert `;`"
prettier/prettier
|
| Warning |
Row 40, Column 30: "Missing semicolon."
semi
|
| Error |
Row 44, Column 1: "Insert `·`"
prettier/prettier
|
| Error |
Row 53, Column 19: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 67, Column 44: "Delete `·`"
prettier/prettier
|
| Warning |
Row 76, Column 26: "Comparing to itself is potentially pointless."
no-self-compare
|
| Warning |
Row 76, Column 28: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 90, Column 36: "Replace `·bg_img={wallet_refund?.order_by?.user_image}·containerStyle={styles.USER_IMAGE}` with `⏎····················bg_img={wallet_refund?.order_by?.user_image}⏎····················containerStyle={styles.USER_IMAGE}⏎··················`"
prettier/prettier
|
| Error |
Row 109, Column 9: "Replace `·⏎` with `··⏎··`"
prettier/prettier
|
| Warning |
Row 109, Column 38: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 111, Column 11: "Replace `singleInput·=·` with `··singleInput=`"
prettier/prettier
|
| Error |
Row 112, Column 1: "Replace `··········title·=·` with `············title=`"
prettier/prettier
|
| Error |
Row 113, Column 11: "Replace `value·=·` with `··value=`"
prettier/prettier
|
| Error |
Row 114, Column 11: "Replace `multiline·=·` with `··multiline=`"
prettier/prettier
|
| Error |
Row 115, Column 1: "Replace `··········textStyle·=·{{color·` with `············textStyle={{color`"
prettier/prettier
|
| Error |
Row 116, Column 1: "Replace `··········editable·=·` with `············editable=`"
prettier/prettier
|
| Error |
Row 117, Column 1: "Replace `··········titleStyle·=·{{fontSize·` with `············titleStyle={{fontSize`"
prettier/prettier
|
| Error |
Row 118, Column 11: "Replace `style·=·{{marginTop·` with `··style={{marginTop`"
prettier/prettier
|
| Error |
Row 119, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 119, Column 11: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Error |
Row 120, Column 13: "Delete `··`"
prettier/prettier
|
| Error |
Row 121, Column 13: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 126, Column 23: "Replace `·label="Urgent·Delivery"·style={{...styles.label,·color·:·colors.pink}}` with `⏎················label="Urgent·Delivery"⏎················style={{...styles.label,·color:·colors.pink}}⏎·············`"
prettier/prettier
|
| Error |
Row 128, Column 24: "Replace `"Within·24·hours"` with `'Within·24·hours'`"
prettier/prettier
|
| Warning |
Row 128, Column 24: "Strings must use singlequote."
quotes
|
| Error |
Row 129, Column 47: "Delete `·`"
prettier/prettier
|
| Error |
Row 160, Column 24: "Replace `·=·{{...styles.line,·marginTop·:·mvs(16)}}` with `={{...styles.line,·marginTop:·mvs(16)}}·`"
prettier/prettier
|
| Error |
Row 164, Column 11: "Replace `singleInput·=·` with `··singleInput=`"
prettier/prettier
|
| Error |
Row 165, Column 11: "Replace `title·=·` with `··title=`"
prettier/prettier
|
| Error |
Row 166, Column 11: "Replace `value·=·` with `··value=`"
prettier/prettier
|
| Error |
Row 167, Column 11: "Replace `multiline·=·` with `··multiline=`"
prettier/prettier
|
| Error |
Row 168, Column 1: "Replace `··········textStyle·=·{{color·` with `············textStyle={{color`"
prettier/prettier
|
| Error |
Row 169, Column 11: "Replace `editable·=·` with `··editable=`"
prettier/prettier
|
| Error |
Row 170, Column 11: "Replace `style·=·{{marginTop·` with `··style={{marginTop`"
prettier/prettier
|
| Error |
Row 171, Column 11: "Replace `titleStyle·=·{{fontSize·` with `··titleStyle={{fontSize`"
prettier/prettier
|
| Error |
Row 174, Column 1: "Replace `⏎··········prettier/prettier
|
| Error |
Row 176, Column 1: "Replace `··········prettier/prettier
|
| Error |
Row 177, Column 11: "Replace `prettier/prettier
|
| Error |
Row 178, Column 26: "Replace `·=·{{...styles.infoContainer,·marginTop·` with `={{...styles.infoContainer,·marginTop`"
prettier/prettier
|
| Error |
Row 179, Column 1: "Replace `··················prettier/prettier
|
| Error |
Row 180, Column 1: "Replace `··················prettier/prettier
|
| Warning |
Row 180, Column 37: "Strings must use singlequote."
quotes
|
| Error |
Row 183, Column 26: "Replace `·=·{{...styles.infoContainer,·marginTop·` with `={{...styles.infoContainer,·marginTop`"
prettier/prettier
|
| Error |
Row 184, Column 1: "Replace `··················prettier/prettier
|
| Error |
Row 185, Column 1: "Replace `··················prettier/prettier
|
| Warning |
Row 185, Column 37: "Strings must use singlequote."
quotes
|
| Error |
Row 188, Column 26: "Replace `·=·{{...styles.infoContainer,·marginTop·` with `={{...styles.infoContainer,·marginTop`"
prettier/prettier
|
| Error |
Row 189, Column 1: "Replace `··················prettier/prettier
|
| Error |
Row 190, Column 1: "Replace `··················prettier/prettier
|
| Warning |
Row 190, Column 37: "Strings must use singlequote."
quotes
|
| Error |
Row 193, Column 26: "Replace `·=·{{...styles.infoContainer,·marginTop·` with `={{...styles.infoContainer,·marginTop`"
prettier/prettier
|
| Error |
Row 194, Column 1: "Replace `··················prettier/prettier
|
| Error |
Row 195, Column 1: "Replace `··················prettier/prettier
|
| Warning |
Row 195, Column 37: "Strings must use singlequote."
quotes
|
| Error |
Row 198, Column 26: "Replace `·=·{{...styles.infoContainer,·marginTop·` with `={{...styles.infoContainer,·marginTop`"
prettier/prettier
|
| Error |
Row 199, Column 17: "Replace `··prettier/prettier
|
| Error |
Row 200, Column 1: "Replace `··················prettier/prettier
|
| Warning |
Row 200, Column 37: "Strings must use singlequote."
quotes
|
| Error |
Row 203, Column 26: "Replace `·=·{{...styles.infoContainer,·marginTop·` with `={{...styles.infoContainer,·marginTop`"
prettier/prettier
|
| Error |
Row 204, Column 17: "Replace `··prettier/prettier
|
| Error |
Row 205, Column 1: "Replace `··················prettier/prettier
|
| Warning |
Row 205, Column 37: "Strings must use singlequote."
quotes
|
| Warning |
Row 208, Column 15: "Empty components are self-closing"
react/self-closing-comp
|
| Error |
Row 208, Column 26: "Replace `·=·{{...styles.line,·marginTop·` with `={{...styles.line,·marginTop`"
prettier/prettier
|
| Error |
Row 210, Column 26: "Replace `·=·{{...styles.infoContainer,·marginTop·` with `={{...styles.infoContainer,·marginTop`"
prettier/prettier
|
| Error |
Row 211, Column 17: "Replace `··` with `prettier/prettier
|
| Error |
Row 212, Column 17: "Replace `··` with `/>⏎················prettier/prettier
|
| Warning |
Row 212, Column 37: "Strings must use singlequote."
quotes
|
| Warning |
Row 213, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 213, Column 1: "Replace `··················` with `················/>`"
prettier/prettier
|
| Warning |
Row 214, Column 22: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 214, Column 22: "Delete `·`"
prettier/prettier
|
| Error |
Row 215, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 218, Column 22: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 219, Column 21: "Replace `·label·=·"Payment·Method"·style·=·{{color·:·colors.typeHeader,·fontSize·:·mvs(20)}}` with `⏎··············label="Payment·Method"⏎··············style={{color:·colors.typeHeader,·fontSize:·mvs(20)}}⏎············`"
prettier/prettier
|
| Error |
Row 220, Column 24: "Replace `·=·` with `=`"
prettier/prettier
|
| Warning |
Row 221, Column 15: "Empty components are self-closing"
react/self-closing-comp
|
| Error |
Row 222, Column 1: "Replace `··············content·=·` with `················content=`"
prettier/prettier
|
| Error |
Row 223, Column 1: "Replace `··············style·=·{{color·:·colors.primary,·fontSize·` with `················style={{color:·colors.primary,·fontSize`"
prettier/prettier
|
| Error |
Row 224, Column 15: "Replace `highlightText·=·` with `··highlightText=`"
prettier/prettier
|
| Error |
Row 225, Column 1: "Replace `··············highlightTextStyle·=·{{color·:·colors.typeHeader,·fontSize·:·mvs(15)}}⏎··············` with `················highlightTextStyle={{⏎··················color:·colors.typeHeader,⏎··················fontSize:·mvs(15),`"
prettier/prettier
|
| Warning |
Row 226, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 227, Column 15: "Insert `··}}`"
prettier/prettier
|
| Error |
Row 228, Column 26: "Replace `·=·{{position·:·'absolute',·right·` with `={{position:·'absolute',·right`"
prettier/prettier
|
| Warning |
Row 228, Column 30: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| Error |
Row 229, Column 1: "Replace `··············prettier/prettier
|
| Error |
Row 230, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 235, Column 11: "Replace `title·=·` with `··title=`"
prettier/prettier
|
| Error |
Row 236, Column 11: "Replace `titleStyle·=·{{color·` with `··titleStyle={{color`"
prettier/prettier
|
| Error |
Row 237, Column 11: "Replace `style·=·{{marginTop·:·mvs(30),·marginBottom·:·mvs(40),·backgroundColor·:·colors.pink` with `··style={{⏎··············marginTop:·mvs(30),⏎··············marginBottom:·mvs(40),⏎··············backgroundColor:·colors.pink,⏎············`"
prettier/prettier
|
| Warning |
Row 239, Column 16: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 239, Column 16: "Delete `·`"
prettier/prettier
|
| Error |
Row 254, Column 24: "Replace `⏎··mapStateToProps,⏎··mapDispatchToProps,⏎` with `mapStateToProps,·mapDispatchToProps`"
prettier/prettier
|
| Error |
Row 262, Column 20: "Replace `·:·colors.white` with `:·colors.white,`"
prettier/prettier
|
| Warning |
Row 262, Column 35: "Missing trailing comma."
comma-dangle
|
| Error |
Row 354, Column 15: "Delete `·`"
prettier/prettier
|
| Error |
Row 355, Column 16: "Replace `·:·mvs(134)` with `:·mvs(134),`"
prettier/prettier
|
| Warning |
Row 355, Column 27: "Missing trailing comma."
comma-dangle
|
| Error |
Row 364, Column 12: "Replace `"100%"` with `'100%'`"
prettier/prettier
|
| Warning |
Row 364, Column 12: "Strings must use singlequote."
quotes
|
| Error |
Row 373, Column 13: "Delete `·`"
prettier/prettier
|
| Error |
Row 374, Column 9: "Replace `·:·0` with `:·0,`"
prettier/prettier
|
| Warning |
Row 374, Column 13: "Missing trailing comma."
comma-dangle
|
| Error |
Row 394, Column 17: "Delete `·`"
prettier/prettier
|
| Error |
Row 433, Column 10: "Delete `·`"
prettier/prettier
|
| Error |
Row 436, Column 14: "Replace `·:·mvs(46)` with `:·mvs(46),`"
prettier/prettier
|
| Warning |
Row 436, Column 24: "Missing trailing comma."
comma-dangle
|
| Error |
Row 439, Column 10: "Delete `·`"
prettier/prettier
|
| Error |
Row 440, Column 18: "Delete `·`"
prettier/prettier
|
| Error |
Row 441, Column 19: "Delete `·`"
prettier/prettier
|
| Error |
Row 444, Column 11: "Delete `·`"
prettier/prettier
|
| Error |
Row 445, Column 10: "Delete `·`"
prettier/prettier
|
| Error |
Row 446, Column 22: "Delete `·`"
prettier/prettier
|
| Error |
Row 447, Column 14: "Delete `·`"
prettier/prettier
|
| Error |
Row 448, Column 17: "Delete `·`"
prettier/prettier
|
| Error |
Row 449, Column 16: "Delete `·`"
prettier/prettier
|
| Error |
Row 450, Column 16: "Delete `·`"
prettier/prettier
|
| Error |
Row 451, Column 19: "Replace `·:·"center"` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 451, Column 22: "Strings must use singlequote."
quotes
|
| Warning |
Row 451, Column 30: "Missing trailing comma."
comma-dangle
|
| Error |
Row 456, Column 10: "Delete `·`"
prettier/prettier
|
| Error |
Row 457, Column 20: "Delete `·`"
prettier/prettier
|
| Error |
Row 458, Column 14: "Delete `·`"
prettier/prettier
|
| Error |
Row 464, Column 11: "Delete `·`"
prettier/prettier
|
| Error |
Row 465, Column 10: "Delete `·`"
prettier/prettier
|
| Error |
Row 466, Column 14: "Delete `·`"
prettier/prettier
|
| Error |
Row 467, Column 20: "Delete `·`"
prettier/prettier
|
| Error |
Row 468, Column 17: "Delete `·`"
prettier/prettier
|
| Error |
Row 469, Column 19: "Delete `·`"
prettier/prettier
|
| Error |
Row 470, Column 22: "Replace `·:·mvs(10)` with `:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 470, Column 32: "Missing trailing comma."
comma-dangle
|
| Error |
Row 473, Column 16: "Replace `·:·mvs(0.5),·` with `:·mvs(0.5),`"
prettier/prettier
|
| Warning |
Row 473, Column 28: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 474, Column 14: "Replace `·:·mvs(30),·` with `:·mvs(30),`"
prettier/prettier
|
| Warning |
Row 474, Column 25: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 475, Column 18: "Replace `·:·mvs(21),·` with `:·mvs(21),`"
prettier/prettier
|
| Warning |
Row 475, Column 29: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 476, Column 22: "Delete `·`"
prettier/prettier
|
| Error |
Row 477, Column 17: "Delete `·`"
prettier/prettier
|
| Error |
Row 478, Column 16: "Replace `·:·colors.doted` with `:·colors.doted,`"
prettier/prettier
|
| Warning |
Row 478, Column 31: "Missing trailing comma."
comma-dangle
|
| Error |
Row 479, Column 4: "Insert `,`"
prettier/prettier
|
| Warning |
Row 479, Column 4: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| Warning |
Row 2, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| 2 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 3 |
import React from 'react'; |
| 4 |
import { |
| Warning |
Row 5, Column 3: "'Image' is defined but never used."
no-unused-vars
|
| 5 |
Image, |
| Warning |
Row 6, Column 3: "'ImageBackground' is defined but never used."
no-unused-vars
|
| 6 |
ImageBackground, |
| 7 |
ScrollView, |
| 8 |
StyleSheet, |
| 9 |
View, |
| Error |
Row 10, Column 19: "Insert `,`"
prettier/prettier
|
| Warning |
Row 10, Column 19: "Missing trailing comma."
comma-dangle
|
| 10 |
TouchableOpacity |
| 11 |
} from 'react-native'; |
| Error |
Row 12, Column 9: "Replace `·mvs·}·from·'../../../config/metrices'` with `mvs}·from·'../../../config/metrices';`"
prettier/prettier
|
| Warning |
Row 12, Column 47: "Missing semicolon."
semi
|
| 12 |
import { mvs } from '../../../config/metrices' |
| 13 |
import {connect} from 'react-redux'; |
| Warning |
Row 14, Column 9: "'Tick' is defined but never used."
no-unused-vars
|
| 14 |
import {Tick} from '../../../../resource/assets/common-icons'; |
| Warning |
Row 15, Column 9: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 15 |
import {TAKE_TO_IMAGES} from '../../../../resource/assets/image_resouce'; |
| Warning |
Row 16, Column 9: "'InfoField' is defined but never used."
no-unused-vars
|
| 16 |
import {InfoField} from '../../../components/atoms/order-info-field'; |
| 17 |
import ImagePlaceholder from '../../../components/atoms/Placeholder'; |
| 18 |
import DualText from '../../../components/molecules/dual-text/dual-text'; |
| 19 |
import Header from '../../../components/molecules/header/header-1x'; |
| 20 |
import colors from '../../../config/colors'; |
| Warning |
Row 21, Column 8: "'fonts' is defined but never used."
no-unused-vars
|
| 21 |
import fonts from '../../../config/fonts'; |
| Warning |
Row 22, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| 22 |
import Medium from '../../../presentation/typography/medium-text'; |
| 23 |
import Regular from '../../../presentation/typography/regular-text'; |
| 24 |
import InputWithTitle from '../../../components/molecules/input-with-title'; |
| 25 |
import ProductInfo from '../../../components/molecules/product-info'; |
| 26 |
import OrderDestination from '../../../components/atoms/OrderDestination'; |
| 27 |
import OrderDestinationAddress from '../../../components/atoms/OrderDestinationAddress'; |
| 28 |
import * as Images from '../../../../resource/assets/order-car-icons'; |
| Error |
Row 29, Column 71: "Insert `;`"
prettier/prettier
|
| Warning |
Row 29, Column 71: "Missing semicolon."
semi
|
| 29 |
import * as SVGS from '../../../../resource/assets/order-policy-icons' |
| 30 |
import * as ImagesCommon from '../../../../resource/assets/common-icons'; |
| Error |
Row 31, Column 9: "Replace `·Colors·` with `Colors`"
prettier/prettier
|
| Warning |
Row 31, Column 10: "'Colors' is defined but never used."
no-unused-vars
|
| 31 |
import { Colors } from 'react-native/Libraries/NewAppScreen'; |
| 32 |
import Buttons from '../../../components/atoms/Button'; |
| 33 |
|
| 34 |
const WalletPayoutDetail = props => { |
| Error |
Row 35, Column 10: "Replace `wallet_payout,·fetchWalletPayoutDetails,·navigation,·route,·wallet_delivery,·wallet_refund,profileData` with `⏎····wallet_payout,⏎····fetchWalletPayoutDetails,⏎····navigation,⏎····route,⏎····wallet_delivery,⏎····wallet_refund,⏎····profileData,⏎··`"
prettier/prettier
|
| Warning |
Row 35, Column 10: "'wallet_payout' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 35, Column 25: "'fetchWalletPayoutDetails' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 35, Column 51: "'navigation' is assigned a value but never used."
no-unused-vars
|
| 35 |
const {wallet_payout, fetchWalletPayoutDetails, navigation, route, wallet_delivery, wallet_refund,profileData} = props; |
| Warning |
Row 36, Column 10: "'order_id' is assigned a value but never used."
no-unused-vars
|
| 36 |
const {order_id} = route?.params; |
| Warning |
Row 37, Column 28: "["car_active"] is better written in dot notation."
dot-notation
|
| 37 |
const CarActive = Images['car_active']; |
| Warning |
Row 38, Column 33: "["location_active"] is better written in dot notation."
dot-notation
|
| Error |
Row 38, Column 51: "Insert `;`"
prettier/prettier
|
| Warning |
Row 38, Column 51: "Missing semicolon."
semi
|
| 38 |
const LocationActive = Images['location_active'] |
| Warning |
Row 39, Column 9: "'LocationPink' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 39, Column 37: "["location_green"] is better written in dot notation."
dot-notation
|
| 39 |
const LocationPink = ImagesCommon['location_green']; |
| Warning |
Row 40, Column 22: "["check"] is better written in dot notation."
dot-notation
|
| Error |
Row 40, Column 30: "Insert `;`"
prettier/prettier
|
| Warning |
Row 40, Column 30: "Missing semicolon."
semi
|
| 40 |
const Check = SVGS['check'] |
| 41 |
|
| 42 |
React.useEffect(() => { |
| 43 |
// alert(order_id) |
| Error |
Row 44, Column 1: "Insert `·`"
prettier/prettier
|
| 44 |
// fetchWalletPayoutDetails(order_id); |
| 45 |
}, []); |
| 46 |
return ( |
| 47 |
<View style={styles.mainContainer}> |
| 48 |
<View style={styles.header}> |
| 49 |
<Header |
| 50 |
{...props} |
| 51 |
title="Wallet - Payout Details" |
| 52 |
allowBackBtn |
| Error |
Row 53, Column 19: "Replace `·=·` with `=`"
prettier/prettier
|
| 53 |
userIcon = {false} |
| 54 |
/> |
| 55 |
</View> |
| 56 |
|
| 57 |
<ScrollView showsVerticalScrollIndicator={false} style={styles.container}> |
| 58 |
<View style={styles.productMainContainer}> |
| 59 |
<View style={styles.productContainer}> |
| 60 |
<ProductInfo |
| 61 |
order_img={wallet_refund?.order_image} |
| 62 |
priceTitle={'Product Price'} |
| 63 |
//name={wallet_refund?.order_title} |
| 64 |
name="iPhone 13 Pro 128GB Sierra blue" |
| 65 |
total={`US$ ${wallet_refund?.order_price}`} |
| 66 |
reward={`US$ ${wallet_refund?.order_reward_price}`} |
| Error |
Row 67, Column 44: "Delete `·`"
prettier/prettier
|
| 67 |
detailsContainer={{marginLeft : mvs(30)}} |
| 68 |
/> |
| 69 |
</View> |
| 70 |
|
| 71 |
<View style={{paddingHorizontal: mvs(22)}}> |
| 72 |
<View style={styles.LOCATION_DESTINATION}> |
| 73 |
<View style={styles.SUB_LOCATION_DESTINATION}> |
| 74 |
<OrderDestination |
| 75 |
value={2} |
| Warning |
Row 76, Column 26: "Comparing to itself is potentially pointless."
no-self-compare
|
| Warning |
Row 76, Column 28: "Expected '===' and instead saw '=='."
eqeqeq
|
| 76 |
width={2 == 2 ? mvs(100) : mvs(50)} |
| 77 |
SVGFirst={CarActive} |
| 78 |
SVGSecond={LocationActive} |
| 79 |
/> |
| 80 |
<View style={{marginTop: mvs(8)}} /> |
| 81 |
<OrderDestinationAddress |
| 82 |
imageFrom={{uri: wallet_refund?.order_from_flag}} |
| 83 |
imageTo={{uri: wallet_refund?.order_to_flag}} |
| 84 |
label={`${wallet_refund?.order_from} - ${wallet_refund?.order_to}`} |
| 85 |
fontSize={12} |
| 86 |
/> |
| 87 |
</View> |
| 88 |
<TouchableOpacity style={styles.USER_IMAGE_CONTAINER}> |
| 89 |
<View style={styles.SUB_USER_IMAGE_CONTAINER}> |
| Error |
Row 90, Column 36: "Replace `·bg_img={wallet_refund?.order_by?.user_image}·containerStyle={styles.USER_IMAGE}` with `⏎····················bg_img={wallet_refund?.order_by?.user_image}⏎····················containerStyle={styles.USER_IMAGE}⏎··················`"
prettier/prettier
|
| 90 |
<ImagePlaceholder bg_img={wallet_refund?.order_by?.user_image} containerStyle={styles.USER_IMAGE}/> |
| 91 |
{/* <Image |
| 92 |
source={{uri: wallet_refund?.order_by?.user_image}} |
| 93 |
style={styles.USER_IMAGE} |
| 94 |
/> */} |
| 95 |
<Regular |
| 96 |
label={wallet_refund?.order_by?.user_name} |
| 97 |
style={{ |
| 98 |
...styles.CARD_CONTENT_LABLE, |
| 99 |
fontSize: mvs(12), |
| 100 |
}} |
| 101 |
/> |
| 102 |
</View> |
| 103 |
</TouchableOpacity> |
| 104 |
</View> |
| 105 |
</View> |
| 106 |
</View> |
| 107 |
|
| 108 |
<View style={styles.container1}> |
| Error |
Row 109, Column 9: "Replace `·⏎` with `··⏎··`"
prettier/prettier
|
| Warning |
Row 109, Column 38: "Trailing spaces not allowed."
no-trailing-spaces
|
| 109 |
<View style = {styles.line}/> |
| 110 |
<InputWithTitle |
| Error |
Row 111, Column 11: "Replace `singleInput·=·` with `··singleInput=`"
prettier/prettier
|
| 111 |
singleInput = {true} |
| Error |
Row 112, Column 1: "Replace `··········title·=·` with `············title=`"
prettier/prettier
|
| 112 |
title = "Product Details" |
| Error |
Row 113, Column 11: "Replace `value·=·` with `··value=`"
prettier/prettier
|
| 113 |
value = "Lorem ipsum" |
| Error |
Row 114, Column 11: "Replace `multiline·=·` with `··multiline=`"
prettier/prettier
|
| 114 |
multiline = {true} |
| Error |
Row 115, Column 1: "Replace `··········textStyle·=·{{color·` with `············textStyle={{color`"
prettier/prettier
|
| 115 |
textStyle = {{color : colors.primary}} |
| Error |
Row 116, Column 1: "Replace `··········editable·=·` with `············editable=`"
prettier/prettier
|
| 116 |
editable = {false} |
| Error |
Row 117, Column 1: "Replace `··········titleStyle·=·{{fontSize·` with `············titleStyle={{fontSize`"
prettier/prettier
|
| 117 |
titleStyle = {{fontSize : mvs(14)}} |
| Error |
Row 118, Column 11: "Replace `style·=·{{marginTop·` with `··style={{marginTop`"
prettier/prettier
|
| 118 |
style = {{marginTop : mvs(17)}} |
| Error |
Row 119, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 119, Column 11: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 119 |
singleInput={false} |
| Error |
Row 120, Column 13: "Delete `··`"
prettier/prettier
|
| 120 |
moreOrLess={true} |
| Error |
Row 121, Column 13: "Delete `⏎`"
prettier/prettier
|
| 121 |
/> |
| 122 |
|
| 123 |
|
| 124 |
<View style={styles.moreInfoContainer}> |
| 125 |
<View style={{...styles.infoContainer, marginTop: mvs(17)}}> |
| Error |
Row 126, Column 23: "Replace `·label="Urgent·Delivery"·style={{...styles.label,·color·:·colors.pink}}` with `⏎················label="Urgent·Delivery"⏎················style={{...styles.label,·color:·colors.pink}}⏎·············`"
prettier/prettier
|
| 126 |
<Regular label="Urgent Delivery" style={{...styles.label, color : colors.pink}} /> |
| 127 |
<Regular |
| Error |
Row 128, Column 24: "Replace `"Within·24·hours"` with `'Within·24·hours'`"
prettier/prettier
|
| Warning |
Row 128, Column 24: "Strings must use singlequote."
quotes
|
| 128 |
label={"Within 24 hours"} |
| Error |
Row 129, Column 47: "Delete `·`"
prettier/prettier
|
| 129 |
style={{...styles.value, color : colors.pink}} |
| 130 |
/> |
| 131 |
</View> |
| 132 |
|
| 133 |
{/* <View style={styles.line}></View> */} |
| 134 |
|
| 135 |
<View style={{...styles.infoContainer, marginTop: mvs(12)}}> |
| 136 |
<Regular label="Quantity" style={styles.label} /> |
| 137 |
<Regular |
| 138 |
label={wallet_delivery?.order_quantity} |
| 139 |
style={styles.value} |
| 140 |
/> |
| 141 |
</View> |
| 142 |
|
| 143 |
<View style={{...styles.infoContainer, marginTop: mvs(12)}}> |
| 144 |
<Regular label="Packaging" style={styles.label} /> |
| 145 |
<Regular |
| 146 |
label={ |
| 147 |
wallet_delivery?.order_packaging ? 'With box' : 'Without box' |
| 148 |
} |
| 149 |
style={styles.value} |
| 150 |
/> |
| 151 |
</View> |
| 152 |
|
| 153 |
<View style={{...styles.infoContainer, marginTop: mvs(12)}}> |
| 154 |
<Regular label="Where to buy" style={styles.label} /> |
| 155 |
<Regular |
| 156 |
label={wallet_delivery?.order_store_url} |
| 157 |
style={{...styles.value, color: colors.primary}} |
| 158 |
/> |
| 159 |
</View> |
| Error |
Row 160, Column 24: "Replace `·=·{{...styles.line,·marginTop·:·mvs(16)}}` with `={{...styles.line,·marginTop:·mvs(16)}}·`"
prettier/prettier
|
| 160 |
<View style = {{...styles.line, marginTop : mvs(16)}}/> |
| 161 |
</View> |
| 162 |
|
| 163 |
<InputWithTitle |
| Error |
Row 164, Column 11: "Replace `singleInput·=·` with `··singleInput=`"
prettier/prettier
|
| 164 |
singleInput = {true} |
| Error |
Row 165, Column 11: "Replace `title·=·` with `··title=`"
prettier/prettier
|
| 165 |
title = "Buying Instructions" |
| Error |
Row 166, Column 11: "Replace `value·=·` with `··value=`"
prettier/prettier
|
| 166 |
value = "Lorem ipsum" |
| Error |
Row 167, Column 11: "Replace `multiline·=·` with `··multiline=`"
prettier/prettier
|
| 167 |
multiline = {true} |
| Error |
Row 168, Column 1: "Replace `··········textStyle·=·{{color·` with `············textStyle={{color`"
prettier/prettier
|
| 168 |
textStyle = {{color : colors.primary}} |
| Error |
Row 169, Column 11: "Replace `editable·=·` with `··editable=`"
prettier/prettier
|
| 169 |
editable = {false} |
| Error |
Row 170, Column 11: "Replace `style·=·{{marginTop·` with `··style={{marginTop`"
prettier/prettier
|
| 170 |
style = {{marginTop : mvs(17)}} |
| Error |
Row 171, Column 11: "Replace `titleStyle·=·{{fontSize·` with `··titleStyle={{fontSize`"
prettier/prettier
|
| 171 |
titleStyle = {{fontSize : mvs(14)}} |
| 172 |
/> |
| 173 |
|
| Error |
Row 174, Column 1: "Replace `⏎··········prettier/prettier
|
| 174 |
|
| 175 |
<View style = {styles.summaryContainer}> |
| Error |
Row 176, Column 1: "Replace `··········prettier/prettier
|
| 176 |
<Regular label = "Price Summary" style = {{fontSize : mvs(20), color : colors.headerTitle, marginTop : mvs(24)}}/> |
| Error |
Row 177, Column 11: "Replace `prettier/prettier
|
| 177 |
<View style = {styles.moreInfoContainer}> |
| Error |
Row 178, Column 26: "Replace `·=·{{...styles.infoContainer,·marginTop·` with `={{...styles.infoContainer,·marginTop`"
prettier/prettier
|
| 178 |
<View style = {{...styles.infoContainer, marginTop : mvs(22)}}> |
| Error |
Row 179, Column 1: "Replace `··················prettier/prettier
|
| 179 |
<Regular label = "Product price" style = {styles.label}/> |
| Error |
Row 180, Column 1: "Replace `··················prettier/prettier
|
| Warning |
Row 180, Column 37: "Strings must use singlequote."
quotes
|
| 180 |
<Regular label = {"US$ 903"} style = {styles.value}/> |
| 181 |
</View> |
| 182 |
|
| Error |
Row 183, Column 26: "Replace `·=·{{...styles.infoContainer,·marginTop·` with `={{...styles.infoContainer,·marginTop`"
prettier/prettier
|
| 183 |
<View style = {{...styles.infoContainer, marginTop : mvs(12)}}> |
| Error |
Row 184, Column 1: "Replace `··················prettier/prettier
|
| 184 |
<Regular label = "USA Tax" style = {styles.label}/> |
| Error |
Row 185, Column 1: "Replace `··················prettier/prettier
|
| Warning |
Row 185, Column 37: "Strings must use singlequote."
quotes
|
| 185 |
<Regular label = {"US$ 15"} style = {styles.value}/> |
| 186 |
</View> |
| 187 |
|
| Error |
Row 188, Column 26: "Replace `·=·{{...styles.infoContainer,·marginTop·` with `={{...styles.infoContainer,·marginTop`"
prettier/prettier
|
| 188 |
<View style = {{...styles.infoContainer, marginTop : mvs(12)}}> |
| Error |
Row 189, Column 1: "Replace `··················prettier/prettier
|
| 189 |
<Regular label = "Urgent delivery fees" style = {styles.label}/> |
| Error |
Row 190, Column 1: "Replace `··················prettier/prettier
|
| Warning |
Row 190, Column 37: "Strings must use singlequote."
quotes
|
| 190 |
<Regular label = {"US$ 100"} style = {styles.value}/> |
| 191 |
</View> |
| 192 |
|
| Error |
Row 193, Column 26: "Replace `·=·{{...styles.infoContainer,·marginTop·` with `={{...styles.infoContainer,·marginTop`"
prettier/prettier
|
| 193 |
<View style = {{...styles.infoContainer, marginTop : mvs(12)}}> |
| Error |
Row 194, Column 1: "Replace `··················prettier/prettier
|
| 194 |
<Regular label = "Travel reward" style = {styles.label}/> |
| Error |
Row 195, Column 1: "Replace `··················prettier/prettier
|
| Warning |
Row 195, Column 37: "Strings must use singlequote."
quotes
|
| 195 |
<Regular label = {"US$ 73"} style = {styles.value}/> |
| 196 |
</View> |
| 197 |
|
| Error |
Row 198, Column 26: "Replace `·=·{{...styles.infoContainer,·marginTop·` with `={{...styles.infoContainer,·marginTop`"
prettier/prettier
|
| 198 |
<View style = {{...styles.infoContainer, marginTop : mvs(12)}}> |
| Error |
Row 199, Column 17: "Replace `··prettier/prettier
|
| 199 |
<Regular label = "Taketo fee" style = {styles.label}/> |
| Error |
Row 200, Column 1: "Replace `··················prettier/prettier
|
| Warning |
Row 200, Column 37: "Strings must use singlequote."
quotes
|
| 200 |
<Regular label = {"US$ 10"} style = {styles.value}/> |
| 201 |
</View> |
| 202 |
|
| Error |
Row 203, Column 26: "Replace `·=·{{...styles.infoContainer,·marginTop·` with `={{...styles.infoContainer,·marginTop`"
prettier/prettier
|
| 203 |
<View style = {{...styles.infoContainer, marginTop : mvs(12)}}> |
| Error |
Row 204, Column 17: "Replace `··prettier/prettier
|
| 204 |
<Regular label = "Payment Processing" style = {styles.label}/> |
| Error |
Row 205, Column 1: "Replace `··················prettier/prettier
|
| Warning |
Row 205, Column 37: "Strings must use singlequote."
quotes
|
| 205 |
<Regular label = {"US$ 0.5"} style = {styles.value}/> |
| 206 |
</View> |
| 207 |
|
| Warning |
Row 208, Column 15: "Empty components are self-closing"
react/self-closing-comp
|
| Error |
Row 208, Column 26: "Replace `·=·{{...styles.line,·marginTop·` with `={{...styles.line,·marginTop`"
prettier/prettier
|
| 208 |
<View style = {{...styles.line, marginTop : mvs(10)}}></View> |
| 209 |
|
| Error |
Row 210, Column 26: "Replace `·=·{{...styles.infoContainer,·marginTop·` with `={{...styles.infoContainer,·marginTop`"
prettier/prettier
|
| 210 |
<View style = {{...styles.infoContainer, marginTop : mvs(12)}}> |
| Error |
Row 211, Column 17: "Replace `··` with `prettier/prettier
|
| 211 |
<Regular label = "Total" style = {{...styles.label, color : colors.primary, fontSize : mvs(15)}}/> |
| Error |
Row 212, Column 17: "Replace `··` with `/>⏎················prettier/prettier
|
| Warning |
Row 212, Column 37: "Strings must use singlequote."
quotes
|
| 212 |
<Regular label = {"US$ 976"} style = {{...styles.value, color : colors.primary, fontSize : mvs(15)}}/> |
| Warning |
Row 213, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 213, Column 1: "Replace `··················` with `················/>`"
prettier/prettier
|
| 213 |
|
| Warning |
Row 214, Column 22: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 214, Column 22: "Delete `·`"
prettier/prettier
|
| 214 |
</View> |
| Error |
Row 215, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 215 |
</View> |
| 216 |
</View> |
| 217 |
|
| Error |
Row 218, Column 22: "Replace `·=·` with `=`"
prettier/prettier
|
| 218 |
<View style = {styles.methodContainer}> |
| Error |
Row 219, Column 21: "Replace `·label·=·"Payment·Method"·style·=·{{color·:·colors.typeHeader,·fontSize·:·mvs(20)}}` with `⏎··············label="Payment·Method"⏎··············style={{color:·colors.typeHeader,·fontSize:·mvs(20)}}⏎············`"
prettier/prettier
|
| 219 |
<Regular label = "Payment Method" style = {{color : colors.typeHeader, fontSize : mvs(20)}}/> |
| Error |
Row 220, Column 24: "Replace `·=·` with `=`"
prettier/prettier
|
| 220 |
<View style = {styles.methodInnerContainer}> |
| Warning |
Row 221, Column 15: "Empty components are self-closing"
react/self-closing-comp
|
| 221 |
<DualText |
| Error |
Row 222, Column 1: "Replace `··············content·=·` with `················content=`"
prettier/prettier
|
| 222 |
content = "Taketo " |
| Error |
Row 223, Column 1: "Replace `··············style·=·{{color·:·colors.primary,·fontSize·` with `················style={{color:·colors.primary,·fontSize`"
prettier/prettier
|
| 223 |
style = {{color : colors.primary, fontSize : mvs(15)}} |
| Error |
Row 224, Column 15: "Replace `highlightText·=·` with `··highlightText=`"
prettier/prettier
|
| 224 |
highlightText = "balance" |
| Error |
Row 225, Column 1: "Replace `··············highlightTextStyle·=·{{color·:·colors.typeHeader,·fontSize·:·mvs(15)}}⏎··············` with `················highlightTextStyle={{⏎··················color:·colors.typeHeader,⏎··················fontSize:·mvs(15),`"
prettier/prettier
|
| 225 |
highlightTextStyle = {{color : colors.typeHeader, fontSize : mvs(15)}} |
| Warning |
Row 226, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| 226 |
|
| Error |
Row 227, Column 15: "Insert `··}}`"
prettier/prettier
|
| 227 |
></DualText> |
| Error |
Row 228, Column 26: "Replace `·=·{{position·:·'absolute',·right·` with `={{position:·'absolute',·right`"
prettier/prettier
|
| Warning |
Row 228, Column 30: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| 228 |
<View style = {{position : 'absolute', right : mvs(10)}}> |
| Error |
Row 229, Column 1: "Replace `··············prettier/prettier
|
| 229 |
<Check width = {mvs(18.62)} height = {mvs(14.93)}/> |
| Error |
Row 230, Column 1: "Insert `··`"
prettier/prettier
|
| 230 |
</View> |
| 231 |
</View> |
| 232 |
</View> |
| 233 |
|
| 234 |
<Buttons.ButtonPrimary |
| Error |
Row 235, Column 11: "Replace `title·=·` with `··title=`"
prettier/prettier
|
| 235 |
title = {`Payout 976 ${profileData?.currency?.currency_code}`} |
| Error |
Row 236, Column 11: "Replace `titleStyle·=·{{color·` with `··titleStyle={{color`"
prettier/prettier
|
| 236 |
titleStyle = {{color : colors.white}} |
| Error |
Row 237, Column 11: "Replace `style·=·{{marginTop·:·mvs(30),·marginBottom·:·mvs(40),·backgroundColor·:·colors.pink` with `··style={{⏎··············marginTop:·mvs(30),⏎··············marginBottom:·mvs(40),⏎··············backgroundColor:·colors.pink,⏎············`"
prettier/prettier
|
| 237 |
style = {{marginTop : mvs(30), marginBottom : mvs(40), backgroundColor : colors.pink}} |
| 238 |
/> |
| Warning |
Row 239, Column 16: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 239, Column 16: "Delete `·`"
prettier/prettier
|
| 239 |
</View> |
| 240 |
</ScrollView> |
| 241 |
</View> |
| 242 |
); |
| 243 |
}; |
| 244 |
const mapStateToProps = state => ({ |
| 245 |
profileData: state.auth.userInfo?.profile || {}, |
| 246 |
wallet_refund: state.wallet.wallet_refund, |
| 247 |
}); |
| 248 |
|
| 249 |
const mapDispatchToProps = { |
| 250 |
fetchWalletRefundDetails: order_id => |
| 251 |
TAKE_TO_ACTIONS.fetchWalletRefundDetails(order_id), |
| 252 |
}; |
| 253 |
|
| Error |
Row 254, Column 24: "Replace `⏎··mapStateToProps,⏎··mapDispatchToProps,⏎` with `mapStateToProps,·mapDispatchToProps`"
prettier/prettier
|
| 254 |
export default connect( |
| 255 |
mapStateToProps, |
| 256 |
mapDispatchToProps, |
| 257 |
)(WalletPayoutDetail); |
| 258 |
|
| 259 |
const styles = StyleSheet.create({ |
| 260 |
mainContainer: { |
| 261 |
flex: 1, |
| Error |
Row 262, Column 20: "Replace `·:·colors.white` with `:·colors.white,`"
prettier/prettier
|
| Warning |
Row 262, Column 35: "Missing trailing comma."
comma-dangle
|
| 262 |
backgroundColor : colors.white |
| 263 |
}, |
| 264 |
header: { |
| 265 |
backgroundColor: colors.white, |
| 266 |
}, |
| 267 |
container: { |
| 268 |
flex: 1, |
| 269 |
//paddingBottom : mvs(40) |
| 270 |
//borderWidth : 1 |
| 271 |
}, |
| 272 |
productMainContainer: { |
| 273 |
paddingBottom: mvs(15), |
| 274 |
backgroundColor: colors.white, |
| 275 |
borderBottomLeftRadius: mvs(20), |
| 276 |
borderBottomRightRadius: mvs(20), |
| 277 |
//borderWidth : 1 |
| 278 |
//height : mvs(200) |
| 279 |
}, |
| 280 |
productContainer: { |
| 281 |
paddingHorizontal: mvs(22), |
| 282 |
minHeight: mvs(125), |
| 283 |
//marginTop: mvs(30), |
| 284 |
// borderWidth : 1, |
| 285 |
// borderColor : 'red' |
| 286 |
}, |
| 287 |
CONTAINER: { |
| 288 |
flex: 1, |
| 289 |
flexDirection: 'row', |
| 290 |
//marginTop: mvs(30), |
| 291 |
}, |
| 292 |
IMAGE_CONTAINER: { |
| 293 |
borderRadius: mvs(10), |
| 294 |
height: mvs(125), |
| 295 |
width: mvs(104), |
| 296 |
backgroundColor: colors.white, |
| 297 |
overflow: 'hidden', |
| 298 |
borderWidth: StyleSheet.hairlineWidth, |
| 299 |
borderColor: colors.price_border, |
| 300 |
}, |
| 301 |
IMAGE: { |
| 302 |
height: '100%', |
| 303 |
width: '100%', |
| 304 |
borderRadius: 20, |
| 305 |
}, |
| 306 |
TITLE: { |
| 307 |
fontSize: mvs(18), |
| 308 |
color: colors.headerTitle, |
| 309 |
}, |
| 310 |
DESCRIPTION_CONTAINER: { |
| 311 |
marginLeft: mvs(9), |
| 312 |
flex: 1, |
| 313 |
// backgroundColor:'red' |
| 314 |
width: mvs(146), |
| 315 |
}, |
| 316 |
CARD_CONTENT_LABLE: { |
| 317 |
fontSize: mvs(12), |
| 318 |
color: colors.headerTitle, |
| 319 |
}, |
| 320 |
PRICE_CONTAINER: { |
| 321 |
borderColor: colors.price_border, |
| 322 |
borderTopWidth: 1, |
| 323 |
borderBottomWidth: 1, |
| 324 |
flexDirection: 'row', |
| 325 |
justifyContent: 'space-between', |
| 326 |
paddingVertical: mvs(4), |
| 327 |
marginTop: mvs(9), |
| 328 |
}, |
| 329 |
PENDING_REWARD_CONTAINER: { |
| 330 |
marginTop: mvs(13), |
| 331 |
flexDirection: 'row', |
| 332 |
justifyContent: 'space-between', |
| 333 |
}, |
| 334 |
BUTTON_CONTAINER: { |
| 335 |
marginTop: mvs(11), |
| 336 |
alignItems: 'center', |
| 337 |
flexDirection: 'row', |
| 338 |
justifyContent: 'space-between', |
| 339 |
}, |
| 340 |
TODAY: { |
| 341 |
fontSize: mvs(12), |
| 342 |
color: colors.pink, |
| 343 |
}, |
| 344 |
MAKE_OFFER: { |
| 345 |
width: mvs(73), |
| 346 |
height: mvs(31), |
| 347 |
backgroundColor: colors.green, |
| 348 |
}, |
| 349 |
LOCATION_DESTINATION: { |
| 350 |
flexDirection: 'row-reverse', |
| 351 |
justifyContent: 'space-between', |
| 352 |
marginTop: mvs(14.9), |
| 353 |
//borderWidth : 1, |
| Error |
Row 354, Column 15: "Delete `·`"
prettier/prettier
|
| 354 |
alignItems : 'flex-end', |
| Error |
Row 355, Column 16: "Replace `·:·mvs(134)` with `:·mvs(134),`"
prettier/prettier
|
| Warning |
Row 355, Column 27: "Missing trailing comma."
comma-dangle
|
| 355 |
paddingLeft : mvs(134) |
| 356 |
//height: mvs(55), |
| 357 |
//borderWidth : 1, |
| 358 |
// borderColor : 'green' |
| 359 |
}, |
| 360 |
SUB_LOCATION_DESTINATION: { |
| 361 |
// flex: 1, |
| 362 |
justifyContent: 'space-between', |
| 363 |
alignItems: 'center', |
| Error |
Row 364, Column 12: "Replace `"100%"` with `'100%'`"
prettier/prettier
|
| Warning |
Row 364, Column 12: "Strings must use singlequote."
quotes
|
| 364 |
width: "100%", |
| 365 |
// backgroundColor:'red' |
| 366 |
//borderWidth:1, |
| 367 |
// borderColor : 'orange' |
| 368 |
}, |
| 369 |
USER_IMAGE_CONTAINER: { |
| 370 |
//width: mvs(54), |
| 371 |
borderRadius: mvs(10), |
| 372 |
//borderWidth :1, |
| Error |
Row 373, Column 13: "Delete `·`"
prettier/prettier
|
| 373 |
position : 'absolute', |
| Error |
Row 374, Column 9: "Replace `·:·0` with `:·0,`"
prettier/prettier
|
| Warning |
Row 374, Column 13: "Missing trailing comma."
comma-dangle
|
| 374 |
left : 0 |
| 375 |
}, |
| 376 |
SUB_USER_IMAGE_CONTAINER: { |
| 377 |
flex: 1, |
| 378 |
justifyContent: 'space-between', |
| 379 |
alignItems: 'center', |
| 380 |
}, |
| 381 |
USER_IMAGE: { |
| 382 |
height: mvs(37), |
| 383 |
width: mvs(37), |
| 384 |
borderRadius: mvs(10), |
| 385 |
backgroundColor: colors.secondary, |
| 386 |
}, |
| 387 |
rewardContainer: { |
| 388 |
height: mvs(58), |
| 389 |
width: '100%', |
| 390 |
//borderWidth : 1, |
| 391 |
borderRadius: mvs(10), |
| 392 |
backgroundColor: colors.pink, |
| 393 |
marginTop: mvs(10), |
| Error |
Row 394, Column 17: "Delete `·`"
prettier/prettier
|
| 394 |
marginBottom : mvs(40), |
| 395 |
paddingHorizontal: mvs(11), |
| 396 |
flexDirection: 'row', |
| 397 |
alignItems: 'center', |
| 398 |
justifyContent: 'space-between', |
| 399 |
}, |
| 400 |
container1: { |
| 401 |
//flex :1, |
| 402 |
paddingHorizontal: mvs(22), |
| 403 |
//borderWidth : 1 |
| 404 |
}, |
| 405 |
infoContainer: { |
| 406 |
width: '100%', |
| 407 |
flexDirection: 'row', |
| 408 |
//borderWidth : 1, |
| 409 |
justifyContent: 'space-between', |
| 410 |
}, |
| 411 |
label: { |
| 412 |
fontSize: mvs(13), |
| 413 |
color: colors.label, |
| 414 |
}, |
| 415 |
value: { |
| 416 |
fontSize: mvs(13), |
| 417 |
color: colors.headerTitle, |
| 418 |
}, |
| 419 |
line: { |
| 420 |
width: '100%', |
| 421 |
borderBottomWidth: mvs(0.5), |
| 422 |
borderColor: colors.doted, |
| 423 |
}, |
| 424 |
moreInfoContainer: { |
| 425 |
//paddingHorizontal: mvs(20), |
| 426 |
backgroundColor: colors.white, |
| 427 |
//marginTop: mvs(22), |
| 428 |
//paddingBottom: mvs(22), |
| 429 |
//borderRadius: mvs(10), |
| 430 |
//borderWidth:1 |
| 431 |
}, |
| 432 |
statusContainer: { |
| Error |
Row 433, Column 10: "Delete `·`"
prettier/prettier
|
| 433 |
width : '100%', |
| 434 |
//borderWidth : 1, |
| 435 |
//height : mvs(30), |
| Error |
Row 436, Column 14: "Replace `·:·mvs(46)` with `:·mvs(46),`"
prettier/prettier
|
| Warning |
Row 436, Column 24: "Missing trailing comma."
comma-dangle
|
| 436 |
marginTop : mvs(46) |
| 437 |
}, |
| 438 |
headingContaner: { |
| Error |
Row 439, Column 10: "Delete `·`"
prettier/prettier
|
| 439 |
width : '100%', |
| Error |
Row 440, Column 18: "Delete `·`"
prettier/prettier
|
| 440 |
flexDirection : 'row', |
| Error |
Row 441, Column 19: "Delete `·`"
prettier/prettier
|
| 441 |
justifyContent : 'space-between', |
| 442 |
}, |
| 443 |
reasonContainer: { |
| Error |
Row 444, Column 11: "Delete `·`"
prettier/prettier
|
| 444 |
height : mvs(35), |
| Error |
Row 445, Column 10: "Delete `·`"
prettier/prettier
|
| 445 |
width : '100%', |
| Error |
Row 446, Column 22: "Delete `·`"
prettier/prettier
|
| 446 |
paddingHorizontal : mvs(10), |
| Error |
Row 447, Column 14: "Delete `·`"
prettier/prettier
|
| 447 |
marginTop : mvs(11), |
| Error |
Row 448, Column 17: "Delete `·`"
prettier/prettier
|
| 448 |
borderRadius : mvs(10), |
| Error |
Row 449, Column 16: "Delete `·`"
prettier/prettier
|
| 449 |
borderColor : colors.border, |
| Error |
Row 450, Column 16: "Delete `·`"
prettier/prettier
|
| 450 |
borderWidth : 0.3, |
| Error |
Row 451, Column 19: "Replace `·:·"center"` with `:·'center',`"
prettier/prettier
|
| Warning |
Row 451, Column 22: "Strings must use singlequote."
quotes
|
| Warning |
Row 451, Column 30: "Missing trailing comma."
comma-dangle
|
| 451 |
justifyContent : "center" |
| 452 |
//alignItems : 'center' |
| 453 |
}, |
| 454 |
methodContainer: { |
| 455 |
//ßheight : mvs(78), |
| Error |
Row 456, Column 10: "Delete `·`"
prettier/prettier
|
| 456 |
width : '100%', |
| Error |
Row 457, Column 20: "Delete `·`"
prettier/prettier
|
| 457 |
backgroundColor : colors.white, |
| Error |
Row 458, Column 14: "Delete `·`"
prettier/prettier
|
| 458 |
marginTop : mvs(24), |
| 459 |
//paddingHorizontal: mvs(10), |
| 460 |
//paddingBottom : mvs(11), |
| 461 |
//borderWidth:1 |
| 462 |
}, |
| 463 |
methodInnerContainer: { |
| Error |
Row 464, Column 11: "Delete `·`"
prettier/prettier
|
| 464 |
height : mvs(38), |
| Error |
Row 465, Column 10: "Delete `·`"
prettier/prettier
|
| 465 |
width : '100%', |
| Error |
Row 466, Column 14: "Delete `·`"
prettier/prettier
|
| 466 |
marginTop : mvs(11), |
| Error |
Row 467, Column 20: "Delete `·`"
prettier/prettier
|
| 467 |
backgroundColor : colors.secondary, |
| Error |
Row 468, Column 17: "Delete `·`"
prettier/prettier
|
| 468 |
borderRadius : mvs(10), |
| Error |
Row 469, Column 19: "Delete `·`"
prettier/prettier
|
| 469 |
justifyContent : 'center', |
| Error |
Row 470, Column 22: "Replace `·:·mvs(10)` with `:·mvs(10),`"
prettier/prettier
|
| Warning |
Row 470, Column 32: "Missing trailing comma."
comma-dangle
|
| 470 |
paddingHorizontal : mvs(10) |
| 471 |
}, |
| 472 |
summaryContainer: { |
| Error |
Row 473, Column 16: "Replace `·:·mvs(0.5),·` with `:·mvs(0.5),`"
prettier/prettier
|
| Warning |
Row 473, Column 28: "Trailing spaces not allowed."
no-trailing-spaces
|
| 473 |
borderWidth : mvs(0.5), |
| Error |
Row 474, Column 14: "Replace `·:·mvs(30),·` with `:·mvs(30),`"
prettier/prettier
|
| Warning |
Row 474, Column 25: "Trailing spaces not allowed."
no-trailing-spaces
|
| 474 |
marginTop : mvs(30), |
| Error |
Row 475, Column 18: "Replace `·:·mvs(21),·` with `:·mvs(21),`"
prettier/prettier
|
| Warning |
Row 475, Column 29: "Trailing spaces not allowed."
no-trailing-spaces
|
| 475 |
paddingBottom : mvs(21), |
| Error |
Row 476, Column 22: "Delete `·`"
prettier/prettier
|
| 476 |
paddingHorizontal : mvs(10), |
| Error |
Row 477, Column 17: "Delete `·`"
prettier/prettier
|
| 477 |
borderRadius : mvs(10), |
| Error |
Row 478, Column 16: "Replace `·:·colors.doted` with `:·colors.doted,`"
prettier/prettier
|
| Warning |
Row 478, Column 31: "Missing trailing comma."
comma-dangle
|
| 478 |
borderColor : colors.doted |
| Error |
Row 479, Column 4: "Insert `,`"
prettier/prettier
|
| Warning |
Row 479, Column 4: "Missing trailing comma."
comma-dangle
|
| 479 |
} |
| 480 |
// reasonContainer: { |
| 481 |
// height: mvs(40), |
| 482 |
// borderRadius: mvs(10), |
| 483 |
// width: '100%', |
| 484 |
// borderWidth: 1, |
| 485 |
// borderColor: colors.border, |
| 486 |
// marginTop: mvs(115), |
| 487 |
// marginBottom : mvs(40), |
| 488 |
// paddingHorizontal: mvs(10), |
| 489 |
// justifyContent: 'center', |
| 490 |
// }, |
| 491 |
}); |
| 492 |
|
|
| Severity |
Rule |
| Error |
Row 1, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 3, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| Error |
Row 4, Column 9: "Replace `⏎··ScrollView,·StyleSheet,·TouchableOpacity,·View⏎` with `ScrollView,·StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| Warning |
Row 5, Column 49: "Missing trailing comma."
comma-dangle
|
| Error |
Row 7, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 18, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 21, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 23, Column 10: "Replace `wallet_refund,·fetchWalletDeliveryDetails,·navigation,·route,profileData}·=` with `⏎····wallet_refund,⏎····fetchWalletDeliveryDetails,⏎····navigation,⏎····route,⏎····profileData,`"
prettier/prettier
|
| Warning |
Row 23, Column 53: "'navigation' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 24, Column 3: "Replace `·` with `}·=`"
prettier/prettier
|
| Warning |
Row 25, Column 10: "'order_id' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 27, Column 9: "'Car' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 27, Column 22: "["car"] is better written in dot notation."
dot-notation
|
| Warning |
Row 28, Column 9: "'Aeroplane' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 28, Column 28: "["aeroplane"] is better written in dot notation."
dot-notation
|
| Warning |
Row 29, Column 9: "'Location' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 29, Column 27: "["location"] is better written in dot notation."
dot-notation
|
| Warning |
Row 30, Column 9: "'CarActive' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 30, Column 28: "["car_active"] is better written in dot notation."
dot-notation
|
| Warning |
Row 31, Column 34: "["aeroplane_active"] is better written in dot notation."
dot-notation
|
| Warning |
Row 32, Column 9: "'LocationGreen' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 32, Column 38: "["location_green"] is better written in dot notation."
dot-notation
|
| Warning |
Row 33, Column 37: "["location_pink"] is better written in dot notation."
dot-notation
|
| Warning |
Row 34, Column 9: "'LocationActive' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 34, Column 33: "["location_active"] is better written in dot notation."
dot-notation
|
| Error |
Row 36, Column 1: "Replace `⏎··const·[user,·setUser]·=·useState('Buyer')` with `··const·[user,·setUser]·=·useState('Buyer');`"
prettier/prettier
|
| Warning |
Row 37, Column 16: "'setUser' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 37, Column 44: "Missing semicolon."
semi
|
| Error |
Row 41, Column 6: "React Hook React.useEffect has a missing dependency: 'fetchWalletDeliveryDetails'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 47, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 48, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 49, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 50, Column 9: "Replace `userIcon·=·` with `··userIcon=`"
prettier/prettier
|
| Error |
Row 51, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 55, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 55, Column 9: "Delete `⏎········`"
prettier/prettier
|
| Error |
Row 63, Column 29: "Replace `"567"` with `'567'`"
prettier/prettier
|
| Warning |
Row 63, Column 29: "Strings must use singlequote."
quotes
|
| Error |
Row 65, Column 26: "Replace `·=·{"Rewarded"` with `={'Rewarded'`"
prettier/prettier
|
| Warning |
Row 65, Column 30: "Strings must use singlequote."
quotes
|
| Error |
Row 66, Column 44: "Delete `·`"
prettier/prettier
|
| Error |
Row 71, Column 18: "Replace `·style={{...styles.LOCATION_DESTINATION,·flexDirection·:·user·==·"Buyer"·?·'row-reverse'·:·'row'` with `⏎··············style={{⏎················...styles.LOCATION_DESTINATION,⏎················flexDirection:·user·==·'Buyer'·?·'row-reverse'·:·'row',⏎··············`"
prettier/prettier
|
| Warning |
Row 71, Column 26: "Inline style: { flexDirection: `user == "Buyer" ? 'row-reverse' : 'row'` }"
react-native/no-inline-styles
|
| Warning |
Row 71, Column 80: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 71, Column 83: "Strings must use singlequote."
quotes
|
| Warning |
Row 75, Column 26: "Comparing to itself is potentially pointless."
no-self-compare
|
| Warning |
Row 75, Column 28: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 95, Column 74: "Replace `⏎······················0,⏎······················10,⏎····················` with `0,·10`"
prettier/prettier
|
| Error |
Row 110, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 112, Column 22: "Replace `·=·{styles.line}` with `={styles.line}·`"
prettier/prettier
|
| Error |
Row 114, Column 1: "Replace `··········singleInput·=·` with `············singleInput=`"
prettier/prettier
|
| Error |
Row 115, Column 11: "Replace `title·=·` with `··title=`"
prettier/prettier
|
| Error |
Row 116, Column 11: "Replace `value·=·` with `··value=`"
prettier/prettier
|
| Error |
Row 117, Column 1: "Replace `··········multiline·=·` with `············multiline=`"
prettier/prettier
|
| Error |
Row 118, Column 1: "Replace `··········textStyle·=·{{color·` with `············textStyle={{color`"
prettier/prettier
|
| Error |
Row 119, Column 11: "Replace `editable·=·` with `··editable=`"
prettier/prettier
|
| Error |
Row 120, Column 11: "Replace `titleStyle·=·{{fontSize·` with `··titleStyle={{fontSize`"
prettier/prettier
|
| Error |
Row 121, Column 1: "Replace `··········style·=·{{marginTop·` with `············style={{marginTop`"
prettier/prettier
|
| Error |
Row 122, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 122, Column 11: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Error |
Row 123, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 127, Column 23: "Replace `·label="Failed·Delivery"·style={{...styles.label,·color·:·colors.pink}}` with `⏎················label="Failed·Delivery"⏎················style={{...styles.label,·color:·colors.pink}}⏎·············`"
prettier/prettier
|
| Error |
Row 129, Column 24: "Replace `"25·November·2021"` with `'25·November·2021'`"
prettier/prettier
|
| Warning |
Row 129, Column 24: "Strings must use singlequote."
quotes
|
| Error |
Row 130, Column 47: "Delete `·`"
prettier/prettier
|
| Warning |
Row 161, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 161, Column 1: "Delete `············`"
prettier/prettier
|
| Error |
Row 162, Column 24: "Replace `·=·{{...styles.line,·marginTop·:·mvs(15)}}` with `={{...styles.line,·marginTop:·mvs(15)}}·`"
prettier/prettier
|
| Error |
Row 166, Column 11: "Replace `singleInput·=·` with `··singleInput=`"
prettier/prettier
|
| Error |
Row 167, Column 11: "Replace `title·=·` with `··title=`"
prettier/prettier
|
| Error |
Row 168, Column 1: "Replace `··········value·=·` with `············value=`"
prettier/prettier
|
| Error |
Row 169, Column 11: "Replace `multiline·=·` with `··multiline=`"
prettier/prettier
|
| Error |
Row 170, Column 1: "Replace `··········textStyle·=·{{color·` with `············textStyle={{color`"
prettier/prettier
|
| Error |
Row 171, Column 11: "Replace `editable·=·` with `··editable=`"
prettier/prettier
|
| Error |
Row 172, Column 1: "Replace `··········style·=·{{marginTop·` with `············style={{marginTop`"
prettier/prettier
|
| Error |
Row 173, Column 11: "Replace `titleStyle·=·{{fontSize·` with `··titleStyle={{fontSize`"
prettier/prettier
|
| Error |
Row 176, Column 22: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 178, Column 13: "Replace `label·=·` with `··label=`"
prettier/prettier
|
| Error |
Row 179, Column 13: "Replace `style·=·{{fontSize·:·mvs(12),·color·` with `··style={{fontSize:·mvs(12),·color`"
prettier/prettier
|
| Error |
Row 182, Column 13: "Replace `label·=·{`${user·==·"Buyer"` with `··label={`${user·==·'Buyer'·`"
prettier/prettier
|
| Warning |
Row 182, Column 30: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 182, Column 33: "Strings must use singlequote."
quotes
|
| Warning |
Row 182, Column 40: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 183, Column 1: "Replace `············style·=·{{fontSize·:·mvs(12),·color·` with `··············style={{fontSize:·mvs(12),·color`"
prettier/prettier
|
| Error |
Row 188, Column 1: "Replace `··········title·=·` with `············title=`"
prettier/prettier
|
| Error |
Row 189, Column 11: "Replace `titleStyle·=·{{color·` with `··titleStyle={{color`"
prettier/prettier
|
| Error |
Row 190, Column 11: "Replace `style·=·{{marginTop·:·mvs(16),·marginBottom·` with `··style={{marginTop:·mvs(16),·marginBottom`"
prettier/prettier
|
| Error |
Row 191, Column 11: "Replace `onClick·=·{()=>` with `··onClick={()·=>·`"
prettier/prettier
|
| Error |
Row 218, Column 20: "Replace `·:·colors.white` with `:·colors.white,`"
prettier/prettier
|
| Warning |
Row 218, Column 35: "Missing trailing comma."
comma-dangle
|
| Error |
Row 310, Column 17: "Delete `·`"
prettier/prettier
|
| Error |
Row 319, Column 12: "Replace `"100%"` with `'100%'`"
prettier/prettier
|
| Warning |
Row 319, Column 12: "Strings must use singlequote."
quotes
|
| Error |
Row 327, Column 13: "Delete `·`"
prettier/prettier
|
| Error |
Row 328, Column 10: "Delete `·`"
prettier/prettier
|
| Error |
Row 329, Column 11: "Replace `·:·"100%"` with `:·'100%',`"
prettier/prettier
|
| Warning |
Row 329, Column 14: "Strings must use singlequote."
quotes
|
| Warning |
Row 329, Column 20: "Missing trailing comma."
comma-dangle
|
| Error |
Row 350, Column 17: "Delete `·`"
prettier/prettier
|
| Error |
Row 390, Column 11: "Delete `·`"
prettier/prettier
|
| Error |
Row 391, Column 10: "Delete `·`"
prettier/prettier
|
| Error |
Row 392, Column 17: "Delete `·`"
prettier/prettier
|
| Error |
Row 393, Column 16: "Delete `·`"
prettier/prettier
|
| Error |
Row 394, Column 16: "Delete `·`"
prettier/prettier
|
| Error |
Row 395, Column 14: "Delete `·`"
prettier/prettier
|
| Error |
Row 396, Column 15: "Delete `·`"
prettier/prettier
|
| Error |
Row 397, Column 16: "Delete `·`"
prettier/prettier
|
| Error |
Row 398, Column 18: "Replace `·:·'row'` with `:·'row',`"
prettier/prettier
|
| Warning |
Row 398, Column 26: "Missing trailing comma."
comma-dangle
|
| Error |
Row 399, Column 4: "Insert `,`"
prettier/prettier
|
| Warning |
Row 399, Column 4: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| Error |
Row 1, Column 1: "Delete `⏎`"
prettier/prettier
|
| 1 |
|
| 2 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| Error |
Row 3, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| 3 |
import React, { useState } from 'react'; |
| Error |
Row 4, Column 9: "Replace `⏎··ScrollView,·StyleSheet,·TouchableOpacity,·View⏎` with `ScrollView,·StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| 4 |
import { |
| Warning |
Row 5, Column 49: "Missing trailing comma."
comma-dangle
|
| 5 |
ScrollView, StyleSheet, TouchableOpacity, View |
| 6 |
} from 'react-native'; |
| Error |
Row 7, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 7 |
import { connect } from 'react-redux'; |
| 8 |
import * as ImagesCommon from '../../../../resource/assets/common-icons'; |
| 9 |
import * as Images from '../../../../resource/assets/order-car-icons'; |
| 10 |
import Buttons from '../../../components/atoms/Button'; |
| 11 |
import OrderDestination from '../../../components/atoms/OrderDestination'; |
| 12 |
import OrderDestinationAddress from '../../../components/atoms/OrderDestinationAddress'; |
| 13 |
import ImagePlaceholder from '../../../components/atoms/Placeholder'; |
| 14 |
import Header from '../../../components/molecules/header/header-1x'; |
| 15 |
import InputWithTitle from '../../../components/molecules/input-with-title'; |
| 16 |
import ProductInfo from '../../../components/molecules/product-info'; |
| 17 |
import colors from '../../../config/colors'; |
| Error |
Row 18, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 18 |
import { mvs } from '../../../config/metrices'; |
| 19 |
import Regular from '../../../presentation/typography/regular-text'; |
| 20 |
|
| Error |
Row 21, Column 1: "Delete `⏎`"
prettier/prettier
|
| 21 |
|
| 22 |
const WalletRefundDetails = props => { |
| Error |
Row 23, Column 10: "Replace `wallet_refund,·fetchWalletDeliveryDetails,·navigation,·route,profileData}·=` with `⏎····wallet_refund,⏎····fetchWalletDeliveryDetails,⏎····navigation,⏎····route,⏎····profileData,`"
prettier/prettier
|
| Warning |
Row 23, Column 53: "'navigation' is assigned a value but never used."
no-unused-vars
|
| 23 |
const {wallet_refund, fetchWalletDeliveryDetails, navigation, route,profileData} = |
| Error |
Row 24, Column 3: "Replace `·` with `}·=`"
prettier/prettier
|
| 24 |
props; |
| Warning |
Row 25, Column 10: "'order_id' is assigned a value but never used."
no-unused-vars
|
| 25 |
const {order_id} = route?.params; |
| 26 |
|
| Warning |
Row 27, Column 9: "'Car' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 27, Column 22: "["car"] is better written in dot notation."
dot-notation
|
| 27 |
const Car = Images['car']; |
| Warning |
Row 28, Column 9: "'Aeroplane' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 28, Column 28: "["aeroplane"] is better written in dot notation."
dot-notation
|
| 28 |
const Aeroplane = Images['aeroplane']; |
| Warning |
Row 29, Column 9: "'Location' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 29, Column 27: "["location"] is better written in dot notation."
dot-notation
|
| 29 |
const Location = Images['location']; |
| Warning |
Row 30, Column 9: "'CarActive' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 30, Column 28: "["car_active"] is better written in dot notation."
dot-notation
|
| 30 |
const CarActive = Images['car_active']; |
| Warning |
Row 31, Column 34: "["aeroplane_active"] is better written in dot notation."
dot-notation
|
| 31 |
const AeroplaneActive = Images['aeroplane_active']; |
| Warning |
Row 32, Column 9: "'LocationGreen' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 32, Column 38: "["location_green"] is better written in dot notation."
dot-notation
|
| 32 |
const LocationGreen = ImagesCommon['location_green']; |
| Warning |
Row 33, Column 37: "["location_pink"] is better written in dot notation."
dot-notation
|
| 33 |
const LocationPink = ImagesCommon['location_pink']; |
| Warning |
Row 34, Column 9: "'LocationActive' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 34, Column 33: "["location_active"] is better written in dot notation."
dot-notation
|
| 34 |
const LocationActive = Images['location_active']; |
| 35 |
|
| Error |
Row 36, Column 1: "Replace `⏎··const·[user,·setUser]·=·useState('Buyer')` with `··const·[user,·setUser]·=·useState('Buyer');`"
prettier/prettier
|
| 36 |
|
| Warning |
Row 37, Column 16: "'setUser' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 37, Column 44: "Missing semicolon."
semi
|
| 37 |
const [user, setUser] = useState('Buyer') |
| 38 |
|
| 39 |
React.useEffect(() => { |
| 40 |
fetchWalletDeliveryDetails(); |
| Error |
Row 41, Column 6: "React Hook React.useEffect has a missing dependency: 'fetchWalletDeliveryDetails'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 41 |
}, []); |
| 42 |
|
| 43 |
return ( |
| 44 |
<View style={styles.mainContainer}> |
| 45 |
<View style={styles.header}> |
| 46 |
<Header |
| Error |
Row 47, Column 9: "Insert `··`"
prettier/prettier
|
| 47 |
{...props} |
| Error |
Row 48, Column 1: "Insert `··`"
prettier/prettier
|
| 48 |
title="Wallet - Refund Details" |
| Error |
Row 49, Column 1: "Insert `··`"
prettier/prettier
|
| 49 |
allowBackBtn |
| Error |
Row 50, Column 9: "Replace `userIcon·=·` with `··userIcon=`"
prettier/prettier
|
| 50 |
userIcon = {false} |
| Error |
Row 51, Column 1: "Insert `··`"
prettier/prettier
|
| 51 |
/> |
| 52 |
</View> |
| 53 |
|
| 54 |
<ScrollView showsVerticalScrollIndicator={false} style={styles.container}> |
| Warning |
Row 55, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 55, Column 9: "Delete `⏎········`"
prettier/prettier
|
| 55 |
|
| 56 |
<View style={styles.productMainContainer}> |
| 57 |
<View style={styles.productContainer}> |
| 58 |
<ProductInfo |
| 59 |
order_img={wallet_refund.order_image} |
| 60 |
priceTitle={'Product Price'} |
| 61 |
name={wallet_refund?.order_title} |
| 62 |
//name = "iPhone 13 Pro 128GB Sierra blue" |
| Error |
Row 63, Column 29: "Replace `"567"` with `'567'`"
prettier/prettier
|
| Warning |
Row 63, Column 29: "Strings must use singlequote."
quotes
|
| 63 |
total={`US$ ${"567"}`} |
| 64 |
reward={`US$ ${'30'}`} |
| Error |
Row 65, Column 26: "Replace `·=·{"Rewarded"` with `={'Rewarded'`"
prettier/prettier
|
| Warning |
Row 65, Column 30: "Strings must use singlequote."
quotes
|
| 65 |
rewardTitle = {"Rewarded"} |
| Error |
Row 66, Column 44: "Delete `·`"
prettier/prettier
|
| 66 |
detailsContainer={{marginLeft : mvs(30)}} |
| 67 |
/> |
| 68 |
</View> |
| 69 |
|
| 70 |
<View style={{paddingHorizontal: mvs(22)}}> |
| Error |
Row 71, Column 18: "Replace `·style={{...styles.LOCATION_DESTINATION,·flexDirection·:·user·==·"Buyer"·?·'row-reverse'·:·'row'` with `⏎··············style={{⏎················...styles.LOCATION_DESTINATION,⏎················flexDirection:·user·==·'Buyer'·?·'row-reverse'·:·'row',⏎··············`"
prettier/prettier
|
| Warning |
Row 71, Column 26: "Inline style: { flexDirection: `user == "Buyer" ? 'row-reverse' : 'row'` }"
react-native/no-inline-styles
|
| Warning |
Row 71, Column 80: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 71, Column 83: "Strings must use singlequote."
quotes
|
| 71 |
<View style={{...styles.LOCATION_DESTINATION, flexDirection : user == "Buyer" ? 'row-reverse' : 'row'}}> |
| 72 |
<View style={styles.SUB_LOCATION_DESTINATION}> |
| 73 |
<OrderDestination |
| 74 |
value={2} |
| Warning |
Row 75, Column 26: "Comparing to itself is potentially pointless."
no-self-compare
|
| Warning |
Row 75, Column 28: "Expected '===' and instead saw '=='."
eqeqeq
|
| 75 |
width={2 == 2 ? mvs(100) : mvs(50)} |
| 76 |
SVGFirst={AeroplaneActive} |
| 77 |
SVGSecond={LocationPink} |
| 78 |
/> |
| 79 |
<View style={{marginTop: mvs(8)}} /> |
| 80 |
<OrderDestinationAddress |
| 81 |
imageFrom={{uri: wallet_refund?.order_from_flag}} |
| 82 |
imageTo={{uri: wallet_refund?.order_to_flag}} |
| 83 |
label={`${wallet_refund?.order_from} - ${wallet_refund?.order_to}`} |
| 84 |
fontSize={12} |
| 85 |
/> |
| 86 |
</View> |
| 87 |
<TouchableOpacity style={styles.USER_IMAGE_CONTAINER}> |
| 88 |
<View style={styles.SUB_USER_IMAGE_CONTAINER}> |
| 89 |
<ImagePlaceholder |
| 90 |
bg_img={wallet_refund?.order_by?.user_image} |
| 91 |
containerStyle={styles.USER_IMAGE} |
| 92 |
/> |
| 93 |
<Regular |
| 94 |
numberOfLines={1} |
| Error |
Row 95, Column 74: "Replace `⏎······················0,⏎······················10,⏎····················` with `0,·10`"
prettier/prettier
|
| 95 |
label={wallet_refund?.order_by?.user_name?.substring( |
| 96 |
0, |
| 97 |
10, |
| 98 |
)} |
| 99 |
style={{ |
| 100 |
...styles.CARD_CONTENT_LABLE, |
| 101 |
fontSize: mvs(12), |
| 102 |
}} |
| 103 |
/> |
| 104 |
</View> |
| 105 |
</TouchableOpacity> |
| 106 |
</View> |
| 107 |
</View> |
| 108 |
</View> |
| 109 |
|
| Error |
Row 110, Column 1: "Delete `⏎`"
prettier/prettier
|
| 110 |
|
| 111 |
<View style={styles.container1}> |
| Error |
Row 112, Column 22: "Replace `·=·{styles.line}` with `={styles.line}·`"
prettier/prettier
|
| 112 |
<View style = {styles.line}/> |
| 113 |
<InputWithTitle |
| Error |
Row 114, Column 1: "Replace `··········singleInput·=·` with `············singleInput=`"
prettier/prettier
|
| 114 |
singleInput = {true} |
| Error |
Row 115, Column 11: "Replace `title·=·` with `··title=`"
prettier/prettier
|
| 115 |
title = "Product Details" |
| Error |
Row 116, Column 11: "Replace `value·=·` with `··value=`"
prettier/prettier
|
| 116 |
value = "Lorem ipsum" |
| Error |
Row 117, Column 1: "Replace `··········multiline·=·` with `············multiline=`"
prettier/prettier
|
| 117 |
multiline = {true} |
| Error |
Row 118, Column 1: "Replace `··········textStyle·=·{{color·` with `············textStyle={{color`"
prettier/prettier
|
| 118 |
textStyle = {{color : colors.primary}} |
| Error |
Row 119, Column 11: "Replace `editable·=·` with `··editable=`"
prettier/prettier
|
| 119 |
editable = {false} |
| Error |
Row 120, Column 11: "Replace `titleStyle·=·{{fontSize·` with `··titleStyle={{fontSize`"
prettier/prettier
|
| 120 |
titleStyle = {{fontSize : mvs(14)}} |
| Error |
Row 121, Column 1: "Replace `··········style·=·{{marginTop·` with `············style={{marginTop`"
prettier/prettier
|
| 121 |
style = {{marginTop : mvs(17)}} |
| Error |
Row 122, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 122, Column 11: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 122 |
singleInput={false} |
| Error |
Row 123, Column 1: "Delete `··`"
prettier/prettier
|
| 123 |
moreOrLess={true} |
| 124 |
/> |
| 125 |
<View style={styles.moreInfoContainer}> |
| 126 |
<View style={{...styles.infoContainer, marginTop: mvs(0)}}> |
| Error |
Row 127, Column 23: "Replace `·label="Failed·Delivery"·style={{...styles.label,·color·:·colors.pink}}` with `⏎················label="Failed·Delivery"⏎················style={{...styles.label,·color:·colors.pink}}⏎·············`"
prettier/prettier
|
| 127 |
<Regular label="Failed Delivery" style={{...styles.label, color : colors.pink}} /> |
| 128 |
<Regular |
| Error |
Row 129, Column 24: "Replace `"25·November·2021"` with `'25·November·2021'`"
prettier/prettier
|
| Warning |
Row 129, Column 24: "Strings must use singlequote."
quotes
|
| 129 |
label={"25 November 2021"} |
| Error |
Row 130, Column 47: "Delete `·`"
prettier/prettier
|
| 130 |
style={{...styles.value, color : colors.pink}} |
| 131 |
/> |
| 132 |
</View> |
| 133 |
|
| 134 |
{/* <View style={styles.line}></View> */} |
| 135 |
|
| 136 |
<View style={{...styles.infoContainer, marginTop: mvs(12)}}> |
| 137 |
<Regular label="Quantity" style={styles.label} /> |
| 138 |
<Regular |
| 139 |
label={wallet_refund?.order_quantity} |
| 140 |
style={styles.value} |
| 141 |
/> |
| 142 |
</View> |
| 143 |
|
| 144 |
<View style={{...styles.infoContainer, marginTop: mvs(12)}}> |
| 145 |
<Regular label="Packaging" style={styles.label} /> |
| 146 |
<Regular |
| 147 |
label={ |
| 148 |
wallet_refund?.order_packaging ? 'With box' : 'Without box' |
| 149 |
} |
| 150 |
style={styles.value} |
| 151 |
/> |
| 152 |
</View> |
| 153 |
|
| 154 |
<View style={{...styles.infoContainer, marginTop: mvs(12)}}> |
| 155 |
<Regular label="Where to buy" style={styles.label} /> |
| 156 |
<Regular |
| 157 |
label={wallet_refund?.order_store_url} |
| 158 |
style={{...styles.value, color: colors.primary}} |
| 159 |
/> |
| 160 |
</View> |
| Warning |
Row 161, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 161, Column 1: "Delete `············`"
prettier/prettier
|
| 161 |
|
| Error |
Row 162, Column 24: "Replace `·=·{{...styles.line,·marginTop·:·mvs(15)}}` with `={{...styles.line,·marginTop:·mvs(15)}}·`"
prettier/prettier
|
| 162 |
<View style = {{...styles.line, marginTop : mvs(15)}}/> |
| 163 |
</View> |
| 164 |
|
| 165 |
<InputWithTitle |
| Error |
Row 166, Column 11: "Replace `singleInput·=·` with `··singleInput=`"
prettier/prettier
|
| 166 |
singleInput = {true} |
| Error |
Row 167, Column 11: "Replace `title·=·` with `··title=`"
prettier/prettier
|
| 167 |
title = "Buying Instructions" |
| Error |
Row 168, Column 1: "Replace `··········value·=·` with `············value=`"
prettier/prettier
|
| 168 |
value = "Lorem ipsum" |
| Error |
Row 169, Column 11: "Replace `multiline·=·` with `··multiline=`"
prettier/prettier
|
| 169 |
multiline = {true} |
| Error |
Row 170, Column 1: "Replace `··········textStyle·=·{{color·` with `············textStyle={{color`"
prettier/prettier
|
| 170 |
textStyle = {{color : colors.primary}} |
| Error |
Row 171, Column 11: "Replace `editable·=·` with `··editable=`"
prettier/prettier
|
| 171 |
editable = {false} |
| Error |
Row 172, Column 1: "Replace `··········style·=·{{marginTop·` with `············style={{marginTop`"
prettier/prettier
|
| 172 |
style = {{marginTop : mvs(17)}} |
| Error |
Row 173, Column 11: "Replace `titleStyle·=·{{fontSize·` with `··titleStyle={{fontSize`"
prettier/prettier
|
| 173 |
titleStyle = {{fontSize : mvs(14)}} |
| 174 |
/> |
| 175 |
|
| Error |
Row 176, Column 22: "Replace `·=·` with `=`"
prettier/prettier
|
| 176 |
<View style = {styles.statusContainer}> |
| 177 |
<Regular |
| Error |
Row 178, Column 13: "Replace `label·=·` with `··label=`"
prettier/prettier
|
| 178 |
label = "Reason: " |
| Error |
Row 179, Column 13: "Replace `style·=·{{fontSize·:·mvs(12),·color·` with `··style={{fontSize:·mvs(12),·color`"
prettier/prettier
|
| 179 |
style = {{fontSize : mvs(12), color : colors.typeHeader}} |
| 180 |
/> |
| 181 |
<Regular |
| Error |
Row 182, Column 13: "Replace `label·=·{`${user·==·"Buyer"` with `··label={`${user·==·'Buyer'·`"
prettier/prettier
|
| Warning |
Row 182, Column 30: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 182, Column 33: "Strings must use singlequote."
quotes
|
| Warning |
Row 182, Column 40: "Operator '?' must be spaced."
space-infix-ops
|
| 182 |
label = {`${user == "Buyer"? 'Buyer' : 'Deliverer'} No Show`} |
| Error |
Row 183, Column 1: "Replace `············style·=·{{fontSize·:·mvs(12),·color·` with `··············style={{fontSize:·mvs(12),·color`"
prettier/prettier
|
| 183 |
style = {{fontSize : mvs(12), color : colors.pink}} |
| 184 |
/> |
| 185 |
</View> |
| 186 |
|
| 187 |
<Buttons.ButtonPrimary |
| Error |
Row 188, Column 1: "Replace `··········title·=·` with `············title=`"
prettier/prettier
|
| 188 |
title = {`Refunded 976 ${profileData?.currency?.currency_code}`} |
| Error |
Row 189, Column 11: "Replace `titleStyle·=·{{color·` with `··titleStyle={{color`"
prettier/prettier
|
| 189 |
titleStyle = {{color : colors.white}} |
| Error |
Row 190, Column 11: "Replace `style·=·{{marginTop·:·mvs(16),·marginBottom·` with `··style={{marginTop:·mvs(16),·marginBottom`"
prettier/prettier
|
| 190 |
style = {{marginTop : mvs(16), marginBottom : mvs(40)}} |
| Error |
Row 191, Column 11: "Replace `onClick·=·{()=>` with `··onClick={()·=>·`"
prettier/prettier
|
| 191 |
onClick = {()=>{}} |
| 192 |
/> |
| 193 |
</View> |
| 194 |
|
| 195 |
{/* <OrderPolicy style={{marginTop: mvs(20)}} /> */} |
| 196 |
</ScrollView> |
| 197 |
</View> |
| 198 |
); |
| 199 |
}; |
| 200 |
const mapStateToProps = state => ({ |
| 201 |
wallet_refund: state.wallet.wallet_refund, |
| 202 |
profileData: state.auth.userInfo?.profile || {}, |
| 203 |
}); |
| 204 |
|
| 205 |
const mapDispatchToProps = { |
| 206 |
fetchWalletDeliveryDetails: order_id => |
| 207 |
TAKE_TO_ACTIONS.fetchWalletDeliveryDetails(order_id), |
| 208 |
}; |
| 209 |
|
| 210 |
export default connect( |
| 211 |
mapStateToProps, |
| 212 |
mapDispatchToProps, |
| 213 |
)(WalletRefundDetails); |
| 214 |
|
| 215 |
const styles = StyleSheet.create({ |
| 216 |
mainContainer: { |
| 217 |
flex: 1, |
| Error |
Row 218, Column 20: "Replace `·:·colors.white` with `:·colors.white,`"
prettier/prettier
|
| Warning |
Row 218, Column 35: "Missing trailing comma."
comma-dangle
|
| 218 |
backgroundColor : colors.white |
| 219 |
}, |
| 220 |
header: { |
| 221 |
backgroundColor: colors.white, |
| 222 |
}, |
| 223 |
container: { |
| 224 |
flex: 1, |
| 225 |
//paddingBottom : mvs(40) |
| 226 |
//borderWidth : 1 |
| 227 |
}, |
| 228 |
productMainContainer: { |
| 229 |
paddingBottom: mvs(15), |
| 230 |
backgroundColor: colors.white, |
| 231 |
borderBottomLeftRadius: mvs(20), |
| 232 |
borderBottomRightRadius: mvs(20), |
| 233 |
//borderWidth : 1 |
| 234 |
//height : mvs(200) |
| 235 |
}, |
| 236 |
productContainer: { |
| 237 |
paddingHorizontal: mvs(22), |
| 238 |
minHeight: mvs(125), |
| 239 |
//marginTop: mvs(30), |
| 240 |
// borderWidth : 1, |
| 241 |
// borderColor : 'red' |
| 242 |
}, |
| 243 |
CONTAINER: { |
| 244 |
flex: 1, |
| 245 |
flexDirection: 'row', |
| 246 |
marginTop: mvs(30), |
| 247 |
}, |
| 248 |
IMAGE_CONTAINER: { |
| 249 |
borderRadius: mvs(10), |
| 250 |
height: mvs(125), |
| 251 |
width: mvs(104), |
| 252 |
backgroundColor: colors.white, |
| 253 |
overflow: 'hidden', |
| 254 |
borderWidth: StyleSheet.hairlineWidth, |
| 255 |
borderColor: colors.price_border, |
| 256 |
}, |
| 257 |
IMAGE: { |
| 258 |
height: '100%', |
| 259 |
width: '100%', |
| 260 |
borderRadius: 20, |
| 261 |
}, |
| 262 |
TITLE: { |
| 263 |
fontSize: mvs(18), |
| 264 |
color: colors.headerTitle, |
| 265 |
}, |
| 266 |
DESCRIPTION_CONTAINER: { |
| 267 |
marginLeft: mvs(9), |
| 268 |
flex: 1, |
| 269 |
// backgroundColor:'red' |
| 270 |
width: mvs(146), |
| 271 |
}, |
| 272 |
CARD_CONTENT_LABLE: { |
| 273 |
fontSize: mvs(12), |
| 274 |
color: colors.headerTitle, |
| 275 |
}, |
| 276 |
PRICE_CONTAINER: { |
| 277 |
borderColor: colors.price_border, |
| 278 |
borderTopWidth: 1, |
| 279 |
borderBottomWidth: 1, |
| 280 |
flexDirection: 'row', |
| 281 |
justifyContent: 'space-between', |
| 282 |
paddingVertical: mvs(4), |
| 283 |
marginTop: mvs(9), |
| 284 |
}, |
| 285 |
PENDING_REWARD_CONTAINER: { |
| 286 |
marginTop: mvs(13), |
| 287 |
flexDirection: 'row', |
| 288 |
justifyContent: 'space-between', |
| 289 |
}, |
| 290 |
BUTTON_CONTAINER: { |
| 291 |
marginTop: mvs(11), |
| 292 |
alignItems: 'center', |
| 293 |
flexDirection: 'row', |
| 294 |
justifyContent: 'space-between', |
| 295 |
}, |
| 296 |
TODAY: { |
| 297 |
fontSize: mvs(12), |
| 298 |
color: colors.pink, |
| 299 |
}, |
| 300 |
MAKE_OFFER: { |
| 301 |
width: mvs(73), |
| 302 |
height: mvs(31), |
| 303 |
backgroundColor: colors.green, |
| 304 |
}, |
| 305 |
LOCATION_DESTINATION: { |
| 306 |
flexDirection: 'row-reverse', |
| 307 |
justifyContent: 'space-between', |
| 308 |
marginTop: mvs(15), |
| 309 |
//borderWidth : 1, |
| Error |
Row 310, Column 17: "Delete `·`"
prettier/prettier
|
| 310 |
paddingRight : mvs(134), |
| 311 |
height: mvs(55), |
| 312 |
// borderWidth : 1, |
| 313 |
// borderColor : 'green' |
| 314 |
}, |
| 315 |
SUB_LOCATION_DESTINATION: { |
| 316 |
// flex: 1, |
| 317 |
justifyContent: 'space-between', |
| 318 |
alignItems: 'center', |
| Error |
Row 319, Column 12: "Replace `"100%"` with `'100%'`"
prettier/prettier
|
| Warning |
Row 319, Column 12: "Strings must use singlequote."
quotes
|
| 319 |
width: "100%", |
| 320 |
//borderWidth:1, |
| 321 |
// borderColor : 'orange' |
| 322 |
}, |
| 323 |
USER_IMAGE_CONTAINER: { |
| 324 |
//width: mvs(54), |
| 325 |
borderRadius: mvs(10), |
| 326 |
//borderWidth :1, |
| Error |
Row 327, Column 13: "Delete `·`"
prettier/prettier
|
| 327 |
position : 'absolute', |
| Error |
Row 328, Column 10: "Delete `·`"
prettier/prettier
|
| 328 |
right : 0, |
| Error |
Row 329, Column 11: "Replace `·:·"100%"` with `:·'100%',`"
prettier/prettier
|
| Warning |
Row 329, Column 14: "Strings must use singlequote."
quotes
|
| Warning |
Row 329, Column 20: "Missing trailing comma."
comma-dangle
|
| 329 |
height : "100%" |
| 330 |
}, |
| 331 |
SUB_USER_IMAGE_CONTAINER: { |
| 332 |
flex: 1, |
| 333 |
justifyContent: 'space-between', |
| 334 |
alignItems: 'center', |
| 335 |
//borderWidth:1 |
| 336 |
}, |
| 337 |
USER_IMAGE: { |
| 338 |
height: mvs(37), |
| 339 |
width: mvs(37), |
| 340 |
borderRadius: mvs(10), |
| 341 |
backgroundColor: colors.secondary, |
| 342 |
}, |
| 343 |
rewardContainer: { |
| 344 |
height: mvs(58), |
| 345 |
width: '100%', |
| 346 |
//borderWidth : 1, |
| 347 |
borderRadius: mvs(10), |
| 348 |
backgroundColor: colors.green, |
| 349 |
marginTop: mvs(115), |
| Error |
Row 350, Column 17: "Delete `·`"
prettier/prettier
|
| 350 |
marginBottom : mvs(40), |
| 351 |
paddingHorizontal: mvs(11), |
| 352 |
flexDirection: 'row', |
| 353 |
alignItems: 'center', |
| 354 |
justifyContent: 'space-between', |
| 355 |
}, |
| 356 |
container1: { |
| 357 |
//flex :1, |
| 358 |
paddingHorizontal: mvs(22), |
| 359 |
//borderWidth : 1 |
| 360 |
}, |
| 361 |
infoContainer: { |
| 362 |
width: '100%', |
| 363 |
flexDirection: 'row', |
| 364 |
//borderWidth : 1, |
| 365 |
justifyContent: 'space-between', |
| 366 |
}, |
| 367 |
label: { |
| 368 |
fontSize: mvs(13), |
| 369 |
color: colors.label, |
| 370 |
}, |
| 371 |
value: { |
| 372 |
fontSize: mvs(13), |
| 373 |
color: colors.headerTitle, |
| 374 |
}, |
| 375 |
line: { |
| 376 |
width: '100%', |
| 377 |
borderBottomWidth: mvs(0.5), |
| 378 |
borderColor: colors.doted, |
| 379 |
//marginTop: mvs(11), |
| 380 |
}, |
| 381 |
moreInfoContainer: { |
| 382 |
//paddingHorizontal: mvs(20), |
| 383 |
backgroundColor: colors.white, |
| 384 |
marginTop: mvs(22), |
| 385 |
//paddingBottom: mvs(22), |
| 386 |
//borderRadius: mvs(10), |
| 387 |
//borderWidth:1 |
| 388 |
}, |
| 389 |
statusContainer: { |
| Error |
Row 390, Column 11: "Delete `·`"
prettier/prettier
|
| 390 |
height : mvs(40), |
| Error |
Row 391, Column 10: "Delete `·`"
prettier/prettier
|
| 391 |
width : '100%', |
| Error |
Row 392, Column 17: "Delete `·`"
prettier/prettier
|
| 392 |
borderRadius : mvs(10), |
| Error |
Row 393, Column 16: "Delete `·`"
prettier/prettier
|
| 393 |
borderWidth : mvs(0.5), |
| Error |
Row 394, Column 16: "Delete `·`"
prettier/prettier
|
| 394 |
borderColor : colors.doted, |
| Error |
Row 395, Column 14: "Delete `·`"
prettier/prettier
|
| 395 |
marginTop : mvs(85), |
| Error |
Row 396, Column 15: "Delete `·`"
prettier/prettier
|
| 396 |
alignItems : 'center', |
| Error |
Row 397, Column 16: "Delete `·`"
prettier/prettier
|
| 397 |
paddingLeft : mvs(10), |
| Error |
Row 398, Column 18: "Replace `·:·'row'` with `:·'row',`"
prettier/prettier
|
| Warning |
Row 398, Column 26: "Missing trailing comma."
comma-dangle
|
| 398 |
flexDirection : 'row' |
| Error |
Row 399, Column 4: "Insert `,`"
prettier/prettier
|
| Warning |
Row 399, Column 4: "Missing trailing comma."
comma-dangle
|
| 399 |
} |
| 400 |
}); |
| 401 |
|
|
| Severity |
Rule |
| Warning |
Row 1, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| Error |
Row 2, Column 16: "Replace `·useState,·useEffect·` with `useState,·useEffect`"
prettier/prettier
|
| Error |
Row 3, Column 9: "Replace `·useIsFocused·` with `useIsFocused`"
prettier/prettier
|
| Error |
Row 4, Column 9: "Replace `·ScrollView,·StyleSheet,·Text,·TouchableOpacity,·View·` with `⏎··ScrollView,⏎··StyleSheet,⏎··Text,⏎··TouchableOpacity,⏎··View,⏎`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'ScrollView' is defined but never used."
no-unused-vars
|
| Warning |
Row 4, Column 40: "'TouchableOpacity' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 15, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Error |
Row 17, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 22, Column 10: "Replace `·profileData,fetchUserInfo·}·=·props` with `profileData,·fetchUserInfo}·=·props;`"
prettier/prettier
|
| Warning |
Row 22, Column 46: "Missing semicolon."
semi
|
| Warning |
Row 23, Column 9: "'Plus' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 23, Column 23: "["plus"] is better written in dot notation."
dot-notation
|
| Error |
Row 28, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 28, Column 68: "Missing semicolon."
semi
|
| Error |
Row 29, Column 34: "Replace `⏎` with `;`"
prettier/prettier
|
| Warning |
Row 29, Column 34: "Missing semicolon."
semi
|
| Error |
Row 34, Column 6: "React Hook useEffect has a missing dependency: 'props.route.params.state'. Either include it or remove the dependency array. If 'setstate' needs the current value of 'props.route.params.state', you can also switch to useReducer instead of useState and read 'props.route.params.state' in the reducer."
react-hooks/exhaustive-deps
|
| Error |
Row 34, Column 17: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 39, Column 30: "Insert `;`"
prettier/prettier
|
| Warning |
Row 39, Column 30: "Missing semicolon."
semi
|
| Error |
Row 40, Column 13: "'client' is not defined."
no-undef
|
| Error |
Row 41, Column 22: "Insert `,`"
prettier/prettier
|
| Warning |
Row 41, Column 22: "Missing trailing comma."
comma-dangle
|
| Error |
Row 42, Column 9: "Insert `;`"
prettier/prettier
|
| Warning |
Row 42, Column 9: "Missing semicolon."
semi
|
| Error |
Row 43, Column 28: "Insert `;`"
prettier/prettier
|
| Warning |
Row 43, Column 28: "Missing semicolon."
semi
|
| Error |
Row 45, Column 7: "Delete `··`"
prettier/prettier
|
| Error |
Row 46, Column 9: "Delete `··`"
prettier/prettier
|
| Error |
Row 47, Column 1: "Replace `··········` with `········`"
prettier/prettier
|
| Error |
Row 48, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 49, Column 1: "Replace `········` with `······`"
prettier/prettier
|
| Error |
Row 51, Column 22: "Insert `;`"
prettier/prettier
|
| Warning |
Row 51, Column 22: "Missing semicolon."
semi
|
| Error |
Row 52, Column 31: "Insert `;`"
prettier/prettier
|
| Warning |
Row 52, Column 31: "Missing semicolon."
semi
|
| Error |
Row 54, Column 31: "Insert `;`"
prettier/prettier
|
| Warning |
Row 54, Column 31: "Missing semicolon."
semi
|
| Error |
Row 61, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 61, Column 4: "Missing semicolon."
semi
|
| Error |
Row 65, Column 14: "Replace `⏎········{...props}⏎········title={'Wallet'}⏎········allowBackBtn⏎········userIcon={false}⏎·····` with `·{...props}·title={'Wallet'}·allowBackBtn·userIcon={false}`"
prettier/prettier
|
| Error |
Row 74, Column 42: "Insert `⏎···········`"
prettier/prettier
|
| Error |
Row 77, Column 25: "Replace `·fontSize:·mvs(21)·` with `fontSize:·mvs(21)`"
prettier/prettier
|
| Error |
Row 78, Column 21: "Replace `·color:·colors.primary,·fontSize:·mvs(21)·}}` with `color:·colors.primary,·fontSize:·mvs(21)}}⏎·········`"
prettier/prettier
|
| Warning |
Row 79, Column 14: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 83, Column 14: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 90, Column 21: "Replace `prettier/prettier
|
| Error |
Row 91, Column 13: "Replace `setModal(!modal)` with `····setModal(!modal);`"
prettier/prettier
|
| Warning |
Row 91, Column 29: "Missing semicolon."
semi
|
| Error |
Row 92, Column 1: "Replace `··········}}·/>` with `··············}}⏎············/>⏎··········)`"
prettier/prettier
|
| Error |
Row 93, Column 16: "Delete `⏎⏎`"
prettier/prettier
|
| Error |
Row 99, Column 19: "Replace `·...styles.mainTitle,·marginTop:·mvs(40)·` with `...styles.mainTitle,·marginTop:·mvs(40)`"
prettier/prettier
|
| Warning |
Row 107, Column 26: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 107, Column 27: "Replace `·flexDirection:·'row',·marginTop:·mvs(13)·` with `flexDirection:·'row',·marginTop:·mvs(13)`"
prettier/prettier
|
| Error |
Row 110, Column 39: "Replace `·}}·style={{·color:·colors.primary·` with `}}·style={{color:·colors.primary`"
prettier/prettier
|
| Warning |
Row 139, Column 11: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 144, Column 18: "Inline style: { position: 'absolute', alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 145, Column 23: "Replace `"absolute"` with `'absolute'`"
prettier/prettier
|
| Warning |
Row 145, Column 23: "Strings must use singlequote."
quotes
|
| Error |
Row 146, Column 24: "Replace `"center"` with `'center'`"
prettier/prettier
|
| Warning |
Row 146, Column 24: "Strings must use singlequote."
quotes
|
| Error |
Row 147, Column 28: "Insert `,`"
prettier/prettier
|
| Warning |
Row 147, Column 28: "Missing trailing comma."
comma-dangle
|
| Error |
Row 152, Column 23: "Replace `·proceedLoading={proceedLoading}·addBalance={addBalance}·visible={modal}·onClose={()·=>·setModal(false)}` with `⏎········proceedLoading={proceedLoading}⏎········addBalance={addBalance}⏎········visible={modal}⏎········onClose={()·=>·setModal(false)}⏎·····`"
prettier/prettier
|
| Error |
Row 153, Column 21: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎········translucent⏎········activeStatusBarStyle={'light-content'}⏎········inactiveStatusBarBackgroundColor={colors.primary}⏎········ref={alertRef}⏎·····`"
prettier/prettier
|
| Error |
Row 160, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 160, Column 4: "Missing semicolon."
semi
|
| Error |
Row 161, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 161, Column 2: "Missing semicolon."
semi
|
| Error |
Row 162, Column 25: "Replace `=dispatch=>` with `·=·dispatch·=>·`"
prettier/prettier
|
| Warning |
Row 162, Column 25: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 164, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 164, Column 3: "Missing semicolon."
semi
|
| Error |
Row 249, Column 23: "Insert `,`"
prettier/prettier
|
| Warning |
Row 249, Column 23: "Missing trailing comma."
comma-dangle
|
| Error |
Row 250, Column 4: "Insert `,`"
prettier/prettier
|
| Warning |
Row 250, Column 4: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| Warning |
Row 1, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| 1 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| Error |
Row 2, Column 16: "Replace `·useState,·useEffect·` with `useState,·useEffect`"
prettier/prettier
|
| 2 |
import React, { useState, useEffect } from 'react'; |
| Error |
Row 3, Column 9: "Replace `·useIsFocused·` with `useIsFocused`"
prettier/prettier
|
| 3 |
import { useIsFocused } from '@react-navigation/core'; |
| Error |
Row 4, Column 9: "Replace `·ScrollView,·StyleSheet,·Text,·TouchableOpacity,·View·` with `⏎··ScrollView,⏎··StyleSheet,⏎··Text,⏎··TouchableOpacity,⏎··View,⏎`"
prettier/prettier
|
| Warning |
Row 4, Column 10: "'ScrollView' is defined but never used."
no-unused-vars
|
| Warning |
Row 4, Column 40: "'TouchableOpacity' is defined but never used."
no-unused-vars
|
| 4 |
import { ScrollView, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; |
| 5 |
import Buttons from '../../../components/atoms/Button'; |
| 6 |
import BankInfoCard from '../../../components/molecules/bank_info/bank-info-card'; |
| 7 |
import Header from '../../../components/molecules/header/header-1x'; |
| 8 |
import colors from '../../../config/colors'; |
| 9 |
import fonts from '../../../config/fonts'; |
| Error |
Row 10, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 10 |
import { mvs } from '../../../config/metrices'; |
| 11 |
import Regular from '../../../presentation/typography/regular-text'; |
| 12 |
import * as Images from '../../../../resource/assets/bank-info-icons'; |
| 13 |
import AddBalanceModal from '../../../components/molecules/modals/add-balance-modal'; |
| 14 |
import PlusButton from '../../../components/molecules/order_card/plus-button'; |
| Error |
Row 15, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 15 |
import { TAKE_TO_INPUT_FIELD } from '../../../components/atoms'; |
| 16 |
import DropdownAlert from 'react-native-dropdownalert'; |
| Error |
Row 17, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 17 |
import { connect } from 'react-redux'; |
| 18 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 19 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 20 |
|
| 21 |
const Wallet = props => { |
| Error |
Row 22, Column 10: "Replace `·profileData,fetchUserInfo·}·=·props` with `profileData,·fetchUserInfo}·=·props;`"
prettier/prettier
|
| Warning |
Row 22, Column 46: "Missing semicolon."
semi
|
| 22 |
const { profileData,fetchUserInfo } = props |
| Warning |
Row 23, Column 9: "'Plus' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 23, Column 23: "["plus"] is better written in dot notation."
dot-notation
|
| 23 |
const Plus = Images['plus']; |
| 24 |
const isFocus = useIsFocused(); |
| 25 |
|
| 26 |
const [state, setstate] = useState(false); |
| 27 |
const [modal, setModal] = useState(false); |
| Error |
Row 28, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 28, Column 68: "Missing semicolon."
semi
|
| 28 |
const [proceedLoading, setProceedLoading] = React.useState(false) |
| Error |
Row 29, Column 34: "Replace `⏎` with `;`"
prettier/prettier
|
| Warning |
Row 29, Column 34: "Missing semicolon."
semi
|
| 29 |
const alertRef = React.useRef() |
| 30 |
|
| 31 |
|
| 32 |
useEffect(() => { |
| 33 |
setstate(props.route.params.state); |
| Error |
Row 34, Column 6: "React Hook useEffect has a missing dependency: 'props.route.params.state'. Either include it or remove the dependency array. If 'setstate' needs the current value of 'props.route.params.state', you can also switch to useReducer instead of useState and read 'props.route.params.state' in the reducer."
react-hooks/exhaustive-deps
|
| Error |
Row 34, Column 17: "Delete `⏎`"
prettier/prettier
|
| 34 |
}, [isFocus]); |
| 35 |
|
| 36 |
|
| 37 |
const addBalance = async () => { |
| 38 |
try { |
| Error |
Row 39, Column 30: "Insert `;`"
prettier/prettier
|
| Warning |
Row 39, Column 30: "Missing semicolon."
semi
|
| 39 |
setProceedLoading(true) |
| Error |
Row 40, Column 13: "'client' is not defined."
no-undef
|
| 40 |
await client.post('topup', { |
| Error |
Row 41, Column 22: "Insert `,`"
prettier/prettier
|
| Warning |
Row 41, Column 22: "Missing trailing comma."
comma-dangle
|
| 41 |
amount: 50000 |
| Error |
Row 42, Column 9: "Insert `;`"
prettier/prettier
|
| Warning |
Row 42, Column 9: "Missing semicolon."
semi
|
| 42 |
}) |
| Error |
Row 43, Column 28: "Insert `;`"
prettier/prettier
|
| Warning |
Row 43, Column 28: "Missing semicolon."
semi
|
| 43 |
await fetchUserInfo() |
| 44 |
|
| Error |
Row 45, Column 7: "Delete `··`"
prettier/prettier
|
| 45 |
alertRef.current.alertWithType( |
| Error |
Row 46, Column 9: "Delete `··`"
prettier/prettier
|
| 46 |
'success', |
| Error |
Row 47, Column 1: "Replace `··········` with `········`"
prettier/prettier
|
| 47 |
'Add balance', |
| Error |
Row 48, Column 1: "Delete `··`"
prettier/prettier
|
| 48 |
'Balance added successfully', |
| Error |
Row 49, Column 1: "Replace `········` with `······`"
prettier/prettier
|
| 49 |
); |
| 50 |
|
| Error |
Row 51, Column 22: "Insert `;`"
prettier/prettier
|
| Warning |
Row 51, Column 22: "Missing semicolon."
semi
|
| 51 |
setModal(false) |
| Error |
Row 52, Column 31: "Insert `;`"
prettier/prettier
|
| Warning |
Row 52, Column 31: "Missing semicolon."
semi
|
| 52 |
setProceedLoading(false) |
| 53 |
} catch (error) { |
| Error |
Row 54, Column 31: "Insert `;`"
prettier/prettier
|
| Warning |
Row 54, Column 31: "Missing semicolon."
semi
|
| 54 |
setProceedLoading(false) |
| 55 |
alertRef.current.alertWithType( |
| 56 |
'error', |
| 57 |
'Error', |
| 58 |
UI_API._returnError(error), |
| 59 |
); |
| 60 |
} |
| Error |
Row 61, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 61, Column 4: "Missing semicolon."
semi
|
| 61 |
} |
| 62 |
|
| 63 |
return ( |
| 64 |
<View style={styles.mainConatiner}> |
| Error |
Row 65, Column 14: "Replace `⏎········{...props}⏎········title={'Wallet'}⏎········allowBackBtn⏎········userIcon={false}⏎·····` with `·{...props}·title={'Wallet'}·allowBackBtn·userIcon={false}`"
prettier/prettier
|
| 65 |
<Header |
| 66 |
{...props} |
| 67 |
title={'Wallet'} |
| 68 |
allowBackBtn |
| 69 |
userIcon={false} |
| 70 |
/> |
| 71 |
<View style={styles.container}> |
| 72 |
<Regular label="Your balance" style={styles.mainTitle} /> |
| 73 |
<View style={styles.priceMainContainer}> |
| Error |
Row 74, Column 42: "Insert `⏎···········`"
prettier/prettier
|
| 74 |
<TAKE_TO_INPUT_FIELD.PriceInput editable={false} |
| 75 |
value={profileData?.wallet_balance?.split(' ')[1]} |
| 76 |
priceUnit={profileData?.wallet_balance?.split(' ')[0]} |
| Error |
Row 77, Column 25: "Replace `·fontSize:·mvs(21)·` with `fontSize:·mvs(21)`"
prettier/prettier
|
| 77 |
unitStyle={{ fontSize: mvs(21) }} |
| Error |
Row 78, Column 21: "Replace `·color:·colors.primary,·fontSize:·mvs(21)·}}` with `color:·colors.primary,·fontSize:·mvs(21)}}⏎·········`"
prettier/prettier
|
| 78 |
style={{ color: colors.primary, fontSize: mvs(21) }} /> |
| Warning |
Row 79, Column 14: "Trailing spaces not allowed."
no-trailing-spaces
|
| 79 |
{/* |
| 80 |
<View style={styles.priceContainer}> |
| 81 |
<Regular label="US$ 0" style={styles.balance} /> |
| 82 |
</View> */} |
| Warning |
Row 83, Column 14: "Trailing spaces not allowed."
no-trailing-spaces
|
| 83 |
{/* |
| 84 |
<Buttons.ButtonPrimary |
| 85 |
title = {"Widthdraw"} |
| 86 |
onClick = {() => {}} |
| 87 |
style = {{backgroundColor : colors.green, height : mvs(49), width: mvs(151)}} |
| 88 |
/> */} |
| 89 |
|
| Error |
Row 90, Column 21: "Replace `prettier/prettier
|
| 90 |
{state && <PlusButton onPress={() => { |
| Error |
Row 91, Column 13: "Replace `setModal(!modal)` with `····setModal(!modal);`"
prettier/prettier
|
| Warning |
Row 91, Column 29: "Missing semicolon."
semi
|
| 91 |
setModal(!modal) |
| Error |
Row 92, Column 1: "Replace `··········}}·/>` with `··············}}⏎············/>⏎··········)`"
prettier/prettier
|
| 92 |
}} />} |
| Error |
Row 93, Column 16: "Delete `⏎⏎`"
prettier/prettier
|
| 93 |
</View> |
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
<Regular |
| 98 |
label={'Bank account'} |
| Error |
Row 99, Column 19: "Replace `·...styles.mainTitle,·marginTop:·mvs(40)·` with `...styles.mainTitle,·marginTop:·mvs(40)`"
prettier/prettier
|
| 99 |
style={{ ...styles.mainTitle, marginTop: mvs(40) }} |
| 100 |
/> |
| 101 |
{!state && ( |
| 102 |
<View style={styles.setUpPaymentContainer}> |
| 103 |
<Regular |
| 104 |
label="You don’t have a payment method yet" |
| 105 |
style={styles.setUpPaymentTitle} |
| 106 |
/> |
| Warning |
Row 107, Column 26: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 107, Column 27: "Replace `·flexDirection:·'row',·marginTop:·mvs(13)·` with `flexDirection:·'row',·marginTop:·mvs(13)`"
prettier/prettier
|
| 107 |
<View style={{ flexDirection: 'row', marginTop: mvs(13) }}> |
| 108 |
<Text style={styles.setUpPaymentDetail}> |
| 109 |
Please set up your payout method to start receiving money from{' '} |
| Error |
Row 110, Column 39: "Replace `·}}·style={{·color:·colors.primary·` with `}}·style={{color:·colors.primary`"
prettier/prettier
|
| 110 |
<Text onPress={() => { }} style={{ color: colors.primary }}> |
| 111 |
Taketo |
| 112 |
</Text> |
| 113 |
. |
| 114 |
</Text> |
| 115 |
</View> |
| 116 |
<View style={styles.button}> |
| 117 |
<Buttons.ButtonPrimary |
| 118 |
onClick={() => props.navigation.navigate('addbankinfo')} |
| 119 |
title="Set up Payout" |
| 120 |
/> |
| 121 |
</View> |
| 122 |
</View> |
| 123 |
)} |
| 124 |
{state && ( |
| 125 |
<View style={styles.bankInfoContainer}> |
| 126 |
<BankInfoCard /> |
| 127 |
</View> |
| 128 |
)} |
| 129 |
|
| 130 |
{/* <TouchableOpacity |
| 131 |
style = {{...styles.historyButton, backgroundColor : state ? colors.primary : colors.secondary}} |
| 132 |
onPress={() => props.navigation.navigate('wallethistory')} |
| 133 |
> |
| 134 |
<Regular |
| 135 |
label={'Wallet History'} |
| 136 |
style={{ |
| 137 |
color: state ? colors.white : colors.typeHeader, |
| 138 |
}} |
| Warning |
Row 139, Column 11: "Trailing spaces not allowed."
no-trailing-spaces
|
| 139 |
/> |
| 140 |
</TouchableOpacity> */} |
| 141 |
|
| 142 |
<Buttons.ButtonPrimary |
| 143 |
title="Wallet History" |
| Warning |
Row 144, Column 18: "Inline style: { position: 'absolute', alignSelf: 'center' }"
react-native/no-inline-styles
|
| 144 |
style={{ |
| Error |
Row 145, Column 23: "Replace `"absolute"` with `'absolute'`"
prettier/prettier
|
| Warning |
Row 145, Column 23: "Strings must use singlequote."
quotes
|
| 145 |
position: "absolute", |
| Error |
Row 146, Column 24: "Replace `"center"` with `'center'`"
prettier/prettier
|
| Warning |
Row 146, Column 24: "Strings must use singlequote."
quotes
|
| 146 |
alignSelf: "center", |
| Error |
Row 147, Column 28: "Insert `,`"
prettier/prettier
|
| Warning |
Row 147, Column 28: "Missing trailing comma."
comma-dangle
|
| 147 |
bottom: mvs(40) |
| 148 |
}} |
| 149 |
onClick={() => props.navigation.navigate('wallethistory')} |
| 150 |
/> |
| 151 |
</View> |
| Error |
Row 152, Column 23: "Replace `·proceedLoading={proceedLoading}·addBalance={addBalance}·visible={modal}·onClose={()·=>·setModal(false)}` with `⏎········proceedLoading={proceedLoading}⏎········addBalance={addBalance}⏎········visible={modal}⏎········onClose={()·=>·setModal(false)}⏎·····`"
prettier/prettier
|
| 152 |
<AddBalanceModal proceedLoading={proceedLoading} addBalance={addBalance} visible={modal} onClose={() => setModal(false)} /> |
| Error |
Row 153, Column 21: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎········translucent⏎········activeStatusBarStyle={'light-content'}⏎········inactiveStatusBarBackgroundColor={colors.primary}⏎········ref={alertRef}⏎·····`"
prettier/prettier
|
| 153 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 154 |
</View> |
| 155 |
); |
| 156 |
}; |
| 157 |
const mapStateToProps = state => { |
| 158 |
return { |
| 159 |
profileData: state.auth.userInfo?.profile || {}, |
| Error |
Row 160, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 160, Column 4: "Missing semicolon."
semi
|
| 160 |
} |
| Error |
Row 161, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 161, Column 2: "Missing semicolon."
semi
|
| 161 |
} |
| Error |
Row 162, Column 25: "Replace `=dispatch=>` with `·=·dispatch·=>·`"
prettier/prettier
|
| Warning |
Row 162, Column 25: "Operator '=' must be spaced."
space-infix-ops
|
| 162 |
const mapDispatchToProps=dispatch=>({ |
| 163 |
fetchUserInfo: () => dispatch(TAKE_TO_ACTIONS.fetchUserInfo()), |
| Error |
Row 164, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 164, Column 3: "Missing semicolon."
semi
|
| 164 |
}) |
| 165 |
export default connect(mapStateToProps, mapDispatchToProps)(Wallet); |
| 166 |
|
| 167 |
const styles = StyleSheet.create({ |
| 168 |
mainConatiner: { |
| 169 |
flex: 1, |
| 170 |
backgroundColor: colors.white, |
| 171 |
}, |
| 172 |
container: { |
| 173 |
flex: 1, |
| 174 |
paddingHorizontal: mvs(22), |
| 175 |
}, |
| 176 |
mainTitle: { |
| 177 |
fontSize: mvs(15), |
| 178 |
color: colors.typeHeader, |
| 179 |
// marginTop: mvs(32), |
| 180 |
}, |
| 181 |
priceMainContainer: { |
| 182 |
marginTop: mvs(11), |
| 183 |
width: '100%', |
| 184 |
//borderWidth : 1, |
| 185 |
justifyContent: 'space-between', |
| 186 |
flexDirection: 'row', |
| 187 |
alignItems: 'center', |
| 188 |
}, |
| 189 |
priceContainer: { |
| 190 |
height: mvs(49), |
| 191 |
width: mvs(160), |
| 192 |
backgroundColor: colors.lightgrey, |
| 193 |
borderRadius: mvs(10), |
| 194 |
paddingLeft: mvs(20), |
| 195 |
justifyContent: 'center', |
| 196 |
}, |
| 197 |
balance: { |
| 198 |
fontSize: mvs(21), |
| 199 |
color: colors.primary, |
| 200 |
}, |
| 201 |
setUpPaymentContainer: { |
| 202 |
//height :mvs(170), |
| 203 |
width: '100%', |
| 204 |
//borderWidth : 1, |
| 205 |
marginTop: mvs(31), |
| 206 |
borderRadius: mvs(10), |
| 207 |
backgroundColor: colors.lightgrey, |
| 208 |
padding: mvs(20), |
| 209 |
}, |
| 210 |
setUpPaymentTitle: { |
| 211 |
fontSize: mvs(15), |
| 212 |
color: colors.typeHeader, |
| 213 |
}, |
| 214 |
setUpPaymentDetail: { |
| 215 |
fontSize: mvs(12), |
| 216 |
color: colors.price_unit, |
| 217 |
fontFamily: fonts.carosSoftRegular, |
| 218 |
}, |
| 219 |
button: { |
| 220 |
marginTop: mvs(24), |
| 221 |
}, |
| 222 |
walletHistory: { |
| 223 |
fontSize: mvs(15), |
| 224 |
color: colors.horizontalLine, |
| 225 |
textDecorationLine: 'underline', |
| 226 |
marginTop: mvs(32), |
| 227 |
}, |
| 228 |
bankInfoContainer: { |
| 229 |
marginTop: mvs(31), |
| 230 |
}, |
| 231 |
plusButton: { |
| 232 |
height: mvs(50), |
| 233 |
width: mvs(50), |
| 234 |
borderRadius: mvs(50 / 2), |
| 235 |
//position : 'absolute', |
| 236 |
right: 0, |
| 237 |
backgroundColor: colors.primary, |
| 238 |
justifyContent: 'center', |
| 239 |
alignItems: 'center', |
| 240 |
}, |
| 241 |
historyButton: { |
| 242 |
height: mvs(38), |
| 243 |
width: mvs(161), |
| 244 |
alignSelf: 'center', |
| 245 |
justifyContent: 'center', |
| 246 |
alignItems: 'center', |
| 247 |
backgroundColor: colors.secondary, |
| 248 |
borderRadius: mvs(10), |
| Error |
Row 249, Column 23: "Insert `,`"
prettier/prettier
|
| Warning |
Row 249, Column 23: "Missing trailing comma."
comma-dangle
|
| 249 |
marginTop: mvs(30) |
| Error |
Row 250, Column 4: "Insert `,`"
prettier/prettier
|
| Warning |
Row 250, Column 4: "Missing trailing comma."
comma-dangle
|
| 250 |
} |
| 251 |
}); |
| 252 |
|
|
|
|
/src/screens/notifications-screen/notifications.js
|
182 problems (97 errors, 85 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 74: "Insert `;`"
prettier/prettier
|
| Warning |
Row 1, Column 74: "Missing semicolon."
semi
|
| Error |
Row 2, Column 28: "Insert `;`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "Missing semicolon."
semi
|
| Error |
Row 3, Column 16: "Replace `·useState·}·from·'react'` with `useState}·from·'react';`"
prettier/prettier
|
| Warning |
Row 3, Column 40: "Missing semicolon."
semi
|
| Error |
Row 4, Column 9: "Replace `·ActivityIndicator,·FlatList,·StyleSheet,·View·}·from·'react-native'` with `ActivityIndicator,·FlatList,·StyleSheet,·View}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 4, Column 77: "Missing semicolon."
semi
|
| Error |
Row 5, Column 55: "Insert `;`"
prettier/prettier
|
| Warning |
Row 5, Column 55: "Missing semicolon."
semi
|
| Error |
Row 6, Column 9: "Replace `·connect·}·from·'react-redux'` with `connect}·from·'react-redux';`"
prettier/prettier
|
| Warning |
Row 6, Column 38: "Missing semicolon."
semi
|
| Error |
Row 7, Column 86: "Insert `;`"
prettier/prettier
|
| Warning |
Row 7, Column 86: "Missing semicolon."
semi
|
| Error |
Row 8, Column 65: "Insert `;`"
prettier/prettier
|
| Warning |
Row 8, Column 65: "Missing semicolon."
semi
|
| Error |
Row 9, Column 96: "Insert `;`"
prettier/prettier
|
| Warning |
Row 9, Column 96: "Missing semicolon."
semi
|
| Error |
Row 10, Column 92: "Insert `;`"
prettier/prettier
|
| Warning |
Row 10, Column 92: "Missing semicolon."
semi
|
| Error |
Row 11, Column 92: "Insert `;`"
prettier/prettier
|
| Warning |
Row 11, Column 92: "Missing semicolon."
semi
|
| Error |
Row 12, Column 92: "Insert `;`"
prettier/prettier
|
| Warning |
Row 12, Column 92: "Missing semicolon."
semi
|
| Error |
Row 13, Column 90: "Insert `;`"
prettier/prettier
|
| Warning |
Row 13, Column 90: "Missing semicolon."
semi
|
| Error |
Row 14, Column 86: "Insert `;`"
prettier/prettier
|
| Warning |
Row 14, Column 86: "Missing semicolon."
semi
|
| Error |
Row 15, Column 73: "Insert `;`"
prettier/prettier
|
| Warning |
Row 15, Column 73: "Missing semicolon."
semi
|
| Error |
Row 16, Column 41: "Insert `;`"
prettier/prettier
|
| Warning |
Row 16, Column 41: "Missing semicolon."
semi
|
| Error |
Row 17, Column 9: "Replace `·mvs·}·from·'../../config/metrices'` with `mvs}·from·'../../config/metrices';`"
prettier/prettier
|
| Warning |
Row 17, Column 44: "Missing semicolon."
semi
|
| Error |
Row 18, Column 65: "Insert `;`"
prettier/prettier
|
| Warning |
Row 18, Column 65: "Missing semicolon."
semi
|
| Error |
Row 19, Column 23: "Replace `(props)` with `props`"
prettier/prettier
|
| Error |
Row 20, Column 10: "Replace `·navigation,·route,·fetchNotifications,·notifications_list·}·=·props` with `navigation,·route,·fetchNotifications,·notifications_list}·=·props;`"
prettier/prettier
|
| Warning |
Row 20, Column 11: "'navigation' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 20, Column 23: "'route' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 20, Column 78: "Missing semicolon."
semi
|
| Error |
Row 21, Column 72: "Insert `;`"
prettier/prettier
|
| Warning |
Row 21, Column 72: "Missing semicolon."
semi
|
| Error |
Row 22, Column 74: "Insert `;`"
prettier/prettier
|
| Warning |
Row 22, Column 74: "Missing semicolon."
semi
|
| Error |
Row 23, Column 74: "Insert `;`"
prettier/prettier
|
| Warning |
Row 23, Column 74: "Missing semicolon."
semi
|
| Error |
Row 24, Column 78: "Insert `;`"
prettier/prettier
|
| Warning |
Row 24, Column 78: "Missing semicolon."
semi
|
| Error |
Row 25, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 25, Column 68: "Missing semicolon."
semi
|
| Error |
Row 26, Column 74: "Insert `;`"
prettier/prettier
|
| Warning |
Row 26, Column 74: "Missing semicolon."
semi
|
| Error |
Row 27, Column 74: "Insert `;`"
prettier/prettier
|
| Warning |
Row 27, Column 74: "Missing semicolon."
semi
|
| Error |
Row 28, Column 74: "Insert `;`"
prettier/prettier
|
| Warning |
Row 28, Column 74: "Missing semicolon."
semi
|
| Error |
Row 29, Column 78: "Insert `;`"
prettier/prettier
|
| Warning |
Row 29, Column 78: "Missing semicolon."
semi
|
| Error |
Row 30, Column 64: "Insert `;`"
prettier/prettier
|
| Warning |
Row 30, Column 64: "Missing semicolon."
semi
|
| Error |
Row 31, Column 66: "Insert `;`"
prettier/prettier
|
| Warning |
Row 31, Column 66: "Missing semicolon."
semi
|
| Error |
Row 32, Column 55: "Insert `;`"
prettier/prettier
|
| Warning |
Row 32, Column 55: "Missing semicolon."
semi
|
| Error |
Row 48, Column 11: "'UI_API' is not defined."
no-undef
|
| Error |
Row 52, Column 6: "React Hook React.useEffect has a missing dependency: 'fetchNotifications'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 55, Column 73: "Insert `;`"
prettier/prettier
|
| Warning |
Row 55, Column 73: "Missing semicolon."
semi
|
| Error |
Row 56, Column 18: "Replace `⏎⏎` with `;`"
prettier/prettier
|
| Warning |
Row 56, Column 18: "Missing semicolon."
semi
|
| Error |
Row 63, Column 34: "Replace `'Notifications'` with `"Notifications"`"
prettier/prettier
|
| Warning |
Row 63, Column 34: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 64, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 64, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| Error |
Row 69, Column 14: "Replace `!loading·&&·Object.keys(notifications_list).length·<=·0·||·notifications_list?.data?.length·<=·0` with `⏎····(!loading·&&·Object.keys(notifications_list).length·<=·0)·||⏎····notifications_list?.data?.length·<=·0⏎··`"
prettier/prettier
|
| Error |
Row 72, Column 34: "Replace `'Notifications'` with `"Notifications"`"
prettier/prettier
|
| Warning |
Row 72, Column 34: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 74, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 81, Column 20: "Strings must use singlequote."
quotes
|
| Warning |
Row 82, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 82, Column 21: "Replace `·textAlign:·'center',·color:·colors.primary·` with `textAlign:·'center',·color:·colors.primary`"
prettier/prettier
|
| Warning |
Row 87, Column 5: "Expected { after 'else'."
curly
|
| Error |
Row 88, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 91, Column 34: "Replace `'Notifications'` with `"Notifications"`"
prettier/prettier
|
| Warning |
Row 91, Column 34: "Unexpected usage of singlequote."
jsx-quotes
|
| Warning |
Row 92, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 92, Column 23: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| Error |
Row 99, Column 1: "Replace `⏎············renderItem={({·item,·index·})·=>` with `············renderItem={({item,·index})·=>·(`"
prettier/prettier
|
| Error |
Row 103, Column 54: "Replace `""` with `''`"
prettier/prettier
|
| Warning |
Row 103, Column 54: "Strings must use singlequote."
quotes
|
| Error |
Row 107, Column 47: "Replace `""` with `''`"
prettier/prettier
|
| Warning |
Row 107, Column 47: "Strings must use singlequote."
quotes
|
| Error |
Row 114, Column 23: "Insert `⏎····················`"
prettier/prettier
|
| Error |
Row 118, Column 21: "Replace `item?.data?.message_type·===·'offer_made'·&&·!item?.data?.is_buyer` with `(item?.data?.message_type·===·'offer_made'·&&⏎······················!item?.data?.is_buyer)⏎··················`"
prettier/prettier
|
| Error |
Row 120, Column 55: "Insert `,`"
prettier/prettier
|
| Warning |
Row 120, Column 55: "Missing trailing comma."
comma-dangle
|
| Error |
Row 121, Column 23: "Insert `;`"
prettier/prettier
|
| Warning |
Row 121, Column 23: "Missing semicolon."
semi
|
| Error |
Row 122, Column 30: "Replace `item?.data?.message_type·===·'order_delivery_confirmed'` with `⏎····················item?.data?.message_type·===·'order_delivery_confirmed'⏎··················`"
prettier/prettier
|
| Error |
Row 127, Column 36: "Replace `item?.data?.order_reward` with `·item?.data?.order_reward,`"
prettier/prettier
|
| Warning |
Row 127, Column 60: "Missing trailing comma."
comma-dangle
|
| Error |
Row 128, Column 23: "Insert `;`"
prettier/prettier
|
| Warning |
Row 128, Column 23: "Missing semicolon."
semi
|
| Error |
Row 130, Column 30: "Replace `item?.data?.message_type·===·'order_step_7'·||·item?.data?.message_type·===·'order_step_5'·||·item?.data?.message_type·===·'order_step_3'·||·item?.data?.message_type·===·'order_step_1'·&&·item?.data?.is_buyer)` with `⏎····················item?.data?.message_type·===·'order_step_7'·||⏎····················item?.data?.message_type·===·'order_step_5'·||⏎····················item?.data?.message_type·===·'order_step_3'·||⏎····················(item?.data?.message_type·===·'order_step_1'·&&⏎······················item?.data?.is_buyer)⏎··················)`"
prettier/prettier
|
| Error |
Row 132, Column 55: "Insert `,`"
prettier/prettier
|
| Warning |
Row 132, Column 55: "Missing trailing comma."
comma-dangle
|
| Error |
Row 133, Column 23: "Insert `;`"
prettier/prettier
|
| Warning |
Row 133, Column 23: "Missing semicolon."
semi
|
| Error |
Row 134, Column 30: "Insert `⏎····················`"
prettier/prettier
|
| Error |
Row 136, Column 75: "Insert `⏎··················`"
prettier/prettier
|
| Error |
Row 137, Column 58: "Insert `;`"
prettier/prettier
|
| Warning |
Row 137, Column 58: "Missing semicolon."
semi
|
| Error |
Row 139, Column 30: "Replace `item?.data?.message_type·===·'rejected·offer'·||·item?.data?.message_type·===·'rejected_offer'` with `⏎····················item?.data?.message_type·===·'rejected·offer'·||⏎····················item?.data?.message_type·===·'rejected_offer'⏎··················`"
prettier/prettier
|
| Error |
Row 141, Column 30: "Insert `⏎····················`"
prettier/prettier
|
| Error |
Row 142, Column 62: "Insert `⏎··················`"
prettier/prettier
|
| Error |
Row 145, Column 23: "Insert `;`"
prettier/prettier
|
| Warning |
Row 145, Column 23: "Missing semicolon."
semi
|
| Error |
Row 173, Column 13: "Insert `)`"
prettier/prettier
|
| Error |
Row 176, Column 37: "Replace `·paddingBottom:·mvs(46)·` with `paddingBottom:·mvs(46)`"
prettier/prettier
|
| Error |
Row 182, Column 27: "Replace `·setRewardAcceptedModal(false)` with `⏎············setRewardAcceptedModal(false);⏎·········`"
prettier/prettier
|
| Warning |
Row 182, Column 57: "Missing semicolon."
semi
|
| Error |
Row 183, Column 32: "Replace `·props.navigation.navigate('chat')` with `⏎············props.navigation.navigate('chat');⏎·········`"
prettier/prettier
|
| Warning |
Row 183, Column 66: "Missing semicolon."
semi
|
| Error |
Row 187, Column 27: "Replace `·setProductAcceptedModal(false)` with `⏎············setProductAcceptedModal(false);⏎·········`"
prettier/prettier
|
| Warning |
Row 187, Column 58: "Missing semicolon."
semi
|
| Error |
Row 188, Column 32: "Replace `·props.navigation.navigate('chat')` with `⏎············props.navigation.navigate('chat');⏎·········`"
prettier/prettier
|
| Warning |
Row 188, Column 66: "Missing semicolon."
semi
|
| Error |
Row 197, Column 43: "Insert `;`"
prettier/prettier
|
| Warning |
Row 197, Column 43: "Missing semicolon."
semi
|
| Error |
Row 198, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 198, Column 44: "Missing semicolon."
semi
|
| Error |
Row 200, Column 27: "Replace `·setReceiptAcceptedModal(false)` with `⏎············setReceiptAcceptedModal(false);⏎·········`"
prettier/prettier
|
| Warning |
Row 200, Column 58: "Missing semicolon."
semi
|
| Error |
Row 207, Column 28: "Replace `·marginTop:·mvs(30)·` with `marginTop:·mvs(30)`"
prettier/prettier
|
| Error |
Row 209, Column 27: "Replace `·setDealRejectedModal(false)` with `⏎············setDealRejectedModal(false);⏎·········`"
prettier/prettier
|
| Warning |
Row 209, Column 55: "Missing semicolon."
semi
|
| Error |
Row 213, Column 27: "Replace `·setRequestDeliveryAddress(false)` with `⏎············setRequestDeliveryAddress(false);⏎·········`"
prettier/prettier
|
| Warning |
Row 213, Column 60: "Missing semicolon."
semi
|
| Error |
Row 217, Column 32: "Replace `·setProductRejectedModal(false)` with `⏎············setProductRejectedModal(false);⏎·········`"
prettier/prettier
|
| Warning |
Row 217, Column 63: "Missing semicolon."
semi
|
| Error |
Row 218, Column 32: "Replace `·props.navigation.navigate('chat')` with `⏎············props.navigation.navigate('chat');⏎·········`"
prettier/prettier
|
| Warning |
Row 218, Column 66: "Missing semicolon."
semi
|
| Error |
Row 223, Column 27: "Replace `·setDisputeRejectedModal(false)` with `⏎············setDisputeRejectedModal(false);⏎·········`"
prettier/prettier
|
| Warning |
Row 223, Column 58: "Missing semicolon."
semi
|
| Error |
Row 231, Column 27: "Replace `·setDeliveryDisputeModal(false)` with `⏎············setDeliveryDisputeModal(false);⏎·········`"
prettier/prettier
|
| Warning |
Row 231, Column 58: "Missing semicolon."
semi
|
| Error |
Row 242, Column 42: "Replace `||` with `·||·`"
prettier/prettier
|
| Warning |
Row 242, Column 42: "Operator '||' must be spaced."
space-infix-ops
|
| Error |
Row 245, Column 45: "Insert `;`"
prettier/prettier
|
| Warning |
Row 245, Column 45: "Missing semicolon."
semi
|
| Error |
Row 246, Column 39: "Replace `"userprofile",·{·...buyerInfo·})` with `'userprofile',·{...buyerInfo});`"
prettier/prettier
|
| Warning |
Row 246, Column 39: "Strings must use singlequote."
quotes
|
| Warning |
Row 246, Column 71: "Missing semicolon."
semi
|
| Error |
Row 248, Column 24: "Replace `"Rate·the·Buyer"` with `'Rate·the·Buyer'`"
prettier/prettier
|
| Warning |
Row 248, Column 24: "Strings must use singlequote."
quotes
|
| Error |
Row 257, Column 38: "Insert `;`"
prettier/prettier
|
| Warning |
Row 257, Column 38: "Missing semicolon."
semi
|
| Error |
Row 258, Column 39: "Replace `"userprofile")` with `'userprofile');`"
prettier/prettier
|
| Warning |
Row 258, Column 39: "Strings must use singlequote."
quotes
|
| Warning |
Row 258, Column 53: "Missing semicolon."
semi
|
| Error |
Row 260, Column 24: "Replace `"Rate·Buyer"` with `'Rate·Buyer'`"
prettier/prettier
|
| Warning |
Row 260, Column 24: "Strings must use singlequote."
quotes
|
| Error |
Row 263, Column 27: "Delete `·`"
prettier/prettier
|
| Error |
Row 269, Column 39: "Insert `;`"
prettier/prettier
|
| Warning |
Row 269, Column 39: "Missing semicolon."
semi
|
| Error |
Row 270, Column 39: "Replace `"userprofile")` with `'userprofile');`"
prettier/prettier
|
| Warning |
Row 270, Column 39: "Strings must use singlequote."
quotes
|
| Warning |
Row 270, Column 53: "Missing semicolon."
semi
|
| Error |
Row 277, Column 27: "Replace `·setLostDisputeModal(false)` with `⏎············setLostDisputeModal(false);⏎·········`"
prettier/prettier
|
| Warning |
Row 277, Column 54: "Missing semicolon."
semi
|
| Error |
Row 279, Column 1: "Replace `·········prettier/prettier
|
| Error |
Row 281, Column 6: "Insert `;`"
prettier/prettier
|
| Warning |
Row 281, Column 6: "Missing semicolon."
semi
|
| Error |
Row 282, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 282, Column 2: "Missing semicolon."
semi
|
| Error |
Row 295, Column 34: "Insert `,`"
prettier/prettier
|
| Warning |
Row 295, Column 34: "Missing trailing comma."
comma-dangle
|
| Error |
Row 300, Column 4: "Insert `,`"
prettier/prettier
|
| Warning |
Row 300, Column 4: "Missing trailing comma."
comma-dangle
|
| Error |
Row 301, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 301, Column 3: "Missing semicolon."
semi
|
| Line |
Source |
| Error |
Row 1, Column 74: "Insert `;`"
prettier/prettier
|
| Warning |
Row 1, Column 74: "Missing semicolon."
semi
|
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions' |
| Error |
Row 2, Column 28: "Insert `;`"
prettier/prettier
|
| Warning |
Row 2, Column 28: "Missing semicolon."
semi
|
| 2 |
import moment from 'moment' |
| Error |
Row 3, Column 16: "Replace `·useState·}·from·'react'` with `useState}·from·'react';`"
prettier/prettier
|
| Warning |
Row 3, Column 40: "Missing semicolon."
semi
|
| 3 |
import React, { useState } from 'react' |
| Error |
Row 4, Column 9: "Replace `·ActivityIndicator,·FlatList,·StyleSheet,·View·}·from·'react-native'` with `ActivityIndicator,·FlatList,·StyleSheet,·View}·from·'react-native';`"
prettier/prettier
|
| Warning |
Row 4, Column 77: "Missing semicolon."
semi
|
| 4 |
import { ActivityIndicator, FlatList, StyleSheet, View } from 'react-native' |
| Error |
Row 5, Column 55: "Insert `;`"
prettier/prettier
|
| Warning |
Row 5, Column 55: "Missing semicolon."
semi
|
| 5 |
import DropdownAlert from 'react-native-dropdownalert' |
| Error |
Row 6, Column 9: "Replace `·connect·}·from·'react-redux'` with `connect}·from·'react-redux';`"
prettier/prettier
|
| Warning |
Row 6, Column 38: "Missing semicolon."
semi
|
| 6 |
import { connect } from 'react-redux' |
| Error |
Row 7, Column 86: "Insert `;`"
prettier/prettier
|
| Warning |
Row 7, Column 86: "Missing semicolon."
semi
|
| 7 |
import NotificationCard from '../../components/molecules/chat_card/notification-card' |
| Error |
Row 8, Column 65: "Insert `;`"
prettier/prettier
|
| Warning |
Row 8, Column 65: "Missing semicolon."
semi
|
| 8 |
import Header from '../../components/molecules/header/header-1x' |
| Error |
Row 9, Column 96: "Insert `;`"
prettier/prettier
|
| Warning |
Row 9, Column 96: "Missing semicolon."
semi
|
| 9 |
import DeliveryAddressRequest from '../../components/molecules/modals/delivery-address-request' |
| Error |
Row 10, Column 92: "Insert `;`"
prettier/prettier
|
| Warning |
Row 10, Column 92: "Missing semicolon."
semi
|
| 10 |
import ProductAcceptedModal from '../../components/molecules/modals/product-accepted-modal' |
| Error |
Row 11, Column 92: "Insert `;`"
prettier/prettier
|
| Warning |
Row 11, Column 92: "Missing semicolon."
semi
|
| 11 |
import ProductRejectedModal from '../../components/molecules/modals/product-rejected-modal' |
| Error |
Row 12, Column 92: "Insert `;`"
prettier/prettier
|
| Warning |
Row 12, Column 92: "Missing semicolon."
semi
|
| 12 |
import ReceiptDisputedModal from '../../components/molecules/modals/receipt-disputed-modal' |
| Error |
Row 13, Column 90: "Insert `;`"
prettier/prettier
|
| Warning |
Row 13, Column 90: "Missing semicolon."
semi
|
| 13 |
import RewardAcceptedModal from '../../components/molecules/modals/reward-accepted-modal' |
| Error |
Row 14, Column 86: "Insert `;`"
prettier/prettier
|
| Warning |
Row 14, Column 86: "Missing semicolon."
semi
|
| 14 |
import RewardAmountModal from '../../components/molecules/modals/reward-amount-modal' |
| Error |
Row 15, Column 73: "Insert `;`"
prettier/prettier
|
| Warning |
Row 15, Column 73: "Missing semicolon."
semi
|
| 15 |
import StatusModal from '../../components/molecules/modals/status-modal' |
| Error |
Row 16, Column 41: "Insert `;`"
prettier/prettier
|
| Warning |
Row 16, Column 41: "Missing semicolon."
semi
|
| 16 |
import colors from '../../config/colors' |
| Error |
Row 17, Column 9: "Replace `·mvs·}·from·'../../config/metrices'` with `mvs}·from·'../../config/metrices';`"
prettier/prettier
|
| Warning |
Row 17, Column 44: "Missing semicolon."
semi
|
| 17 |
import { mvs } from '../../config/metrices' |
| Error |
Row 18, Column 65: "Insert `;`"
prettier/prettier
|
| Warning |
Row 18, Column 65: "Missing semicolon."
semi
|
| 18 |
import Regular from '../../presentation/typography/regular-text' |
| Error |
Row 19, Column 23: "Replace `(props)` with `props`"
prettier/prettier
|
| 19 |
const Notifications = (props) => { |
| Error |
Row 20, Column 10: "Replace `·navigation,·route,·fetchNotifications,·notifications_list·}·=·props` with `navigation,·route,·fetchNotifications,·notifications_list}·=·props;`"
prettier/prettier
|
| Warning |
Row 20, Column 11: "'navigation' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 20, Column 23: "'route' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 20, Column 78: "Missing semicolon."
semi
|
| 20 |
const { navigation, route, fetchNotifications, notifications_list } = props |
| Error |
Row 21, Column 72: "Insert `;`"
prettier/prettier
|
| Warning |
Row 21, Column 72: "Missing semicolon."
semi
|
| 21 |
const [rewardAcceptedModal, setRewardAcceptedModal] = useState(false) |
| Error |
Row 22, Column 74: "Insert `;`"
prettier/prettier
|
| Warning |
Row 22, Column 74: "Missing semicolon."
semi
|
| 22 |
const [productAcceptedModal, setProductAcceptedModal] = useState(false) |
| Error |
Row 23, Column 74: "Insert `;`"
prettier/prettier
|
| Warning |
Row 23, Column 74: "Missing semicolon."
semi
|
| 23 |
const [receiptAcceptedModal, setReceiptAcceptedModal] = useState(false) |
| Error |
Row 24, Column 78: "Insert `;`"
prettier/prettier
|
| Warning |
Row 24, Column 78: "Missing semicolon."
semi
|
| 24 |
const [requestDeliveryAddress, setRequestDeliveryAddress] = useState(false) |
| Error |
Row 25, Column 68: "Insert `;`"
prettier/prettier
|
| Warning |
Row 25, Column 68: "Missing semicolon."
semi
|
| 25 |
const [dealRejectedModal, setDealRejectedModal] = useState(false) |
| Error |
Row 26, Column 74: "Insert `;`"
prettier/prettier
|
| Warning |
Row 26, Column 74: "Missing semicolon."
semi
|
| 26 |
const [productRejectedModal, setProductRejectedModal] = useState(false) |
| Error |
Row 27, Column 74: "Insert `;`"
prettier/prettier
|
| Warning |
Row 27, Column 74: "Missing semicolon."
semi
|
| 27 |
const [disputeRejectedModal, setDisputeRejectedModal] = useState(false) |
| Error |
Row 28, Column 74: "Insert `;`"
prettier/prettier
|
| Warning |
Row 28, Column 74: "Missing semicolon."
semi
|
| 28 |
const [deliveryDisputeModal, setDeliveryDisputeModal] = useState(false) |
| Error |
Row 29, Column 78: "Insert `;`"
prettier/prettier
|
| Warning |
Row 29, Column 78: "Missing semicolon."
semi
|
| 29 |
const [deliveryConfirmedModal, setDeliveryConfirmedModal] = useState(false) |
| Error |
Row 30, Column 64: "Insert `;`"
prettier/prettier
|
| Warning |
Row 30, Column 64: "Missing semicolon."
semi
|
| 30 |
const [wonDisputeModal, setWonDisputeModal] = useState(false) |
| Error |
Row 31, Column 66: "Insert `;`"
prettier/prettier
|
| Warning |
Row 31, Column 66: "Missing semicolon."
semi
|
| 31 |
const [lostDisputeModal, setLostDisputeModal] = useState(false) |
| Error |
Row 32, Column 55: "Insert `;`"
prettier/prettier
|
| Warning |
Row 32, Column 55: "Missing semicolon."
semi
|
| 32 |
const [buyerInfo, setBuyerInfo] = React.useState({}) |
| 33 |
const [loading, setLoading] = React.useState(true); |
| 34 |
const alertRef = React.useRef(); |
| 35 |
|
| 36 |
React.useEffect(() => { |
| 37 |
(async () => { |
| 38 |
try { |
| 39 |
setLoading(true); |
| 40 |
await fetchNotifications(); |
| 41 |
setLoading(false); |
| 42 |
} catch (error) { |
| 43 |
setLoading(false); |
| 44 |
// scrollRef.current.scrollTo({x: 0, y: 0, animated: true}); |
| 45 |
alertRef.current.alertWithType( |
| 46 |
'error', |
| 47 |
'Error', |
| Error |
Row 48, Column 11: "'UI_API' is not defined."
no-undef
|
| 48 |
UI_API._returnError(error), |
| 49 |
); |
| 50 |
} |
| 51 |
})(); |
| Error |
Row 52, Column 6: "React Hook React.useEffect has a missing dependency: 'fetchNotifications'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 52 |
}, []); |
| 53 |
|
| 54 |
React.useEffect(() => { |
| Error |
Row 55, Column 73: "Insert `;`"
prettier/prettier
|
| Warning |
Row 55, Column 73: "Missing semicolon."
semi
|
| 55 |
Object.keys(buyerInfo).length > 0 && setDeliveryConfirmedModal(true) |
| Error |
Row 56, Column 18: "Replace `⏎⏎` with `;`"
prettier/prettier
|
| Warning |
Row 56, Column 18: "Missing semicolon."
semi
|
| 56 |
}, [buyerInfo]) |
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
if (loading) { |
| 61 |
return ( |
| 62 |
<View style={styles.mainContainer}> |
| Error |
Row 63, Column 34: "Replace `'Notifications'` with `"Notifications"`"
prettier/prettier
|
| Warning |
Row 63, Column 34: "Unexpected usage of singlequote."
jsx-quotes
|
| 63 |
<Header {...props} title='Notifications' allowBackBtn /> |
| Warning |
Row 64, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 64, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| 64 |
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> |
| 65 |
<ActivityIndicator size="small" color={colors.primary} /> |
| 66 |
</View> |
| 67 |
</View> |
| 68 |
); |
| Error |
Row 69, Column 14: "Replace `!loading·&&·Object.keys(notifications_list).length·<=·0·||·notifications_list?.data?.length·<=·0` with `⏎····(!loading·&&·Object.keys(notifications_list).length·<=·0)·||⏎····notifications_list?.data?.length·<=·0⏎··`"
prettier/prettier
|
| 69 |
} else if (!loading && Object.keys(notifications_list).length <= 0 || notifications_list?.data?.length <= 0) { |
| 70 |
return ( |
| 71 |
<View style={styles.mainContainer}> |
| Error |
Row 72, Column 34: "Replace `'Notifications'` with `"Notifications"`"
prettier/prettier
|
| Warning |
Row 72, Column 34: "Unexpected usage of singlequote."
jsx-quotes
|
| 72 |
<Header {...props} title='Notifications' allowBackBtn /> |
| 73 |
<View |
| Warning |
Row 74, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 74 |
style={{ |
| 75 |
flex: 1, |
| 76 |
justifyContent: 'center', |
| 77 |
alignItems: 'center', |
| 78 |
paddingHorizontal: mvs(20), |
| 79 |
}}> |
| 80 |
<Regular |
| Warning |
Row 81, Column 20: "Strings must use singlequote."
quotes
|
| 81 |
label={`No record found`} |
| Warning |
Row 82, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 82, Column 21: "Replace `·textAlign:·'center',·color:·colors.primary·` with `textAlign:·'center',·color:·colors.primary`"
prettier/prettier
|
| 82 |
style={{ textAlign: 'center', color: colors.primary }} |
| 83 |
/> |
| 84 |
</View> |
| 85 |
</View> |
| 86 |
); |
| Warning |
Row 87, Column 5: "Expected { after 'else'."
curly
|
| 87 |
} else |
| Error |
Row 88, Column 1: "Delete `⏎`"
prettier/prettier
|
| 88 |
|
| 89 |
return ( |
| 90 |
<View style={styles.mainContainer}> |
| Error |
Row 91, Column 34: "Replace `'Notifications'` with `"Notifications"`"
prettier/prettier
|
| Warning |
Row 91, Column 34: "Unexpected usage of singlequote."
jsx-quotes
|
| 91 |
<Header {...props} title='Notifications' allowBackBtn /> |
| Warning |
Row 92, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 92, Column 23: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| 92 |
<View style={{ flex: 1 }}> |
| 93 |
{/* <View style={{paddingHorizontal:mvs(22),flexDirection:'row',justifyContent:'space-between',marginBottom:mvs(30)}}> |
| 94 |
<Buttons.ButtonPrimary onClick={()=>setSelectedBtn(true)} title={'Messages'} style={{width:'49%',height:mvs(44),borderWidth:selectedBtn?0:1,borderColor:colors.primary,backgroundColor:selectedBtn?colors.primary:colors.white}} textStyle={{color:selectedBtn?colors.white :colors.primary}}/> |
| 95 |
<Buttons.ButtonSecondaryOutline onClick={()=>setSelectedBtn(false)} title={'Notifications'} style={{width:'49%',height:mvs(44),borderWidth:selectedBtn?1:0,borderColor:colors.primary,backgroundColor:selectedBtn?colors.white:colors.primary}} textStyle={{color:selectedBtn?colors.primary :colors.white}}/> |
| 96 |
</View> */} |
| 97 |
<FlatList |
| 98 |
data={notifications_list?.data} |
| Error |
Row 99, Column 1: "Replace `⏎············renderItem={({·item,·index·})·=>` with `············renderItem={({item,·index})·=>·(`"
prettier/prettier
|
| 99 |
|
| 100 |
renderItem={({ item, index }) => |
| 101 |
<NotificationCard |
| 102 |
{...props} |
| Error |
Row 103, Column 54: "Replace `""` with `''`"
prettier/prettier
|
| Warning |
Row 103, Column 54: "Strings must use singlequote."
quotes
|
| 103 |
user_name={item?.sender_user_name || ""} |
| 104 |
time={moment(item?.time).format('hh:mm A')} |
| 105 |
user_img={item?.sender_user_image} |
| 106 |
counter={item?.counter || 0} |
| Error |
Row 107, Column 47: "Replace `""` with `''`"
prettier/prettier
|
| Warning |
Row 107, Column 47: "Strings must use singlequote."
quotes
|
| 107 |
message={item?.data?.title || ""} |
| 108 |
onPress={() => { |
| 109 |
// if (!item?.data?.thread_id && !item?.data?.is_buyer) {//item?.data?.is_buyer (notification creator i.e. buyer or traveler) |
| 110 |
// props.navigation.navigate('pendingdetails', { |
| 111 |
// order_id: item?.data?.order_id, |
| 112 |
// }) |
| 113 |
// } |
| Error |
Row 114, Column 23: "Insert `⏎····················`"
prettier/prettier
|
| 114 |
if (item?.data?.message_type === 'order_step_2' || |
| 115 |
item?.data?.message_type === 'order_step_4' || |
| 116 |
item?.data?.message_type === 'order_step_6' || |
| 117 |
item?.data?.message_type === 'order_step_8' || |
| Error |
Row 118, Column 21: "Replace `item?.data?.message_type·===·'offer_made'·&&·!item?.data?.is_buyer` with `(item?.data?.message_type·===·'offer_made'·&&⏎······················!item?.data?.is_buyer)⏎··················`"
prettier/prettier
|
| 118 |
item?.data?.message_type === 'offer_made' && !item?.data?.is_buyer) { |
| 119 |
props.navigation.navigate('chat', { |
| Error |
Row 120, Column 55: "Insert `,`"
prettier/prettier
|
| Warning |
Row 120, Column 55: "Missing trailing comma."
comma-dangle
|
| 120 |
thread_id: item?.data?.thread_id |
| Error |
Row 121, Column 23: "Insert `;`"
prettier/prettier
|
| Warning |
Row 121, Column 23: "Missing semicolon."
semi
|
| 121 |
}) |
| Error |
Row 122, Column 30: "Replace `item?.data?.message_type·===·'order_delivery_confirmed'` with `⏎····················item?.data?.message_type·===·'order_delivery_confirmed'⏎··················`"
prettier/prettier
|
| 122 |
} else if (item?.data?.message_type === 'order_delivery_confirmed') { |
| 123 |
setBuyerInfo({ |
| 124 |
user_id: item?.data?.buyer_id, |
| 125 |
is_review: true, |
| 126 |
order_id: item?.data?.order_id, |
| Error |
Row 127, Column 36: "Replace `item?.data?.order_reward` with `·item?.data?.order_reward,`"
prettier/prettier
|
| Warning |
Row 127, Column 60: "Missing trailing comma."
comma-dangle
|
| 127 |
order_reward:item?.data?.order_reward |
| Error |
Row 128, Column 23: "Insert `;`"
prettier/prettier
|
| Warning |
Row 128, Column 23: "Missing semicolon."
semi
|
| 128 |
}) |
| 129 |
//rate to buyer |
| Error |
Row 130, Column 30: "Replace `item?.data?.message_type·===·'order_step_7'·||·item?.data?.message_type·===·'order_step_5'·||·item?.data?.message_type·===·'order_step_3'·||·item?.data?.message_type·===·'order_step_1'·&&·item?.data?.is_buyer)` with `⏎····················item?.data?.message_type·===·'order_step_7'·||⏎····················item?.data?.message_type·===·'order_step_5'·||⏎····················item?.data?.message_type·===·'order_step_3'·||⏎····················(item?.data?.message_type·===·'order_step_1'·&&⏎······················item?.data?.is_buyer)⏎··················)`"
prettier/prettier
|
| 130 |
} else if (item?.data?.message_type === 'order_step_7' || item?.data?.message_type === 'order_step_5' || item?.data?.message_type === 'order_step_3' || item?.data?.message_type === 'order_step_1' && item?.data?.is_buyer) { |
| 131 |
props.navigation.navigate('chat', { |
| Error |
Row 132, Column 55: "Insert `,`"
prettier/prettier
|
| Warning |
Row 132, Column 55: "Missing trailing comma."
comma-dangle
|
| 132 |
thread_id: item?.data?.thread_id |
| Error |
Row 133, Column 23: "Insert `;`"
prettier/prettier
|
| Warning |
Row 133, Column 23: "Missing semicolon."
semi
|
| 133 |
}) |
| Error |
Row 134, Column 30: "Insert `⏎····················`"
prettier/prettier
|
| 134 |
} else if (item?.data?.message_type === 'order_step_2_rejected' || |
| 135 |
item?.data?.message_type === 'order_step_4_rejected' || |
| Error |
Row 136, Column 75: "Insert `⏎··················`"
prettier/prettier
|
| 136 |
item?.data?.message_type === 'order_delivery_disputed') { |
| Error |
Row 137, Column 58: "Insert `;`"
prettier/prettier
|
| Warning |
Row 137, Column 58: "Missing semicolon."
semi
|
| 137 |
props.navigation.navigate('disputes') |
| 138 |
//dispute |
| Error |
Row 139, Column 30: "Replace `item?.data?.message_type·===·'rejected·offer'·||·item?.data?.message_type·===·'rejected_offer'` with `⏎····················item?.data?.message_type·===·'rejected·offer'·||⏎····················item?.data?.message_type·===·'rejected_offer'⏎··················`"
prettier/prettier
|
| 139 |
} else if (item?.data?.message_type === 'rejected offer' || item?.data?.message_type === 'rejected_offer') { |
| 140 |
//idhr hi rhny 2 |
| Error |
Row 141, Column 30: "Insert `⏎····················`"
prettier/prettier
|
| 141 |
} else if (item?.data?.message_type === 'save_offer' || |
| Error |
Row 142, Column 62: "Insert `⏎··················`"
prettier/prettier
|
| 142 |
item?.data?.message_type === 'offer made') { |
| 143 |
props.navigation.navigate('pendingdetails', { |
| 144 |
order_id: item?.data?.order_id, |
| Error |
Row 145, Column 23: "Insert `;`"
prettier/prettier
|
| Warning |
Row 145, Column 23: "Missing semicolon."
semi
|
| 145 |
}) |
| 146 |
} |
| 147 |
|
| 148 |
// if (item?.message == "Reward accepted") { |
| 149 |
// setRewardAcceptedModal(true) |
| 150 |
// } else if (item?.message == "Product accepted") { |
| 151 |
// setProductAcceptedModal(true) |
| 152 |
// } else if (item?.message == "Receipt accepted") { |
| 153 |
// setReceiptAcceptedModal(true) |
| 154 |
// } else if (item?.message == "Delivery address sent") { |
| 155 |
// props.navigation.navigate('chat') |
| 156 |
// } else if (item?.message == "Delivery confirmed") { |
| 157 |
// setDeliveryConfirmedModal(true) |
| 158 |
// } else if (item?.message == "Deal rejected") { |
| 159 |
// setDealRejectedModal(true) |
| 160 |
// } else if (item?.message == "Product rejected") { |
| 161 |
// setProductRejectedModal(true) |
| 162 |
// } else if (item?.message == "Receipt disputed") { |
| 163 |
// setDisputeRejectedModal(true) |
| 164 |
// } else if (item?.message == "Delivery disputed") { |
| 165 |
// setDeliveryDisputeModal(true) |
| 166 |
// } else if (item?.message == "You won the delivery dispute.") { |
| 167 |
// setWonDisputeModal(true) |
| 168 |
// } else if (item?.message == "You lost the delivery dispute.") { |
| 169 |
// setLostDisputeModal(true) |
| 170 |
// } |
| 171 |
}} |
| 172 |
/> |
| Error |
Row 173, Column 13: "Insert `)`"
prettier/prettier
|
| 173 |
} |
| 174 |
keyExtractor={(item, index) => index?.toString()} |
| 175 |
style={styles.conversationsContainer} |
| Error |
Row 176, Column 37: "Replace `·paddingBottom:·mvs(46)·` with `paddingBottom:·mvs(46)`"
prettier/prettier
|
| 176 |
contentContainerStyle={{ paddingBottom: mvs(46) }} |
| 177 |
/> |
| 178 |
</View> |
| 179 |
|
| 180 |
<RewardAcceptedModal |
| 181 |
visible={rewardAcceptedModal} |
| Error |
Row 182, Column 27: "Replace `·setRewardAcceptedModal(false)` with `⏎············setRewardAcceptedModal(false);⏎·········`"
prettier/prettier
|
| Warning |
Row 182, Column 57: "Missing semicolon."
semi
|
| 182 |
onClose={() => { setRewardAcceptedModal(false) }} |
| Error |
Row 183, Column 32: "Replace `·props.navigation.navigate('chat')` with `⏎············props.navigation.navigate('chat');⏎·········`"
prettier/prettier
|
| Warning |
Row 183, Column 66: "Missing semicolon."
semi
|
| 183 |
onSendButton={() => { props.navigation.navigate('chat') }} |
| 184 |
/> |
| 185 |
<ProductAcceptedModal |
| 186 |
visible={productAcceptedModal} |
| Error |
Row 187, Column 27: "Replace `·setProductAcceptedModal(false)` with `⏎············setProductAcceptedModal(false);⏎·········`"
prettier/prettier
|
| Warning |
Row 187, Column 58: "Missing semicolon."
semi
|
| 187 |
onClose={() => { setProductAcceptedModal(false) }} |
| Error |
Row 188, Column 32: "Replace `·props.navigation.navigate('chat')` with `⏎············props.navigation.navigate('chat');⏎·········`"
prettier/prettier
|
| Warning |
Row 188, Column 66: "Missing semicolon."
semi
|
| 188 |
onSendButton={() => { props.navigation.navigate('chat') }} |
| 189 |
/> |
| 190 |
<StatusModal |
| 191 |
visible={receiptAcceptedModal} |
| 192 |
buttonTitle="Request Delivery Address" |
| 193 |
endButton |
| 194 |
endButtonTitle="Back" |
| 195 |
title="Receipt Accepted" |
| 196 |
onConfirm={() => { |
| Error |
Row 197, Column 43: "Insert `;`"
prettier/prettier
|
| Warning |
Row 197, Column 43: "Missing semicolon."
semi
|
| 197 |
setReceiptAcceptedModal(false) |
| Error |
Row 198, Column 44: "Insert `;`"
prettier/prettier
|
| Warning |
Row 198, Column 44: "Missing semicolon."
semi
|
| 198 |
setRequestDeliveryAddress(true) |
| 199 |
}} |
| Error |
Row 200, Column 27: "Replace `·setReceiptAcceptedModal(false)` with `⏎············setReceiptAcceptedModal(false);⏎·········`"
prettier/prettier
|
| Warning |
Row 200, Column 58: "Missing semicolon."
semi
|
| 200 |
onClose={() => { setReceiptAcceptedModal(false) }} |
| 201 |
/> |
| 202 |
<StatusModal |
| 203 |
visible={dealRejectedModal} |
| 204 |
mainButton={false} |
| 205 |
endButtonTitle="Back" |
| 206 |
endButton |
| Error |
Row 207, Column 28: "Replace `·marginTop:·mvs(30)·` with `marginTop:·mvs(30)`"
prettier/prettier
|
| 207 |
endButtonStyle={{ marginTop: mvs(30) }} |
| 208 |
title="Deal Rejected" |
| Error |
Row 209, Column 27: "Replace `·setDealRejectedModal(false)` with `⏎············setDealRejectedModal(false);⏎·········`"
prettier/prettier
|
| Warning |
Row 209, Column 55: "Missing semicolon."
semi
|
| 209 |
onClose={() => { setDealRejectedModal(false) }} |
| 210 |
/> |
| 211 |
<DeliveryAddressRequest |
| 212 |
visible={requestDeliveryAddress} |
| Error |
Row 213, Column 27: "Replace `·setRequestDeliveryAddress(false)` with `⏎············setRequestDeliveryAddress(false);⏎·········`"
prettier/prettier
|
| Warning |
Row 213, Column 60: "Missing semicolon."
semi
|
| 213 |
onClose={() => { setRequestDeliveryAddress(false) }} |
| 214 |
/> |
| 215 |
<ProductRejectedModal |
| 216 |
visible={productRejectedModal} |
| Error |
Row 217, Column 32: "Replace `·setProductRejectedModal(false)` with `⏎············setProductRejectedModal(false);⏎·········`"
prettier/prettier
|
| Warning |
Row 217, Column 63: "Missing semicolon."
semi
|
| 217 |
onBackButton={() => { setProductRejectedModal(false) }} |
| Error |
Row 218, Column 32: "Replace `·props.navigation.navigate('chat')` with `⏎············props.navigation.navigate('chat');⏎·········`"
prettier/prettier
|
| Warning |
Row 218, Column 66: "Missing semicolon."
semi
|
| 218 |
onSendButton={() => { props.navigation.navigate('chat') }} |
| 219 |
endButtonTitle="Back" |
| 220 |
/> |
| 221 |
<ReceiptDisputedModal |
| 222 |
visible={disputeRejectedModal} |
| Error |
Row 223, Column 27: "Replace `·setDisputeRejectedModal(false)` with `⏎············setDisputeRejectedModal(false);⏎·········`"
prettier/prettier
|
| Warning |
Row 223, Column 58: "Missing semicolon."
semi
|
| 223 |
onClose={() => { setDisputeRejectedModal(false) }} |
| 224 |
title="Receipt Disputed" |
| 225 |
userInfo |
| 226 |
attach={false} |
| 227 |
dispute |
| 228 |
/> |
| 229 |
<ReceiptDisputedModal |
| 230 |
visible={deliveryDisputeModal} |
| Error |
Row 231, Column 27: "Replace `·setDeliveryDisputeModal(false)` with `⏎············setDeliveryDisputeModal(false);⏎·········`"
prettier/prettier
|
| Warning |
Row 231, Column 58: "Missing semicolon."
semi
|
| 231 |
onClose={() => { setDeliveryDisputeModal(false) }} |
| 232 |
title="Delivery Disputed" |
| 233 |
userInfo |
| 234 |
attach={false} |
| 235 |
type="Delivery" |
| 236 |
dispute |
| 237 |
endButton |
| 238 |
/> |
| 239 |
<RewardAmountModal |
| 240 |
visible={deliveryConfirmedModal} |
| 241 |
mainButton |
| Error |
Row 242, Column 42: "Replace `||` with `·||·`"
prettier/prettier
|
| Warning |
Row 242, Column 42: "Operator '||' must be spaced."
space-infix-ops
|
| 242 |
amount={buyerInfo?.order_reward||0} |
| 243 |
onClose={setDeliveryConfirmedModal} |
| 244 |
onConfirm={() => { |
| Error |
Row 245, Column 45: "Insert `;`"
prettier/prettier
|
| Warning |
Row 245, Column 45: "Missing semicolon."
semi
|
| 245 |
setDeliveryConfirmedModal(false) |
| Error |
Row 246, Column 39: "Replace `"userprofile",·{·...buyerInfo·})` with `'userprofile',·{...buyerInfo});`"
prettier/prettier
|
| Warning |
Row 246, Column 39: "Strings must use singlequote."
quotes
|
| Warning |
Row 246, Column 71: "Missing semicolon."
semi
|
| 246 |
props.navigation.navigate("userprofile", { ...buyerInfo }) |
| 247 |
}} |
| Error |
Row 248, Column 24: "Replace `"Rate·the·Buyer"` with `'Rate·the·Buyer'`"
prettier/prettier
|
| Warning |
Row 248, Column 24: "Strings must use singlequote."
quotes
|
| 248 |
buttonTitle={"Rate the Buyer"} |
| 249 |
title="Congratulations" |
| 250 |
deliveryConfirmed |
| 251 |
amountTitle="Reward" |
| 252 |
/> |
| 253 |
<RewardAmountModal |
| 254 |
visible={wonDisputeModal} |
| 255 |
mainButton |
| 256 |
onConfirm={() => { |
| Error |
Row 257, Column 38: "Insert `;`"
prettier/prettier
|
| Warning |
Row 257, Column 38: "Missing semicolon."
semi
|
| 257 |
setWonDisputeModal(false) |
| Error |
Row 258, Column 39: "Replace `"userprofile")` with `'userprofile');`"
prettier/prettier
|
| Warning |
Row 258, Column 39: "Strings must use singlequote."
quotes
|
| Warning |
Row 258, Column 53: "Missing semicolon."
semi
|
| 258 |
props.navigation.navigate("userprofile") |
| 259 |
}} |
| Error |
Row 260, Column 24: "Replace `"Rate·Buyer"` with `'Rate·Buyer'`"
prettier/prettier
|
| Warning |
Row 260, Column 24: "Strings must use singlequote."
quotes
|
| 260 |
buttonTitle={"Rate Buyer"} |
| 261 |
title="Delivery Dispute Result" |
| 262 |
amountTitle="Refunded amount" |
| Error |
Row 263, Column 27: "Delete `·`"
prettier/prettier
|
| 263 |
onClose={() => { }} |
| 264 |
/> |
| 265 |
<RewardAmountModal |
| 266 |
visible={lostDisputeModal} |
| 267 |
endButton |
| 268 |
onConfirm={() => { |
| Error |
Row 269, Column 39: "Insert `;`"
prettier/prettier
|
| Warning |
Row 269, Column 39: "Missing semicolon."
semi
|
| 269 |
setLostDisputeModal(false) |
| Error |
Row 270, Column 39: "Replace `"userprofile")` with `'userprofile');`"
prettier/prettier
|
| Warning |
Row 270, Column 39: "Strings must use singlequote."
quotes
|
| Warning |
Row 270, Column 53: "Missing semicolon."
semi
|
| 270 |
props.navigation.navigate("userprofile") |
| 271 |
}} |
| 272 |
endButtonTitle="Back" |
| 273 |
title="Delivery Dispute Result" |
| 274 |
amountTitle="Amount" |
| 275 |
lost |
| 276 |
amount="US$ -1,049" |
| Error |
Row 277, Column 27: "Replace `·setLostDisputeModal(false)` with `⏎············setLostDisputeModal(false);⏎·········`"
prettier/prettier
|
| Warning |
Row 277, Column 54: "Missing semicolon."
semi
|
| 277 |
onClose={() => { setLostDisputeModal(false) }} |
| 278 |
/> |
| Error |
Row 279, Column 1: "Replace `·········prettier/prettier
|
| 279 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 280 |
</View> |
| Error |
Row 281, Column 6: "Insert `;`"
prettier/prettier
|
| Warning |
Row 281, Column 6: "Missing semicolon."
semi
|
| 281 |
) |
| Error |
Row 282, Column 2: "Insert `;`"
prettier/prettier
|
| Warning |
Row 282, Column 2: "Missing semicolon."
semi
|
| 282 |
} |
| 283 |
export const mapStateToProps = state => ({ |
| 284 |
notifications_list: state.common_orders_list?.notifications_list, |
| 285 |
}); |
| 286 |
|
| 287 |
export const mapDispatchToProps = { |
| 288 |
fetchNotifications: () => TAKE_TO_ACTIONS.fetchNotifications(), |
| 289 |
}; |
| 290 |
export default connect(mapStateToProps, mapDispatchToProps)(Notifications); |
| 291 |
|
| 292 |
const styles = StyleSheet.create({ |
| 293 |
mainContainer: { |
| 294 |
flex: 1, |
| Error |
Row 295, Column 34: "Insert `,`"
prettier/prettier
|
| Warning |
Row 295, Column 34: "Missing trailing comma."
comma-dangle
|
| 295 |
backgroundColor: colors.white |
| 296 |
}, |
| 297 |
conversationsContainer: { |
| 298 |
flex: 1, |
| 299 |
paddingHorizontal: mvs(22), |
| Error |
Row 300, Column 4: "Insert `,`"
prettier/prettier
|
| Warning |
Row 300, Column 4: "Missing trailing comma."
comma-dangle
|
| 300 |
} |
| Error |
Row 301, Column 3: "Insert `;`"
prettier/prettier
|
| Warning |
Row 301, Column 3: "Missing semicolon."
semi
|
| 301 |
}) |
| 302 |
|
|
|
|
/src/screens/onboarding/index.js
|
3 problems (0 errors, 3 warnings)
|
| Line |
Source |
| 1 |
import React from 'react'; |
| 2 |
import {StyleSheet, View} from 'react-native'; |
| 3 |
import {heightPercentageToDP as hp} from 'react-native-responsive-screen'; |
| 4 |
import Buttons from '../../components/atoms/Button'; |
| 5 |
import colors from '../../config/colors'; |
| 6 |
import {ms, scale, vs} from '../../config/metrices'; |
| 7 |
import Medium from '../../presentation/typography/medium-text'; |
| 8 |
import Regular from '../../presentation/typography/regular-text'; |
| 9 |
import Welcome from './../../../resource/assets/onboarding-icons/welcome.svg'; |
| 10 |
|
| 11 |
export const Onboarding = ({navigation, route}) => { |
| 12 |
return ( |
| Warning |
Row 13, Column 18: "Inline style: { flex: 1, width: '100%' }"
react-native/no-inline-styles
|
| 13 |
<View style={{flex: 1, width: '100%', backgroundColor: colors.white}}> |
| Warning |
Row 14, Column 20: "Inline style: { left: -66 }"
react-native/no-inline-styles
|
| 14 |
<View style={{paddingTop: scale(hp(5.5)), left: -66}}> |
| 15 |
<Welcome /> |
| 16 |
</View> |
| 17 |
<View style={{marginTop: vs(40)}}> |
| 18 |
<Medium label={'Shop from abroad'} style={styles.TITLE} /> |
| 19 |
</View> |
| 20 |
<View style={{marginTop: vs(9)}}> |
| 21 |
<Regular |
| Warning |
Row 22, Column 18: "Strings must use singlequote."
quotes
|
| 22 |
label={`From games to gadgets, get any product from\nabroad, delivered by travelers.`} |
| 23 |
style={styles.CONTENT} |
| 24 |
/> |
| 25 |
</View> |
| 26 |
<View style={styles.BTN_CONTAINER}> |
| 27 |
<Buttons.ButtonPrimary |
| 28 |
style={styles.BTN_WIDTH} |
| 29 |
title={'Get Started'} |
| 30 |
onClick={() => { |
| 31 |
navigation.navigate('login'); |
| 32 |
}} |
| 33 |
/> |
| 34 |
{/* <Buttons.ButtonSeconday |
| 35 |
style={styles.BTN_WIDTH} |
| 36 |
title={'Skip'} |
| 37 |
onClick={() => {}} |
| 38 |
/> */} |
| 39 |
</View> |
| 40 |
</View> |
| 41 |
); |
| 42 |
}; |
| 43 |
|
| 44 |
const styles = StyleSheet.create({ |
| 45 |
BTN_CONTAINER: { |
| 46 |
width: '100%', |
| 47 |
position: 'absolute', |
| 48 |
flexDirection: 'row', |
| 49 |
// marginTop:xdHeight(205), |
| 50 |
bottom: scale(40), |
| 51 |
justifyContent: 'space-between', |
| 52 |
alignItems: 'center', |
| 53 |
paddingHorizontal: scale(22), |
| 54 |
}, |
| 55 |
BTN_WIDTH: { |
| 56 |
width: '100%', |
| 57 |
}, |
| 58 |
|
| 59 |
TITLE: { |
| 60 |
fontSize: ms(18), |
| 61 |
textAlign: 'center', |
| 62 |
color: colors.headerTitle, |
| 63 |
}, |
| 64 |
CONTENT: { |
| 65 |
fontSize: ms(14), |
| 66 |
textAlign: 'center', |
| 67 |
color: colors.headerTitle, |
| 68 |
}, |
| 69 |
}); |
| 70 |
|
|
|
|
/src/screens/onboarding/onboarding.js
|
117 problems (58 errors, 59 warnings)
|
| Severity |
Rule |
| Error |
Row 4, Column 46: "Insert `;`"
prettier/prettier
|
| Warning |
Row 4, Column 46: "Missing semicolon."
semi
|
| Error |
Row 5, Column 16: "Replace `·useState,·useEffect·` with `useState,·useEffect`"
prettier/prettier
|
| Error |
Row 21, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 23, Column 9: "Replace `·BgLogo·` with `BgLogo`"
prettier/prettier
|
| Error |
Row 30, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 34, Column 8: "'messaging' is defined but never used."
no-unused-vars
|
| Error |
Row 37, Column 8: "Replace `·width·` with `width`"
prettier/prettier
|
| Error |
Row 39, Column 22: "Replace `·scrollX·` with `scrollX`"
prettier/prettier
|
| Warning |
Row 50, Column 11: "Inline style: { position: 'absolute', zIndex: 1001 }"
react-native/no-inline-styles
|
| Error |
Row 52, Column 26: "Replace `·translateX·` with `translateX`"
prettier/prettier
|
| Error |
Row 79, Column 17: "Insert `;`"
prettier/prettier
|
| Warning |
Row 79, Column 17: "Missing semicolon."
semi
|
| Error |
Row 98, Column 26: "Delete `⏎`"
prettier/prettier
|
| Warning |
Row 102, Column 38: "["create_your_order"] is better written in dot notation."
dot-notation
|
| Warning |
Row 103, Column 44: "["create_your_order_content"] is better written in dot notation."
dot-notation
|
| Warning |
Row 106, Column 38: "["recieve_offers"] is better written in dot notation."
dot-notation
|
| Warning |
Row 107, Column 44: "["recieve_offers_content"] is better written in dot notation."
dot-notation
|
| Warning |
Row 110, Column 38: "["pay_secure"] is better written in dot notation."
dot-notation
|
| Warning |
Row 111, Column 44: "["pay_secure_content"] is better written in dot notation."
dot-notation
|
| Warning |
Row 114, Column 38: "["recieve_your_order"] is better written in dot notation."
dot-notation
|
| Warning |
Row 115, Column 44: "["recieve_your_order_content"] is better written in dot notation."
dot-notation
|
| Warning |
Row 121, Column 42: "["add_trip"] is better written in dot notation."
dot-notation
|
| Warning |
Row 122, Column 48: "["add_trip_content"] is better written in dot notation."
dot-notation
|
| Warning |
Row 125, Column 42: "["make_Offers"] is better written in dot notation."
dot-notation
|
| Warning |
Row 126, Column 48: "["make_Offers_content"] is better written in dot notation."
dot-notation
|
| Warning |
Row 129, Column 42: "["buy_product"] is better written in dot notation."
dot-notation
|
| Warning |
Row 130, Column 48: "["buy_product_content"] is better written in dot notation."
dot-notation
|
| Warning |
Row 133, Column 42: "["deliver_get_paid"] is better written in dot notation."
dot-notation
|
| Warning |
Row 134, Column 48: "["deliver_get_paid_content"] is better written in dot notation."
dot-notation
|
| Error |
Row 137, Column 6: "React Hook React.useEffect has missing dependencies: 'make_money_traveling_list' and 'shop_from_abroad_list'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 145, Column 47: "Replace `·viewableItems·` with `viewableItems`"
prettier/prettier
|
| Error |
Row 151, Column 14: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 162, Column 26: "Insert `,`"
prettier/prettier
|
| Warning |
Row 162, Column 26: "Missing trailing comma."
comma-dangle
|
| Error |
Row 164, Column 10: "Replace `·text:·'OK',·onPress:·()·=>·Platform.OS==='android'?·GPSState.openAppDetails():Linking.openURL("app-settings:")·}` with `⏎··········text:·'OK',⏎··········onPress:·()·=>⏎············Platform.OS·===·'android'⏎··············?·GPSState.openAppDetails()⏎··············:·Linking.openURL('app-settings:'),⏎········},`"
prettier/prettier
|
| Warning |
Row 164, Column 49: "Operator '===' must be spaced."
space-infix-ops
|
| Warning |
Row 164, Column 61: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 164, Column 105: "Strings must use singlequote."
quotes
|
| Warning |
Row 164, Column 123: "Missing trailing comma."
comma-dangle
|
| Error |
Row 165, Column 8: "Insert `,`"
prettier/prettier
|
| Error |
Row 167, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 167, Column 4: "Missing semicolon."
semi
|
| Error |
Row 169, Column 21: "Insert `;`"
prettier/prettier
|
| Warning |
Row 169, Column 21: "Missing semicolon."
semi
|
| Warning |
Row 175, Column 16: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 181, Column 21: "Replace `·...payload,·isLocation:·flag·` with `...payload,·isLocation:·flag`"
prettier/prettier
|
| Error |
Row 186, Column 1: "Replace `⏎⏎··}` with `··};`"
prettier/prettier
|
| Warning |
Row 188, Column 4: "Missing semicolon."
semi
|
| Warning |
Row 191, Column 10: "'appStateVisible' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 194, Column 52: "Replace `"change",` with `⏎······'change',⏎·····`"
prettier/prettier
|
| Warning |
Row 194, Column 52: "Strings must use singlequote."
quotes
|
| Error |
Row 195, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 196, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 197, Column 9: "Replace `nextAppState·===·"active"` with `··nextAppState·===·'active'`"
prettier/prettier
|
| Warning |
Row 197, Column 26: "Strings must use singlequote."
quotes
|
| Error |
Row 198, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 199, Column 1: "Replace `········console.log("App·has·come·to·the·foreground!"` with `··········console.log('App·has·come·to·the·foreground!'`"
prettier/prettier
|
| Warning |
Row 199, Column 21: "Strings must use singlequote."
quotes
|
| Error |
Row 200, Column 9: "Replace `if(payload?.isLocation)` with `··if·(payload?.isLocation)·`"
prettier/prettier
|
| Warning |
Row 200, Column 9: "Expected space(s) after "if"."
keyword-spacing
|
| Error |
Row 201, Column 1: "Replace `··········const·permissionStatus·=·await·UI_API._checkPermissions(alertRef,·Linking)` with `············const·permissionStatus·=·await·UI_API._checkPermissions(⏎··············alertRef,⏎··············Linking,⏎············);`"
prettier/prettier
|
| Warning |
Row 201, Column 85: "Missing semicolon."
semi
|
| Error |
Row 202, Column 1: "Replace `··········setPayload({·...payload,·isLocation:·permissionStatus·===·'disabled'·?·false·:·permissionStatus` with `············setPayload({⏎··············...payload,⏎··············isLocation:⏎················permissionStatus·===·'disabled'·?·false·:·permissionStatus,⏎···········`"
prettier/prettier
|
| Error |
Row 203, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 204, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 206, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 207, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 208, Column 7: "Replace `console.log("AppState"` with `··console.log('AppState'`"
prettier/prettier
|
| Warning |
Row 208, Column 19: "Strings must use singlequote."
quotes
|
| Error |
Row 209, Column 5: "Replace `}` with `··},⏎····`"
prettier/prettier
|
| Error |
Row 214, Column 6: "React Hook useEffect has a missing dependency: 'payload'. Either include it or remove the dependency array. You can also do a functional update 'setPayload(p => ...)' if you only need 'payload' in the 'setPayload' call."
react-hooks/exhaustive-deps
|
| Error |
Row 219, Column 21: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 225, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 241, Column 21: "Replace `·...payload,·isLocation:·true·` with `...payload,·isLocation:·true`"
prettier/prettier
|
| Error |
Row 252, Column 42: "Insert `;`"
prettier/prettier
|
| Warning |
Row 252, Column 42: "Missing semicolon."
semi
|
| Error |
Row 256, Column 15: "Insert `;`"
prettier/prettier
|
| Warning |
Row 256, Column 15: "Missing semicolon."
semi
|
| Error |
Row 267, Column 10: "Replace `·width·` with `width`"
prettier/prettier
|
| Warning |
Row 267, Column 11: "'width' is already declared in the upper scope."
no-shadow
|
| Error |
Row 271, Column 6: "React Hook React.useEffect has a missing dependency: 'getAsyncStoreData'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 277, Column 25: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 282, Column 38: "Insert `;`"
prettier/prettier
|
| Warning |
Row 282, Column 38: "Missing semicolon."
semi
|
| Error |
Row 283, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 283, Column 4: "Missing semicolon."
semi
|
| Error |
Row 297, Column 33: "Replace `·x:·scrollX·` with `x:·scrollX`"
prettier/prettier
|
| Error |
Row 310, Column 23: "Replace `·item,·index·` with `item,·index`"
prettier/prettier
|
| Warning |
Row 312, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 319, Column 29: "Replace `·marginTop:·mvs(50,·1.5)·` with `marginTop:·mvs(50,·1.5)`"
prettier/prettier
|
| Warning |
Row 331, Column 26: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| Error |
Row 338, Column 31: "Replace `·marginTop:·mvs(200,·1.5)·` with `marginTop:·mvs(200,·1.5)`"
prettier/prettier
|
| Warning |
Row 342, Column 28: "Inline style: { alignSelf: 'center', bottom: 0 }"
react-native/no-inline-styles
|
| Error |
Row 353, Column 29: "Replace `·marginTop:·mvs(50,·1.5)·` with `marginTop:·mvs(50,·1.5)`"
prettier/prettier
|
| Error |
Row 357, Column 27: "Replace `·height:·mvs(360,·2.7),·width·` with `height:·mvs(360,·2.7),·width`"
prettier/prettier
|
| Warning |
Row 362, Column 22: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| Warning |
Row 372, Column 49: "["welcome_taketo"] is better written in dot notation."
dot-notation
|
| Warning |
Row 373, Column 49: "["notification_and_location"] is better written in dot notation."
dot-notation
|
| Warning |
Row 378, Column 47: "["welcome_taketo_def"] is better written in dot notation."
dot-notation
|
| Warning |
Row 379, Column 47: "["shop_from_abroad_content"] is better written in dot notation."
dot-notation
|
| Error |
Row 389, Column 40: "Replace `·marginTop:·mvs(0)·` with `marginTop:·mvs(0)`"
prettier/prettier
|
| Error |
Row 391, Column 31: "Replace `·marginTop:·mvs(0)·` with `marginTop:·mvs(0)`"
prettier/prettier
|
| Warning |
Row 393, Column 47: "["notifications"] is better written in dot notation."
dot-notation
|
| Error |
Row 394, Column 50: "Replace `·...payload,·isOrderEmail:·v·` with `...payload,·isOrderEmail:·v`"
prettier/prettier
|
| Error |
Row 397, Column 31: "Replace `·marginTop:·mvs(15)·` with `marginTop:·mvs(15)`"
prettier/prettier
|
| Warning |
Row 399, Column 47: "["location_services"] is better written in dot notation."
dot-notation
|
| Warning |
Row 411, Column 48: "'index' is already declared in the upper scope."
no-shadow
|
| Warning |
Row 428, Column 43: "'index' is already declared in the upper scope."
no-shadow
|
| Error |
Row 449, Column 34: "Insert `;`"
prettier/prettier
|
| Warning |
Row 449, Column 34: "Missing semicolon."
semi
|
| Warning |
Row 462, Column 32: "["next"] is better written in dot notation."
dot-notation
|
| Warning |
Row 463, Column 32: "["get_started"] is better written in dot notation."
dot-notation
|
| Warning |
Row 465, Column 18: "Inline style: { width: "currentIndex !== 3 ? '49%' : '100%'" }"
react-native/no-inline-styles
|
| Warning |
Row 472, Column 35: "["skip"] is better written in dot notation."
dot-notation
|
| Warning |
Row 473, Column 20: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 479, Column 21: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎········translucent⏎········activeStatusBarStyle={'light-content'}⏎········inactiveStatusBarBackgroundColor={colors.primary}⏎········ref={alertRef}⏎·····`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 2 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 3 |
import AsyncStorage from '@react-native-async-storage/async-storage'; |
| Error |
Row 4, Column 46: "Insert `;`"
prettier/prettier
|
| Warning |
Row 4, Column 46: "Missing semicolon."
semi
|
| 4 |
import GPSState from 'react-native-gps-state' |
| Error |
Row 5, Column 16: "Replace `·useState,·useEffect·` with `useState,·useEffect`"
prettier/prettier
|
| 5 |
import React, { useState, useEffect } from 'react'; |
| 6 |
import { |
| 7 |
Alert, |
| 8 |
Animated, |
| 9 |
AppState, |
| 10 |
Dimensions, |
| 11 |
FlatList, |
| 12 |
Image, |
| 13 |
Linking, |
| 14 |
Platform, |
| 15 |
StyleSheet, |
| 16 |
Text, |
| 17 |
useWindowDimensions, |
| 18 |
View, |
| 19 |
} from 'react-native'; |
| 20 |
import SplashScreen from 'react-native-splash-screen'; |
| Error |
Row 21, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 21 |
import { connect } from 'react-redux'; |
| 22 |
import TAKE_TO_MOCK from '../../../../common/utils/mock'; |
| Error |
Row 23, Column 9: "Replace `·BgLogo·` with `BgLogo`"
prettier/prettier
|
| 23 |
import { BgLogo } from '../../../resource/assets/common-icons'; |
| 24 |
import Buttons from '../../components/atoms/Button'; |
| 25 |
import CustomSwitch from '../../components/atoms/Switch'; |
| 26 |
import InstractionCard from '../../components/molecules/instraction-card-doted'; |
| 27 |
import SettingCard from '../../components/molecules/setting_card/setting-card'; |
| 28 |
import colors from '../../config/colors'; |
| 29 |
import fonts from '../../config/fonts'; |
| Error |
Row 30, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 30 |
import { mvs } from '../../config/metrices'; |
| 31 |
import Medium from '../../presentation/typography/medium-text'; |
| 32 |
import Regular from '../../presentation/typography/regular-text'; |
| 33 |
import DropdownAlert from 'react-native-dropdownalert'; |
| Warning |
Row 34, Column 8: "'messaging' is defined but never used."
no-unused-vars
|
| 34 |
import messaging from '@react-native-firebase/messaging'; |
| 35 |
|
| 36 |
const data = TAKE_TO_MOCK.onBoardContentList; |
| Error |
Row 37, Column 8: "Replace `·width·` with `width`"
prettier/prettier
|
| 37 |
const { width } = Dimensions.get('window'); |
| 38 |
const DOT_SIZE = mvs(9); |
| Error |
Row 39, Column 22: "Replace `·scrollX·` with `scrollX`"
prettier/prettier
|
| 39 |
const Pagination = ({ scrollX }) => { |
| 40 |
const inputRange = [-width, 0, width]; |
| 41 |
const translateX = scrollX.interpolate({ |
| 42 |
inputRange, |
| 43 |
outputRange: [-(DOT_SIZE + 10), 0, DOT_SIZE + 10], |
| 44 |
}); |
| 45 |
return ( |
| 46 |
<View style={[styles.pagination]}> |
| 47 |
<Animated.View |
| 48 |
style={[ |
| 49 |
styles.paginationDot, |
| Warning |
Row 50, Column 11: "Inline style: { position: 'absolute', zIndex: 1001 }"
react-native/no-inline-styles
|
| 50 |
{ |
| 51 |
position: 'absolute', |
| Error |
Row 52, Column 26: "Replace `·translateX·` with `translateX`"
prettier/prettier
|
| 52 |
transform: [{ translateX }], |
| 53 |
zIndex: 1001, |
| 54 |
backgroundColor: colors.primary, |
| 55 |
// right:10, |
| 56 |
}, |
| 57 |
]} |
| 58 |
/> |
| 59 |
{data.map((item, index) => { |
| 60 |
return ( |
| 61 |
<View key={index} style={styles.paginationDotContainer}> |
| 62 |
<View style={[styles.paginationDot]} /> |
| 63 |
</View> |
| 64 |
); |
| 65 |
})} |
| 66 |
</View> |
| 67 |
); |
| 68 |
}; |
| 69 |
|
| 70 |
const Onboarding2 = props => { |
| 71 |
const { |
| 72 |
fetchCountriesList, |
| 73 |
fetchUserInfo, |
| 74 |
fetchLangauge, |
| 75 |
changeDefaultCountry, |
| 76 |
countriesList, |
| 77 |
langauge, |
| 78 |
} = props; |
| Error |
Row 79, Column 17: "Insert `;`"
prettier/prettier
|
| Warning |
Row 79, Column 17: "Missing semicolon."
semi
|
| 79 |
global = props |
| 80 |
const [currentIndex, setCurrentIndex] = React.useState(0); |
| 81 |
const scrollX = React.useRef(new Animated.Value(0)).current; |
| 82 |
const scrollRef = React.useRef(null); |
| 83 |
const alertRef = React.useRef(null); |
| 84 |
const shop_from_abroad_list = |
| 85 |
langauge?.translations?.shop_from_abroad_list || {}; |
| 86 |
const make_money_traveling_list = |
| 87 |
langauge?.translations?.make_money_traveling_list || {}; |
| 88 |
const btnTranslation = langauge?.translations?.button || {}; |
| 89 |
const onBoardingTranslation = |
| 90 |
langauge?.translations?.onboarding_screens || {}; |
| 91 |
const gray_modal_lable = langauge?.translations?.gray_modal || {}; |
| 92 |
|
| 93 |
// console.log(shop_from_abroad_list); |
| 94 |
|
| 95 |
const [shopFromAbroad, setShopFromAbroad] = React.useState([]); |
| 96 |
const [makeMoney, setMakeMoney] = React.useState([]); |
| 97 |
|
| Error |
Row 98, Column 26: "Delete `⏎`"
prettier/prettier
|
| 98 |
React.useEffect(() => { |
| 99 |
|
| 100 |
setShopFromAbroad([ |
| 101 |
{ |
| Warning |
Row 102, Column 38: "["create_your_order"] is better written in dot notation."
dot-notation
|
| 102 |
title: shop_from_abroad_list['create_your_order'], |
| Warning |
Row 103, Column 44: "["create_your_order_content"] is better written in dot notation."
dot-notation
|
| 103 |
description: shop_from_abroad_list['create_your_order_content'], |
| 104 |
}, |
| 105 |
{ |
| Warning |
Row 106, Column 38: "["recieve_offers"] is better written in dot notation."
dot-notation
|
| 106 |
title: shop_from_abroad_list['recieve_offers'], |
| Warning |
Row 107, Column 44: "["recieve_offers_content"] is better written in dot notation."
dot-notation
|
| 107 |
description: shop_from_abroad_list['recieve_offers_content'], |
| 108 |
}, |
| 109 |
{ |
| Warning |
Row 110, Column 38: "["pay_secure"] is better written in dot notation."
dot-notation
|
| 110 |
title: shop_from_abroad_list['pay_secure'], |
| Warning |
Row 111, Column 44: "["pay_secure_content"] is better written in dot notation."
dot-notation
|
| 111 |
description: shop_from_abroad_list['pay_secure_content'], |
| 112 |
}, |
| 113 |
{ |
| Warning |
Row 114, Column 38: "["recieve_your_order"] is better written in dot notation."
dot-notation
|
| 114 |
title: shop_from_abroad_list['recieve_your_order'], |
| Warning |
Row 115, Column 44: "["recieve_your_order_content"] is better written in dot notation."
dot-notation
|
| 115 |
description: shop_from_abroad_list['recieve_your_order_content'], |
| 116 |
}, |
| 117 |
]); |
| 118 |
|
| 119 |
setMakeMoney([ |
| 120 |
{ |
| Warning |
Row 121, Column 42: "["add_trip"] is better written in dot notation."
dot-notation
|
| 121 |
title: make_money_traveling_list['add_trip'], |
| Warning |
Row 122, Column 48: "["add_trip_content"] is better written in dot notation."
dot-notation
|
| 122 |
description: make_money_traveling_list['add_trip_content'], |
| 123 |
}, |
| 124 |
{ |
| Warning |
Row 125, Column 42: "["make_Offers"] is better written in dot notation."
dot-notation
|
| 125 |
title: make_money_traveling_list['make_Offers'], |
| Warning |
Row 126, Column 48: "["make_Offers_content"] is better written in dot notation."
dot-notation
|
| 126 |
description: make_money_traveling_list['make_Offers_content'], |
| 127 |
}, |
| 128 |
{ |
| Warning |
Row 129, Column 42: "["buy_product"] is better written in dot notation."
dot-notation
|
| 129 |
title: make_money_traveling_list['buy_product'], |
| Warning |
Row 130, Column 48: "["buy_product_content"] is better written in dot notation."
dot-notation
|
| 130 |
description: make_money_traveling_list['buy_product_content'], |
| 131 |
}, |
| 132 |
{ |
| Warning |
Row 133, Column 42: "["deliver_get_paid"] is better written in dot notation."
dot-notation
|
| 133 |
title: make_money_traveling_list['deliver_get_paid'], |
| Warning |
Row 134, Column 48: "["deliver_get_paid_content"] is better written in dot notation."
dot-notation
|
| 134 |
description: make_money_traveling_list['deliver_get_paid_content'], |
| 135 |
}, |
| 136 |
]); |
| Error |
Row 137, Column 6: "React Hook React.useEffect has missing dependencies: 'make_money_traveling_list' and 'shop_from_abroad_list'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| 137 |
}, [langauge]); |
| 138 |
|
| 139 |
const [payload, setPayload] = React.useState({ |
| 140 |
isPromotionEmail: false, |
| 141 |
isOrderEmail: false, |
| 142 |
isLocation: false, |
| 143 |
}); |
| 144 |
|
| Error |
Row 145, Column 47: "Replace `·viewableItems·` with `viewableItems`"
prettier/prettier
|
| 145 |
const viewableItemsChanged = React.useRef(({ viewableItems }) => { |
| 146 |
setCurrentIndex(viewableItems[0].index); |
| 147 |
}).current; |
| 148 |
|
| 149 |
const viewConfig = React.useRef({ |
| 150 |
viewAreaCoveragePercentThreshold: 50, |
| Error |
Row 151, Column 14: "Delete `⏎`"
prettier/prettier
|
| 151 |
}).current; |
| 152 |
|
| 153 |
|
| 154 |
const locationSettingAlert = () => { |
| 155 |
Alert.alert( |
| 156 |
'Location', |
| 157 |
'Do you want to change Location Permission from mobile Settings', |
| 158 |
[ |
| 159 |
{ |
| 160 |
text: 'Cancel', |
| 161 |
onPress: () => console.log('Cancel Pressed'), |
| Error |
Row 162, Column 26: "Insert `,`"
prettier/prettier
|
| Warning |
Row 162, Column 26: "Missing trailing comma."
comma-dangle
|
| 162 |
style: 'cancel' |
| 163 |
}, |
| Error |
Row 164, Column 10: "Replace `·text:·'OK',·onPress:·()·=>·Platform.OS==='android'?·GPSState.openAppDetails():Linking.openURL("app-settings:")·}` with `⏎··········text:·'OK',⏎··········onPress:·()·=>⏎············Platform.OS·===·'android'⏎··············?·GPSState.openAppDetails()⏎··············:·Linking.openURL('app-settings:'),⏎········},`"
prettier/prettier
|
| Warning |
Row 164, Column 49: "Operator '===' must be spaced."
space-infix-ops
|
| Warning |
Row 164, Column 61: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 164, Column 105: "Strings must use singlequote."
quotes
|
| Warning |
Row 164, Column 123: "Missing trailing comma."
comma-dangle
|
| 164 |
{ text: 'OK', onPress: () => Platform.OS==='android'? GPSState.openAppDetails():Linking.openURL("app-settings:") } |
| Error |
Row 165, Column 8: "Insert `,`"
prettier/prettier
|
| 165 |
] |
| 166 |
); |
| Error |
Row 167, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 167, Column 4: "Missing semicolon."
semi
|
| 167 |
} |
| 168 |
const changeLocationService = async (is_app_state_changed = false) => { |
| Error |
Row 169, Column 21: "Insert `;`"
prettier/prettier
|
| Warning |
Row 169, Column 21: "Missing semicolon."
semi
|
| 169 |
let flag = false |
| 170 |
//alert(is_app_state_changed) |
| 171 |
// GPSState.isAuthorized() |
| 172 |
// alert(gps) |
| 173 |
if (is_app_state_changed) { |
| 174 |
flag = await UI_API._getLocPermissionStatus(Linking, alertRef); |
| Warning |
Row 175, Column 16: "Expected '===' and instead saw '=='."
eqeqeq
|
| 175 |
if (flag == true) { |
| 176 |
await getCurrentLocation(); |
| 177 |
} |
| 178 |
if (flag === 'disabled') { |
| 179 |
locationSettingAlert(); |
| 180 |
} else { |
| Error |
Row 181, Column 21: "Replace `·...payload,·isLocation:·flag·` with `...payload,·isLocation:·flag`"
prettier/prettier
|
| 181 |
setPayload({ ...payload, isLocation: flag }); |
| 182 |
} |
| 183 |
} else { |
| 184 |
locationSettingAlert(); |
| 185 |
} |
| Error |
Row 186, Column 1: "Replace `⏎⏎··}` with `··};`"
prettier/prettier
|
| 186 |
|
| 187 |
|
| Warning |
Row 188, Column 4: "Missing semicolon."
semi
|
| 188 |
} |
| 189 |
|
| 190 |
const appState = React.useRef(AppState.currentState); |
| Warning |
Row 191, Column 10: "'appStateVisible' is assigned a value but never used."
no-unused-vars
|
| 191 |
const [appStateVisible, setAppStateVisible] = useState(appState.current); |
| 192 |
|
| 193 |
useEffect(() => { |
| Error |
Row 194, Column 52: "Replace `"change",` with `⏎······'change',⏎·····`"
prettier/prettier
|
| Warning |
Row 194, Column 52: "Strings must use singlequote."
quotes
|
| 194 |
const subscription = AppState.addEventListener("change", async nextAppState => { |
| Error |
Row 195, Column 7: "Insert `··`"
prettier/prettier
|
| 195 |
if ( |
| Error |
Row 196, Column 1: "Insert `··`"
prettier/prettier
|
| 196 |
appState.current.match(/inactive|background/) && |
| Error |
Row 197, Column 9: "Replace `nextAppState·===·"active"` with `··nextAppState·===·'active'`"
prettier/prettier
|
| Warning |
Row 197, Column 26: "Strings must use singlequote."
quotes
|
| 197 |
nextAppState === "active" |
| Error |
Row 198, Column 7: "Insert `··`"
prettier/prettier
|
| 198 |
) { |
| Error |
Row 199, Column 1: "Replace `········console.log("App·has·come·to·the·foreground!"` with `··········console.log('App·has·come·to·the·foreground!'`"
prettier/prettier
|
| Warning |
Row 199, Column 21: "Strings must use singlequote."
quotes
|
| 199 |
console.log("App has come to the foreground!"); |
| Error |
Row 200, Column 9: "Replace `if(payload?.isLocation)` with `··if·(payload?.isLocation)·`"
prettier/prettier
|
| Warning |
Row 200, Column 9: "Expected space(s) after "if"."
keyword-spacing
|
| 200 |
if(payload?.isLocation){ |
| Error |
Row 201, Column 1: "Replace `··········const·permissionStatus·=·await·UI_API._checkPermissions(alertRef,·Linking)` with `············const·permissionStatus·=·await·UI_API._checkPermissions(⏎··············alertRef,⏎··············Linking,⏎············);`"
prettier/prettier
|
| Warning |
Row 201, Column 85: "Missing semicolon."
semi
|
| 201 |
const permissionStatus = await UI_API._checkPermissions(alertRef, Linking) |
| Error |
Row 202, Column 1: "Replace `··········setPayload({·...payload,·isLocation:·permissionStatus·===·'disabled'·?·false·:·permissionStatus` with `············setPayload({⏎··············...payload,⏎··············isLocation:⏎················permissionStatus·===·'disabled'·?·false·:·permissionStatus,⏎···········`"
prettier/prettier
|
| 202 |
setPayload({ ...payload, isLocation: permissionStatus === 'disabled' ? false : permissionStatus }); |
| Error |
Row 203, Column 1: "Insert `··`"
prettier/prettier
|
| 203 |
} |
| Error |
Row 204, Column 7: "Insert `··`"
prettier/prettier
|
| 204 |
} |
| 205 |
|
| Error |
Row 206, Column 1: "Insert `··`"
prettier/prettier
|
| 206 |
appState.current = nextAppState; |
| Error |
Row 207, Column 7: "Insert `··`"
prettier/prettier
|
| 207 |
setAppStateVisible(appState.current); |
| Error |
Row 208, Column 7: "Replace `console.log("AppState"` with `··console.log('AppState'`"
prettier/prettier
|
| Warning |
Row 208, Column 19: "Strings must use singlequote."
quotes
|
| 208 |
console.log("AppState", appState.current); |
| Error |
Row 209, Column 5: "Replace `}` with `··},⏎····`"
prettier/prettier
|
| 209 |
}); |
| 210 |
|
| 211 |
return () => { |
| 212 |
subscription.remove(); |
| 213 |
}; |
| Error |
Row 214, Column 6: "React Hook useEffect has a missing dependency: 'payload'. Either include it or remove the dependency array. You can also do a functional update 'setPayload(p => ...)' if you only need 'payload' in the 'setPayload' call."
react-hooks/exhaustive-deps
|
| 214 |
}, []); |
| 215 |
|
| 216 |
const getCurrentLocation = async () => { |
| 217 |
try { |
| 218 |
const request = await UI_API._get_current_location(); |
| Error |
Row 219, Column 21: "Delete `⏎`"
prettier/prettier
|
| 219 |
if (request) { |
| 220 |
|
| 221 |
const address = await UI_API._returnGeoCodeData(request); |
| 222 |
const country = countriesList.find(el => el?.name === address?.country); |
| 223 |
|
| 224 |
country !== undefined && changeDefaultCountry(country); |
| Error |
Row 225, Column 1: "Delete `⏎`"
prettier/prettier
|
| 225 |
|
| 226 |
} |
| 227 |
} catch (error) { |
| 228 |
alertRef.current.alertWithType( |
| 229 |
'error', |
| 230 |
'Error', |
| 231 |
UI_API._returnError(error), |
| 232 |
); |
| 233 |
} |
| 234 |
}; |
| 235 |
const getAsyncStoreData = async () => { |
| 236 |
try { |
| 237 |
const location = await AsyncStorage.getItem('@location'); |
| 238 |
const skipOnBoarding = await AsyncStorage.getItem('@onboarding'); |
| 239 |
|
| 240 |
if (location) { |
| Error |
Row 241, Column 21: "Replace `·...payload,·isLocation:·true·` with `...payload,·isLocation:·true`"
prettier/prettier
|
| 241 |
setPayload({ ...payload, isLocation: true }); |
| 242 |
} |
| 243 |
await fetchCountriesList(); |
| 244 |
await fetchLangauge(); |
| 245 |
const jsonValue = await AsyncStorage.getItem('@token'); |
| 246 |
if (jsonValue != null) { |
| 247 |
props.onChangeGuest(false); |
| 248 |
await fetchUserInfo(); |
| 249 |
|
| 250 |
props.navigation?.replace('main'); |
| 251 |
} else if (skipOnBoarding) { |
| Error |
Row 252, Column 42: "Insert `;`"
prettier/prettier
|
| Warning |
Row 252, Column 42: "Missing semicolon."
semi
|
| 252 |
props.navigation.replace('login') |
| 253 |
} |
| 254 |
setTimeout(() => { |
| 255 |
SplashScreen.hide(); |
| Error |
Row 256, Column 15: "Insert `;`"
prettier/prettier
|
| Warning |
Row 256, Column 15: "Missing semicolon."
semi
|
| 256 |
}, 1000) |
| 257 |
} catch (error) { |
| 258 |
SplashScreen.hide(); |
| 259 |
alertRef.current.alertWithType( |
| 260 |
'error', |
| 261 |
'Error', |
| 262 |
UI_API._returnError(error), |
| 263 |
); |
| 264 |
} |
| 265 |
}; |
| 266 |
|
| Error |
Row 267, Column 10: "Replace `·width·` with `width`"
prettier/prettier
|
| Warning |
Row 267, Column 11: "'width' is already declared in the upper scope."
no-shadow
|
| 267 |
const { width } = useWindowDimensions(); |
| 268 |
|
| 269 |
React.useEffect(() => { |
| 270 |
getAsyncStoreData(); |
| Error |
Row 271, Column 6: "React Hook React.useEffect has a missing dependency: 'getAsyncStoreData'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 271 |
}, []); |
| 272 |
|
| 273 |
// React.useEffect(() => { |
| 274 |
// if (countriesList?.length > 0) { |
| 275 |
|
| 276 |
// } |
| Error |
Row 277, Column 25: "Delete `⏎`"
prettier/prettier
|
| 277 |
// }, [countriesList]) |
| 278 |
|
| 279 |
|
| 280 |
const onBoardingHandler = async () => { |
| 281 |
await AsyncStorage.setItem('@onboarding', UI_API._returnStringify(true)); |
| Error |
Row 282, Column 38: "Insert `;`"
prettier/prettier
|
| Warning |
Row 282, Column 38: "Missing semicolon."
semi
|
| 282 |
props.navigation.replace('login') |
| Error |
Row 283, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 283, Column 4: "Missing semicolon."
semi
|
| 283 |
} |
| 284 |
|
| 285 |
return ( |
| 286 |
<View style={styles.container}> |
| 287 |
<FlatList |
| 288 |
// contentContainerStyle={{ backgroundColor: 'gray', flex: 1 }} |
| 289 |
data={data} |
| 290 |
horizontal |
| 291 |
pagingEnabled |
| 292 |
bounces={false} |
| 293 |
onScroll={Animated.event( |
| 294 |
[ |
| 295 |
{ |
| 296 |
nativeEvent: { |
| Error |
Row 297, Column 33: "Replace `·x:·scrollX·` with `x:·scrollX`"
prettier/prettier
|
| 297 |
contentOffset: { x: scrollX }, |
| 298 |
}, |
| 299 |
}, |
| 300 |
], |
| 301 |
{ |
| 302 |
useNativeDriver: false, |
| 303 |
}, |
| 304 |
)} |
| 305 |
scrollEventThrottle={32} |
| 306 |
onViewableItemsChanged={viewableItemsChanged} |
| 307 |
viewabilityConfig={viewConfig} |
| 308 |
ref={scrollRef} |
| 309 |
showsHorizontalScrollIndicator={false} |
| Error |
Row 310, Column 23: "Replace `·item,·index·` with `item,·index`"
prettier/prettier
|
| 310 |
renderItem={({ item, index }) => ( |
| 311 |
<View |
| Warning |
Row 312, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 312 |
style={{ |
| 313 |
flex: 1, |
| 314 |
backgroundColor: colors.white, |
| 315 |
width, |
| 316 |
marginBottom: mvs(110), |
| 317 |
}}> |
| 318 |
{index !== 0 && index !== 1 && ( |
| Error |
Row 319, Column 29: "Replace `·marginTop:·mvs(50,·1.5)·` with `marginTop:·mvs(50,·1.5)`"
prettier/prettier
|
| 319 |
<View style={{ marginTop: mvs(50, 1.5) }}> |
| 320 |
<View style={{}}> |
| 321 |
<Medium style={styles.title} label={item.title} /> |
| 322 |
</View> |
| 323 |
<Regular style={styles.description} label={item.content} /> |
| 324 |
</View> |
| 325 |
)} |
| 326 |
{index === 0 && ( |
| 327 |
<> |
| 328 |
<BgLogo |
| 329 |
width={mvs(500)} |
| 330 |
height={mvs(300)} |
| Warning |
Row 331, Column 26: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| 331 |
style={{ |
| 332 |
position: 'absolute', |
| 333 |
top: mvs(-110), |
| 334 |
left: mvs(-162), |
| 335 |
//transform: [{ rotate: "-10deg" }] |
| 336 |
}} |
| 337 |
/> |
| Error |
Row 338, Column 31: "Replace `·marginTop:·mvs(200,·1.5)·` with `marginTop:·mvs(200,·1.5)`"
prettier/prettier
|
| 338 |
<View style={{ marginTop: mvs(200, 1.5) }}> |
| 339 |
<Image |
| 340 |
source={require('./../../../resource/assets/logo/banner_img.png')} |
| 341 |
resizeMode="contain" |
| Warning |
Row 342, Column 28: "Inline style: { alignSelf: 'center', bottom: 0 }"
react-native/no-inline-styles
|
| 342 |
style={{ |
| 343 |
height: mvs(175), |
| 344 |
width: mvs(150), |
| 345 |
alignSelf: 'center', |
| 346 |
bottom: 0, |
| 347 |
}} |
| 348 |
/> |
| 349 |
</View> |
| 350 |
</> |
| 351 |
)} |
| 352 |
{index === 1 && ( |
| Error |
Row 353, Column 29: "Replace `·marginTop:·mvs(50,·1.5)·` with `marginTop:·mvs(50,·1.5)`"
prettier/prettier
|
| 353 |
<View style={{ marginTop: mvs(50, 1.5) }}> |
| 354 |
<Image |
| 355 |
source={require('./../../../resource/assets/logo/delivery_img.png')} |
| 356 |
resizeMode="cover" |
| Error |
Row 357, Column 27: "Replace `·height:·mvs(360,·2.7),·width·` with `height:·mvs(360,·2.7),·width`"
prettier/prettier
|
| 357 |
style={{ height: mvs(360, 2.7), width }} //300 |
| 358 |
/> |
| 359 |
</View> |
| 360 |
)} |
| 361 |
<View |
| Warning |
Row 362, Column 22: "Inline style: { position: 'absolute' }"
react-native/no-inline-styles
|
| 362 |
style={{ |
| 363 |
position: 'absolute', |
| 364 |
top: index === 0 || index === 1 ? mvs(400, 1.5) : mvs(220, 1.5), |
| 365 |
width, |
| 366 |
}}> |
| 367 |
{(index === 0 || index === 1) && ( |
| 368 |
<React.Fragment> |
| 369 |
<View style={{}}> |
| 370 |
<Text style={styles.title}> |
| 371 |
{index === 0 |
| Warning |
Row 372, Column 49: "["welcome_taketo"] is better written in dot notation."
dot-notation
|
| 372 |
? onBoardingTranslation['welcome_taketo'] |
| Warning |
Row 373, Column 49: "["notification_and_location"] is better written in dot notation."
dot-notation
|
| 373 |
: onBoardingTranslation['notification_and_location']} |
| 374 |
</Text> |
| 375 |
</View> |
| 376 |
<Text style={styles.description}> |
| 377 |
{index === 0 |
| Warning |
Row 378, Column 47: "["welcome_taketo_def"] is better written in dot notation."
dot-notation
|
| 378 |
? onBoardingTranslation['welcome_taketo_def'] |
| Warning |
Row 379, Column 47: "["shop_from_abroad_content"] is better written in dot notation."
dot-notation
|
| 379 |
: onBoardingTranslation['shop_from_abroad_content']} |
| 380 |
</Text> |
| 381 |
</React.Fragment> |
| 382 |
)} |
| 383 |
{index === 1 && ( |
| 384 |
<View |
| 385 |
style={{ |
| 386 |
paddingHorizontal: mvs(22), |
| 387 |
marginTop: mvs(35), |
| 388 |
}}> |
| Error |
Row 389, Column 40: "Replace `·marginTop:·mvs(0)·` with `marginTop:·mvs(0)`"
prettier/prettier
|
| 389 |
<SettingCard style={{ marginTop: mvs(0) }}> |
| 390 |
<CustomSwitch |
| Error |
Row 391, Column 31: "Replace `·marginTop:·mvs(0)·` with `marginTop:·mvs(0)`"
prettier/prettier
|
| 391 |
style={{ marginTop: mvs(0) }} |
| 392 |
value={payload.isOrderEmail} |
| Warning |
Row 393, Column 47: "["notifications"] is better written in dot notation."
dot-notation
|
| 393 |
label={gray_modal_lable['notifications']} |
| Error |
Row 394, Column 50: "Replace `·...payload,·isOrderEmail:·v·` with `...payload,·isOrderEmail:·v`"
prettier/prettier
|
| 394 |
onChange={v => setPayload({ ...payload, isOrderEmail: v })} |
| 395 |
/> |
| 396 |
<CustomSwitch |
| Error |
Row 397, Column 31: "Replace `·marginTop:·mvs(15)·` with `marginTop:·mvs(15)`"
prettier/prettier
|
| 397 |
style={{ marginTop: mvs(15) }} |
| 398 |
value={payload.isLocation} |
| Warning |
Row 399, Column 47: "["location_services"] is better written in dot notation."
dot-notation
|
| 399 |
label={gray_modal_lable['location_services']} |
| 400 |
onChange={state => changeLocationService(state)} |
| 401 |
/> |
| 402 |
</SettingCard> |
| 403 |
</View> |
| 404 |
)} |
| 405 |
{index === 2 && ( |
| 406 |
<View |
| 407 |
style={{ |
| 408 |
marginHorizontal: mvs(22), |
| 409 |
paddingLeft: mvs(10), |
| 410 |
}}> |
| Warning |
Row 411, Column 48: "'index' is already declared in the upper scope."
no-shadow
|
| 411 |
{shopFromAbroad.map((abroad, index) => ( |
| 412 |
<View style={{}} key={index}> |
| 413 |
<InstractionCard |
| 414 |
title={abroad.title} |
| 415 |
detail={abroad.description} |
| 416 |
border={shopFromAbroad.length - 1 !== index} |
| 417 |
/> |
| 418 |
</View> |
| 419 |
))} |
| 420 |
</View> |
| 421 |
)} |
| 422 |
{index === 3 && ( |
| 423 |
<View |
| 424 |
style={{ |
| 425 |
marginHorizontal: mvs(22), |
| 426 |
paddingLeft: mvs(10), |
| 427 |
}}> |
| Warning |
Row 428, Column 43: "'index' is already declared in the upper scope."
no-shadow
|
| 428 |
{makeMoney.map((abroad, index) => ( |
| 429 |
<View style={{}} key={index}> |
| 430 |
<InstractionCard |
| 431 |
title={abroad.title} |
| 432 |
detail={abroad.description} |
| 433 |
border={makeMoney.length - 1 !== index} |
| 434 |
/> |
| 435 |
</View> |
| 436 |
))} |
| 437 |
</View> |
| 438 |
)} |
| 439 |
</View> |
| 440 |
</View> |
| 441 |
)} |
| 442 |
/> |
| 443 |
|
| 444 |
<Pagination scrollX={scrollX} width={width} /> |
| 445 |
<View style={styles.BUTTON_CONTAINER}> |
| 446 |
<Buttons.ButtonPrimary |
| 447 |
onClick={() => { |
| 448 |
if (currentIndex === 3) { |
| Error |
Row 449, Column 34: "Insert `;`"
prettier/prettier
|
| Warning |
Row 449, Column 34: "Missing semicolon."
semi
|
| 449 |
onBoardingHandler() |
| 450 |
} else { |
| 451 |
setCurrentIndex(currentIndex + 1); |
| 452 |
scrollRef.current.scrollToIndex({ |
| 453 |
animated: false, |
| 454 |
index: currentIndex + 1, |
| 455 |
viewOffset: 1, |
| 456 |
viewPosition: 0.5, |
| 457 |
}); |
| 458 |
} |
| 459 |
}} |
| 460 |
title={ |
| 461 |
currentIndex !== 3 |
| Warning |
Row 462, Column 32: "["next"] is better written in dot notation."
dot-notation
|
| 462 |
? btnTranslation['next'] |
| Warning |
Row 463, Column 32: "["get_started"] is better written in dot notation."
dot-notation
|
| 463 |
: btnTranslation['get_started'] |
| 464 |
} |
| Warning |
Row 465, Column 18: "Inline style: { width: "currentIndex !== 3 ? '49%' : '100%'" }"
react-native/no-inline-styles
|
| 465 |
style={{ |
| 466 |
width: currentIndex !== 3 ? '49%' : '100%', |
| 467 |
}} |
| 468 |
/> |
| 469 |
{currentIndex !== 3 && ( |
| 470 |
<Buttons.ButtonSecondaryOutline |
| 471 |
onClick={onBoardingHandler} |
| Warning |
Row 472, Column 35: "["skip"] is better written in dot notation."
dot-notation
|
| 472 |
title={btnTranslation['skip']} |
| Warning |
Row 473, Column 20: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 473 |
style={{ |
| 474 |
width: '49%', |
| 475 |
}} |
| 476 |
/> |
| 477 |
)} |
| 478 |
</View> |
| Error |
Row 479, Column 21: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎········translucent⏎········activeStatusBarStyle={'light-content'}⏎········inactiveStatusBarBackgroundColor={colors.primary}⏎········ref={alertRef}⏎·····`"
prettier/prettier
|
| 479 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 480 |
</View> |
| 481 |
); |
| 482 |
}; |
| 483 |
|
| 484 |
const mapStateToProps = state => { |
| 485 |
return { |
| 486 |
authData: state.auth, |
| 487 |
countriesList: state.common.countriesList, |
| 488 |
langauge: state.common?.langauge, |
| 489 |
}; |
| 490 |
}; |
| 491 |
|
| 492 |
const mapDispatchToProps = dispatch => ({ |
| 493 |
onChangeGuest: () => dispatch(TAKE_TO_ACTIONS.onChangeGuest(false)), |
| 494 |
fetchCountriesList: () => dispatch(TAKE_TO_ACTIONS.fetchCountriesList()), |
| 495 |
fetchUserInfo: () => dispatch(TAKE_TO_ACTIONS.fetchUserInfo()), |
| 496 |
fetchLangauge: () => dispatch(TAKE_TO_ACTIONS.fetchLangauge()), |
| 497 |
changeDefaultCountry: obj => |
| 498 |
dispatch(TAKE_TO_ACTIONS.changeDefaultCountry(obj)), |
| 499 |
}); |
| 500 |
// export default SignInScreen; |
| 501 |
export default connect(mapStateToProps, mapDispatchToProps)(Onboarding2); |
| 502 |
|
| 503 |
const styles = StyleSheet.create({ |
| 504 |
container: { |
| 505 |
flex: 1, |
| 506 |
backgroundColor: colors.white, |
| 507 |
}, |
| 508 |
BUTTON_CONTAINER: { |
| 509 |
width: '100%', |
| 510 |
paddingHorizontal: mvs(22), |
| 511 |
position: 'absolute', |
| 512 |
bottom: mvs(20), |
| 513 |
flexDirection: 'row', |
| 514 |
justifyContent: 'space-between', |
| 515 |
}, |
| 516 |
itemStyle: { |
| 517 |
alignItems: 'center', |
| 518 |
justifyContent: 'center', |
| 519 |
}, |
| 520 |
bottomContainer: { |
| 521 |
flex: 1, |
| 522 |
width: '100%', |
| 523 |
}, |
| 524 |
title: { |
| 525 |
color: colors.primary, |
| 526 |
fontSize: mvs(20), |
| 527 |
// alignSelf: 'center', |
| 528 |
fontFamily: fonts.carosSoftMedium, |
| 529 |
textAlign: 'left', |
| 530 |
marginLeft: mvs(22), |
| 531 |
marginTop: mvs(35), |
| 532 |
}, |
| 533 |
description: { |
| 534 |
color: colors.headerTitle, |
| 535 |
fontSize: mvs(13), |
| 536 |
fontFamily: fonts.carosSoftRegular, |
| 537 |
textAlign: 'left', |
| 538 |
marginLeft: mvs(22), |
| 539 |
marginTop: mvs(7), |
| 540 |
}, |
| 541 |
|
| 542 |
pagination: { |
| 543 |
position: 'absolute', |
| 544 |
alignSelf: 'center', |
| 545 |
bottom: mvs(90), |
| 546 |
flexDirection: 'row', |
| 547 |
height: DOT_SIZE, |
| 548 |
}, |
| 549 |
paginationDot: { |
| 550 |
width: DOT_SIZE, |
| 551 |
height: DOT_SIZE, |
| 552 |
borderRadius: DOT_SIZE / 2, |
| 553 |
backgroundColor: colors.gray, |
| 554 |
}, |
| 555 |
paginationDotContainer: { |
| 556 |
marginRight: 10, |
| 557 |
width: DOT_SIZE, |
| 558 |
alignItems: 'center', |
| 559 |
justifyContent: 'center', |
| 560 |
}, |
| 561 |
paginationIndicator: { |
| 562 |
width: DOT_SIZE, |
| 563 |
height: DOT_SIZE, |
| 564 |
borderRadius: DOT_SIZE / 2, |
| 565 |
borderWidth: 2, |
| 566 |
// borderColor: , |
| 567 |
backgroundColor: colors.headerTitle, |
| 568 |
}, |
| 569 |
}); |
| 570 |
|
|
|
|
/src/screens/orders/create-order-estore.js
|
107 problems (76 errors, 31 warnings)
|
| Severity |
Rule |
| Error |
Row 3, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| Error |
Row 17, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 19, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Error |
Row 26, Column 62: "Insert `;`"
prettier/prettier
|
| Warning |
Row 26, Column 62: "Missing semicolon."
semi
|
| Error |
Row 31, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 35, Column 25: "["search"] is better written in dot notation."
dot-notation
|
| Warning |
Row 36, Column 9: "'Clear' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 36, Column 24: "["clear"] is better written in dot notation."
dot-notation
|
| Warning |
Row 37, Column 24: "["minus"] is better written in dot notation."
dot-notation
|
| Warning |
Row 38, Column 23: "["plus"] is better written in dot notation."
dot-notation
|
| Warning |
Row 43, Column 10: "'toggle' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 43, Column 18: "'setToggle' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 45, Column 10: "'toggle1' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 45, Column 19: "'setToggle1' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 48, Column 5: "'selectedShopAddress' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 50, Column 5: "'fetchShopAddress' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 51, Column 5: "'fetchDeliveryAddress' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 54, Column 18: "Insert `,`"
prettier/prettier
|
| Warning |
Row 54, Column 18: "Missing trailing comma."
comma-dangle
|
| Error |
Row 56, Column 10: "Replace `·re_order_object·` with `re_order_object`"
prettier/prettier
|
| Error |
Row 58, Column 15: "Replace `·uri:·''·` with `uri:·''`"
prettier/prettier
|
| Error |
Row 113, Column 6: "React Hook React.useEffect has missing dependencies: 'payload' and 're_order_object'. Either include them or remove the dependency array. You can also do a functional update 'setPayload(p => ...)' if you only need 'payload' in the 'setPayload' call."
react-hooks/exhaustive-deps
|
| Error |
Row 115, Column 26: "Replace `·item,·index·` with `item,·index`"
prettier/prettier
|
| Warning |
Row 119, Column 20: "Expected '!==' and instead saw '!='."
eqeqeq
|
| Warning |
Row 129, Column 20: "Inline style: {
justifyContent: 'center',
alignItems: 'center',
position: 'absolute'
}"
react-native/no-inline-styles
|
| Error |
Row 180, Column 19: "Replace `·url:·payload?.url.replace('://m.',·'://')·` with `url:·payload?.url.replace('://m.',·'://')`"
prettier/prettier
|
| Error |
Row 183, Column 29: "'client' is not defined."
no-undef
|
| Error |
Row 199, Column 12: "Replace `·uri:·''·` with `uri:·''`"
prettier/prettier
|
| Error |
Row 205, Column 19: "Replace `·...payload,·url:·''·` with `...payload,·url:·''`"
prettier/prettier
|
| Warning |
Row 217, Column 14: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 217, Column 15: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Error |
Row 235, Column 23: "Insert `(⏎··········`"
prettier/prettier
|
| Error |
Row 236, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 237, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 238, Column 11: "Replace `onClose={()·=>·{·setOpenModal(false);` with `··onClose={()·=>·{⏎··············setOpenModal(false);⏎···········`"
prettier/prettier
|
| Error |
Row 239, Column 11: "Replace `onSelect={(item)` with `··onSelect={item`"
prettier/prettier
|
| Error |
Row 240, Column 1: "Replace `············console.log(item)` with `··············console.log(item);`"
prettier/prettier
|
| Warning |
Row 240, Column 30: "Missing semicolon."
semi
|
| Error |
Row 241, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 242, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 243, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 244, Column 1: "Replace `··············flag:·countriesList?.find(x·=>·x.short_name·==·item?.flag?.split('-')[1]` with `················flag:·countriesList?.find(⏎··················x·=>·x.short_name·==·item?.flag?.split('-')[1],⏎················`"
prettier/prettier
|
| Warning |
Row 244, Column 59: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 245, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 246, Column 1: "Replace `············})` with `··············});`"
prettier/prettier
|
| Warning |
Row 246, Column 15: "Missing semicolon."
semi
|
| Error |
Row 247, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 248, Column 11: "Insert `··}`"
prettier/prettier
|
| Error |
Row 249, Column 11: "Replace `}` with `/>`"
prettier/prettier
|
| Error |
Row 250, Column 9: "Replace `/>` with `)`"
prettier/prettier
|
| Error |
Row 261, Column 36: "Replace `·fontSize:·mvs(15)·` with `fontSize:·mvs(15)`"
prettier/prettier
|
| Warning |
Row 278, Column 39: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 278, Column 44: "Delete `·?`"
prettier/prettier
|
| Error |
Row 279, Column 20: "Insert `·?`"
prettier/prettier
|
| Error |
Row 280, Column 1: "Replace `······················` with `························`"
prettier/prettier
|
| Error |
Row 281, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 282, Column 1: "Replace `······················` with `························`"
prettier/prettier
|
| Error |
Row 283, Column 21: "Insert `··`"
prettier/prettier
|
| Error |
Row 284, Column 22: "Replace `⏎····················onSearch()` with `·onSearch();`"
prettier/prettier
|
| Warning |
Row 285, Column 31: "Missing semicolon."
semi
|
| Warning |
Row 288, Column 39: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 288, Column 44: "Delete `·?`"
prettier/prettier
|
| Error |
Row 289, Column 20: "Insert `·?`"
prettier/prettier
|
| Error |
Row 290, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 291, Column 23: "Insert `··`"
prettier/prettier
|
| Error |
Row 292, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 293, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 294, Column 22: "Replace `⏎····················onSearch()` with `·onSearch();`"
prettier/prettier
|
| Warning |
Row 295, Column 31: "Missing semicolon."
semi
|
| Error |
Row 307, Column 22: "Insert `⏎···············`"
prettier/prettier
|
| Error |
Row 308, Column 1: "Replace `················payload?.url.trim()·==·''·?` with `··················payload?.url.trim()·==·''`"
prettier/prettier
|
| Warning |
Row 308, Column 37: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 309, Column 19: "Insert `··?·`"
prettier/prettier
|
| Error |
Row 310, Column 21: "Insert `····`"
prettier/prettier
|
| Error |
Row 311, Column 1: "Replace `····················` with `························`"
prettier/prettier
|
| Error |
Row 312, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 313, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 314, Column 19: "Replace `:` with `··:·onSearch();`"
prettier/prettier
|
| Error |
Row 315, Column 17: "Replace `··onSearch()⏎··············}}·style={styles.searchIcon}` with `}}⏎················style={styles.searchIcon}⏎·············`"
prettier/prettier
|
| Warning |
Row 315, Column 29: "Missing semicolon."
semi
|
| Error |
Row 319, Column 27: "Replace `·height:·mvs(125),·marginTop:·mvs(30)·` with `height:·mvs(125),·marginTop:·mvs(30)`"
prettier/prettier
|
| Warning |
Row 324, Column 40: "Inline style: { height: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 342, Column 23: "Replace `·marginTop:·mvs(22)·` with `marginTop:·mvs(22)`"
prettier/prettier
|
| Error |
Row 343, Column 27: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Error |
Row 353, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 358, Column 24: "Inline style: { marginTop: 0 }"
react-native/no-inline-styles
|
| Error |
Row 358, Column 25: "Replace `·...styles.title,·marginTop:·0·}}⏎··············` with `...styles.title,·marginTop:·0}}`"
prettier/prettier
|
| Error |
Row 360, Column 46: "Replace `·color:·colors.mendatory·` with `color:·colors.mendatory`"
prettier/prettier
|
| Error |
Row 377, Column 25: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Error |
Row 388, Column 23: "Replace `·marginTop:·mvs(22)·` with `marginTop:·mvs(22)`"
prettier/prettier
|
| Warning |
Row 389, Column 26: "Inline style: { textAlignVertical: 'top' }"
react-native/no-inline-styles
|
| Error |
Row 389, Column 27: "Replace `·minHeight:·mvs(71),·textAlignVertical:·'top'·` with `minHeight:·mvs(71),·textAlignVertical:·'top'`"
prettier/prettier
|
| Error |
Row 409, Column 25: "Replace `·marginTop:·mvs(23),·height:·mvs(38)·` with `marginTop:·mvs(23),·height:·mvs(38)`"
prettier/prettier
|
| Error |
Row 410, Column 29: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Warning |
Row 423, Column 26: "Inline style: { textAlignVertical: 'top' }"
react-native/no-inline-styles
|
| Error |
Row 428, Column 23: "Replace `·marginTop:·mvs(22)·` with `marginTop:·mvs(22)`"
prettier/prettier
|
| Error |
Row 477, Column 23: "Replace `·paddingVertical:·mvs(1),·paddingRight:·mvs(1)·` with `paddingVertical:·mvs(1),·paddingRight:·mvs(1)`"
prettier/prettier
|
| Error |
Row 480, Column 27: "Replace `·fontSize:·mvs(15)·` with `fontSize:·mvs(15)`"
prettier/prettier
|
| Error |
Row 498, Column 25: "Replace `·paddingVertical:·mvs(1),·paddingRight:·mvs(1)·` with `paddingVertical:·mvs(1),·paddingRight:·mvs(1)`"
prettier/prettier
|
| Error |
Row 502, Column 29: "Replace `·fontSize:·mvs(15),·color:·colors.pink·` with `fontSize:·mvs(15),·color:·colors.pink`"
prettier/prettier
|
| Error |
Row 503, Column 17: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Error |
Row 503, Column 25: "Replace `·marginTop:·mvs(10)·` with `marginTop:·mvs(10)`"
prettier/prettier
|
| Error |
Row 512, Column 29: "Replace `·marginTop:·mvs(6)·` with `marginTop:·mvs(6)`"
prettier/prettier
|
| Error |
Row 545, Column 23: "Replace `·marginTop:·mvs(40)·` with `marginTop:·mvs(40)`"
prettier/prettier
|
| Error |
Row 549, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}·inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| Warning |
Row 552, Column 20: "Inline style: {
position: 'absolute',
height: '100%',
width: '100%',
justifyContent: 'center',
backgroundColor: '#00000010'
}"
react-native/no-inline-styles
|
| Line |
Source |
| 1 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 2 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| Error |
Row 3, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| 3 |
import React, { useState } from 'react'; |
| 4 |
import { |
| 5 |
ActivityIndicator, |
| 6 |
FlatList, |
| 7 |
KeyboardAvoidingView, |
| 8 |
Platform, |
| 9 |
ScrollView, |
| 10 |
StyleSheet, |
| 11 |
TextInput, |
| 12 |
TouchableOpacity, |
| 13 |
View, |
| 14 |
} from 'react-native'; |
| 15 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 16 |
import Icon from 'react-native-vector-icons/Ionicons'; |
| Error |
Row 17, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 17 |
import { connect } from 'react-redux'; |
| 18 |
import * as Images from '../../../resource/assets/order-car-icons'; |
| Error |
Row 19, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 19 |
import { TAKE_TO_INPUT_FIELD } from '../../components/atoms'; |
| 20 |
import Buttons from '../../components/atoms/Button'; |
| 21 |
import ImagePlaceholder from '../../components/atoms/Placeholder'; |
| 22 |
import CustomSwitch from '../../components/atoms/Switch'; |
| 23 |
import DualText from '../../components/molecules/dual-text/dual-text'; |
| 24 |
import Header from '../../components/molecules/header/header-1x'; |
| 25 |
import InputWithTitle from '../../components/molecules/input-with-title'; |
| Error |
Row 26, Column 62: "Insert `;`"
prettier/prettier
|
| Warning |
Row 26, Column 62: "Missing semicolon."
semi
|
| 26 |
import CountryPicker from 'react-native-country-picker-modal' |
| 27 |
import ImagePicker from '../../components/molecules/modals/image-picker/image-picker'; |
| 28 |
import PlusButton from '../../components/molecules/order_card/plus-button'; |
| 29 |
import colors from '../../config/colors'; |
| 30 |
import fonts from '../../config/fonts'; |
| Error |
Row 31, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 31 |
import { mvs } from '../../config/metrices'; |
| 32 |
import Regular from '../../presentation/typography/regular-text'; |
| 33 |
|
| 34 |
const CreateOrderEStore = props => { |
| Warning |
Row 35, Column 25: "["search"] is better written in dot notation."
dot-notation
|
| 35 |
const Search = Images['search']; |
| Warning |
Row 36, Column 9: "'Clear' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 36, Column 24: "["clear"] is better written in dot notation."
dot-notation
|
| 36 |
const Clear = Images['clear']; |
| Warning |
Row 37, Column 24: "["minus"] is better written in dot notation."
dot-notation
|
| 37 |
const Minus = Images['minus']; |
| Warning |
Row 38, Column 23: "["plus"] is better written in dot notation."
dot-notation
|
| 38 |
const Plus = Images['plus']; |
| 39 |
const scrollRef = React.useRef(null); |
| 40 |
const alertRef = React.useRef(null); |
| 41 |
|
| 42 |
const [openPicker, setOpenPicker] = React.useState(false); |
| Warning |
Row 43, Column 10: "'toggle' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 43, Column 18: "'setToggle' is assigned a value but never used."
no-unused-vars
|
| 43 |
const [toggle, setToggle] = useState(false); |
| 44 |
const [searchLoading, setSearchLoading] = React.useState(false); |
| Warning |
Row 45, Column 10: "'toggle1' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 45, Column 19: "'setToggle1' is assigned a value but never used."
no-unused-vars
|
| 45 |
const [toggle1, setToggle1] = useState(false); |
| 46 |
const [openModal, setOpenModal] = React.useState(false); |
| 47 |
const { |
| Warning |
Row 48, Column 5: "'selectedShopAddress' is assigned a value but never used."
no-unused-vars
|
| 48 |
selectedShopAddress, |
| 49 |
route, |
| Warning |
Row 50, Column 5: "'fetchShopAddress' is assigned a value but never used."
no-unused-vars
|
| 50 |
fetchShopAddress, |
| Warning |
Row 51, Column 5: "'fetchDeliveryAddress' is assigned a value but never used."
no-unused-vars
|
| 51 |
fetchDeliveryAddress, |
| 52 |
defaultCountry, |
| 53 |
profileData, |
| Error |
Row 54, Column 18: "Insert `,`"
prettier/prettier
|
| Warning |
Row 54, Column 18: "Missing trailing comma."
comma-dangle
|
| 54 |
countriesList |
| 55 |
} = props; |
| Error |
Row 56, Column 10: "Replace `·re_order_object·` with `re_order_object`"
prettier/prettier
|
| 56 |
const { re_order_object } = route?.params; |
| 57 |
const [payload, setPayload] = React.useState({ |
| Error |
Row 58, Column 15: "Replace `·uri:·''·` with `uri:·''`"
prettier/prettier
|
| 58 |
images: [{ uri: '' }], |
| 59 |
url: '', |
| 60 |
productName: '', |
| 61 |
productPrice: '', |
| 62 |
product_image_url: '', |
| 63 |
productDetails: '', |
| 64 |
instractions: '', |
| 65 |
quantity: 1, |
| 66 |
withBox: false, |
| 67 |
private: false, |
| 68 |
country: defaultCountry?.name || '', |
| 69 |
flag: defaultCountry?.flag || '', |
| 70 |
isPhysical: false, |
| 71 |
e_commerce_site: '', |
| 72 |
country_short_name: defaultCountry?.short_name, |
| 73 |
}); |
| 74 |
|
| 75 |
React.useEffect(() => { |
| 76 |
if (re_order_object) { |
| 77 |
// Geocoder.from( |
| 78 |
// re_order_object?.shop_latitude, |
| 79 |
// re_order_object?.shop_longitude, |
| 80 |
// ) |
| 81 |
// .then(json => { |
| 82 |
// const formattedAddress = UI_API._returnAddress(json); |
| 83 |
setPayload({ |
| 84 |
...payload, |
| 85 |
url: re_order_object?.product_link, |
| 86 |
product_image_url: re_order_object?.product_image_url, |
| 87 |
e_commerce_site: re_order_object?.order_site, |
| 88 |
images: [...re_order_object?.order_gallery, ...payload?.images], |
| 89 |
productName: re_order_object?.name, |
| 90 |
productPrice: re_order_object?.price, |
| 91 |
productDetails: re_order_object?.detail, |
| 92 |
shopName: re_order_object?.shop_name, |
| 93 |
country: re_order_object?.shop_country, |
| 94 |
country_short_name: re_order_object?.country_short_name, |
| 95 |
flag: re_order_object?.country_flag, |
| 96 |
isReOrder: re_order_object?.isReOrder, |
| 97 |
// shopAddress: formattedAddress?.fulladdress, |
| 98 |
instractions: re_order_object?.instructions, |
| 99 |
//quantity: re_order_object?.quantity, |
| 100 |
//withBox: re_order_object?.with_box, |
| 101 |
//private: re_order_object?.is_private, |
| 102 |
}); |
| 103 |
// }) |
| 104 |
// .catch(error => { |
| 105 |
// // scrollRef.current.scrollTo({x: 0, y: 0, animated: true}); |
| 106 |
// alertRef.current.alertWithType( |
| 107 |
// 'error', |
| 108 |
// 'Error', |
| 109 |
// UI_API._returnError(error), |
| 110 |
// ); |
| 111 |
// }); |
| 112 |
} |
| Error |
Row 113, Column 6: "React Hook React.useEffect has missing dependencies: 'payload' and 're_order_object'. Either include them or remove the dependency array. You can also do a functional update 'setPayload(p => ...)' if you only need 'payload' in the 'setPayload' call."
react-hooks/exhaustive-deps
|
| 113 |
}, [route?.params]); |
| 114 |
|
| Error |
Row 115, Column 26: "Replace `·item,·index·` with `item,·index`"
prettier/prettier
|
| 115 |
const renderImages = ({ item, index }) => { |
| 116 |
return ( |
| 117 |
<View style={styles.imageContainer}> |
| 118 |
<ImagePlaceholder bg_img={item?.uri} containerStyle={styles.image} /> |
| Warning |
Row 119, Column 20: "Expected '!==' and instead saw '!='."
eqeqeq
|
| 119 |
{item?.uri != '' && ( |
| 120 |
<TouchableOpacity |
| 121 |
onPress={() => { |
| 122 |
let temp = payload.images; |
| 123 |
temp.splice(index, 1); |
| 124 |
setPayload({ |
| 125 |
...payload, |
| 126 |
images: temp, |
| 127 |
}); |
| 128 |
}} |
| Warning |
Row 129, Column 20: "Inline style: {
justifyContent: 'center',
alignItems: 'center',
position: 'absolute'
}"
react-native/no-inline-styles
|
| 129 |
style={{ |
| 130 |
height: mvs(20), |
| 131 |
width: mvs(20), |
| 132 |
borderRadius: mvs(20 / 2), |
| 133 |
backgroundColor: `${colors.primary}`, |
| 134 |
justifyContent: 'center', |
| 135 |
alignItems: 'center', |
| 136 |
position: 'absolute', |
| 137 |
top: mvs(5), |
| 138 |
right: mvs(5), |
| 139 |
...colors.shadow, |
| 140 |
}}> |
| 141 |
<Icon name="close" size={mvs(15)} color={colors.white} /> |
| 142 |
</TouchableOpacity> |
| 143 |
)} |
| 144 |
</View> |
| 145 |
); |
| 146 |
}; |
| 147 |
|
| 148 |
const updatePayload = getData => { |
| 149 |
setPayload({ |
| 150 |
...payload, |
| 151 |
images: [getData?.profile_image, ...payload.images], |
| 152 |
}); |
| 153 |
}; |
| 154 |
|
| 155 |
const openCamera = async () => { |
| 156 |
// launchCamera({mediaType: 'photo', includeBase64: false}, response => |
| 157 |
await UI_API._openCamera(updatePayload, alertRef); |
| 158 |
// ); |
| 159 |
}; |
| 160 |
const openGallery = async () => { |
| 161 |
// launchImageLibrary({mediaType: 'photo', includeBase64: false}, response => |
| 162 |
await UI_API._openGallery(updatePayload, alertRef); |
| 163 |
// ); |
| 164 |
}; |
| 165 |
|
| 166 |
const onImageModalSelection = type => { |
| 167 |
//type :: Camera,Gallery,Delete |
| 168 |
setOpenPicker(false); |
| 169 |
setTimeout(() => { |
| 170 |
if (type === 'Camera') { |
| 171 |
openCamera(); |
| 172 |
} else if (type === 'Gallery') { |
| 173 |
openGallery(); |
| 174 |
} else { |
| 175 |
} |
| 176 |
}, 2000); |
| 177 |
}; |
| 178 |
|
| 179 |
const onSearch = async () => { |
| Error |
Row 180, Column 19: "Replace `·url:·payload?.url.replace('://m.',·'://')·` with `url:·payload?.url.replace('://m.',·'://')`"
prettier/prettier
|
| 180 |
const data = { url: payload?.url.replace('://m.', '://') }; |
| 181 |
try { |
| 182 |
setSearchLoading(true); |
| Error |
Row 183, Column 29: "'client' is not defined."
no-undef
|
| 183 |
const request = await client.post('online-stores-product-detail', data); |
| 184 |
setSearchLoading(false); |
| 185 |
if (!request?.data?.name) { |
| 186 |
throw new Error('Oops! It seems product link is invalid.'); |
| 187 |
//setSearchLoading(false) |
| 188 |
} |
| 189 |
|
| 190 |
setPayload({ |
| 191 |
...payload, |
| 192 |
productName: request?.data?.name || '', |
| 193 |
url: request?.data?.product_link || '', |
| 194 |
product_image_url: request?.data?.product_image_url || '', |
| 195 |
productDetails: request?.data?.detail || '', |
| 196 |
images: [ |
| 197 |
...payload?.images.filter(el => el.type !== undefined), |
| 198 |
...request?.data?.order_gallery, |
| Error |
Row 199, Column 12: "Replace `·uri:·''·` with `uri:·''`"
prettier/prettier
|
| 199 |
{ uri: '' }, |
| 200 |
], |
| 201 |
e_commerce_site: request?.data?.e_commerce_site || '', |
| 202 |
}); |
| 203 |
} catch (error) { |
| 204 |
setSearchLoading(false); |
| Error |
Row 205, Column 19: "Replace `·...payload,·url:·''·` with `...payload,·url:·''`"
prettier/prettier
|
| 205 |
setPayload({ ...payload, url: '' }); |
| 206 |
// scrollRef.current.scrollTo({ x: 0, y: 0, animated: true }); |
| 207 |
alertRef.current.alertWithType( |
| 208 |
'error', |
| 209 |
'Error', |
| 210 |
UI_API._returnError(error), |
| 211 |
); |
| 212 |
} |
| 213 |
}; |
| 214 |
|
| 215 |
return ( |
| 216 |
<KeyboardAvoidingView |
| Warning |
Row 217, Column 14: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 217, Column 15: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 217 |
style={{ flex: 1, backgroundColor: colors.white }} |
| 218 |
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}> |
| 219 |
<View style={styles.mainContainer}> |
| 220 |
<Header {...props} title="create order" allowBackBtn bellIcon /> |
| 221 |
{/* <CountryPicker |
| 222 |
visible={openModal} |
| 223 |
//onClose={() => setOpenModal(false)} |
| 224 |
onSelect={(country, flag, short_name) => { |
| 225 |
setPayload({ |
| 226 |
...payload, |
| 227 |
country, |
| 228 |
flag, |
| 229 |
country_short_name: short_name, |
| 230 |
}); |
| 231 |
//setOpenModal(false); |
| 232 |
}} |
| 233 |
/> */} |
| 234 |
|
| Error |
Row 235, Column 23: "Insert `(⏎··········`"
prettier/prettier
|
| 235 |
{openModal && <CountryPicker |
| Error |
Row 236, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 236 |
visible |
| Error |
Row 237, Column 1: "Insert `··`"
prettier/prettier
|
| 237 |
withFilter |
| Error |
Row 238, Column 11: "Replace `onClose={()·=>·{·setOpenModal(false);` with `··onClose={()·=>·{⏎··············setOpenModal(false);⏎···········`"
prettier/prettier
|
| 238 |
onClose={() => { setOpenModal(false); }} |
| Error |
Row 239, Column 11: "Replace `onSelect={(item)` with `··onSelect={item`"
prettier/prettier
|
| 239 |
onSelect={(item) => { |
| Error |
Row 240, Column 1: "Replace `············console.log(item)` with `··············console.log(item);`"
prettier/prettier
|
| Warning |
Row 240, Column 30: "Missing semicolon."
semi
|
| 240 |
console.log(item) |
| Error |
Row 241, Column 1: "Insert `··`"
prettier/prettier
|
| 241 |
setPayload({ |
| Error |
Row 242, Column 15: "Insert `··`"
prettier/prettier
|
| 242 |
...payload, |
| Error |
Row 243, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 243 |
country: item?.name, |
| Error |
Row 244, Column 1: "Replace `··············flag:·countriesList?.find(x·=>·x.short_name·==·item?.flag?.split('-')[1]` with `················flag:·countriesList?.find(⏎··················x·=>·x.short_name·==·item?.flag?.split('-')[1],⏎················`"
prettier/prettier
|
| Warning |
Row 244, Column 59: "Expected '===' and instead saw '=='."
eqeqeq
|
| 244 |
flag: countriesList?.find(x => x.short_name == item?.flag?.split('-')[1])?.flag, |
| Error |
Row 245, Column 1: "Insert `··`"
prettier/prettier
|
| 245 |
country_short_name: item?.cca2, |
| Error |
Row 246, Column 1: "Replace `············})` with `··············});`"
prettier/prettier
|
| Warning |
Row 246, Column 15: "Missing semicolon."
semi
|
| 246 |
}) |
| Error |
Row 247, Column 1: "Insert `··`"
prettier/prettier
|
| 247 |
setOpenModal(false); |
| Error |
Row 248, Column 11: "Insert `··}`"
prettier/prettier
|
| 248 |
} |
| Error |
Row 249, Column 11: "Replace `}` with `/>`"
prettier/prettier
|
| 249 |
} |
| Error |
Row 250, Column 9: "Replace `/>` with `)`"
prettier/prettier
|
| 250 |
/>} |
| 251 |
|
| 252 |
<ScrollView style={styles.container} ref={scrollRef}> |
| 253 |
<View style={styles.titleAndSearchContainer}> |
| 254 |
<DualText |
| 255 |
style={{ |
| 256 |
fontSize: mvs(15), |
| 257 |
color: colors.headerTitle, |
| 258 |
}} |
| 259 |
content={'I have a'} |
| 260 |
highlightText={' URL '} |
| Error |
Row 261, Column 36: "Replace `·fontSize:·mvs(15)·` with `fontSize:·mvs(15)`"
prettier/prettier
|
| 261 |
highlightTextStyle={{ fontSize: mvs(15) }}> |
| 262 |
<Regular label="of the product I want" /> |
| 263 |
</DualText> |
| 264 |
|
| 265 |
<Regular |
| 266 |
style={{ |
| 267 |
fontSize: mvs(12), |
| 268 |
color: colors.lightgrey1, |
| 269 |
marginTop: mvs(2), |
| 270 |
}} |
| 271 |
label="Let’s go. I have a URL of the product I want to order." |
| 272 |
/> |
| 273 |
|
| 274 |
<View style={styles.searchBar}> |
| 275 |
<TextInput |
| 276 |
style={styles.searchInput} |
| 277 |
onBlur={() => { |
| Warning |
Row 278, Column 39: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 278, Column 44: "Delete `·?`"
prettier/prettier
|
| 278 |
payload?.url.trim() == '' ? |
| Error |
Row 279, Column 20: "Insert `·?`"
prettier/prettier
|
| 279 |
alertRef.current.alertWithType( |
| Error |
Row 280, Column 1: "Replace `······················` with `························`"
prettier/prettier
|
| 280 |
'error', |
| Error |
Row 281, Column 1: "Insert `··`"
prettier/prettier
|
| 281 |
'Error', |
| Error |
Row 282, Column 1: "Replace `······················` with `························`"
prettier/prettier
|
| 282 |
'Oops! you have forgot to enter product url.', |
| Error |
Row 283, Column 21: "Insert `··`"
prettier/prettier
|
| 283 |
) |
| Error |
Row 284, Column 22: "Replace `⏎····················onSearch()` with `·onSearch();`"
prettier/prettier
|
| 284 |
: |
| Warning |
Row 285, Column 31: "Missing semicolon."
semi
|
| 285 |
onSearch() |
| 286 |
}} |
| 287 |
blurOnSubmit={() => { |
| Warning |
Row 288, Column 39: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 288, Column 44: "Delete `·?`"
prettier/prettier
|
| 288 |
payload?.url.trim() == '' ? |
| Error |
Row 289, Column 20: "Insert `·?`"
prettier/prettier
|
| 289 |
alertRef.current.alertWithType( |
| Error |
Row 290, Column 1: "Insert `··`"
prettier/prettier
|
| 290 |
'error', |
| Error |
Row 291, Column 23: "Insert `··`"
prettier/prettier
|
| 291 |
'Error', |
| Error |
Row 292, Column 1: "Insert `··`"
prettier/prettier
|
| 292 |
'Oops! you have forgot to enter product url.', |
| Error |
Row 293, Column 1: "Insert `··`"
prettier/prettier
|
| 293 |
) |
| Error |
Row 294, Column 22: "Replace `⏎····················onSearch()` with `·onSearch();`"
prettier/prettier
|
| 294 |
: |
| Warning |
Row 295, Column 31: "Missing semicolon."
semi
|
| 295 |
onSearch() |
| 296 |
}} |
| 297 |
placeholder={'Paste a product link'} |
| 298 |
placeholderTextColor={colors.primary} |
| 299 |
value={payload.url} |
| 300 |
onChangeText={txt => { |
| 301 |
setPayload({ |
| 302 |
...payload, |
| 303 |
url: txt, |
| 304 |
}); |
| 305 |
}} |
| 306 |
/> |
| Error |
Row 307, Column 22: "Insert `⏎···············`"
prettier/prettier
|
| 307 |
<Search onPress={() => { |
| Error |
Row 308, Column 1: "Replace `················payload?.url.trim()·==·''·?` with `··················payload?.url.trim()·==·''`"
prettier/prettier
|
| Warning |
Row 308, Column 37: "Expected '===' and instead saw '=='."
eqeqeq
|
| 308 |
payload?.url.trim() == '' ? |
| Error |
Row 309, Column 19: "Insert `··?·`"
prettier/prettier
|
| 309 |
alertRef.current.alertWithType( |
| Error |
Row 310, Column 21: "Insert `····`"
prettier/prettier
|
| 310 |
'error', |
| Error |
Row 311, Column 1: "Replace `····················` with `························`"
prettier/prettier
|
| 311 |
'Error', |
| Error |
Row 312, Column 1: "Insert `····`"
prettier/prettier
|
| 312 |
'Oops! you have forgot to enter product url.', |
| Error |
Row 313, Column 1: "Insert `····`"
prettier/prettier
|
| 313 |
) |
| Error |
Row 314, Column 19: "Replace `:` with `··:·onSearch();`"
prettier/prettier
|
| 314 |
: |
| Error |
Row 315, Column 17: "Replace `··onSearch()⏎··············}}·style={styles.searchIcon}` with `}}⏎················style={styles.searchIcon}⏎·············`"
prettier/prettier
|
| Warning |
Row 315, Column 29: "Missing semicolon."
semi
|
| 315 |
onSearch() |
| 316 |
}} style={styles.searchIcon} /> |
| 317 |
</View> |
| 318 |
|
| Error |
Row 319, Column 27: "Replace `·height:·mvs(125),·marginTop:·mvs(30)·` with `height:·mvs(125),·marginTop:·mvs(30)`"
prettier/prettier
|
| 319 |
<View style={{ height: mvs(125), marginTop: mvs(30) }}> |
| 320 |
<FlatList |
| 321 |
nestedScrollEnabled |
| 322 |
data={payload.images.slice(0, 5)} |
| 323 |
showsHorizontalScrollIndicator={false} |
| Warning |
Row 324, Column 40: "Inline style: { height: '100%' }"
react-native/no-inline-styles
|
| 324 |
contentContainerStyle={{ |
| 325 |
height: '100%', |
| 326 |
paddingVertical: mvs(1), |
| 327 |
}} |
| 328 |
horizontal |
| 329 |
style={styles.imagesContainer} |
| 330 |
renderItem={renderImages} |
| 331 |
/> |
| 332 |
{payload?.images.length < 6 && ( |
| 333 |
<View style={styles.plusButton}> |
| 334 |
<PlusButton onPress={() => setOpenPicker(true)} /> |
| 335 |
</View> |
| 336 |
)} |
| 337 |
</View> |
| 338 |
|
| 339 |
<InputWithTitle |
| 340 |
isRequired |
| 341 |
title="Product Name" |
| Error |
Row 342, Column 23: "Replace `·marginTop:·mvs(22)·` with `marginTop:·mvs(22)`"
prettier/prettier
|
| 342 |
style={{ marginTop: mvs(22) }} |
| Error |
Row 343, Column 27: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 343 |
textStyle={{ color: colors.primary }} |
| 344 |
placeholderTextColor={colors.input_placehoder} |
| 345 |
placeholder="Enter product name" |
| 346 |
value={payload.productName} |
| 347 |
onChangeText={txt => { |
| 348 |
setPayload({ |
| 349 |
...payload, |
| 350 |
productName: txt, |
| 351 |
}); |
| 352 |
}} |
| Error |
Row 353, Column 13: "Insert `··`"
prettier/prettier
|
| 353 |
//editable = {false} |
| 354 |
/> |
| 355 |
<View style={styles.productPriceContainer}> |
| 356 |
<Regular |
| 357 |
label="Product Price" |
| Warning |
Row 358, Column 24: "Inline style: { marginTop: 0 }"
react-native/no-inline-styles
|
| Error |
Row 358, Column 25: "Replace `·...styles.title,·marginTop:·0·}}⏎··············` with `...styles.title,·marginTop:·0}}`"
prettier/prettier
|
| 358 |
style={{ ...styles.title, marginTop: 0 }} |
| 359 |
> |
| Error |
Row 360, Column 46: "Replace `·color:·colors.mendatory·` with `color:·colors.mendatory`"
prettier/prettier
|
| 360 |
<Regular label={'*'} style={{ color: colors.mendatory }} /> |
| 361 |
</Regular> |
| 362 |
|
| 363 |
<TAKE_TO_INPUT_FIELD.PriceInput |
| 364 |
onChangeText={txt => { |
| 365 |
if (txt === '') { |
| 366 |
setPayload({ |
| 367 |
...payload, |
| 368 |
productPrice: txt.trim(), |
| 369 |
}); |
| 370 |
} else if (TAKE_TO_CONSTANT.floatValidation(txt)) { |
| 371 |
setPayload({ |
| 372 |
...payload, |
| 373 |
productPrice: txt.trim(), |
| 374 |
}); |
| 375 |
} |
| 376 |
}} |
| Error |
Row 377, Column 25: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 377 |
style={{ color: colors.primary }} |
| 378 |
value={payload.productPrice} |
| 379 |
label="Product Price" |
| 380 |
priceUnit={`${profileData?.currency?.currency_code}`} |
| 381 |
placeholder="Price" |
| 382 |
/> |
| 383 |
</View> |
| 384 |
|
| 385 |
<InputWithTitle |
| 386 |
isRequired |
| 387 |
title="Product Details" |
| Error |
Row 388, Column 23: "Replace `·marginTop:·mvs(22)·` with `marginTop:·mvs(22)`"
prettier/prettier
|
| 388 |
style={{ marginTop: mvs(22) }} |
| Warning |
Row 389, Column 26: "Inline style: { textAlignVertical: 'top' }"
react-native/no-inline-styles
|
| Error |
Row 389, Column 27: "Replace `·minHeight:·mvs(71),·textAlignVertical:·'top'·` with `minHeight:·mvs(71),·textAlignVertical:·'top'`"
prettier/prettier
|
| 389 |
textStyle={{ minHeight: mvs(71), textAlignVertical: 'top' }} |
| 390 |
placeholder="Enter details" |
| 391 |
multiline |
| 392 |
placeholderTextColor={colors.input_placehoder} |
| 393 |
value={payload.productDetails} |
| 394 |
onChangeText={txt => { |
| 395 |
setPayload({ |
| 396 |
...payload, |
| 397 |
productDetails: txt, |
| 398 |
}); |
| 399 |
}} |
| 400 |
/> |
| 401 |
|
| 402 |
<TouchableOpacity |
| 403 |
activeOpacity={1} |
| 404 |
onPress={() => setOpenModal(true)}> |
| 405 |
{console.log('payload?.flag::', payload?.flag)} |
| 406 |
<InputWithTitle |
| 407 |
title="Buy from" |
| 408 |
isRequired |
| Error |
Row 409, Column 25: "Replace `·marginTop:·mvs(23),·height:·mvs(38)·` with `marginTop:·mvs(23),·height:·mvs(38)`"
prettier/prettier
|
| 409 |
style={{ marginTop: mvs(23), height: mvs(38) }} |
| Error |
Row 410, Column 29: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 410 |
textStyle={{ color: colors.primary }} |
| 411 |
value={payload.country?.slice(0, 15)} |
| 412 |
placeholder="Country" |
| 413 |
placeholderTextColor={colors.input_placehoder} |
| 414 |
flag={true} |
| 415 |
row={true} |
| 416 |
flagUri={payload?.flag} |
| 417 |
editable={false} |
| 418 |
/> |
| 419 |
</TouchableOpacity> |
| 420 |
|
| 421 |
<InputWithTitle |
| 422 |
title="Buying Instructions" |
| Warning |
Row 423, Column 26: "Inline style: { textAlignVertical: 'top' }"
react-native/no-inline-styles
|
| 423 |
textStyle={{ |
| 424 |
minHeight: mvs(71), |
| 425 |
textAlignVertical: 'top', |
| 426 |
color: colors.primary, |
| 427 |
}} |
| Error |
Row 428, Column 23: "Replace `·marginTop:·mvs(22)·` with `marginTop:·mvs(22)`"
prettier/prettier
|
| 428 |
style={{ marginTop: mvs(22) }} |
| 429 |
placeholder="Enter your note here" |
| 430 |
multiline |
| 431 |
value={payload.instractions} |
| 432 |
placeholderTextColor={colors.input_placehoder} |
| 433 |
onChangeText={txt => { |
| 434 |
setPayload({ |
| 435 |
...payload, |
| 436 |
instractions: txt, |
| 437 |
}); |
| 438 |
}} |
| 439 |
/> |
| 440 |
<View style={styles.quantityContainer}> |
| 441 |
<Regular label="Quantity" style={styles.quantityTitle} /> |
| 442 |
<View style={styles.quantityButtonsContainer}> |
| 443 |
<TouchableOpacity |
| 444 |
onPress={() => { |
| 445 |
if (payload.quantity > 1) { |
| 446 |
setPayload({ |
| 447 |
...payload, |
| 448 |
quantity: payload.quantity - 1, |
| 449 |
}); |
| 450 |
} |
| 451 |
}} |
| 452 |
style={styles.quantityButton}> |
| 453 |
<Minus width={mvs(10)} height={mvs(10)} /> |
| 454 |
</TouchableOpacity> |
| 455 |
<Regular label={payload.quantity} style={styles.quantity} /> |
| 456 |
<TouchableOpacity |
| 457 |
onPress={() => { |
| 458 |
if (payload.quantity < 10) { |
| 459 |
setPayload({ |
| 460 |
...payload, |
| 461 |
quantity: payload.quantity + 1, |
| 462 |
}); |
| 463 |
} |
| 464 |
}} |
| 465 |
style={styles.quantityButton}> |
| 466 |
<Plus width={mvs(10)} height={mvs(10)} /> |
| 467 |
</TouchableOpacity> |
| 468 |
</View> |
| 469 |
</View> |
| 470 |
|
| 471 |
{/* <View style = {styles.toggleMainContainer}> |
| 472 |
<CustomSwitch/> |
| 473 |
</View> */} |
| 474 |
|
| 475 |
<CustomSwitch |
| 476 |
//size = "medium" |
| Error |
Row 477, Column 23: "Replace `·paddingVertical:·mvs(1),·paddingRight:·mvs(1)·` with `paddingVertical:·mvs(1),·paddingRight:·mvs(1)`"
prettier/prettier
|
| 477 |
style={{ paddingVertical: mvs(1), paddingRight: mvs(1) }} |
| 478 |
value={payload.withBox} |
| 479 |
label="With Box" |
| Error |
Row 480, Column 27: "Replace `·fontSize:·mvs(15)·` with `fontSize:·mvs(15)`"
prettier/prettier
|
| 480 |
textStyle={{ fontSize: mvs(15) }} |
| 481 |
onChange={val => { |
| 482 |
setPayload({ |
| 483 |
...payload, |
| 484 |
withBox: !payload.withBox, |
| 485 |
}); |
| 486 |
}} |
| 487 |
/> |
| 488 |
|
| 489 |
<View style={styles.detailContainer}> |
| 490 |
<Regular |
| 491 |
style={styles.detail} |
| 492 |
label="Requiring the box may reduce the number of offers you receive. Travelers generally prefer to deliver orders without the box, to save space." |
| 493 |
/> |
| 494 |
</View> |
| 495 |
|
| 496 |
<View style={styles.privateContainer}> |
| 497 |
<CustomSwitch |
| Error |
Row 498, Column 25: "Replace `·paddingVertical:·mvs(1),·paddingRight:·mvs(1)·` with `paddingVertical:·mvs(1),·paddingRight:·mvs(1)`"
prettier/prettier
|
| 498 |
style={{ paddingVertical: mvs(1), paddingRight: mvs(1) }} |
| 499 |
//size = "medium" |
| 500 |
value={payload.private} |
| 501 |
label="PRIVATE LISTING" |
| Error |
Row 502, Column 29: "Replace `·fontSize:·mvs(15),·color:·colors.pink·` with `fontSize:·mvs(15),·color:·colors.pink`"
prettier/prettier
|
| 502 |
textStyle={{ fontSize: mvs(15), color: colors.pink }} |
| Error |
Row 503, Column 17: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Error |
Row 503, Column 25: "Replace `·marginTop:·mvs(10)·` with `marginTop:·mvs(10)`"
prettier/prettier
|
| 503 |
style={{ marginTop: mvs(10) }} |
| 504 |
onChange={val => { |
| 505 |
setPayload({ |
| 506 |
...payload, |
| 507 |
private: !payload.private, |
| 508 |
}); |
| 509 |
}} |
| 510 |
/> |
| 511 |
|
| Error |
Row 512, Column 29: "Replace `·marginTop:·mvs(6)·` with `marginTop:·mvs(6)`"
prettier/prettier
|
| 512 |
<View style={{ marginTop: mvs(6) }}> |
| 513 |
<Regular |
| 514 |
style={{ |
| 515 |
fontSize: mvs(11), |
| 516 |
color: colors.lightgrey2, |
| 517 |
}} |
| 518 |
label="Your Product will not not be featured on our home page" |
| 519 |
/> |
| 520 |
</View> |
| 521 |
</View> |
| 522 |
|
| 523 |
<Buttons.ButtonPrimary |
| 524 |
onClick={async () => { |
| 525 |
//console.log("data:", payload) |
| 526 |
try { |
| 527 |
const response = TAKE_TO_CONSTANT.eShopValidation(payload); |
| 528 |
if (response.status) { |
| 529 |
props.navigation.navigate('orderdeliverydetail', { |
| 530 |
payload: payload, |
| 531 |
type: 'estore', |
| 532 |
}); |
| 533 |
} else { |
| 534 |
throw new Error(response.message); |
| 535 |
} |
| 536 |
} catch (error) { |
| 537 |
alertRef.current.alertWithType( |
| 538 |
'error', |
| 539 |
'Error', |
| 540 |
UI_API._returnError(error), |
| 541 |
); |
| 542 |
} |
| 543 |
}} |
| 544 |
title="Next" |
| Error |
Row 545, Column 23: "Replace `·marginTop:·mvs(40)·` with `marginTop:·mvs(40)`"
prettier/prettier
|
| 545 |
style={{ marginTop: mvs(40) }} |
| 546 |
/> |
| 547 |
</View> |
| 548 |
</ScrollView> |
| Error |
Row 549, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}·inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| 549 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 550 |
{searchLoading && ( |
| 551 |
<View |
| Warning |
Row 552, Column 20: "Inline style: {
position: 'absolute',
height: '100%',
width: '100%',
justifyContent: 'center',
backgroundColor: '#00000010'
}"
react-native/no-inline-styles
|
| 552 |
style={{ |
| 553 |
position: 'absolute', |
| 554 |
height: '100%', |
| 555 |
width: '100%', |
| 556 |
justifyContent: 'center', |
| 557 |
backgroundColor: '#00000010', |
| 558 |
}}> |
| 559 |
<ActivityIndicator size={'small'} color={colors.primary} /> |
| 560 |
</View> |
| 561 |
)} |
| 562 |
</View> |
| 563 |
|
| 564 |
<ImagePicker |
| 565 |
visible={openPicker} |
| 566 |
showDelete={false} |
| 567 |
onClose={setOpenPicker} |
| 568 |
onSubmit={onImageModalSelection} |
| 569 |
/> |
| 570 |
</KeyboardAvoidingView> |
| 571 |
); |
| 572 |
}; |
| 573 |
|
| 574 |
const mapStateToProps = state => { |
| 575 |
return { |
| 576 |
defaultCountry: state.common.defaultCountry, |
| 577 |
profileData: state.auth.userInfo?.profile || {}, |
| 578 |
countriesList: state.common.countriesList, |
| 579 |
}; |
| 580 |
}; |
| 581 |
const mapDispatchToProps = dispatch => ({ |
| 582 |
// fetchCountriesList: () => dispatch(TAKE_TO_ACTIONS.fetchCountriesList()), |
| 583 |
}); |
| 584 |
|
| 585 |
export default connect(mapStateToProps, mapDispatchToProps)(CreateOrderEStore); |
| 586 |
|
| 587 |
const styles = StyleSheet.create({ |
| 588 |
mainContainer: { |
| 589 |
flex: 1, |
| 590 |
backgroundColor: colors.white, |
| 591 |
}, |
| 592 |
container: { |
| 593 |
flex: 1, |
| 594 |
paddingHorizontal: mvs(22), |
| 595 |
}, |
| 596 |
titleAndSearchContainer: { |
| 597 |
//height : mvs(87), |
| 598 |
width: '100%', |
| 599 |
//borderWidth : 1, |
| 600 |
//marginTop : mvs(32), |
| 601 |
paddingBottom: mvs(40), |
| 602 |
}, |
| 603 |
searchBar: { |
| 604 |
height: mvs(38), |
| 605 |
width: '100%', |
| 606 |
//borderWidth : 1, |
| 607 |
marginTop: mvs(18), |
| 608 |
borderRadius: mvs(10), |
| 609 |
paddingHorizontal: mvs(10), |
| 610 |
justifyContent: 'center', |
| 611 |
backgroundColor: colors.secondary, |
| 612 |
}, |
| 613 |
searchInput: { |
| 614 |
// borderWidth : 1, |
| 615 |
padding: 0, |
| 616 |
fontSize: mvs(15), |
| 617 |
fontFamily: fonts.carosSoftRegular, |
| 618 |
color: colors.primary, |
| 619 |
width: '93%', |
| 620 |
}, |
| 621 |
searchIcon: { |
| 622 |
position: 'absolute', |
| 623 |
right: mvs(10), |
| 624 |
}, |
| 625 |
imagesContainer: { |
| 626 |
height: '100%', |
| 627 |
width: '100%', |
| 628 |
}, |
| 629 |
imageContainer: { |
| 630 |
height: '100%', |
| 631 |
width: mvs(104), |
| 632 |
borderWidth: 0.3, |
| 633 |
borderRadius: 10, |
| 634 |
borderColor: colors.label, |
| 635 |
justifyContent: 'center', |
| 636 |
alignItems: 'center', |
| 637 |
marginRight: mvs(10), |
| 638 |
}, |
| 639 |
image: { |
| 640 |
height: mvs(98), |
| 641 |
width: mvs(75), |
| 642 |
borderRadius: mvs(10), |
| 643 |
}, |
| 644 |
plusButton: { |
| 645 |
position: 'absolute', |
| 646 |
right: mvs(5), |
| 647 |
top: '30%', |
| 648 |
}, |
| 649 |
title: { |
| 650 |
fontSize: mvs(12), |
| 651 |
color: colors.headerTitle, |
| 652 |
marginTop: mvs(23), |
| 653 |
}, |
| 654 |
value: { |
| 655 |
fontSize: mvs(18), |
| 656 |
color: colors.headerTitle, |
| 657 |
marginTop: mvs(10), |
| 658 |
}, |
| 659 |
line: { |
| 660 |
borderBottomWidth: 0.3, |
| 661 |
width: '100%', |
| 662 |
borderColor: colors.horizontalLine, |
| 663 |
marginTop: mvs(13), |
| 664 |
}, |
| 665 |
inputBox: { |
| 666 |
backgroundColor: colors.secondary, |
| 667 |
marginTop: mvs(15), |
| 668 |
}, |
| 669 |
productPriceContainer: { |
| 670 |
height: mvs(38), |
| 671 |
width: '100%', |
| 672 |
//borderWidth : 1, |
| 673 |
flexDirection: 'row', |
| 674 |
justifyContent: 'space-between', |
| 675 |
alignItems: 'center', |
| 676 |
marginTop: mvs(20), |
| 677 |
}, |
| 678 |
priceInputContainer: { |
| 679 |
height: '100%', |
| 680 |
width: mvs(161), |
| 681 |
borderRadius: mvs(10), |
| 682 |
backgroundColor: colors.secondary, |
| 683 |
paddingHorizontal: mvs(11), |
| 684 |
//justifyContent : 'center', |
| 685 |
alignItems: 'center', |
| 686 |
flexDirection: 'row', |
| 687 |
}, |
| 688 |
priceInput: { |
| 689 |
height: '100%', |
| 690 |
width: '100%', |
| 691 |
padding: 0, |
| 692 |
//borderWidth : 1, |
| 693 |
fontSize: mvs(18), |
| 694 |
fontFamily: fonts.carosSoftRegular, |
| 695 |
color: colors.primary, |
| 696 |
paddingLeft: mvs(5), |
| 697 |
}, |
| 698 |
clear: { |
| 699 |
position: 'absolute', |
| 700 |
right: mvs(11), |
| 701 |
}, |
| 702 |
quantityContainer: { |
| 703 |
width: '100%', |
| 704 |
borderColor: colors.horizontalLine, |
| 705 |
marginTop: mvs(20), |
| 706 |
flexDirection: 'row', |
| 707 |
justifyContent: 'space-between', |
| 708 |
alignItems: 'center', |
| 709 |
}, |
| 710 |
quantityTitle: { |
| 711 |
fontSize: mvs(18), |
| 712 |
color: colors.headerTitle, |
| 713 |
}, |
| 714 |
quantityButtonsContainer: { |
| 715 |
height: '100%', |
| 716 |
width: mvs(104), |
| 717 |
//borderWidth : 1, |
| 718 |
flexDirection: 'row', |
| 719 |
justifyContent: 'space-between', |
| 720 |
alignItems: 'center', |
| 721 |
}, |
| 722 |
quantityButton: { |
| 723 |
height: mvs(23), |
| 724 |
width: mvs(23), |
| 725 |
borderRadius: mvs(23 / 2), |
| 726 |
backgroundColor: colors.secondary, |
| 727 |
justifyContent: 'center', |
| 728 |
alignItems: 'center', |
| 729 |
}, |
| 730 |
quantityButtonLabel: { |
| 731 |
fontSize: mvs(18), |
| 732 |
color: colors.headerTitle, |
| 733 |
}, |
| 734 |
quantity: { |
| 735 |
fontSize: mvs(18), |
| 736 |
color: colors.primary, |
| 737 |
}, |
| 738 |
toggleMainContainer: { |
| 739 |
height: mvs(25), |
| 740 |
width: '100%', |
| 741 |
borderWidth: 1, |
| 742 |
marginTop: mvs(8), |
| 743 |
flexDirection: 'row', |
| 744 |
alignItems: 'center', |
| 745 |
justifyContent: 'space-between', |
| 746 |
}, |
| 747 |
detailContainer: { |
| 748 |
width: '100%', |
| 749 |
//borderWidth : 1, |
| 750 |
marginTop: mvs(10), |
| 751 |
}, |
| 752 |
detail: { |
| 753 |
fontSize: mvs(12), |
| 754 |
color: colors.lightgrey2, |
| 755 |
}, |
| 756 |
privateContainer: { |
| 757 |
height: mvs(83), |
| 758 |
width: '100%', |
| 759 |
//borderWidth : 1, |
| 760 |
marginTop: mvs(30), |
| 761 |
paddingHorizontal: mvs(10), |
| 762 |
borderRadius: mvs(10), |
| 763 |
backgroundColor: colors.secondary, |
| 764 |
}, |
| 765 |
privateTitleContainer: { |
| 766 |
//borderWidth : 1, |
| 767 |
marginTop: mvs(16), |
| 768 |
width: '100%', |
| 769 |
flexDirection: 'row', |
| 770 |
alignItems: 'center', |
| 771 |
}, |
| 772 |
dot: { |
| 773 |
height: mvs(7), |
| 774 |
width: mvs(7), |
| 775 |
borderRadius: mvs(7 / 2), |
| 776 |
backgroundColor: colors.pink, |
| 777 |
marginLeft: mvs(5), |
| 778 |
}, |
| 779 |
}); |
| 780 |
|
|
|
|
/src/screens/orders/create-order-pstore.js
|
72 problems (44 errors, 28 warnings)
|
| Severity |
Rule |
| Error |
Row 4, Column 9: "Replace `·useIsFocused·` with `useIsFocused`"
prettier/prettier
|
| Error |
Row 5, Column 16: "Replace `·useEffect,·useState·` with `useEffect,·useState`"
prettier/prettier
|
| Warning |
Row 12, Column 3: "'TextInput' is defined but never used."
no-unused-vars
|
| Error |
Row 17, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 27, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 30, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 33, Column 8: "'DualText' is defined but never used."
no-unused-vars
|
| Warning |
Row 35, Column 7: "'isFocus' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 36, Column 10: "Replace `·selectedShopAddress,·route,·fetchShopAddress,·fetchDeliveryAddress,·profileData·}·=⏎···` with `⏎····selectedShopAddress,⏎····route,⏎····fetchShopAddress,⏎····fetchDeliveryAddress,⏎····profileData,⏎··}·=`"
prettier/prettier
|
| Error |
Row 38, Column 10: "Replace `·re_order_object·` with `re_order_object`"
prettier/prettier
|
| Warning |
Row 39, Column 9: "'Search' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 39, Column 25: "["search"] is better written in dot notation."
dot-notation
|
| Warning |
Row 40, Column 9: "'Location' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 40, Column 27: "["location_white"] is better written in dot notation."
dot-notation
|
| Warning |
Row 41, Column 9: "'Clear' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 41, Column 24: "["clear"] is better written in dot notation."
dot-notation
|
| Warning |
Row 42, Column 24: "["minus"] is better written in dot notation."
dot-notation
|
| Warning |
Row 43, Column 23: "["plus"] is better written in dot notation."
dot-notation
|
| Warning |
Row 48, Column 10: "'detailsConter' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 48, Column 25: "'setDetailsCounter' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 48, Column 57: "Insert `;`"
prettier/prettier
|
| Warning |
Row 48, Column 57: "Missing semicolon."
semi
|
| Error |
Row 51, Column 15: "Replace `·uri:·''·` with `uri:·''`"
prettier/prettier
|
| Error |
Row 107, Column 6: "React Hook React.useEffect has missing dependencies: 'payload' and 're_order_object'. Either include them or remove the dependency array. You can also do a functional update 'setPayload(p => ...)' if you only need 'payload' in the 'setPayload' call."
react-hooks/exhaustive-deps
|
| Error |
Row 122, Column 6: "React Hook useEffect has missing dependencies: 'fetchDeliveryAddress', 'fetchShopAddress', 'payload', and 're_order_object'. Either include them or remove the dependency array. You can also do a functional update 'setPayload(p => ...)' if you only need 'payload' in the 'setPayload' call."
react-hooks/exhaustive-deps
|
| Warning |
Row 124, Column 9: "'onChangeHandler' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 125, Column 17: "Replace `·...payload,·[key]:·value·` with `...payload,·[key]:·value`"
prettier/prettier
|
| Warning |
Row 128, Column 9: "'getLatLong' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 132, Column 9: "'setLat' is not defined."
no-undef
|
| Error |
Row 133, Column 9: "'setLng' is not defined."
no-undef
|
| Error |
Row 141, Column 21: "Replace `·...payload,·...selectedShopAddress·` with `...payload,·...selectedShopAddress`"
prettier/prettier
|
| Error |
Row 155, Column 26: "Replace `·item,·index·` with `item,·index`"
prettier/prettier
|
| Warning |
Row 159, Column 20: "Expected '!==' and instead saw '!='."
eqeqeq
|
| Warning |
Row 169, Column 20: "Inline style: {
justifyContent: 'center',
alignItems: 'center',
position: 'absolute'
}"
react-native/no-inline-styles
|
| Error |
Row 191, Column 16: "Replace `⏎········getData?.profile_image,⏎········...payload.images,⏎······` with `getData?.profile_image,·...payload.images`"
prettier/prettier
|
| Warning |
Row 224, Column 14: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 224, Column 15: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Error |
Row 228, Column 20: "Replace `·nestedScrollEnabled·style={styles.container}` with `⏎··········nestedScrollEnabled⏎··········style={styles.container}⏎·········`"
prettier/prettier
|
| Error |
Row 230, Column 25: "Replace `·height:·mvs(125)·` with `height:·mvs(125)`"
prettier/prettier
|
| Warning |
Row 235, Column 38: "Inline style: { height: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 235, Column 39: "Replace `·height:·'100%',·paddingVertical:·mvs(1)·` with `height:·'100%',·paddingVertical:·mvs(1)`"
prettier/prettier
|
| Error |
Row 251, Column 21: "Replace `·marginTop:·mvs(22)·` with `marginTop:·mvs(22)`"
prettier/prettier
|
| Error |
Row 253, Column 25: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Warning |
Row 266, Column 22: "Inline style: { marginTop: 0 }"
react-native/no-inline-styles
|
| Error |
Row 266, Column 23: "Replace `·...styles.title,·marginTop:·0·}}⏎············` with `...styles.title,·marginTop:·0}}`"
prettier/prettier
|
| Error |
Row 268, Column 44: "Replace `·color:·colors.mendatory·` with `color:·colors.mendatory`"
prettier/prettier
|
| Error |
Row 272, Column 29: "Replace `""` with `''`"
prettier/prettier
|
| Warning |
Row 272, Column 29: "Strings must use singlequote."
quotes
|
| Error |
Row 277, Column 18: "Delete `⏎···············`"
prettier/prettier
|
| Error |
Row 285, Column 23: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Warning |
Row 318, Column 20: "Strings must use singlequote."
quotes
|
| Error |
Row 319, Column 21: "Replace `·marginTop:·mvs(22)·` with `marginTop:·mvs(22)`"
prettier/prettier
|
| Warning |
Row 320, Column 24: "Inline style: { textAlignVertical: 'top' }"
react-native/no-inline-styles
|
| Error |
Row 343, Column 21: "Replace `·marginTop:·mvs(25)·` with `marginTop:·mvs(25)`"
prettier/prettier
|
| Error |
Row 344, Column 25: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Error |
Row 361, Column 15: "Insert `>`"
prettier/prettier
|
| Error |
Row 362, Column 11: "Replace `>·prettier/prettier
|
| Error |
Row 367, Column 62: "Replace `·type:·'pstore',·heading:·"Search·shop·address"` with `⏎················type:·'pstore',⏎················heading:·'Search·shop·address',⏎·············`"
prettier/prettier
|
| Warning |
Row 367, Column 88: "Strings must use singlequote."
quotes
|
| Warning |
Row 369, Column 20: "Inline style: { width: '100%', justifyContent: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 386, Column 23: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Warning |
Row 393, Column 20: "Strings must use singlequote."
quotes
|
| Error |
Row 394, Column 26: "Replace `·fontSize:·mvs(14)·` with `fontSize:·mvs(14)`"
prettier/prettier
|
| Error |
Row 395, Column 21: "Replace `·marginTop:·mvs(22)·` with `marginTop:·mvs(22)`"
prettier/prettier
|
| Warning |
Row 396, Column 24: "Inline style: { textAlignVertical: 'top' }"
react-native/no-inline-styles
|
| Error |
Row 449, Column 25: "Replace `·fontSize:·mvs(15)·` with `fontSize:·mvs(15)`"
prettier/prettier
|
| Error |
Row 471, Column 27: "Replace `·fontSize:·mvs(15),·color:·colors.pink·` with `fontSize:·mvs(15),·color:·colors.pink`"
prettier/prettier
|
| Error |
Row 472, Column 23: "Replace `·marginTop:·mvs(10)·` with `marginTop:·mvs(10)`"
prettier/prettier
|
| Error |
Row 481, Column 27: "Replace `·marginTop:·mvs(6)·` with `marginTop:·mvs(6)`"
prettier/prettier
|
| Error |
Row 496, Column 33: "Insert `⏎·················`"
prettier/prettier
|
| Error |
Row 515, Column 21: "Replace `·marginVertical:·mvs(40)·` with `marginVertical:·mvs(40)`"
prettier/prettier
|
| Error |
Row 519, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}·inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 2 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 3 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| Error |
Row 4, Column 9: "Replace `·useIsFocused·` with `useIsFocused`"
prettier/prettier
|
| 4 |
import { useIsFocused } from '@react-navigation/native'; |
| Error |
Row 5, Column 16: "Replace `·useEffect,·useState·` with `useEffect,·useState`"
prettier/prettier
|
| 5 |
import React, { useEffect, useState } from 'react'; |
| 6 |
import { |
| 7 |
FlatList, |
| 8 |
KeyboardAvoidingView, |
| 9 |
Platform, |
| 10 |
ScrollView, |
| 11 |
StyleSheet, |
| Warning |
Row 12, Column 3: "'TextInput' is defined but never used."
no-unused-vars
|
| 12 |
TextInput, |
| 13 |
TouchableOpacity, |
| 14 |
View, |
| 15 |
} from 'react-native'; |
| 16 |
import Geocoder from 'react-native-geocoding'; |
| Error |
Row 17, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 17 |
import { connect } from 'react-redux'; |
| 18 |
import * as Images from '../../../resource/assets/order-car-icons'; |
| 19 |
import Buttons from '../../components/atoms/Button'; |
| 20 |
import ImagePlaceholder from '../../components/atoms/Placeholder'; |
| 21 |
import CustomSwitch from '../../components/atoms/Switch'; |
| 22 |
import Header from '../../components/molecules/header/header-1x'; |
| 23 |
import InputWithTitle from '../../components/molecules/input-with-title'; |
| 24 |
import PlusButton from '../../components/molecules/order_card/plus-button'; |
| 25 |
import colors from '../../config/colors'; |
| 26 |
import fonts from '../../config/fonts'; |
| Error |
Row 27, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 27 |
import { mvs } from '../../config/metrices'; |
| 28 |
import Regular from '../../presentation/typography/regular-text'; |
| 29 |
import DropdownAlert from 'react-native-dropdownalert'; |
| Error |
Row 30, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 30 |
import { TAKE_TO_INPUT_FIELD } from '../../components/atoms'; |
| 31 |
import Icon from 'react-native-vector-icons/Ionicons'; |
| 32 |
import ImagePicker from '../../components/molecules/modals/image-picker/image-picker'; |
| Warning |
Row 33, Column 8: "'DualText' is defined but never used."
no-unused-vars
|
| 33 |
import DualText from '../../components/molecules/dual-text/dual-text'; |
| 34 |
const CreateOrderPhysicalStore = props => { |
| Warning |
Row 35, Column 7: "'isFocus' is assigned a value but never used."
no-unused-vars
|
| 35 |
let isFocus = useIsFocused(); |
| Error |
Row 36, Column 10: "Replace `·selectedShopAddress,·route,·fetchShopAddress,·fetchDeliveryAddress,·profileData·}·=⏎···` with `⏎····selectedShopAddress,⏎····route,⏎····fetchShopAddress,⏎····fetchDeliveryAddress,⏎····profileData,⏎··}·=`"
prettier/prettier
|
| 36 |
const { selectedShopAddress, route, fetchShopAddress, fetchDeliveryAddress, profileData } = |
| 37 |
props; |
| Error |
Row 38, Column 10: "Replace `·re_order_object·` with `re_order_object`"
prettier/prettier
|
| 38 |
const { re_order_object } = route?.params; |
| Warning |
Row 39, Column 9: "'Search' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 39, Column 25: "["search"] is better written in dot notation."
dot-notation
|
| 39 |
const Search = Images['search']; |
| Warning |
Row 40, Column 9: "'Location' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 40, Column 27: "["location_white"] is better written in dot notation."
dot-notation
|
| 40 |
const Location = Images['location_white']; |
| Warning |
Row 41, Column 9: "'Clear' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 41, Column 24: "["clear"] is better written in dot notation."
dot-notation
|
| 41 |
const Clear = Images['clear']; |
| Warning |
Row 42, Column 24: "["minus"] is better written in dot notation."
dot-notation
|
| 42 |
const Minus = Images['minus']; |
| Warning |
Row 43, Column 23: "["plus"] is better written in dot notation."
dot-notation
|
| 43 |
const Plus = Images['plus']; |
| 44 |
const scrollRef = React.useRef(null); |
| 45 |
const alertRef = React.useRef(null); |
| 46 |
const [openPicker, setOpenPicker] = React.useState(false); |
| 47 |
|
| Warning |
Row 48, Column 10: "'detailsConter' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 48, Column 25: "'setDetailsCounter' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 48, Column 57: "Insert `;`"
prettier/prettier
|
| Warning |
Row 48, Column 57: "Missing semicolon."
semi
|
| 48 |
const [detailsConter, setDetailsCounter] = useState(0) |
| 49 |
|
| 50 |
const [payload, setPayload] = React.useState({ |
| Error |
Row 51, Column 15: "Replace `·uri:·''·` with `uri:·''`"
prettier/prettier
|
| 51 |
images: [{ uri: '' }], |
| 52 |
productName: '', |
| 53 |
productPrice: '', |
| 54 |
productDetails: '', |
| 55 |
shopName: '', |
| 56 |
shopAddress: '', |
| 57 |
instractions: '', |
| 58 |
quantity: 1, |
| 59 |
withBox: false, |
| 60 |
private: false, |
| 61 |
isPhysical: true, |
| 62 |
}); |
| 63 |
|
| 64 |
React.useEffect(() => { |
| 65 |
if (re_order_object) { |
| 66 |
Geocoder.from( |
| 67 |
re_order_object?.shop_latitude, |
| 68 |
re_order_object?.shop_longitude, |
| 69 |
) |
| 70 |
.then(json => { |
| 71 |
const formattedAddress = UI_API._returnAddress(json); |
| 72 |
// console.log('formattedAddress :: ', formattedAddress); |
| 73 |
setPayload({ |
| 74 |
...payload, |
| 75 |
images: [...re_order_object?.order_gallery, ...payload?.images], |
| 76 |
productName: re_order_object?.name, |
| 77 |
productPrice: re_order_object?.price, |
| 78 |
productDetails: re_order_object?.detail, |
| 79 |
shopName: re_order_object?.shop_name, |
| 80 |
isReOrder: re_order_object?.isReOrder, |
| 81 |
// shopAddress: formattedAddress?.fulladdress, |
| 82 |
instractions: re_order_object?.instructions, |
| 83 |
//quantity: re_order_object?.quantity, |
| 84 |
//withBox: re_order_object?.with_box, |
| 85 |
//private: re_order_object?.is_private, |
| 86 |
shopAddress: { |
| 87 |
street: re_order_object?.shop_block, |
| 88 |
block: re_order_object?.shop_street, |
| 89 |
city: formattedAddress?.city, // |
| 90 |
country: formattedAddress?.country, // |
| 91 |
latitude: re_order_object?.shop_latitude, // |
| 92 |
longitude: re_order_object?.shop_longitude, // |
| 93 |
fulladdress: formattedAddress?.fulladdress, // |
| 94 |
country_short_name: formattedAddress?.country_short_name, // |
| 95 |
}, |
| 96 |
}); |
| 97 |
}) |
| 98 |
.catch(error => { |
| 99 |
// scrollRef.current.scrollTo({x: 0, y: 0, animated: true}); |
| 100 |
alertRef.current.alertWithType( |
| 101 |
'error', |
| 102 |
'Error', |
| 103 |
UI_API._returnError(error), |
| 104 |
); |
| 105 |
}); |
| 106 |
} |
| Error |
Row 107, Column 6: "React Hook React.useEffect has missing dependencies: 'payload' and 're_order_object'. Either include them or remove the dependency array. You can also do a functional update 'setPayload(p => ...)' if you only need 'payload' in the 'setPayload' call."
react-hooks/exhaustive-deps
|
| 107 |
}, [route?.params]); |
| 108 |
|
| 109 |
// console.log(payload) |
| 110 |
|
| 111 |
useEffect(() => { |
| 112 |
//console.log('address:', selectedShopAddress); |
| 113 |
if (re_order_object) { |
| 114 |
fetchShopAddress(''); |
| 115 |
fetchDeliveryAddress(''); |
| 116 |
} else { |
| 117 |
setPayload({ |
| 118 |
...payload, |
| 119 |
shopAddress: selectedShopAddress, |
| 120 |
}); |
| 121 |
} |
| Error |
Row 122, Column 6: "React Hook useEffect has missing dependencies: 'fetchDeliveryAddress', 'fetchShopAddress', 'payload', and 're_order_object'. Either include them or remove the dependency array. You can also do a functional update 'setPayload(p => ...)' if you only need 'payload' in the 'setPayload' call."
react-hooks/exhaustive-deps
|
| 122 |
}, [selectedShopAddress, route]); |
| 123 |
|
| Warning |
Row 124, Column 9: "'onChangeHandler' is assigned a value but never used."
no-unused-vars
|
| 124 |
const onChangeHandler = (key, value) => { |
| Error |
Row 125, Column 17: "Replace `·...payload,·[key]:·value·` with `...payload,·[key]:·value`"
prettier/prettier
|
| 125 |
setPayload({ ...payload, [key]: value }); |
| 126 |
}; |
| 127 |
|
| Warning |
Row 128, Column 9: "'getLatLong' is assigned a value but never used."
no-unused-vars
|
| 128 |
const getLatLong = cty => { |
| 129 |
Geocoder.from(cty) |
| 130 |
.then(json => { |
| 131 |
var location = json.results[0].geometry.location; |
| Error |
Row 132, Column 9: "'setLat' is not defined."
no-undef
|
| 132 |
setLat(location.lat); |
| Error |
Row 133, Column 9: "'setLng' is not defined."
no-undef
|
| 133 |
setLng(location.lng); |
| 134 |
// setPayload({ |
| 135 |
// ...payload, |
| 136 |
// latitude : location.lat, |
| 137 |
// longitude : location.lng |
| 138 |
// }) |
| 139 |
// console.log("data:", payload) |
| 140 |
props.navigation.navigate('orderdeliverydetail', { |
| Error |
Row 141, Column 21: "Replace `·...payload,·...selectedShopAddress·` with `...payload,·...selectedShopAddress`"
prettier/prettier
|
| 141 |
payload: { ...payload, ...selectedShopAddress }, |
| 142 |
type: 'pstore', |
| 143 |
}); |
| 144 |
}) |
| 145 |
.catch(error => { |
| 146 |
// scrollRef.current.scrollTo({x: 0, y: 0, animated: true}); |
| 147 |
alertRef.current.alertWithType( |
| 148 |
'error', |
| 149 |
'Error', |
| 150 |
UI_API._returnError(error), |
| 151 |
); |
| 152 |
}); |
| 153 |
}; |
| 154 |
|
| Error |
Row 155, Column 26: "Replace `·item,·index·` with `item,·index`"
prettier/prettier
|
| 155 |
const renderImages = ({ item, index }) => { |
| 156 |
return ( |
| 157 |
<View style={styles.imageContainer}> |
| 158 |
<ImagePlaceholder bg_img={item?.uri} containerStyle={styles.image} /> |
| Warning |
Row 159, Column 20: "Expected '!==' and instead saw '!='."
eqeqeq
|
| 159 |
{item?.uri != '' && ( |
| 160 |
<TouchableOpacity |
| 161 |
onPress={() => { |
| 162 |
let temp = payload.images; |
| 163 |
temp.splice(index, 1); |
| 164 |
setPayload({ |
| 165 |
...payload, |
| 166 |
images: temp, |
| 167 |
}); |
| 168 |
}} |
| Warning |
Row 169, Column 20: "Inline style: {
justifyContent: 'center',
alignItems: 'center',
position: 'absolute'
}"
react-native/no-inline-styles
|
| 169 |
style={{ |
| 170 |
height: mvs(20), |
| 171 |
width: mvs(20), |
| 172 |
borderRadius: mvs(20 / 2), |
| 173 |
backgroundColor: `${colors.primary}`, |
| 174 |
justifyContent: 'center', |
| 175 |
alignItems: 'center', |
| 176 |
position: 'absolute', |
| 177 |
top: mvs(5), |
| 178 |
right: mvs(5), |
| 179 |
...colors.shadow, |
| 180 |
}}> |
| 181 |
<Icon name="close" size={mvs(15)} color={colors.white} /> |
| 182 |
</TouchableOpacity> |
| 183 |
)} |
| 184 |
</View> |
| 185 |
); |
| 186 |
}; |
| 187 |
|
| 188 |
const updatePayload = getData => { |
| 189 |
setPayload({ |
| 190 |
...payload, |
| Error |
Row 191, Column 16: "Replace `⏎········getData?.profile_image,⏎········...payload.images,⏎······` with `getData?.profile_image,·...payload.images`"
prettier/prettier
|
| 191 |
images: [ |
| 192 |
getData?.profile_image, |
| 193 |
...payload.images, |
| 194 |
], |
| 195 |
}); |
| 196 |
}; |
| 197 |
|
| 198 |
const openCamera = async () => { |
| 199 |
// launchCamera({mediaType: 'photo', includeBase64: false}, response => |
| 200 |
await UI_API._openCamera(updatePayload, alertRef); |
| 201 |
// ); |
| 202 |
}; |
| 203 |
const openGallery = async () => { |
| 204 |
// launchImageLibrary({mediaType: 'photo', includeBase64: false}, response => |
| 205 |
await UI_API._openGallery(updatePayload, alertRef); |
| 206 |
// ); |
| 207 |
}; |
| 208 |
|
| 209 |
const onImageModalSelection = type => { |
| 210 |
//type :: Camera,Gallery,Delete |
| 211 |
setOpenPicker(false); |
| 212 |
setTimeout(() => { |
| 213 |
if (type === 'Camera') { |
| 214 |
openCamera(); |
| 215 |
} else if (type === 'Gallery') { |
| 216 |
openGallery(); |
| 217 |
} else { |
| 218 |
} |
| 219 |
}, 2000); |
| 220 |
}; |
| 221 |
|
| 222 |
return ( |
| 223 |
<KeyboardAvoidingView |
| Warning |
Row 224, Column 14: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 224, Column 15: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 224 |
style={{ flex: 1, backgroundColor: colors.white }} |
| 225 |
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}> |
| 226 |
<View style={styles.mainContainer}> |
| 227 |
<Header {...props} title="create order" allowBackBtn bellIcon /> |
| Error |
Row 228, Column 20: "Replace `·nestedScrollEnabled·style={styles.container}` with `⏎··········nestedScrollEnabled⏎··········style={styles.container}⏎·········`"
prettier/prettier
|
| 228 |
<ScrollView nestedScrollEnabled style={styles.container} ref={scrollRef}> |
| 229 |
{/* <View style = {styles.titleAndSearchContainer}> */} |
| Error |
Row 230, Column 25: "Replace `·height:·mvs(125)·` with `height:·mvs(125)`"
prettier/prettier
|
| 230 |
<View style={{ height: mvs(125) }}> |
| 231 |
<FlatList |
| 232 |
nestedScrollEnabled |
| 233 |
data={payload.images.slice(0, 5)} |
| 234 |
showsHorizontalScrollIndicator={false} |
| Warning |
Row 235, Column 38: "Inline style: { height: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 235, Column 39: "Replace `·height:·'100%',·paddingVertical:·mvs(1)·` with `height:·'100%',·paddingVertical:·mvs(1)`"
prettier/prettier
|
| 235 |
contentContainerStyle={{ height: '100%', paddingVertical: mvs(1) }} |
| 236 |
horizontal |
| 237 |
style={styles.imagesContainer} |
| 238 |
renderItem={renderImages} |
| 239 |
/> |
| 240 |
{payload?.images.length < 6 && ( |
| 241 |
<View style={styles.plusButton}> |
| 242 |
<PlusButton onPress={() => setOpenPicker(true)} /> |
| 243 |
</View> |
| 244 |
)} |
| 245 |
</View> |
| 246 |
|
| 247 |
<InputWithTitle |
| 248 |
title="Product Name" |
| 249 |
isRequired |
| 250 |
placeholder={'Name'} |
| Error |
Row 251, Column 21: "Replace `·marginTop:·mvs(22)·` with `marginTop:·mvs(22)`"
prettier/prettier
|
| 251 |
style={{ marginTop: mvs(22) }} |
| 252 |
placeholderTextColor={colors.input_placehoder} |
| Error |
Row 253, Column 25: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 253 |
textStyle={{ color: colors.primary }} |
| 254 |
value={payload.productName} |
| 255 |
onChangeText={txt => { |
| 256 |
setPayload({ |
| 257 |
...payload, |
| 258 |
productName: txt, |
| 259 |
}); |
| 260 |
}} |
| 261 |
/> |
| 262 |
|
| 263 |
<View style={styles.productPriceContainer}> |
| 264 |
<Regular |
| 265 |
label="Product Price" |
| Warning |
Row 266, Column 22: "Inline style: { marginTop: 0 }"
react-native/no-inline-styles
|
| Error |
Row 266, Column 23: "Replace `·...styles.title,·marginTop:·0·}}⏎············` with `...styles.title,·marginTop:·0}}`"
prettier/prettier
|
| 266 |
style={{ ...styles.title, marginTop: 0 }} |
| 267 |
> |
| Error |
Row 268, Column 44: "Replace `·color:·colors.mendatory·` with `color:·colors.mendatory`"
prettier/prettier
|
| 268 |
<Regular label={'*'} style={{ color: colors.mendatory }} /> |
| 269 |
</Regular> |
| 270 |
<TAKE_TO_INPUT_FIELD.PriceInput |
| 271 |
onChangeText={txt => { |
| Error |
Row 272, Column 29: "Replace `""` with `''`"
prettier/prettier
|
| Warning |
Row 272, Column 29: "Strings must use singlequote."
quotes
|
| 272 |
if (txt === "") { |
| 273 |
setPayload({ |
| 274 |
...payload, |
| 275 |
productPrice: txt.trim(), |
| 276 |
}); |
| Error |
Row 277, Column 18: "Delete `⏎···············`"
prettier/prettier
|
| 277 |
} |
| 278 |
else if (TAKE_TO_CONSTANT.floatValidation(txt)) { |
| 279 |
setPayload({ |
| 280 |
...payload, |
| 281 |
productPrice: txt.trim(), |
| 282 |
}); |
| 283 |
} |
| 284 |
}} |
| Error |
Row 285, Column 23: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 285 |
style={{ color: colors.primary }} |
| 286 |
value={payload.productPrice} |
| 287 |
placeholderTextColor={colors.input_placehoder} |
| 288 |
label="Product Price" |
| 289 |
priceUnit={`${profileData?.currency?.currency_code}`} |
| 290 |
placeholder="Price" |
| 291 |
/> |
| 292 |
{/* <View style={styles.priceInputContainer}> |
| 293 |
<Regular |
| 294 |
label="US$" |
| 295 |
style={{ |
| 296 |
fontSize: mvs(18), |
| 297 |
color: colors.primary, |
| 298 |
}} |
| 299 |
/> |
| 300 |
<TextInput |
| 301 |
style={styles.priceInput} |
| 302 |
keyboardType="number-pad" |
| 303 |
value={payload.productPrice} |
| 304 |
placeholder="Price" |
| 305 |
onChangeText={txt => { |
| 306 |
setPayload({ |
| 307 |
...payload, |
| 308 |
productPrice: txt, |
| 309 |
}); |
| 310 |
}} |
| 311 |
/> |
| 312 |
</View> */} |
| 313 |
</View> |
| 314 |
|
| 315 |
<InputWithTitle |
| 316 |
isRequired |
| 317 |
//title={`Product Details (${payload?.productDetails?.length}/300)`} |
| Warning |
Row 318, Column 20: "Strings must use singlequote."
quotes
|
| 318 |
title={`Product Details`} |
| Error |
Row 319, Column 21: "Replace `·marginTop:·mvs(22)·` with `marginTop:·mvs(22)`"
prettier/prettier
|
| 319 |
style={{ marginTop: mvs(22) }} |
| Warning |
Row 320, Column 24: "Inline style: { textAlignVertical: 'top' }"
react-native/no-inline-styles
|
| 320 |
textStyle={{ |
| 321 |
minHeight: mvs(71), |
| 322 |
textAlignVertical: 'top', |
| 323 |
color: colors.primary, |
| 324 |
}} |
| 325 |
placeholder="Enter details" |
| 326 |
placeholderTextColor={colors.input_placehoder} |
| 327 |
value={payload.productDetails} |
| 328 |
multiline |
| 329 |
maxLength={300} |
| 330 |
// onChange={() => } |
| 331 |
onChangeText={txt => { |
| 332 |
setPayload({ |
| 333 |
...payload, |
| 334 |
productDetails: txt, |
| 335 |
}); |
| 336 |
}} |
| 337 |
/> |
| 338 |
|
| 339 |
<InputWithTitle |
| 340 |
title="Shop Name" |
| 341 |
isRequired |
| 342 |
placeholder="Shop name*" |
| Error |
Row 343, Column 21: "Replace `·marginTop:·mvs(25)·` with `marginTop:·mvs(25)`"
prettier/prettier
|
| 343 |
style={{ marginTop: mvs(25) }} |
| Error |
Row 344, Column 25: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 344 |
textStyle={{ color: colors.primary }} |
| 345 |
placeholderTextColor={colors.input_placehoder} |
| 346 |
value={payload.shopName} |
| 347 |
onChangeText={txt => { |
| 348 |
setPayload({ |
| 349 |
...payload, |
| 350 |
shopName: txt, |
| 351 |
}); |
| 352 |
}} |
| 353 |
/> |
| 354 |
|
| 355 |
<Regular |
| 356 |
label="Select store address" |
| 357 |
style={{ |
| 358 |
fontSize: mvs(13), |
| 359 |
color: colors.headerTitle, |
| 360 |
marginTop: mvs(22), |
| Error |
Row 361, Column 15: "Insert `>`"
prettier/prettier
|
| 361 |
}} |
| Error |
Row 362, Column 11: "Replace `>·prettier/prettier
|
| 362 |
> <Regular label={'*'} style={{ color: colors.mendatory }} /> |
| 363 |
</Regular> |
| 364 |
|
| 365 |
<TouchableOpacity |
| 366 |
onPress={() => |
| Error |
Row 367, Column 62: "Replace `·type:·'pstore',·heading:·"Search·shop·address"` with `⏎················type:·'pstore',⏎················heading:·'Search·shop·address',⏎·············`"
prettier/prettier
|
| Warning |
Row 367, Column 88: "Strings must use singlequote."
quotes
|
| 367 |
props.navigation.navigate('deliverylocation', { type: 'pstore', heading: "Search shop address" }) |
| 368 |
} |
| Warning |
Row 369, Column 20: "Inline style: { width: '100%', justifyContent: 'center' }"
react-native/no-inline-styles
|
| 369 |
style={{ |
| 370 |
//height : mvs(48), |
| 371 |
paddingVertical: mvs(10), |
| 372 |
width: '100%', |
| 373 |
borderRadius: mvs(8), |
| 374 |
backgroundColor: colors.secondary, |
| 375 |
marginTop: mvs(10), |
| 376 |
justifyContent: 'center', |
| 377 |
paddingHorizontal: mvs(10), |
| 378 |
}}> |
| 379 |
<Regular |
| 380 |
label={ |
| 381 |
!payload?.shopAddress |
| 382 |
? 'Select Address' |
| 383 |
: payload?.shopAddress?.fulladdress |
| 384 |
//`${selectedShopAddress?.street_address}, ${selectedShopAddress?.street}, ${selectedShopAddress?.block}, ${selectedShopAddress?.city}, ${selectedShopAddress?.country}` |
| 385 |
} |
| Error |
Row 386, Column 23: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 386 |
style={{ color: colors.primary }} |
| 387 |
/> |
| 388 |
</TouchableOpacity> |
| 389 |
|
| 390 |
<InputWithTitle |
| 391 |
isRequired |
| 392 |
//title={`Buying Instructions (${payload?.instractions?.length}/300)`} |
| Warning |
Row 393, Column 20: "Strings must use singlequote."
quotes
|
| 393 |
title={`Buying Instructions`} |
| Error |
Row 394, Column 26: "Replace `·fontSize:·mvs(14)·` with `fontSize:·mvs(14)`"
prettier/prettier
|
| 394 |
titleStyle={{ fontSize: mvs(14) }} |
| Error |
Row 395, Column 21: "Replace `·marginTop:·mvs(22)·` with `marginTop:·mvs(22)`"
prettier/prettier
|
| 395 |
style={{ marginTop: mvs(22) }} |
| Warning |
Row 396, Column 24: "Inline style: { textAlignVertical: 'top' }"
react-native/no-inline-styles
|
| 396 |
textStyle={{ |
| 397 |
minHeight: mvs(71), |
| 398 |
textAlignVertical: 'top', |
| 399 |
color: colors.primary, |
| 400 |
}} |
| 401 |
maxLength={300} |
| 402 |
placeholderTextColor={colors.input_placehoder} |
| 403 |
placeholder="Enter your note here" |
| 404 |
multiline |
| 405 |
value={payload.instractions} |
| 406 |
onChangeText={txt => { |
| 407 |
setPayload({ |
| 408 |
...payload, |
| 409 |
instractions: txt, |
| 410 |
}); |
| 411 |
}} |
| 412 |
/> |
| 413 |
|
| 414 |
<View style={styles.quantityContainer}> |
| 415 |
<Regular label="Quantity" style={styles.quantityTitle} /> |
| 416 |
<View style={styles.quantityButtonsContainer}> |
| 417 |
<TouchableOpacity |
| 418 |
onPress={() => { |
| 419 |
if (payload.quantity > 1) { |
| 420 |
setPayload({ |
| 421 |
...payload, |
| 422 |
quantity: payload.quantity - 1, |
| 423 |
}); |
| 424 |
} |
| 425 |
}} |
| 426 |
style={styles.quantityButton}> |
| 427 |
<Minus width={mvs(10)} height={mvs(10)} /> |
| 428 |
</TouchableOpacity> |
| 429 |
<Regular label={payload.quantity} style={styles.quantity} /> |
| 430 |
<TouchableOpacity |
| 431 |
onPress={() => { |
| 432 |
if (payload.quantity < 100) { |
| 433 |
setPayload({ |
| 434 |
...payload, |
| 435 |
quantity: payload.quantity + 1, |
| 436 |
}); |
| 437 |
} |
| 438 |
}} |
| 439 |
style={styles.quantityButton}> |
| 440 |
<Plus width={mvs(10)} height={mvs(10)} /> |
| 441 |
</TouchableOpacity> |
| 442 |
</View> |
| 443 |
</View> |
| 444 |
|
| 445 |
<CustomSwitch |
| 446 |
//size = "medium" |
| 447 |
value={payload.withBox} |
| 448 |
label="With Box" |
| Error |
Row 449, Column 25: "Replace `·fontSize:·mvs(15)·` with `fontSize:·mvs(15)`"
prettier/prettier
|
| 449 |
textStyle={{ fontSize: mvs(15) }} |
| 450 |
style={{}} |
| 451 |
onChange={val => { |
| 452 |
setPayload({ |
| 453 |
...payload, |
| 454 |
withBox: !payload.withBox, |
| 455 |
}); |
| 456 |
}} |
| 457 |
/> |
| 458 |
|
| 459 |
<View style={styles.detailContainer}> |
| 460 |
<Regular |
| 461 |
style={styles.detail} |
| 462 |
label="Requiring the box may reduce the number of offers you receive. Travelers generally prefer to deliver orders without the box, to save space." |
| 463 |
/> |
| 464 |
</View> |
| 465 |
|
| 466 |
<View style={styles.privateContainer}> |
| 467 |
<CustomSwitch |
| 468 |
//size = "medium" |
| 469 |
value={payload.private} |
| 470 |
label="PRIVATE LISTING" |
| Error |
Row 471, Column 27: "Replace `·fontSize:·mvs(15),·color:·colors.pink·` with `fontSize:·mvs(15),·color:·colors.pink`"
prettier/prettier
|
| 471 |
textStyle={{ fontSize: mvs(15), color: colors.pink }} |
| Error |
Row 472, Column 23: "Replace `·marginTop:·mvs(10)·` with `marginTop:·mvs(10)`"
prettier/prettier
|
| 472 |
style={{ marginTop: mvs(10) }} |
| 473 |
onChange={val => { |
| 474 |
setPayload({ |
| 475 |
...payload, |
| 476 |
private: !payload.private, |
| 477 |
}); |
| 478 |
}} |
| 479 |
/> |
| 480 |
|
| Error |
Row 481, Column 27: "Replace `·marginTop:·mvs(6)·` with `marginTop:·mvs(6)`"
prettier/prettier
|
| 481 |
<View style={{ marginTop: mvs(6) }}> |
| 482 |
<Regular |
| 483 |
style={{ |
| 484 |
fontSize: mvs(11), |
| 485 |
color: colors.lightgrey2, |
| 486 |
}} |
| 487 |
label="Your Product will not not be featured on our home page" |
| 488 |
/> |
| 489 |
</View> |
| 490 |
</View> |
| 491 |
|
| 492 |
<Buttons.ButtonPrimary |
| 493 |
onClick={async () => { |
| 494 |
//console.log({...payload, shopAddress : selectedShopAddress}) |
| 495 |
try { |
| Error |
Row 496, Column 33: "Insert `⏎·················`"
prettier/prettier
|
| 496 |
const response = TAKE_TO_CONSTANT.physicalShopValidation(payload); |
| 497 |
if (response.status) { |
| 498 |
props.navigation.navigate('orderdeliverydetail', { |
| 499 |
payload: payload, |
| 500 |
type: 'pstore', |
| 501 |
}); |
| 502 |
} else { |
| 503 |
throw new Error(response.message); |
| 504 |
} |
| 505 |
} catch (error) { |
| 506 |
// scrollRef.current.scrollTo({x: 0, y: 0, animated: true}); |
| 507 |
alertRef.current.alertWithType( |
| 508 |
'error', |
| 509 |
'Error', |
| 510 |
UI_API._returnError(error), |
| 511 |
); |
| 512 |
} |
| 513 |
}} |
| 514 |
title="Next" |
| Error |
Row 515, Column 21: "Replace `·marginVertical:·mvs(40)·` with `marginVertical:·mvs(40)`"
prettier/prettier
|
| 515 |
style={{ marginVertical: mvs(40) }} |
| 516 |
/> |
| 517 |
{/* </View> */} |
| 518 |
</ScrollView> |
| Error |
Row 519, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}·inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| 519 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 520 |
<ImagePicker |
| 521 |
visible={openPicker} |
| 522 |
showDelete={false} |
| 523 |
onClose={setOpenPicker} |
| 524 |
onSubmit={onImageModalSelection} |
| 525 |
/> |
| 526 |
</View> |
| 527 |
</KeyboardAvoidingView> |
| 528 |
); |
| 529 |
}; |
| 530 |
|
| 531 |
// export default CreateOrderPhysicalStore |
| 532 |
|
| 533 |
const mapStateToProps = state => { |
| 534 |
return { |
| 535 |
selectedShopAddress: state.common.selectedShopAddress, |
| 536 |
profileData: state.auth.userInfo?.profile || {}, |
| 537 |
}; |
| 538 |
}; |
| 539 |
const mapDispatchToProps = dispatch => ({ |
| 540 |
fetchShopAddress: data => dispatch(TAKE_TO_ACTIONS.fetchShopAddress(data)), |
| 541 |
fetchDeliveryAddress: data => |
| 542 |
dispatch(TAKE_TO_ACTIONS.fetchDeliveryAddress(data)), |
| 543 |
}); |
| 544 |
|
| 545 |
export default connect( |
| 546 |
mapStateToProps, |
| 547 |
mapDispatchToProps, |
| 548 |
)(CreateOrderPhysicalStore); |
| 549 |
|
| 550 |
const styles = StyleSheet.create({ |
| 551 |
mainContainer: { |
| 552 |
flex: 1, |
| 553 |
backgroundColor: colors.white, |
| 554 |
}, |
| 555 |
container: { |
| 556 |
flex: 1, |
| 557 |
paddingHorizontal: mvs(22), |
| 558 |
}, |
| 559 |
titleAndSearchContainer: { |
| 560 |
//height : mvs(87), |
| 561 |
width: '100%', |
| 562 |
//borderWidth : 1, |
| 563 |
marginTop: mvs(32), |
| 564 |
paddingBottom: mvs(40), |
| 565 |
}, |
| 566 |
searchBar: { |
| 567 |
height: mvs(38), |
| 568 |
width: '100%', |
| 569 |
//borderWidth : 1, |
| 570 |
marginTop: mvs(18), |
| 571 |
borderRadius: mvs(10), |
| 572 |
paddingHorizontal: mvs(10), |
| 573 |
justifyContent: 'center', |
| 574 |
backgroundColor: colors.secondary, |
| 575 |
}, |
| 576 |
searchInput: { |
| 577 |
// borderWidth : 1, |
| 578 |
padding: 0, |
| 579 |
fontSize: mvs(15), |
| 580 |
fontFamily: fonts.carosSoftLight, |
| 581 |
color: colors.headerTitle, |
| 582 |
}, |
| 583 |
searchIcon: { |
| 584 |
position: 'absolute', |
| 585 |
right: mvs(10), |
| 586 |
}, |
| 587 |
imagesContainer: { |
| 588 |
height: '100%', |
| 589 |
width: '100%', |
| 590 |
//borderWidth : 1, |
| 591 |
//marginTop : mvs(30), |
| 592 |
//justifyContent : 'center' |
| 593 |
}, |
| 594 |
imageContainer: { |
| 595 |
height: '100%', |
| 596 |
width: mvs(104), |
| 597 |
borderWidth: 0.3, |
| 598 |
borderRadius: 10, |
| 599 |
borderColor: colors.label, |
| 600 |
justifyContent: 'center', |
| 601 |
alignItems: 'center', |
| 602 |
marginRight: mvs(10), |
| 603 |
}, |
| 604 |
image: { |
| 605 |
height: mvs(98), |
| 606 |
width: mvs(75), |
| 607 |
borderRadius: mvs(10), |
| 608 |
}, |
| 609 |
plusButton: { |
| 610 |
position: 'absolute', |
| 611 |
right: mvs(5), |
| 612 |
top: '35%', |
| 613 |
}, |
| 614 |
title: { |
| 615 |
fontSize: mvs(13), |
| 616 |
color: colors.headerTitle, |
| 617 |
marginTop: mvs(23), |
| 618 |
}, |
| 619 |
value: { |
| 620 |
fontSize: mvs(18), |
| 621 |
color: colors.headerTitle, |
| 622 |
marginTop: mvs(10), |
| 623 |
}, |
| 624 |
line: { |
| 625 |
borderBottomWidth: 0.3, |
| 626 |
width: '100%', |
| 627 |
borderColor: colors.horizontalLine, |
| 628 |
marginTop: mvs(13), |
| 629 |
}, |
| 630 |
inputBox: { |
| 631 |
backgroundColor: colors.secondary, |
| 632 |
marginTop: mvs(15), |
| 633 |
}, |
| 634 |
productPriceContainer: { |
| 635 |
height: mvs(38), |
| 636 |
width: '100%', |
| 637 |
//borderWidth : 1, |
| 638 |
flexDirection: 'row', |
| 639 |
justifyContent: 'space-between', |
| 640 |
alignItems: 'center', |
| 641 |
marginTop: mvs(20), |
| 642 |
}, |
| 643 |
priceInputContainer: { |
| 644 |
height: '100%', |
| 645 |
width: mvs(161), |
| 646 |
borderRadius: mvs(10), |
| 647 |
backgroundColor: colors.secondary, |
| 648 |
paddingHorizontal: mvs(11), |
| 649 |
//justifyContent : 'center', |
| 650 |
alignItems: 'center', |
| 651 |
flexDirection: 'row', |
| 652 |
}, |
| 653 |
priceInput: { |
| 654 |
height: '100%', |
| 655 |
width: '100%', |
| 656 |
padding: 0, |
| 657 |
//borderWidth : 1, |
| 658 |
fontSize: mvs(18), |
| 659 |
fontFamily: fonts.carosSoftRegular, |
| 660 |
color: colors.primary, |
| 661 |
paddingLeft: mvs(5), |
| 662 |
}, |
| 663 |
clear: { |
| 664 |
position: 'absolute', |
| 665 |
right: mvs(11), |
| 666 |
}, |
| 667 |
quantityContainer: { |
| 668 |
width: '100%', |
| 669 |
borderColor: colors.horizontalLine, |
| 670 |
marginTop: mvs(20), |
| 671 |
flexDirection: 'row', |
| 672 |
justifyContent: 'space-between', |
| 673 |
alignItems: 'center', |
| 674 |
//borderWidth :1 |
| 675 |
}, |
| 676 |
quantityTitle: { |
| 677 |
fontSize: mvs(18), |
| 678 |
color: colors.headerTitle, |
| 679 |
}, |
| 680 |
quantityButtonsContainer: { |
| 681 |
height: '100%', |
| 682 |
width: mvs(104), |
| 683 |
//borderWidth : 1, |
| 684 |
flexDirection: 'row', |
| 685 |
justifyContent: 'space-between', |
| 686 |
alignItems: 'center', |
| 687 |
}, |
| 688 |
quantityButton: { |
| 689 |
height: mvs(23), |
| 690 |
width: mvs(23), |
| 691 |
borderRadius: mvs(23 / 2), |
| 692 |
backgroundColor: colors.secondary, |
| 693 |
justifyContent: 'center', |
| 694 |
alignItems: 'center', |
| 695 |
}, |
| 696 |
quantityButtonLabel: { |
| 697 |
fontSize: mvs(18), |
| 698 |
color: colors.headerTitle, |
| 699 |
}, |
| 700 |
quantity: { |
| 701 |
fontSize: mvs(18), |
| 702 |
color: colors.primary, |
| 703 |
}, |
| 704 |
toggleMainContainer: { |
| 705 |
height: mvs(25), |
| 706 |
width: '100%', |
| 707 |
borderWidth: 1, |
| 708 |
marginTop: mvs(8), |
| 709 |
flexDirection: 'row', |
| 710 |
alignItems: 'center', |
| 711 |
justifyContent: 'space-between', |
| 712 |
}, |
| 713 |
detailContainer: { |
| 714 |
width: '100%', |
| 715 |
//borderWidth : 1, |
| 716 |
marginTop: mvs(10), |
| 717 |
}, |
| 718 |
detail: { |
| 719 |
fontSize: mvs(12), |
| 720 |
color: colors.lightgrey2, |
| 721 |
}, |
| 722 |
privateContainer: { |
| 723 |
height: mvs(83), |
| 724 |
width: '100%', |
| 725 |
//borderWidth : 1, |
| 726 |
marginTop: mvs(30), |
| 727 |
paddingHorizontal: mvs(10), |
| 728 |
borderRadius: mvs(10), |
| 729 |
backgroundColor: colors.secondary, |
| 730 |
}, |
| 731 |
privateTitleContainer: { |
| 732 |
//borderWidth : 1, |
| 733 |
marginTop: mvs(16), |
| 734 |
width: '100%', |
| 735 |
flexDirection: 'row', |
| 736 |
alignItems: 'center', |
| 737 |
}, |
| 738 |
dot: { |
| 739 |
height: mvs(7), |
| 740 |
width: mvs(7), |
| 741 |
borderRadius: mvs(7 / 2), |
| 742 |
backgroundColor: colors.pink, |
| 743 |
marginLeft: mvs(5), |
| 744 |
}, |
| 745 |
shopNameContainer: { |
| 746 |
width: '100%', |
| 747 |
//borderWidth : 1, |
| 748 |
marginTop: mvs(18), |
| 749 |
flexDirection: 'row', |
| 750 |
}, |
| 751 |
locationButton: { |
| 752 |
marginTop: mvs(15), |
| 753 |
//borderWidth : 1, |
| 754 |
height: mvs(38), |
| 755 |
alignItems: 'center', |
| 756 |
}, |
| 757 |
button: { |
| 758 |
height: '100%', |
| 759 |
paddingHorizontal: mvs(30), |
| 760 |
flexDirection: 'row', |
| 761 |
alignItems: 'center', |
| 762 |
borderRadius: mvs(10), |
| 763 |
backgroundColor: colors.primary, |
| 764 |
}, |
| 765 |
buttonTitle: { |
| 766 |
fontSize: mvs(12), |
| 767 |
color: colors.white, |
| 768 |
marginLeft: mvs(24), |
| 769 |
}, |
| 770 |
}); |
| 771 |
|
|
|
|
/src/screens/orders/deliver-to.js
|
55 problems (36 errors, 19 warnings)
|
| Severity |
Rule |
| Error |
Row 3, Column 9: "Replace `·useIsFocused·` with `useIsFocused`"
prettier/prettier
|
| Error |
Row 4, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| Error |
Row 5, Column 9: "Replace `·ScrollView,·StyleSheet,·TouchableOpacity,·View·` with `ScrollView,·StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| Error |
Row 8, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 14, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 21, Column 10: "Replace `·addressesList,·route,·selectedDeliveryAddress,·fetchDeliveryAddress·` with `addressesList,·route,·selectedDeliveryAddress,·fetchDeliveryAddress`"
prettier/prettier
|
| Warning |
Row 21, Column 26: "'route' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 23, Column 25: "["location"] is better written in dot notation."
dot-notation
|
| Warning |
Row 24, Column 31: "["location_active"] is better written in dot notation."
dot-notation
|
| Warning |
Row 33, Column 10: "'address' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 33, Column 19: "'setAddress' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 39, Column 37: "Replace `·...ele,·isSelected:·false·` with `...ele,·isSelected:·false`"
prettier/prettier
|
| Warning |
Row 43, Column 9: "'confirmAddressHandler' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 45, Column 5: "Unexpected alert."
no-alert
|
| Warning |
Row 55, Column 7: "Unexpected alert."
no-alert
|
| Error |
Row 62, Column 6: "React Hook React.useEffect has a missing dependency: 'selectedDeliveryAddress'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 68, Column 39: "Replace `·...ele,·isSelected:·false·` with `...ele,·isSelected:·false`"
prettier/prettier
|
| Error |
Row 72, Column 6: "React Hook React.useEffect has missing dependencies: 'addressesList' and 'selectedDeliveryAddress'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 85, Column 15: "Replace `"selectedDeliveryAddress·::·",·region)` with `'selectedDeliveryAddress·::·',·region);`"
prettier/prettier
|
| Warning |
Row 85, Column 15: "Strings must use singlequote."
quotes
|
| Warning |
Row 85, Column 53: "Missing semicolon."
semi
|
| Error |
Row 97, Column 47: "Replace `·...ele,·isSelected:·false·` with `...ele,·isSelected:·false`"
prettier/prettier
|
| Error |
Row 100, Column 60: "Replace `·type:·'deliveryto'·` with `type:·'deliveryto'`"
prettier/prettier
|
| Error |
Row 106, Column 21: "Replace `·marginLeft:·mvs(10),·color:·colors.typeHeader·` with `marginLeft:·mvs(10),·color:·colors.typeHeader`"
prettier/prettier
|
| Warning |
Row 111, Column 18: "Inline style: { overflow: 'hidden' }"
react-native/no-inline-styles
|
| Warning |
Row 112, Column 50: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 118, Column 28: "Insert `⏎···········`"
prettier/prettier
|
| Error |
Row 119, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 120, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 121, Column 1: "Replace `················?·addressesList?.map(ele·=>·({·...ele,·isSelected:·false·` with `··················?·addressesList?.map(ele·=>·({...ele,·isSelected:·false`"
prettier/prettier
|
| Error |
Row 122, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 123, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 124, Column 1: "Replace `············props.navigation.navigate('deliverylocation',·{·type:·'deliveryto'` with `··············props.navigation.navigate('deliverylocation',·{⏎················type:·'deliveryto',⏎·············`"
prettier/prettier
|
| Error |
Row 125, Column 11: "Replace `}}` with `··}}⏎···········`"
prettier/prettier
|
| Error |
Row 128, Column 25: "Replace `Object.keys(selectedDeliveryAddress).length·>·0·?·selectedDeliveryAddress?.region·:·region` with `⏎··················Object.keys(selectedDeliveryAddress).length·>·0⏎····················?·selectedDeliveryAddress?.region⏎····················:·region⏎················`"
prettier/prettier
|
| Warning |
Row 130, Column 24: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 130, Column 25: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| Error |
Row 151, Column 53: "Replace `·...ele,·isSelected:·false·` with `...ele,·isSelected:·false`"
prettier/prettier
|
| Warning |
Row 156, Column 24: "Inline style: { width: '100%', flexDirection: 'row', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 167, Column 31: "Replace `·marginLeft:·mvs(10),·paddingRight:·mvs(40)·` with `marginLeft:·mvs(10),·paddingRight:·mvs(40)`"
prettier/prettier
|
| Warning |
Row 178, Column 43: "Inline style: { position: 'absolute', right: 0 }"
react-native/no-inline-styles
|
| Error |
Row 178, Column 44: "Replace `·position:·'absolute',·right:·0·` with `position:·'absolute',·right:·0`"
prettier/prettier
|
| Error |
Row 187, Column 19: "Replace `·color:·colors.typeHeader,·marginTop:·mvs(32)·` with `color:·colors.typeHeader,·marginTop:·mvs(32)`"
prettier/prettier
|
| Error |
Row 189, Column 39: "Insert `(⏎··········`"
prettier/prettier
|
| Error |
Row 190, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 190, Column 18: "Strings must use singlequote."
quotes
|
| Error |
Row 191, Column 11: "Replace `style={{·marginTop:·mvs(30)·` with `··style={{marginTop:·mvs(30)`"
prettier/prettier
|
| Error |
Row 192, Column 1: "Replace `········/>` with `··········/>⏎········)`"
prettier/prettier
|
| Error |
Row 196, Column 35: "Replace `·paddingBottom:·mvs(120)·` with `paddingBottom:·mvs(120)`"
prettier/prettier
|
| Warning |
Row 202, Column 58: "'ele' is already declared in the upper scope."
no-shadow
|
| Error |
Row 218, Column 29: "Replace `·marginLeft:·mvs(10),·marginRight:·mvs(40)·` with `marginLeft:·mvs(10),·marginRight:·mvs(40)`"
prettier/prettier
|
| Warning |
Row 235, Column 41: "Inline style: { position: 'absolute', right: 0 }"
react-native/no-inline-styles
|
| Error |
Row 235, Column 42: "Replace `·position:·'absolute',·right:·0·` with `position:·'absolute',·right:·0`"
prettier/prettier
|
| Warning |
Row 242, Column 18: "Inline style: { position: 'absolute', alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 242, Column 19: "Replace `·position:·'absolute',·bottom:·mvs(40),·alignSelf:·'center'·` with `position:·'absolute',·bottom:·mvs(40),·alignSelf:·'center'`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 2 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| Error |
Row 3, Column 9: "Replace `·useIsFocused·` with `useIsFocused`"
prettier/prettier
|
| 3 |
import { useIsFocused } from '@react-navigation/native'; |
| Error |
Row 4, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| 4 |
import React, { useState } from 'react'; |
| Error |
Row 5, Column 9: "Replace `·ScrollView,·StyleSheet,·TouchableOpacity,·View·` with `ScrollView,·StyleSheet,·TouchableOpacity,·View`"
prettier/prettier
|
| 5 |
import { ScrollView, StyleSheet, TouchableOpacity, View } from 'react-native'; |
| 6 |
import Geocoder from 'react-native-geocoding'; |
| 7 |
import MapView from 'react-native-maps'; |
| Error |
Row 8, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 8 |
import { connect } from 'react-redux'; |
| 9 |
import * as SVGS from '../../../resource/assets/order-car-icons/index'; |
| 10 |
import Images from '../../../resource/assets/rtl-button-icons'; |
| 11 |
import Buttons from '../../components/atoms/Button'; |
| 12 |
import Header from '../../components/molecules/header/header-1x'; |
| 13 |
import colors from '../../config/colors'; |
| Error |
Row 14, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 14 |
import { mvs } from '../../config/metrices'; |
| 15 |
import Regular from '../../presentation/typography/regular-text'; |
| 16 |
|
| 17 |
Geocoder.init('AIzaSyCHIlIvmsXf-sllfpXK0Q-1dV7uzgyFvfw'); |
| 18 |
|
| 19 |
const DeliverTo = props => { |
| 20 |
let isFocus = useIsFocused(); |
| Error |
Row 21, Column 10: "Replace `·addressesList,·route,·selectedDeliveryAddress,·fetchDeliveryAddress·` with `addressesList,·route,·selectedDeliveryAddress,·fetchDeliveryAddress`"
prettier/prettier
|
| Warning |
Row 21, Column 26: "'route' is assigned a value but never used."
no-unused-vars
|
| 21 |
const { addressesList, route, selectedDeliveryAddress, fetchDeliveryAddress } = |
| 22 |
props; |
| Warning |
Row 23, Column 25: "["location"] is better written in dot notation."
dot-notation
|
| 23 |
const Location = SVGS['location']; |
| Warning |
Row 24, Column 31: "["location_active"] is better written in dot notation."
dot-notation
|
| 24 |
const LocationActive = SVGS['location_active']; |
| 25 |
|
| 26 |
const [region, setRegion] = useState({ |
| 27 |
latitude: 37.78825, |
| 28 |
latitudeDelta: 0.015, |
| 29 |
longitude: -122.4324, |
| 30 |
longitudeDelta: 0.0121, |
| 31 |
}); |
| 32 |
const [saved, setSaved] = useState(false); |
| Warning |
Row 33, Column 10: "'address' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 33, Column 19: "'setAddress' is assigned a value but never used."
no-unused-vars
|
| 33 |
const [address, setAddress] = useState('home'); |
| 34 |
|
| 35 |
const [selectedAddress, setSelectedAddress] = React.useState(''); |
| 36 |
|
| 37 |
const [addressList, setAddressList] = React.useState( |
| 38 |
addressesList.length > 0 |
| Error |
Row 39, Column 37: "Replace `·...ele,·isSelected:·false·` with `...ele,·isSelected:·false`"
prettier/prettier
|
| 39 |
? addressesList?.map(ele => ({ ...ele, isSelected: false })) |
| 40 |
: [], |
| 41 |
); |
| 42 |
|
| Warning |
Row 43, Column 9: "'confirmAddressHandler' is assigned a value but never used."
no-unused-vars
|
| 43 |
const confirmAddressHandler = () => { |
| 44 |
const selectAddressId = addressList?.find(ele => ele?.isSelected); |
| Warning |
Row 45, Column 5: "Unexpected alert."
no-alert
|
| 45 |
alert(selectAddressId?.id); |
| 46 |
}; |
| 47 |
|
| 48 |
const getCurrentLocation = async () => { |
| 49 |
try { |
| 50 |
const location = await UI_API._get_current_location(); |
| 51 |
if (location) { |
| 52 |
setRegion(location); |
| 53 |
} |
| 54 |
} catch (error) { |
| Warning |
Row 55, Column 7: "Unexpected alert."
no-alert
|
| 55 |
alert(UI_API._returnError(error)); |
| 56 |
} |
| 57 |
}; |
| 58 |
|
| 59 |
React.useEffect(() => { |
| 60 |
getCurrentLocation(); |
| 61 |
console.log(selectedDeliveryAddress); |
| Error |
Row 62, Column 6: "React Hook React.useEffect has a missing dependency: 'selectedDeliveryAddress'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 62 |
}, []); |
| 63 |
|
| 64 |
React.useEffect(() => { |
| 65 |
setSaved(false); |
| 66 |
setAddressList( |
| 67 |
addressesList.length > 0 |
| Error |
Row 68, Column 39: "Replace `·...ele,·isSelected:·false·` with `...ele,·isSelected:·false`"
prettier/prettier
|
| 68 |
? addressesList?.map(ele => ({ ...ele, isSelected: false })) |
| 69 |
: [], |
| 70 |
); |
| 71 |
setSelectedAddress(selectedDeliveryAddress); |
| Error |
Row 72, Column 6: "React Hook React.useEffect has missing dependencies: 'addressesList' and 'selectedDeliveryAddress'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| 72 |
}, [isFocus]); |
| 73 |
|
| 74 |
const onConfirm = () => { |
| 75 |
fetchDeliveryAddress(selectedAddress); |
| 76 |
console.log(selectedAddress); |
| 77 |
props.navigation.pop(); |
| 78 |
}; |
| 79 |
|
| 80 |
// React.useEffect(() => { |
| 81 |
// // alert('sdsd') |
| 82 |
// setRegion(selectedDeliveryAddress?.region) |
| 83 |
// }, [selectedDeliveryAddress]) |
| 84 |
|
| Error |
Row 85, Column 15: "Replace `"selectedDeliveryAddress·::·",·region)` with `'selectedDeliveryAddress·::·',·region);`"
prettier/prettier
|
| Warning |
Row 85, Column 15: "Strings must use singlequote."
quotes
|
| Warning |
Row 85, Column 53: "Missing semicolon."
semi
|
| 85 |
console.log("selectedDeliveryAddress :: ", region) |
| 86 |
|
| 87 |
return ( |
| 88 |
<View style={styles.mainContainer}> |
| 89 |
<Header {...props} title="Deliver to" allowBackBtn bellIcon /> |
| 90 |
<View |
| 91 |
//contentContainerStyle = {{marginBottom : mvs(20)}} |
| 92 |
style={styles.container}> |
| 93 |
<TouchableOpacity |
| 94 |
onPress={() => { |
| 95 |
setAddressList( |
| 96 |
addressesList.length > 0 |
| Error |
Row 97, Column 47: "Replace `·...ele,·isSelected:·false·` with `...ele,·isSelected:·false`"
prettier/prettier
|
| 97 |
? addressesList?.map(ele => ({ ...ele, isSelected: false })) |
| 98 |
: [], |
| 99 |
); |
| Error |
Row 100, Column 60: "Replace `·type:·'deliveryto'·` with `type:·'deliveryto'`"
prettier/prettier
|
| 100 |
props.navigation.navigate('deliverylocation', { type: 'deliveryto' }); |
| 101 |
}} |
| 102 |
style={styles.pinOnMap}> |
| 103 |
<Location height={mvs(24.4)} width={mvs(20)} /> |
| 104 |
<Regular |
| 105 |
label="Pin on map" |
| Error |
Row 106, Column 21: "Replace `·marginLeft:·mvs(10),·color:·colors.typeHeader·` with `marginLeft:·mvs(10),·color:·colors.typeHeader`"
prettier/prettier
|
| 106 |
style={{ marginLeft: mvs(10), color: colors.typeHeader }} |
| 107 |
/> |
| 108 |
</TouchableOpacity> |
| 109 |
|
| 110 |
<View |
| Warning |
Row 111, Column 18: "Inline style: { overflow: 'hidden' }"
react-native/no-inline-styles
|
| 111 |
style={{ |
| Warning |
Row 112, Column 50: "Expected '===' and instead saw '=='."
eqeqeq
|
| 112 |
borderWidth: selectedDeliveryAddress == '' ? mvs(0) : mvs(0.5), |
| 113 |
borderColor: colors.doted, |
| 114 |
borderRadius: mvs(10), |
| 115 |
overflow: 'hidden', |
| 116 |
marginTop: mvs(10), |
| 117 |
}}> |
| Error |
Row 118, Column 28: "Insert `⏎···········`"
prettier/prettier
|
| 118 |
<TouchableOpacity onPress={() => { |
| Error |
Row 119, Column 13: "Insert `··`"
prettier/prettier
|
| 119 |
setAddressList( |
| Error |
Row 120, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 120 |
addressesList.length > 0 |
| Error |
Row 121, Column 1: "Replace `················?·addressesList?.map(ele·=>·({·...ele,·isSelected:·false·` with `··················?·addressesList?.map(ele·=>·({...ele,·isSelected:·false`"
prettier/prettier
|
| 121 |
? addressesList?.map(ele => ({ ...ele, isSelected: false })) |
| Error |
Row 122, Column 1: "Insert `··`"
prettier/prettier
|
| 122 |
: [], |
| Error |
Row 123, Column 13: "Insert `··`"
prettier/prettier
|
| 123 |
); |
| Error |
Row 124, Column 1: "Replace `············props.navigation.navigate('deliverylocation',·{·type:·'deliveryto'` with `··············props.navigation.navigate('deliverylocation',·{⏎················type:·'deliveryto',⏎·············`"
prettier/prettier
|
| 124 |
props.navigation.navigate('deliverylocation', { type: 'deliveryto' }); |
| Error |
Row 125, Column 11: "Replace `}}` with `··}}⏎···········`"
prettier/prettier
|
| 125 |
}} style={styles.mapContainer}> |
| 126 |
{Object?.keys(region).length > 0 && ( |
| 127 |
<MapView |
| Error |
Row 128, Column 25: "Replace `Object.keys(selectedDeliveryAddress).length·>·0·?·selectedDeliveryAddress?.region·:·region` with `⏎··················Object.keys(selectedDeliveryAddress).length·>·0⏎····················?·selectedDeliveryAddress?.region⏎····················:·region⏎················`"
prettier/prettier
|
| 128 |
region={Object.keys(selectedDeliveryAddress).length > 0 ? selectedDeliveryAddress?.region : region} |
| 129 |
scrollEnabled={false} |
| Warning |
Row 130, Column 24: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 130, Column 25: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| 130 |
style={{ flex: 1 }} |
| 131 |
zoomEnabled={false} |
| 132 |
showsMyLocationButton={false} |
| 133 |
/> |
| 134 |
)} |
| 135 |
|
| 136 |
<View style={styles.pointer} /> |
| 137 |
</TouchableOpacity> |
| 138 |
|
| 139 |
{selectedDeliveryAddress !== '' && ( |
| 140 |
<View |
| 141 |
style={{ |
| 142 |
paddingHorizontal: mvs(10), |
| 143 |
paddingBottom: mvs(20), |
| 144 |
borderRadius: mvs(10), |
| 145 |
}}> |
| 146 |
<TouchableOpacity |
| 147 |
onPress={() => { |
| 148 |
setSaved(false); |
| 149 |
setAddressList( |
| 150 |
addressesList.length > 0 |
| Error |
Row 151, Column 53: "Replace `·...ele,·isSelected:·false·` with `...ele,·isSelected:·false`"
prettier/prettier
|
| 151 |
? addressesList?.map(ele => ({ ...ele, isSelected: false })) |
| 152 |
: [], |
| 153 |
); |
| 154 |
setSelectedAddress(selectedDeliveryAddress); |
| 155 |
}} |
| Warning |
Row 156, Column 24: "Inline style: { width: '100%', flexDirection: 'row', alignItems: 'center' }"
react-native/no-inline-styles
|
| 156 |
style={{ |
| 157 |
width: '100%', |
| 158 |
flexDirection: 'row', |
| 159 |
marginTop: mvs(20), |
| 160 |
alignItems: 'center', |
| 161 |
}}> |
| 162 |
{!saved ? ( |
| 163 |
<LocationActive height={mvs(24.5)} width={mvs(20)} /> |
| 164 |
) : ( |
| 165 |
<Location height={mvs(24.5)} width={mvs(20)} /> |
| 166 |
)} |
| Error |
Row 167, Column 31: "Replace `·marginLeft:·mvs(10),·paddingRight:·mvs(40)·` with `marginLeft:·mvs(10),·paddingRight:·mvs(40)`"
prettier/prettier
|
| 167 |
<View style={{ marginLeft: mvs(10), paddingRight: mvs(40) }}> |
| 168 |
<Regular |
| 169 |
label={selectedDeliveryAddress?.fulladdress} |
| 170 |
style={{ |
| 171 |
fontSize: mvs(15), |
| 172 |
color: colors.lightgrey2, |
| 173 |
marginTop: mvs(6), |
| 174 |
}} |
| 175 |
/> |
| 176 |
</View> |
| 177 |
{!saved && ( |
| Warning |
Row 178, Column 43: "Inline style: { position: 'absolute', right: 0 }"
react-native/no-inline-styles
|
| Error |
Row 178, Column 44: "Replace `·position:·'absolute',·right:·0·` with `position:·'absolute',·right:·0`"
prettier/prettier
|
| 178 |
<Images.tickBlue style={{ position: 'absolute', right: 0 }} /> |
| 179 |
)} |
| 180 |
</TouchableOpacity> |
| 181 |
</View> |
| 182 |
)} |
| 183 |
</View> |
| 184 |
|
| 185 |
<Regular |
| 186 |
label="Or use your Saved Addresses" |
| Error |
Row 187, Column 19: "Replace `·color:·colors.typeHeader,·marginTop:·mvs(32)·` with `color:·colors.typeHeader,·marginTop:·mvs(32)`"
prettier/prettier
|
| 187 |
style={{ color: colors.typeHeader, marginTop: mvs(32) }} |
| 188 |
/> |
| Error |
Row 189, Column 39: "Insert `(⏎··········`"
prettier/prettier
|
| 189 |
{addressesList?.length < 1 && <Regular |
| Error |
Row 190, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 190, Column 18: "Strings must use singlequote."
quotes
|
| 190 |
label={`You don't have any saved address.`} |
| Error |
Row 191, Column 11: "Replace `style={{·marginTop:·mvs(30)·` with `··style={{marginTop:·mvs(30)`"
prettier/prettier
|
| 191 |
style={{ marginTop: mvs(30) }} |
| Error |
Row 192, Column 1: "Replace `········/>` with `··········/>⏎········)`"
prettier/prettier
|
| 192 |
/>} |
| 193 |
{/* {alert(addressesList.length)} */} |
| 194 |
<ScrollView |
| 195 |
showsVerticalScrollIndicator={false} |
| Error |
Row 196, Column 35: "Replace `·paddingBottom:·mvs(120)·` with `paddingBottom:·mvs(120)`"
prettier/prettier
|
| 196 |
contentContainerStyle={{ paddingBottom: mvs(120) }} |
| 197 |
style={{}}> |
| 198 |
{addressList?.map((ele, index) => ( |
| 199 |
<TouchableOpacity |
| 200 |
onPress={() => { |
| 201 |
setSaved(true); |
| Warning |
Row 202, Column 58: "'ele' is already declared in the upper scope."
no-shadow
|
| 202 |
const copyAddressList = addressList?.map(ele => ({ |
| 203 |
...ele, |
| 204 |
isSelected: false, |
| 205 |
})); |
| 206 |
|
| 207 |
copyAddressList[index].isSelected = true; |
| 208 |
setAddressList(copyAddressList); |
| 209 |
console.log(ele); |
| 210 |
setSelectedAddress(ele); |
| 211 |
}} |
| 212 |
style={styles.addressContainer}> |
| 213 |
{ele?.isSelected ? ( |
| 214 |
<LocationActive height={mvs(24.5)} width={mvs(20)} /> |
| 215 |
) : ( |
| 216 |
<Location height={mvs(24.5)} width={mvs(20)} /> |
| 217 |
)} |
| Error |
Row 218, Column 29: "Replace `·marginLeft:·mvs(10),·marginRight:·mvs(40)·` with `marginLeft:·mvs(10),·marginRight:·mvs(40)`"
prettier/prettier
|
| 218 |
<View style={{ marginLeft: mvs(10), marginRight: mvs(40) }}> |
| 219 |
<Regular |
| 220 |
label={`${ele?.name} (${ele.type})`} |
| 221 |
style={{ |
| 222 |
color: ele?.isSelected ? colors.primary : colors.typeHeader, |
| 223 |
}} |
| 224 |
/> |
| 225 |
<Regular |
| 226 |
label={ele?.address} |
| 227 |
style={{ |
| 228 |
fontSize: mvs(10), |
| 229 |
color: colors.lightgrey2, |
| 230 |
marginTop: mvs(6), |
| 231 |
}} |
| 232 |
/> |
| 233 |
</View> |
| 234 |
{ele?.isSelected && ( |
| Warning |
Row 235, Column 41: "Inline style: { position: 'absolute', right: 0 }"
react-native/no-inline-styles
|
| Error |
Row 235, Column 42: "Replace `·position:·'absolute',·right:·0·` with `position:·'absolute',·right:·0`"
prettier/prettier
|
| 235 |
<Images.tickBlue style={{ position: 'absolute', right: 0 }} /> |
| 236 |
)} |
| 237 |
</TouchableOpacity> |
| 238 |
))} |
| 239 |
</ScrollView> |
| 240 |
<Buttons.ButtonPrimary |
| 241 |
onClick={onConfirm} |
| Warning |
Row 242, Column 18: "Inline style: { position: 'absolute', alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 242, Column 19: "Replace `·position:·'absolute',·bottom:·mvs(40),·alignSelf:·'center'·` with `position:·'absolute',·bottom:·mvs(40),·alignSelf:·'center'`"
prettier/prettier
|
| 242 |
style={{ position: 'absolute', bottom: mvs(40), alignSelf: 'center' }} |
| 243 |
title={'Confirm'} |
| 244 |
/> |
| 245 |
</View> |
| 246 |
</View> |
| 247 |
); |
| 248 |
}; |
| 249 |
const mapStateToProps = state => { |
| 250 |
return { |
| 251 |
addressesList: state.auth.userInfo?.addresses || [], |
| 252 |
selectedDeliveryAddress: state.common.selectedDeliveryAddress, |
| 253 |
}; |
| 254 |
}; |
| 255 |
|
| 256 |
const mapDispatchToProps = dispatch => ({ |
| 257 |
fetchDeliveryAddress: data => |
| 258 |
dispatch(TAKE_TO_ACTIONS.fetchDeliveryAddress(data)), |
| 259 |
}); |
| 260 |
|
| 261 |
export default connect(mapStateToProps, mapDispatchToProps)(DeliverTo); |
| 262 |
|
| 263 |
const styles = StyleSheet.create({ |
| 264 |
mainContainer: { |
| 265 |
flex: 1, |
| 266 |
backgroundColor: colors.white, |
| 267 |
}, |
| 268 |
container: { |
| 269 |
flex: 1, |
| 270 |
paddingHorizontal: mvs(22), |
| 271 |
// borderWidth:1, |
| 272 |
// backgroundColor : 'red' |
| 273 |
}, |
| 274 |
pinOnMap: { |
| 275 |
flexDirection: 'row', |
| 276 |
alignItems: 'center', |
| 277 |
}, |
| 278 |
mapContainer: { |
| 279 |
height: mvs(145), |
| 280 |
width: '100%', |
| 281 |
//borderWidth : 0.2, |
| 282 |
//marginTop: mvs(20), |
| 283 |
justifyContent: 'center', |
| 284 |
}, |
| 285 |
currentAddressContainer: { |
| 286 |
//height : mvs(137), |
| 287 |
width: '100%', |
| 288 |
borderRadius: mvs(10), |
| 289 |
borderWidth: mvs(0.5), |
| 290 |
borderColor: colors.doted, |
| 291 |
marginTop: mvs(10), |
| 292 |
padding: mvs(10), |
| 293 |
}, |
| 294 |
pointer: { |
| 295 |
height: mvs(21), |
| 296 |
width: mvs(21), |
| 297 |
backgroundColor: colors.primary, |
| 298 |
borderRadius: mvs(21 / 2), |
| 299 |
position: 'absolute', |
| 300 |
alignSelf: 'center', |
| 301 |
shadowColor: '#000', |
| 302 |
shadowOffset: { |
| 303 |
width: 0, |
| 304 |
height: 12, |
| 305 |
}, |
| 306 |
shadowOpacity: 0.58, |
| 307 |
shadowRadius: 16.0, |
| 308 |
|
| 309 |
elevation: 24, |
| 310 |
}, |
| 311 |
addressContainer: { |
| 312 |
marginTop: mvs(21), |
| 313 |
flexDirection: 'row', |
| 314 |
}, |
| 315 |
}); |
| 316 |
|
|
|
|
/src/screens/orders/delivered-orders.js
|
35 problems (21 errors, 14 warnings)
|
| Severity |
Rule |
| Warning |
Row 2, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·FlatList,·StyleSheet,·View,·ActivityIndicator·` with `FlatList,·StyleSheet,·View,·ActivityIndicator`"
prettier/prettier
|
| Error |
Row 5, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 10, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| Error |
Row 15, Column 10: "Replace `·navigation,·route,·delivery_orders,·fetchDeliveryOrders,profileData·}·=` with `navigation,·route,·delivery_orders,·fetchDeliveryOrders,·profileData}·=⏎···`"
prettier/prettier
|
| Warning |
Row 15, Column 23: "'route' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 19, Column 9: "'scrollRef' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 21, Column 1: "Replace `⏎··const·[pageLoading,·setPageLoading]·=·React.useState(false);⏎` with `··const·[pageLoading,·setPageLoading]·=·React.useState(false);`"
prettier/prettier
|
| Error |
Row 25, Column 1: "Delete `⏎`"
prettier/prettier
|
| Warning |
Row 26, Column 30: "'setLoading' is already declared in the upper scope."
no-shadow
|
| Error |
Row 33, Column 39: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 47, Column 6: "React Hook React.useEffect has a missing dependency: 'onPagination'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 51, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 51, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 53, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 53, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| Error |
Row 56, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| Warning |
Row 61, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 61, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 64, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 71, Column 20: "Strings must use singlequote."
quotes
|
| Warning |
Row 72, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 72, Column 21: "Replace `·textAlign:·'center',·color:·colors.primary·` with `textAlign:·'center',·color:·colors.primary`"
prettier/prettier
|
| Error |
Row 75, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| Warning |
Row 78, Column 5: "Expected { after 'else'."
curly
|
| Warning |
Row 80, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 80, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 82, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 82, Column 23: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| Error |
Row 87, Column 27: "Replace `·item·` with `item`"
prettier/prettier
|
| Error |
Row 98, Column 17: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Error |
Row 130, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| Error |
Row 139, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 139, Column 4: "Missing semicolon."
semi
|
| Error |
Row 143, Column 24: "Replace `(page)·=>` with `page·=>⏎···`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| Warning |
Row 2, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| 2 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 3 |
import React from 'react'; |
| Error |
Row 4, Column 9: "Replace `·FlatList,·StyleSheet,·View,·ActivityIndicator·` with `FlatList,·StyleSheet,·View,·ActivityIndicator`"
prettier/prettier
|
| 4 |
import { FlatList, StyleSheet, View, ActivityIndicator } from 'react-native'; |
| Error |
Row 5, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 5 |
import { connect } from 'react-redux'; |
| 6 |
import Header from '../../components/molecules/header/header-1x'; |
| 7 |
import DeliveredOrderCard from '../../components/molecules/order_card/delivery-history-card'; |
| 8 |
import colors from '../../config/colors'; |
| 9 |
import DropdownAlert from 'react-native-dropdownalert'; |
| Error |
Row 10, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| 10 |
import { mvs, width } from '../../config/metrices'; |
| 11 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 12 |
import Regular from '../../presentation/typography/regular-text'; |
| 13 |
|
| 14 |
const DeliveredOrders = props => { |
| Error |
Row 15, Column 10: "Replace `·navigation,·route,·delivery_orders,·fetchDeliveryOrders,profileData·}·=` with `navigation,·route,·delivery_orders,·fetchDeliveryOrders,·profileData}·=⏎···`"
prettier/prettier
|
| Warning |
Row 15, Column 23: "'route' is assigned a value but never used."
no-unused-vars
|
| 15 |
const { navigation, route, delivery_orders, fetchDeliveryOrders,profileData } = props; |
| 16 |
|
| 17 |
const [loading, setLoading] = React.useState(true); |
| 18 |
const alertRef = React.useRef(); |
| Warning |
Row 19, Column 9: "'scrollRef' is assigned a value but never used."
no-unused-vars
|
| 19 |
const scrollRef = React.useRef(); |
| 20 |
|
| Error |
Row 21, Column 1: "Replace `⏎··const·[pageLoading,·setPageLoading]·=·React.useState(false);⏎` with `··const·[pageLoading,·setPageLoading]·=·React.useState(false);`"
prettier/prettier
|
| 21 |
|
| 22 |
const [pageLoading, setPageLoading] = React.useState(false); |
| 23 |
|
| 24 |
|
| Error |
Row 25, Column 1: "Delete `⏎`"
prettier/prettier
|
| 25 |
|
| Warning |
Row 26, Column 30: "'setLoading' is already declared in the upper scope."
no-shadow
|
| 26 |
const onPagination = async setLoading => { |
| 27 |
try { |
| 28 |
let page = UI_API._returnPage(delivery_orders); |
| 29 |
if (!page) { |
| 30 |
return; |
| 31 |
} |
| 32 |
setLoading(true); |
| Error |
Row 33, Column 39: "Delete `⏎`"
prettier/prettier
|
| 33 |
await fetchDeliveryOrders(page); |
| 34 |
|
| 35 |
} catch (error) { |
| 36 |
alertRef.current.alertWithType( |
| 37 |
'error', |
| 38 |
'Error', |
| 39 |
UI_API._returnError(error), |
| 40 |
); |
| 41 |
} finally { |
| 42 |
setLoading(false); |
| 43 |
} |
| 44 |
}; |
| 45 |
React.useEffect(() => { |
| 46 |
onPagination(setLoading); |
| Error |
Row 47, Column 6: "React Hook React.useEffect has a missing dependency: 'onPagination'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 47 |
}, [profileData?.currency]); |
| 48 |
|
| 49 |
if (loading) { |
| 50 |
return ( |
| Warning |
Row 51, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 51, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 51 |
<View style={{ flex: 1, backgroundColor: colors.white }}> |
| 52 |
<Header {...props} title="Delivered orders" allowBackBtn bellIcon /> |
| Warning |
Row 53, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 53, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| 53 |
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> |
| 54 |
<ActivityIndicator size="small" color={colors.primary} /> |
| 55 |
</View> |
| Error |
Row 56, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| 56 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 57 |
</View> |
| 58 |
); |
| 59 |
} else if (!loading && Object.keys(delivery_orders).length <= 0) { |
| 60 |
return ( |
| Warning |
Row 61, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 61, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 61 |
<View style={{ flex: 1, backgroundColor: colors.white }}> |
| 62 |
<Header {...props} title="Delivered orders" allowBackBtn bellIcon /> |
| 63 |
<View |
| Warning |
Row 64, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 64 |
style={{ |
| 65 |
flex: 1, |
| 66 |
justifyContent: 'center', |
| 67 |
alignItems: 'center', |
| 68 |
paddingHorizontal: mvs(20), |
| 69 |
}}> |
| 70 |
<Regular |
| Warning |
Row 71, Column 20: "Strings must use singlequote."
quotes
|
| 71 |
label={`No Record Found.`} |
| Warning |
Row 72, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 72, Column 21: "Replace `·textAlign:·'center',·color:·colors.primary·` with `textAlign:·'center',·color:·colors.primary`"
prettier/prettier
|
| 72 |
style={{ textAlign: 'center', color: colors.primary }} |
| 73 |
/> |
| 74 |
</View> |
| Error |
Row 75, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| 75 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 76 |
</View> |
| 77 |
); |
| Warning |
Row 78, Column 5: "Expected { after 'else'."
curly
|
| 78 |
} else |
| 79 |
return ( |
| Warning |
Row 80, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 80, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 80 |
<View style={{ flex: 1, backgroundColor: colors.white }}> |
| 81 |
<Header {...props} title="Delivered orders" allowBackBtn bellIcon /> |
| Warning |
Row 82, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 82, Column 23: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| 82 |
<View style={{ flex: 1 }}> |
| 83 |
<FlatList |
| 84 |
data={delivery_orders?.data} |
| 85 |
keyExtractor={item => item.order_created_at.toString()} |
| 86 |
contentContainerStyle={styles.SCROLL_CONTAINER} |
| Error |
Row 87, Column 27: "Replace `·item·` with `item`"
prettier/prettier
|
| 87 |
renderItem={({ item }) => ( |
| 88 |
<DeliveredOrderCard |
| 89 |
order_data={item} |
| 90 |
{...props} |
| 91 |
onclick={() => |
| 92 |
navigation.navigate('orderdetails', { |
| 93 |
isLocalOrder: item?.is_international, |
| 94 |
orderType: 'delivered', |
| 95 |
order_id: item?.order_id, |
| 96 |
}) |
| 97 |
} |
| Error |
Row 98, Column 17: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 98 |
order_data={item} |
| 99 |
//headingTitle={'Delivered Order'} |
| 100 |
// local={!item.is_international} |
| 101 |
// time={TAKE_TO_CONSTANT.getFromNow( |
| 102 |
// new Date(item.order_created_at).toISOString(), |
| 103 |
// )} |
| 104 |
// title={`${item.order_title}`} |
| 105 |
// website={`${item.order_store_url}`} |
| 106 |
// price={item.order_price} |
| 107 |
// store_img={item.order_image} |
| 108 |
// reward={item.order_reward_price} |
| 109 |
// user_name={item.order_by.user_name} |
| 110 |
// user_img={item.order_by.user_image} |
| 111 |
// order_from={item.order_from} |
| 112 |
// order_to={item.order_to} |
| 113 |
// order_from_flag={item.order_from_flag} |
| 114 |
// order_to_flag={item.order_to_flag} |
| 115 |
{...UI_API._returnOrderProps(item)} |
| 116 |
style={{ |
| 117 |
width: width - mvs(22) * 2, |
| 118 |
}} |
| 119 |
/> |
| 120 |
)} |
| 121 |
onEndReachedThreshold={0.5} |
| 122 |
onEndReached={() => onPagination(setPageLoading)} |
| 123 |
/> |
| 124 |
</View> |
| 125 |
{pageLoading && ( |
| 126 |
<View style={styles.pageLoader}> |
| 127 |
<ActivityIndicator size="small" color={colors.primary} /> |
| 128 |
</View> |
| 129 |
)} |
| Error |
Row 130, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| 130 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 131 |
</View> |
| 132 |
); |
| 133 |
}; |
| 134 |
|
| 135 |
const mapStateToProps = state => { |
| 136 |
return { |
| 137 |
delivery_orders: state.order?.delivery_orders, |
| 138 |
profileData: state.auth.userInfo?.profile || {}, |
| Error |
Row 139, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 139, Column 4: "Missing semicolon."
semi
|
| 139 |
} |
| 140 |
}; |
| 141 |
|
| 142 |
const mapDispatchToProps = dispatch => ({ |
| Error |
Row 143, Column 24: "Replace `(page)·=>` with `page·=>⏎···`"
prettier/prettier
|
| 143 |
fetchDeliveryOrders: (page) => dispatch(TAKE_TO_ACTIONS.fetchDeliveryOrders(page)), |
| 144 |
}); |
| 145 |
export default connect(mapStateToProps, mapDispatchToProps)(DeliveredOrders); |
| 146 |
|
| 147 |
const styles = StyleSheet.create({ |
| 148 |
SCROLL_CONTAINER: { |
| 149 |
paddingHorizontal: mvs(22), |
| 150 |
paddingBottom: mvs(22), |
| 151 |
paddingTop: mvs(30), |
| 152 |
}, |
| 153 |
pageLoader: { |
| 154 |
height: mvs(50), |
| 155 |
width: mvs(50), |
| 156 |
borderRadius: mvs(25), |
| 157 |
position: 'absolute', |
| 158 |
bottom: mvs(20), |
| 159 |
alignSelf: 'center', |
| 160 |
justifyContent: 'center', |
| 161 |
alignItems: 'center', |
| 162 |
}, |
| 163 |
}); |
| 164 |
|
|
|
|
/src/screens/orders/details-confirmation.js
|
121 problems (94 errors, 27 warnings)
|
| Severity |
Rule |
| Error |
Row 4, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| Error |
Row 5, Column 9: "Replace `·ScrollView,·StyleSheet,·View·` with `ScrollView,·StyleSheet,·View`"
prettier/prettier
|
| Error |
Row 7, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 18, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 20, Column 9: "Replace `·Map·` with `Map`"
prettier/prettier
|
| Error |
Row 23, Column 10: "Replace `·createOrder,·profileData,·activeCountryList,·countryList·` with `createOrder,·profileData,·activeCountryList,·countryList`"
prettier/prettier
|
| Warning |
Row 23, Column 37: "'activeCountryList' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 24, Column 22: "["car"] is better written in dot notation."
dot-notation
|
| Warning |
Row 25, Column 28: "["aeroplane"] is better written in dot notation."
dot-notation
|
| Warning |
Row 26, Column 27: "["location"] is better written in dot notation."
dot-notation
|
| Warning |
Row 27, Column 9: "'CarActive' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 27, Column 28: "["car_active"] is better written in dot notation."
dot-notation
|
| Warning |
Row 28, Column 9: "'AeroplaneActive' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 28, Column 34: "["aeroplane_active"] is better written in dot notation."
dot-notation
|
| Warning |
Row 29, Column 9: "'LocationAtive' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 29, Column 32: "["location_active"] is better written in dot notation."
dot-notation
|
| Warning |
Row 37, Column 19: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 55, Column 7: "Delete `··`"
prettier/prettier
|
| Error |
Row 56, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 59, Column 1: "Replace `⏎⏎··const·createPhysicalStoreOrder·=·async·(bool)` with `··const·createPhysicalStoreOrder·=·async·bool`"
prettier/prettier
|
| Error |
Row 87, Column 46: "Replace `·?·delivery_date` with `⏎········?·delivery_date⏎·······`"
prettier/prettier
|
| Error |
Row 93, Column 10: "Replace `·...physical_payload,·to_address_id:·payload?.deliveryLocation?.id·` with `...physical_payload,·to_address_id:·payload?.deliveryLocation?.id`"
prettier/prettier
|
| Error |
Row 95, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 96, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 97, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 98, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 99, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 100, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 101, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 102, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 103, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 104, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 105, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 106, Column 9: "Replace `to_country_short_name:` with `··to_country_short_name:⏎···········`"
prettier/prettier
|
| Error |
Row 107, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 113, Column 28: "Replace `·?·await·createOrder(physical_payload,·payload?.isReOrder,·bool·?·null·:·'order-request-summery')·:·await·TAKE_2_API.createOrder(physical_payload,·payload?.isReOrder,·bool·?·null·:·'order-request-summery')` with `⏎········?·await·createOrder(⏎············physical_payload,⏎············payload?.isReOrder,⏎············bool·?·null·:·'order-request-summery',⏎··········)⏎········:·await·TAKE_2_API.createOrder(⏎············physical_payload,⏎············payload?.isReOrder,⏎············bool·?·null·:·'order-request-summery',⏎··········);`"
prettier/prettier
|
| Warning |
Row 113, Column 233: "Missing semicolon."
semi
|
| Error |
Row 114, Column 42: "Insert `;`"
prettier/prettier
|
| Warning |
Row 114, Column 42: "Missing semicolon."
semi
|
| Error |
Row 130, Column 43: "Replace `(bool)` with `bool`"
prettier/prettier
|
| Error |
Row 142, Column 41: "Insert `?.some(`"
prettier/prettier
|
| Error |
Row 143, Column 9: "Replace `?.some(el·=>·el.uri·&&·el.type·==·undefined·&&·el.name·==·undefined)·?·payload?.product_image_url` with `el·=>·el.uri·&&·el.type·==·undefined·&&·el.name·==·undefined,⏎······)⏎········?·payload?.product_image_url⏎·······`"
prettier/prettier
|
| Warning |
Row 143, Column 40: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 143, Column 64: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 163, Column 10: "Replace `·...ecommerce_payload,·to_address_id:·payload?.deliveryLocation?.id·` with `...ecommerce_payload,·to_address_id:·payload?.deliveryLocation?.id`"
prettier/prettier
|
| Error |
Row 165, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 166, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 167, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 168, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 169, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 170, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 171, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 172, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 173, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 174, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 175, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 176, Column 1: "Replace `········to_country_short_name:` with `··········to_country_short_name:⏎···········`"
prettier/prettier
|
| Error |
Row 177, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 179, Column 1: "Replace `·····console.log("eShop:",·ecommerce_payload)` with `····console.log('eShop:',·ecommerce_payload);`"
prettier/prettier
|
| Warning |
Row 179, Column 18: "Strings must use singlequote."
quotes
|
| Warning |
Row 179, Column 46: "Missing semicolon."
semi
|
| Error |
Row 183, Column 28: "Replace `·?·await·createOrder(ecommerce_payload,·payload?.isReOrder,·bool·?·null·:·'order-request-summery')·:·await·TAKE_2_API.createOrder(ecommerce_payload,·payload?.isReOrder,·bool·?·null·:·'order-request-summery'` with `⏎········?·await·createOrder(⏎············ecommerce_payload,⏎············payload?.isReOrder,⏎············bool·?·null·:·'order-request-summery',⏎··········)⏎········:·await·TAKE_2_API.createOrder(⏎············ecommerce_payload,⏎············payload?.isReOrder,⏎············bool·?·null·:·'order-request-summery',⏎··········`"
prettier/prettier
|
| Error |
Row 185, Column 42: "Insert `;`"
prettier/prettier
|
| Warning |
Row 185, Column 42: "Missing semicolon."
semi
|
| Error |
Row 204, Column 20: "Insert `;`"
prettier/prettier
|
| Warning |
Row 204, Column 20: "Missing semicolon."
semi
|
| Error |
Row 205, Column 6: "React Hook React.useEffect has a missing dependency: 'onCreate'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 205, Column 9: "Insert `;`"
prettier/prettier
|
| Warning |
Row 205, Column 9: "Missing semicolon."
semi
|
| Error |
Row 224, Column 34: "Replace `·marginLeft:·mvs(30)·` with `marginLeft:·mvs(30)`"
prettier/prettier
|
| Error |
Row 229, Column 25: "Replace `·paddingHorizontal:·mvs(22)·` with `paddingHorizontal:·mvs(22)`"
prettier/prettier
|
| Warning |
Row 234, Column 26: "Comparing to itself is potentially pointless."
no-self-compare
|
| Warning |
Row 234, Column 28: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 236, Column 24: "Insert `⏎······················`"
prettier/prettier
|
| Error |
Row 237, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 238, Column 23: "Insert `··`"
prettier/prettier
|
| Error |
Row 239, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 245, Column 31: "Replace `·marginTop:·mvs(8)·` with `marginTop:·mvs(8)`"
prettier/prettier
|
| Error |
Row 258, Column 28: "Replace `·el.short_name·===` with `⏎························el.short_name·===⏎·······················`"
prettier/prettier
|
| Error |
Row 261, Column 29: "Insert `⏎····················`"
prettier/prettier
|
| Error |
Row 262, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 263, Column 1: "Replace `····················` with `······················`"
prettier/prettier
|
| Error |
Row 264, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 279, Column 26: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 279, Column 27: "Replace `·fontSize:·mvs(10),·alignSelf:·'center'·` with `fontSize:·mvs(10),·alignSelf:·'center'`"
prettier/prettier
|
| Error |
Row 283, Column 27: "Replace `·...styles.line,·marginTop:·mvs(15)·` with `...styles.line,·marginTop:·mvs(15)`"
prettier/prettier
|
| Error |
Row 292, Column 27: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Error |
Row 298, Column 27: "Replace `·...styles.infoContainer,·marginTop:·mvs(17)·` with `...styles.infoContainer,·marginTop:·mvs(17)`"
prettier/prettier
|
| Error |
Row 303, Column 76: "Insert `,`"
prettier/prettier
|
| Warning |
Row 303, Column 76: "Missing trailing comma."
comma-dangle
|
| Error |
Row 308, Column 35: "Delete `·?`"
prettier/prettier
|
| Error |
Row 309, Column 20: "Insert `·?`"
prettier/prettier
|
| Error |
Row 310, Column 22: "Insert `·delivery_date`"
prettier/prettier
|
| Error |
Row 311, Column 17: "Delete `····delivery_date`"
prettier/prettier
|
| Error |
Row 314, Column 76: "Insert `,`"
prettier/prettier
|
| Warning |
Row 314, Column 76: "Missing trailing comma."
comma-dangle
|
| Error |
Row 320, Column 27: "Replace `·...styles.infoContainer,·marginTop:·mvs(10)·` with `...styles.infoContainer,·marginTop:·mvs(10)`"
prettier/prettier
|
| Error |
Row 322, Column 57: "Replace `·...styles.value·` with `...styles.value`"
prettier/prettier
|
| Error |
Row 325, Column 27: "Replace `·...styles.infoContainer,·marginTop:·mvs(10)·` with `...styles.infoContainer,·marginTop:·mvs(10)`"
prettier/prettier
|
| Error |
Row 333, Column 27: "Replace `·...styles.infoContainer,·marginTop:·mvs(10)·` with `...styles.infoContainer,·marginTop:·mvs(10)`"
prettier/prettier
|
| Error |
Row 338, Column 52: "Replace `·?·`${payload?.shopName?.substring(0,·8)}·...`` with `⏎······················?·`${payload?.shopName?.substring(0,·8)}·...`⏎·····················`"
prettier/prettier
|
| Error |
Row 341, Column 25: "Replace `·...styles.value,·color:·colors.primary·` with `...styles.value,·color:·colors.primary`"
prettier/prettier
|
| Error |
Row 343, Column 16: "Replace `(payload?.isPhysical)` with `payload?.isPhysical`"
prettier/prettier
|
| Warning |
Row 345, Column 26: "Inline style: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center'
}"
react-native/no-inline-styles
|
| Error |
Row 353, Column 29: "Replace `·marginRight:·mvs(7.3)·` with `marginRight:·mvs(7.3)`"
prettier/prettier
|
| Error |
Row 357, Column 29: "Replace `·fontSize:·mvs(13),·color:·colors.primary·` with `fontSize:·mvs(13),·color:·colors.primary`"
prettier/prettier
|
| Error |
Row 367, Column 25: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Error |
Row 368, Column 21: "Replace `·marginTop:·mvs(17)·` with `marginTop:·mvs(17)`"
prettier/prettier
|
| Error |
Row 386, Column 29: "Replace `·...styles.infoContainer,·marginTop:·mvs(22)·` with `...styles.infoContainer,·marginTop:·mvs(22)`"
prettier/prettier
|
| Error |
Row 409, Column 29: "Replace `·...styles.infoContainer,·marginTop:·mvs(12)·` with `...styles.infoContainer,·marginTop:·mvs(12)`"
prettier/prettier
|
| Error |
Row 411, Column 25: "Replace `·label={`${profileData?.currency?.currency_code}·${payload.reward}`}·style={styles.value}` with `⏎··················label={`${profileData?.currency?.currency_code}·${payload.reward}`}⏎··················style={styles.value}⏎···············`"
prettier/prettier
|
| Error |
Row 414, Column 29: "Replace `·...styles.infoContainer,·marginTop:·mvs(12)·` with `...styles.infoContainer,·marginTop:·mvs(12)`"
prettier/prettier
|
| Error |
Row 422, Column 29: "Replace `·...styles.infoContainer,·marginTop:·mvs(12)·` with `...styles.infoContainer,·marginTop:·mvs(12)`"
prettier/prettier
|
| Warning |
Row 430, Column 15: "Empty components are self-closing"
react/self-closing-comp
|
| Error |
Row 432, Column 29: "Replace `·...styles.infoContainer,·marginTop:·mvs(11)·` with `...styles.infoContainer,·marginTop:·mvs(11)`"
prettier/prettier
|
| Error |
Row 442, Column 70: "Insert `⏎····················`"
prettier/prettier
|
| Error |
Row 445, Column 59: "Delete `).toFixed(2)`"
prettier/prettier
|
| Error |
Row 446, Column 19: "Replace `··` with `).toFixed(2)`"
prettier/prettier
|
| Error |
Row 479, Column 21: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎········translucent⏎········activeStatusBarStyle={'light-content'}⏎········inactiveStatusBarBackgroundColor={colors.primary}⏎········ref={alertRef}⏎·····`"
prettier/prettier
|
| Error |
Row 492, Column 46: "Insert `⏎···`"
prettier/prettier
|
| Error |
Row 700, Column 5: "Duplicate key 'borderWidth'."
no-dupe-keys
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 2 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 3 |
import moment from 'moment'; |
| Error |
Row 4, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| 4 |
import React, { useState } from 'react'; |
| Error |
Row 5, Column 9: "Replace `·ScrollView,·StyleSheet,·View·` with `ScrollView,·StyleSheet,·View`"
prettier/prettier
|
| 5 |
import { ScrollView, StyleSheet, View } from 'react-native'; |
| 6 |
import DropdownAlert from 'react-native-dropdownalert'; |
| Error |
Row 7, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 7 |
import { connect } from 'react-redux'; |
| 8 |
import * as Images from '../../../resource/assets/order-car-icons'; |
| 9 |
import Buttons from '../../components/atoms/Button'; |
| 10 |
import OrderDestination from '../../components/atoms/OrderDestination'; |
| 11 |
import OrderDestinationAddress from '../../components/atoms/OrderDestinationAddress'; |
| 12 |
import ImagePlaceholder from '../../components/atoms/Placeholder'; |
| 13 |
import Header from '../../components/molecules/header/header-1x'; |
| 14 |
import InputWithTitle from '../../components/molecules/input-with-title'; |
| 15 |
import CongratsModal from '../../components/molecules/modals/congrats-modal'; |
| 16 |
import ProductInfo from '../../components/molecules/product-info'; |
| 17 |
import colors from '../../config/colors'; |
| Error |
Row 18, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 18 |
import { mvs } from '../../config/metrices'; |
| 19 |
import Regular from '../../presentation/typography/regular-text'; |
| Error |
Row 20, Column 9: "Replace `·Map·` with `Map`"
prettier/prettier
|
| 20 |
import { Map } from '../../../resource/assets/common-icons'; |
| 21 |
import TAKE_2_API from '@khan_ahmad786/common/api/API'; |
| 22 |
const DetailsConfirmation = props => { |
| Error |
Row 23, Column 10: "Replace `·createOrder,·profileData,·activeCountryList,·countryList·` with `createOrder,·profileData,·activeCountryList,·countryList`"
prettier/prettier
|
| Warning |
Row 23, Column 37: "'activeCountryList' is assigned a value but never used."
no-unused-vars
|
| 23 |
const { createOrder, profileData, activeCountryList, countryList } = props; |
| Warning |
Row 24, Column 22: "["car"] is better written in dot notation."
dot-notation
|
| 24 |
const Car = Images['car']; |
| Warning |
Row 25, Column 28: "["aeroplane"] is better written in dot notation."
dot-notation
|
| 25 |
const Aeroplane = Images['aeroplane']; |
| Warning |
Row 26, Column 27: "["location"] is better written in dot notation."
dot-notation
|
| 26 |
const Location = Images['location']; |
| Warning |
Row 27, Column 9: "'CarActive' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 27, Column 28: "["car_active"] is better written in dot notation."
dot-notation
|
| 27 |
const CarActive = Images['car_active']; |
| Warning |
Row 28, Column 9: "'AeroplaneActive' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 28, Column 34: "["aeroplane_active"] is better written in dot notation."
dot-notation
|
| 28 |
const AeroplaneActive = Images['aeroplane_active']; |
| Warning |
Row 29, Column 9: "'LocationAtive' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 29, Column 32: "["location_active"] is better written in dot notation."
dot-notation
|
| 29 |
const LocationAtive = Images['location_active']; |
| 30 |
|
| 31 |
const [congratsModal, setCongratsModal] = useState(false); |
| 32 |
const [orderTaxes, setOrderTaxes] = useState({}); |
| 33 |
const scrollRef = React.useRef(null); |
| 34 |
const alertRef = React.useRef(); |
| 35 |
const [loading, setLoading] = React.useState(false); |
| 36 |
|
| Warning |
Row 37, Column 19: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| 37 |
const [payload, setPayload] = React.useState({ |
| 38 |
...props.route.params.payload, |
| 39 |
tax: 0.1, |
| 40 |
urgentFee: 0.34, |
| 41 |
takeToFee: 0.5, |
| 42 |
processingFee: 0.02, |
| 43 |
}); |
| 44 |
// console.log('props.route.params.payload::', props.route.params.payload); |
| 45 |
const onCreate = (bool = true) => { |
| 46 |
payload?.isPhysical |
| 47 |
? createPhysicalStoreOrder(bool) |
| 48 |
: createEcommerceStoreOrder(bool); |
| 49 |
}; |
| 50 |
|
| 51 |
const delivery_date = payload?.isUrgent |
| 52 |
? payload?.is24Days |
| 53 |
? moment().add(1, 'days').format('YYYY-MM-DD') |
| 54 |
: payload?.is2Days |
| Error |
Row 55, Column 7: "Delete `··`"
prettier/prettier
|
| 55 |
? moment().add(2, 'days').format('YYYY-MM-DD') |
| Error |
Row 56, Column 1: "Delete `··`"
prettier/prettier
|
| 56 |
: moment().add(3, 'days').format('YYYY-MM-DD') |
| 57 |
: payload?.date; |
| 58 |
|
| Error |
Row 59, Column 1: "Replace `⏎⏎··const·createPhysicalStoreOrder·=·async·(bool)` with `··const·createPhysicalStoreOrder·=·async·bool`"
prettier/prettier
|
| 59 |
|
| 60 |
|
| 61 |
const createPhysicalStoreOrder = async (bool) => { |
| 62 |
// console.log('payload:', payload); |
| 63 |
let physical_payload = { |
| 64 |
'old_gallery[]': payload?.images |
| 65 |
?.filter(el => el.old_gallery) |
| 66 |
.map(el => el.uri), |
| 67 |
'order_gallery[]': payload?.images |
| 68 |
?.filter(el => el.uri !== '') |
| 69 |
.filter(el => el.type !== undefined) |
| 70 |
.filter(el => el.old_gallery !== true), |
| 71 |
name: payload?.productName || '', |
| 72 |
price: payload?.productPrice || '', |
| 73 |
detail: payload?.productDetails || '', |
| 74 |
shop_name: payload?.shopName || '', |
| 75 |
shop_country: payload?.shopAddress?.country || '', |
| 76 |
shop_city: payload?.shopAddress?.city || '', |
| 77 |
shop_block: payload?.shopAddress?.area || '', |
| 78 |
shop_street: payload?.shopAddress?.street || '', |
| 79 |
shop_latitude: payload?.shopAddress?.latitude || '', |
| 80 |
shop_longitude: payload?.shopAddress?.longitude || '', |
| 81 |
from_country_short_name: payload?.shopAddress?.country_short_name || '', |
| 82 |
instructions: payload?.instractions || '', |
| 83 |
quantity: payload?.quantity || 0, |
| 84 |
with_box: payload?.withBox || false, |
| 85 |
is_private: payload?.private || false, |
| 86 |
is_urgent: payload?.isUrgent ? 1 : 0, |
| Error |
Row 87, Column 46: "Replace `·?·delivery_date` with `⏎········?·delivery_date⏎·······`"
prettier/prettier
|
| 87 |
delivery_before_date: payload?.isUrgent ? delivery_date : UI_API._replaceAllSlash(delivery_date), |
| 88 |
reward: payload?.reward || '', |
| 89 |
is_physical: 1, |
| 90 |
}; |
| 91 |
|
| 92 |
physical_payload = payload?.deliveryLocation?.id |
| Error |
Row 93, Column 10: "Replace `·...physical_payload,·to_address_id:·payload?.deliveryLocation?.id·` with `...physical_payload,·to_address_id:·payload?.deliveryLocation?.id`"
prettier/prettier
|
| 93 |
? { ...physical_payload, to_address_id: payload?.deliveryLocation?.id } |
| 94 |
: { |
| Error |
Row 95, Column 1: "Insert `··`"
prettier/prettier
|
| 95 |
...physical_payload, |
| Error |
Row 96, Column 1: "Insert `··`"
prettier/prettier
|
| 96 |
to_country: payload?.deliveryLocation?.country || '', |
| Error |
Row 97, Column 9: "Insert `··`"
prettier/prettier
|
| 97 |
to_city: payload?.deliveryLocation?.city || '', |
| Error |
Row 98, Column 1: "Insert `··`"
prettier/prettier
|
| 98 |
to_area: payload?.deliveryLocation?.city || '', |
| Error |
Row 99, Column 1: "Insert `··`"
prettier/prettier
|
| 99 |
to_block: payload?.deliveryLocation?.city || '', |
| Error |
Row 100, Column 9: "Insert `··`"
prettier/prettier
|
| 100 |
to_street: payload?.deliveryLocation?.street_number || '', |
| Error |
Row 101, Column 9: "Insert `··`"
prettier/prettier
|
| 101 |
to_building: payload?.deliveryLocation?.building || '', |
| Error |
Row 102, Column 1: "Insert `··`"
prettier/prettier
|
| 102 |
to_floor: payload?.deliveryLocation?.floor || '', |
| Error |
Row 103, Column 9: "Insert `··`"
prettier/prettier
|
| 103 |
to_address: payload?.deliveryLocation?.fulladdress || '', |
| Error |
Row 104, Column 9: "Insert `··`"
prettier/prettier
|
| 104 |
to_latitude: payload?.deliveryLocation?.latitude || '', |
| Error |
Row 105, Column 1: "Insert `··`"
prettier/prettier
|
| 105 |
to_longitude: payload?.deliveryLocation?.longitude || '', |
| Error |
Row 106, Column 9: "Replace `to_country_short_name:` with `··to_country_short_name:⏎···········`"
prettier/prettier
|
| 106 |
to_country_short_name: payload?.deliveryLocation?.country_short_name || '', |
| Error |
Row 107, Column 1: "Insert `··`"
prettier/prettier
|
| 107 |
}; |
| 108 |
|
| 109 |
// console.log('pShop', physical_payload) |
| 110 |
|
| 111 |
try { |
| 112 |
setLoading(true); |
| Error |
Row 113, Column 28: "Replace `·?·await·createOrder(physical_payload,·payload?.isReOrder,·bool·?·null·:·'order-request-summery')·:·await·TAKE_2_API.createOrder(physical_payload,·payload?.isReOrder,·bool·?·null·:·'order-request-summery')` with `⏎········?·await·createOrder(⏎············physical_payload,⏎············payload?.isReOrder,⏎············bool·?·null·:·'order-request-summery',⏎··········)⏎········:·await·TAKE_2_API.createOrder(⏎············physical_payload,⏎············payload?.isReOrder,⏎············bool·?·null·:·'order-request-summery',⏎··········);`"
prettier/prettier
|
| Warning |
Row 113, Column 233: "Missing semicolon."
semi
|
| 113 |
const response = bool ? await createOrder(physical_payload, payload?.isReOrder, bool ? null : 'order-request-summery') : await TAKE_2_API.createOrder(physical_payload, payload?.isReOrder, bool ? null : 'order-request-summery') |
| Error |
Row 114, Column 42: "Insert `;`"
prettier/prettier
|
| Warning |
Row 114, Column 42: "Missing semicolon."
semi
|
| 114 |
setOrderTaxes(bool ? {} : response) |
| 115 |
// const newList = countryList?.map(el => ({ ...el, isActive: false })); |
| 116 |
// activeCountryList(newList); |
| 117 |
setLoading(false); |
| 118 |
setCongratsModal(bool); |
| 119 |
} catch (error) { |
| 120 |
setLoading(false); |
| 121 |
alertRef.current.alertWithType( |
| 122 |
'error', |
| 123 |
'Error', |
| 124 |
UI_API._returnError(error), |
| 125 |
); |
| 126 |
// scrollRef.current.scrollTo({x: 0, y: 0, animated: true}); |
| 127 |
} |
| 128 |
}; |
| 129 |
|
| Error |
Row 130, Column 43: "Replace `(bool)` with `bool`"
prettier/prettier
|
| 130 |
const createEcommerceStoreOrder = async (bool) => { |
| 131 |
// return console.log(payload) |
| 132 |
// return |
| 133 |
let ecommerce_payload = { |
| 134 |
'old_gallery[]': payload?.images |
| 135 |
?.filter(el => el.old_gallery) |
| 136 |
.map(el => el.uri), |
| 137 |
'order_gallery[]': payload?.images |
| 138 |
?.filter(el => el.uri !== '') |
| 139 |
.filter(el => el.type !== undefined) |
| 140 |
.filter(el => el.old_gallery !== true), |
| 141 |
product_link: payload?.url || '', |
| Error |
Row 142, Column 41: "Insert `?.some(`"
prettier/prettier
|
| 142 |
product_image_url: payload?.images |
| Error |
Row 143, Column 9: "Replace `?.some(el·=>·el.uri·&&·el.type·==·undefined·&&·el.name·==·undefined)·?·payload?.product_image_url` with `el·=>·el.uri·&&·el.type·==·undefined·&&·el.name·==·undefined,⏎······)⏎········?·payload?.product_image_url⏎·······`"
prettier/prettier
|
| Warning |
Row 143, Column 40: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 143, Column 64: "Expected '===' and instead saw '=='."
eqeqeq
|
| 143 |
?.some(el => el.uri && el.type == undefined && el.name == undefined) ? payload?.product_image_url : '', |
| 144 |
name: payload?.productName || '', |
| 145 |
price: payload?.productPrice || '', |
| 146 |
detail: payload?.productDetails || '', |
| 147 |
is_online: 1, |
| 148 |
shop_country: payload?.country || '', |
| 149 |
from_country_short_name: payload?.country_short_name || '', |
| 150 |
// shop_country: payload?.storeAddress?.country || '', |
| 151 |
// shop_city: payload?.storeAddress?.city || '', |
| 152 |
// shop_longitude: payload?.storeAddress?.geoCode?.lng || '', |
| 153 |
// shop_latitude: payload?.storeAddress?.geoCode?.lat || '', |
| 154 |
instructions: payload?.instractions || '', |
| 155 |
quantity: payload?.quantity || 1, |
| 156 |
with_box: payload?.withBox, |
| 157 |
is_private: payload?.private, |
| 158 |
is_urgent: payload?.isUrgent ? 1 : 0, |
| 159 |
delivery_before_date: delivery_date, |
| 160 |
reward: payload?.reward || '', |
| 161 |
}; |
| 162 |
ecommerce_payload = payload?.deliveryLocation?.id |
| Error |
Row 163, Column 10: "Replace `·...ecommerce_payload,·to_address_id:·payload?.deliveryLocation?.id·` with `...ecommerce_payload,·to_address_id:·payload?.deliveryLocation?.id`"
prettier/prettier
|
| 163 |
? { ...ecommerce_payload, to_address_id: payload?.deliveryLocation?.id } |
| 164 |
: { |
| Error |
Row 165, Column 1: "Insert `··`"
prettier/prettier
|
| 165 |
...ecommerce_payload, |
| Error |
Row 166, Column 9: "Insert `··`"
prettier/prettier
|
| 166 |
to_country: payload?.deliveryLocation?.country || '', |
| Error |
Row 167, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 167 |
to_city: payload?.deliveryLocation?.city || '', |
| Error |
Row 168, Column 1: "Insert `··`"
prettier/prettier
|
| 168 |
to_area: payload?.deliveryLocation?.city || '', |
| Error |
Row 169, Column 9: "Insert `··`"
prettier/prettier
|
| 169 |
to_block: payload?.deliveryLocation?.city || '', |
| Error |
Row 170, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 170 |
to_street: payload?.deliveryLocation?.street_number || '', |
| Error |
Row 171, Column 1: "Insert `··`"
prettier/prettier
|
| 171 |
to_building: payload?.deliveryLocation?.building || '', |
| Error |
Row 172, Column 9: "Insert `··`"
prettier/prettier
|
| 172 |
to_floor: payload?.deliveryLocation?.floor || '', |
| Error |
Row 173, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 173 |
to_address: payload?.deliveryLocation?.fulladdress || '', |
| Error |
Row 174, Column 1: "Insert `··`"
prettier/prettier
|
| 174 |
to_latitude: payload?.deliveryLocation?.latitude || '', |
| Error |
Row 175, Column 9: "Insert `··`"
prettier/prettier
|
| 175 |
to_longitude: payload?.deliveryLocation?.longitude || '', |
| Error |
Row 176, Column 1: "Replace `········to_country_short_name:` with `··········to_country_short_name:⏎···········`"
prettier/prettier
|
| 176 |
to_country_short_name: payload?.deliveryLocation?.country_short_name || '', |
| Error |
Row 177, Column 7: "Insert `··`"
prettier/prettier
|
| 177 |
}; |
| 178 |
|
| Error |
Row 179, Column 1: "Replace `·····console.log("eShop:",·ecommerce_payload)` with `····console.log('eShop:',·ecommerce_payload);`"
prettier/prettier
|
| Warning |
Row 179, Column 18: "Strings must use singlequote."
quotes
|
| Warning |
Row 179, Column 46: "Missing semicolon."
semi
|
| 179 |
console.log("eShop:", ecommerce_payload) |
| 180 |
|
| 181 |
try { |
| 182 |
setLoading(true); |
| Error |
Row 183, Column 28: "Replace `·?·await·createOrder(ecommerce_payload,·payload?.isReOrder,·bool·?·null·:·'order-request-summery')·:·await·TAKE_2_API.createOrder(ecommerce_payload,·payload?.isReOrder,·bool·?·null·:·'order-request-summery'` with `⏎········?·await·createOrder(⏎············ecommerce_payload,⏎············payload?.isReOrder,⏎············bool·?·null·:·'order-request-summery',⏎··········)⏎········:·await·TAKE_2_API.createOrder(⏎············ecommerce_payload,⏎············payload?.isReOrder,⏎············bool·?·null·:·'order-request-summery',⏎··········`"
prettier/prettier
|
| 183 |
const response = bool ? await createOrder(ecommerce_payload, payload?.isReOrder, bool ? null : 'order-request-summery') : await TAKE_2_API.createOrder(ecommerce_payload, payload?.isReOrder, bool ? null : 'order-request-summery'); |
| 184 |
|
| Error |
Row 185, Column 42: "Insert `;`"
prettier/prettier
|
| Warning |
Row 185, Column 42: "Missing semicolon."
semi
|
| 185 |
setOrderTaxes(bool ? {} : response) |
| 186 |
// const newList=countryList?.map(el=>({...el,isActive:false})) |
| 187 |
// activeCountryList(newList) |
| 188 |
setLoading(false); |
| 189 |
setCongratsModal(bool); |
| 190 |
} catch (error) { |
| 191 |
setLoading(false); |
| 192 |
alertRef.current.alertWithType( |
| 193 |
'error', |
| 194 |
'Error', |
| 195 |
UI_API._returnError(error), |
| 196 |
); |
| 197 |
// scrollRef.current.scrollTo({x: 0, y: 0, animated: true}); |
| 198 |
} |
| 199 |
}; |
| 200 |
|
| 201 |
// console.log(payload) |
| 202 |
|
| 203 |
React.useEffect(() => { |
| Error |
Row 204, Column 20: "Insert `;`"
prettier/prettier
|
| Warning |
Row 204, Column 20: "Missing semicolon."
semi
|
| 204 |
onCreate(false) |
| Error |
Row 205, Column 6: "React Hook React.useEffect has a missing dependency: 'onCreate'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 205, Column 9: "Insert `;`"
prettier/prettier
|
| Warning |
Row 205, Column 9: "Missing semicolon."
semi
|
| 205 |
}, []) |
| 206 |
// console.log(orderTaxes) |
| 207 |
return ( |
| 208 |
<View style={styles.mainContainer}> |
| 209 |
<View style={styles.header}> |
| 210 |
<Header {...props} title="details confirmation" allowBackBtn bellIcon /> |
| 211 |
</View> |
| 212 |
|
| 213 |
<ScrollView |
| 214 |
showsVerticalScrollIndicator={false} |
| 215 |
style={styles.container} |
| 216 |
ref={scrollRef}> |
| 217 |
<View style={styles.productMainContainer}> |
| 218 |
<View style={styles.productContainer}> |
| 219 |
<ProductInfo |
| 220 |
order_img={payload?.images[0]?.uri} |
| 221 |
name={payload?.productName} |
| 222 |
total={`${profileData?.currency?.currency_code} ${payload?.productPrice}`} |
| 223 |
reward={`${profileData?.currency?.currency_code} ${payload?.reward}`} |
| Error |
Row 224, Column 34: "Replace `·marginLeft:·mvs(30)·` with `marginLeft:·mvs(30)`"
prettier/prettier
|
| 224 |
detailsContainer={{ marginLeft: mvs(30) }} |
| 225 |
priceTitle="Product Price" |
| 226 |
/> |
| 227 |
</View> |
| 228 |
|
| Error |
Row 229, Column 25: "Replace `·paddingHorizontal:·mvs(22)·` with `paddingHorizontal:·mvs(22)`"
prettier/prettier
|
| 229 |
<View style={{ paddingHorizontal: mvs(22) }}> |
| 230 |
<View style={styles.LOCATION_DESTINATION}> |
| 231 |
<View style={styles.SUB_LOCATION_DESTINATION}> |
| 232 |
<OrderDestination |
| 233 |
value={0} |
| Warning |
Row 234, Column 26: "Comparing to itself is potentially pointless."
no-self-compare
|
| Warning |
Row 234, Column 28: "Expected '===' and instead saw '=='."
eqeqeq
|
| 234 |
width={2 == 2 ? mvs(100) : mvs(50)} |
| 235 |
SVGFirst={ |
| Error |
Row 236, Column 24: "Insert `⏎······················`"
prettier/prettier
|
| 236 |
`${payload?.isPhysical |
| Error |
Row 237, Column 1: "Insert `··`"
prettier/prettier
|
| 237 |
? payload?.shopAddress?.country |
| Error |
Row 238, Column 23: "Insert `··`"
prettier/prettier
|
| 238 |
: payload?.country |
| Error |
Row 239, Column 1: "Delete `··`"
prettier/prettier
|
| 239 |
}` === `${payload?.deliveryLocation?.country}` |
| 240 |
? Car |
| 241 |
: Aeroplane |
| 242 |
} |
| 243 |
SVGSecond={Location} |
| 244 |
/> |
| Error |
Row 245, Column 31: "Replace `·marginTop:·mvs(8)·` with `marginTop:·mvs(8)`"
prettier/prettier
|
| 245 |
<View style={{ marginTop: mvs(8) }} /> |
| 246 |
<OrderDestinationAddress |
| 247 |
imageFrom={{ |
| 248 |
uri: countryList?.find( |
| 249 |
el => |
| 250 |
el.short_name === |
| 251 |
(payload?.isPhysical |
| 252 |
? payload?.shopAddress?.country_short_name?.toLowerCase() |
| 253 |
: payload?.country_short_name?.toLowerCase()), |
| 254 |
)?.flag, |
| 255 |
}} |
| 256 |
imageTo={{ |
| 257 |
uri: countryList?.find( |
| Error |
Row 258, Column 28: "Replace `·el.short_name·===` with `⏎························el.short_name·===⏎·······················`"
prettier/prettier
|
| 258 |
el => el.short_name === payload?.deliveryLocation?.country_short_name?.toLowerCase(), |
| 259 |
)?.flag, |
| 260 |
}} |
| Error |
Row 261, Column 29: "Insert `⏎····················`"
prettier/prettier
|
| 261 |
label={`${payload?.isPhysical |
| Error |
Row 262, Column 1: "Insert `··`"
prettier/prettier
|
| 262 |
? payload?.shopAddress?.country?.slice(0, 15) |
| Error |
Row 263, Column 1: "Replace `····················` with `······················`"
prettier/prettier
|
| 263 |
: payload?.country?.slice(0, 15) |
| Error |
Row 264, Column 1: "Delete `··`"
prettier/prettier
|
| 264 |
} - ${payload?.deliveryLocation?.country?.slice(0, 15)}`} |
| 265 |
fontSize={12} |
| 266 |
/> |
| 267 |
</View> |
| 268 |
<View style={styles.userContainer}> |
| 269 |
<ImagePlaceholder |
| 270 |
bg_img={profileData?.profile_picture} |
| 271 |
containerStyle={{ |
| 272 |
height: mvs(37), |
| 273 |
width: mvs(37), |
| 274 |
borderRadius: mvs(8), |
| 275 |
}} |
| 276 |
/> |
| 277 |
<Regular |
| 278 |
label={profileData?.user_name?.split(' ')[0]} |
| Warning |
Row 279, Column 26: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 279, Column 27: "Replace `·fontSize:·mvs(10),·alignSelf:·'center'·` with `fontSize:·mvs(10),·alignSelf:·'center'`"
prettier/prettier
|
| 279 |
style={{ fontSize: mvs(10), alignSelf: 'center' }} |
| 280 |
/> |
| 281 |
</View> |
| 282 |
</View> |
| Error |
Row 283, Column 27: "Replace `·...styles.line,·marginTop:·mvs(15)·` with `...styles.line,·marginTop:·mvs(15)`"
prettier/prettier
|
| 283 |
<View style={{ ...styles.line, marginTop: mvs(15) }} /> |
| 284 |
</View> |
| 285 |
</View> |
| 286 |
|
| 287 |
<View style={styles.container1}> |
| 288 |
<View style={styles.moreInfoContainer}> |
| 289 |
<InputWithTitle |
| 290 |
title="Product Details" |
| 291 |
value={payload?.productDetails} |
| Error |
Row 292, Column 27: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 292 |
textStyle={{ color: colors.primary }} |
| 293 |
editable={false} |
| 294 |
multiline |
| 295 |
singleInput={false} |
| 296 |
moreOrLess={true} |
| 297 |
/> |
| Error |
Row 298, Column 27: "Replace `·...styles.infoContainer,·marginTop:·mvs(17)·` with `...styles.infoContainer,·marginTop:·mvs(17)`"
prettier/prettier
|
| 298 |
<View style={{ ...styles.infoContainer, marginTop: mvs(17) }}> |
| 299 |
<Regular |
| 300 |
label={payload.isUrgent ? 'Urgent Delivery' : 'Delivery Before'} |
| 301 |
style={{ |
| 302 |
...styles.label, |
| Error |
Row 303, Column 76: "Insert `,`"
prettier/prettier
|
| Warning |
Row 303, Column 76: "Missing trailing comma."
comma-dangle
|
| 303 |
color: payload.isUrgent ? colors.pink : colors.lightgrey2 |
| 304 |
}} |
| 305 |
/> |
| 306 |
<Regular |
| 307 |
label={ |
| Error |
Row 308, Column 35: "Delete `·?`"
prettier/prettier
|
| 308 |
payload.isUrgent ? |
| Error |
Row 309, Column 20: "Insert `·?`"
prettier/prettier
|
| 309 |
UI_API._returnUrgencyTitle(delivery_date) |
| Error |
Row 310, Column 22: "Insert `·delivery_date`"
prettier/prettier
|
| 310 |
: |
| Error |
Row 311, Column 17: "Delete `····delivery_date`"
prettier/prettier
|
| 311 |
delivery_date} |
| 312 |
style={{ |
| 313 |
...styles.value, |
| Error |
Row 314, Column 76: "Insert `,`"
prettier/prettier
|
| Warning |
Row 314, Column 76: "Missing trailing comma."
comma-dangle
|
| 314 |
color: payload.isUrgent ? colors.pink : colors.lightgrey2 |
| 315 |
}} |
| 316 |
/> |
| 317 |
</View> |
| 318 |
{/* <View style = {styles.line}></View> */} |
| 319 |
|
| Error |
Row 320, Column 27: "Replace `·...styles.infoContainer,·marginTop:·mvs(10)·` with `...styles.infoContainer,·marginTop:·mvs(10)`"
prettier/prettier
|
| 320 |
<View style={{ ...styles.infoContainer, marginTop: mvs(10) }}> |
| 321 |
<Regular label="Quantity" style={styles.label} /> |
| Error |
Row 322, Column 57: "Replace `·...styles.value·` with `...styles.value`"
prettier/prettier
|
| 322 |
<Regular label={payload.quantity} style={{ ...styles.value }} /> |
| 323 |
</View> |
| 324 |
|
| Error |
Row 325, Column 27: "Replace `·...styles.infoContainer,·marginTop:·mvs(10)·` with `...styles.infoContainer,·marginTop:·mvs(10)`"
prettier/prettier
|
| 325 |
<View style={{ ...styles.infoContainer, marginTop: mvs(10) }}> |
| 326 |
<Regular label="Packaging" style={styles.label} /> |
| 327 |
<Regular |
| 328 |
label={payload?.withBox ? 'With box' : 'Without box'} |
| 329 |
style={styles.value} |
| 330 |
/> |
| 331 |
</View> |
| 332 |
|
| Error |
Row 333, Column 27: "Replace `·...styles.infoContainer,·marginTop:·mvs(10)·` with `...styles.infoContainer,·marginTop:·mvs(10)`"
prettier/prettier
|
| 333 |
<View style={{ ...styles.infoContainer, marginTop: mvs(10) }}> |
| 334 |
<Regular label="Where to buy" style={styles.label} /> |
| 335 |
<Regular |
| 336 |
label={ |
| 337 |
payload.isPhysical |
| Error |
Row 338, Column 52: "Replace `·?·`${payload?.shopName?.substring(0,·8)}·...`` with `⏎······················?·`${payload?.shopName?.substring(0,·8)}·...`⏎·····················`"
prettier/prettier
|
| 338 |
? payload?.shopName?.length > 8 ? `${payload?.shopName?.substring(0, 8)} ...` : payload?.shopName |
| 339 |
: payload?.e_commerce_site |
| 340 |
} |
| Error |
Row 341, Column 25: "Replace `·...styles.value,·color:·colors.primary·` with `...styles.value,·color:·colors.primary`"
prettier/prettier
|
| 341 |
style={{ ...styles.value, color: colors.primary }} |
| 342 |
/> |
| Error |
Row 343, Column 16: "Replace `(payload?.isPhysical)` with `payload?.isPhysical`"
prettier/prettier
|
| 343 |
{(payload?.isPhysical) && ( |
| 344 |
<View |
| Warning |
Row 345, Column 26: "Inline style: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center'
}"
react-native/no-inline-styles
|
| 345 |
style={{ |
| 346 |
flexDirection: 'row', |
| 347 |
justifyContent: 'space-between', |
| 348 |
alignItems: 'center', |
| 349 |
}}> |
| 350 |
<Map |
| 351 |
height={mvs(18)} |
| 352 |
width={mvs(14)} |
| Error |
Row 353, Column 29: "Replace `·marginRight:·mvs(7.3)·` with `marginRight:·mvs(7.3)`"
prettier/prettier
|
| 353 |
style={{ marginRight: mvs(7.3) }} |
| 354 |
/> |
| 355 |
<Regular |
| 356 |
label={'Store location'} |
| Error |
Row 357, Column 29: "Replace `·fontSize:·mvs(13),·color:·colors.primary·` with `fontSize:·mvs(13),·color:·colors.primary`"
prettier/prettier
|
| 357 |
style={{ fontSize: mvs(13), color: colors.primary }} |
| 358 |
/> |
| 359 |
</View> |
| 360 |
)} |
| 361 |
</View> |
| 362 |
</View> |
| 363 |
|
| 364 |
<InputWithTitle |
| 365 |
title="Buying Instructions" |
| 366 |
value={payload.instractions} |
| Error |
Row 367, Column 25: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 367 |
textStyle={{ color: colors.primary }} |
| Error |
Row 368, Column 21: "Replace `·marginTop:·mvs(17)·` with `marginTop:·mvs(17)`"
prettier/prettier
|
| 368 |
style={{ marginTop: mvs(17) }} |
| 369 |
editable={false} |
| 370 |
multiline |
| 371 |
singleInput={false} |
| 372 |
moreOrLess={true} |
| 373 |
/> |
| 374 |
|
| 375 |
<View style={styles.summaryContainer}> |
| 376 |
<Regular |
| 377 |
label="Est Price Summary" |
| 378 |
style={{ |
| 379 |
fontSize: mvs(20), |
| 380 |
color: colors.headerTitle, |
| 381 |
marginTop: mvs(17), |
| 382 |
}} |
| 383 |
/> |
| 384 |
|
| 385 |
<View style={styles.moreInfoContainer}> |
| Error |
Row 386, Column 29: "Replace `·...styles.infoContainer,·marginTop:·mvs(22)·` with `...styles.infoContainer,·marginTop:·mvs(22)`"
prettier/prettier
|
| 386 |
<View style={{ ...styles.infoContainer, marginTop: mvs(22) }}> |
| 387 |
<Regular label="Product price" style={styles.label} /> |
| 388 |
<Regular |
| 389 |
label={`${profileData?.currency?.currency_code} ${payload.productPrice}`} |
| 390 |
style={styles.value} |
| 391 |
/> |
| 392 |
</View> |
| 393 |
|
| 394 |
{/* <View style={{ ...styles.infoContainer, marginTop: mvs(12) }}> |
| 395 |
<Regular label="USA Tax" style={styles.label} /> |
| 396 |
<Regular label={`${profileData?.currency?.currency_code} ${payload?.tax}`} style={styles.value} /> |
| 397 |
</View> |
| 398 |
|
| 399 |
{payload.isUrgent && ( |
| 400 |
<View style={{ ...styles.infoContainer, marginTop: mvs(12) }}> |
| 401 |
<Regular label="Urgent delivery fees" style={styles.label} /> |
| 402 |
<Regular |
| 403 |
label={`${profileData?.currency?.currency_code} ${payload?.urgentFee}`} |
| 404 |
style={styles.value} |
| 405 |
/> |
| 406 |
</View> |
| 407 |
)} */} |
| 408 |
|
| Error |
Row 409, Column 29: "Replace `·...styles.infoContainer,·marginTop:·mvs(12)·` with `...styles.infoContainer,·marginTop:·mvs(12)`"
prettier/prettier
|
| 409 |
<View style={{ ...styles.infoContainer, marginTop: mvs(12) }}> |
| 410 |
<Regular label="Travel reward" style={styles.label} /> |
| Error |
Row 411, Column 25: "Replace `·label={`${profileData?.currency?.currency_code}·${payload.reward}`}·style={styles.value}` with `⏎··················label={`${profileData?.currency?.currency_code}·${payload.reward}`}⏎··················style={styles.value}⏎···············`"
prettier/prettier
|
| 411 |
<Regular label={`${profileData?.currency?.currency_code} ${payload.reward}`} style={styles.value} /> |
| 412 |
</View> |
| 413 |
|
| Error |
Row 414, Column 29: "Replace `·...styles.infoContainer,·marginTop:·mvs(12)·` with `...styles.infoContainer,·marginTop:·mvs(12)`"
prettier/prettier
|
| 414 |
<View style={{ ...styles.infoContainer, marginTop: mvs(12) }}> |
| 415 |
<Regular label="Taketo fee" style={styles.label} /> |
| 416 |
<Regular |
| 417 |
label={`${profileData?.currency?.currency_code} ${orderTaxes?.taketo_fee}`} |
| 418 |
style={styles.value} |
| 419 |
/> |
| 420 |
</View> |
| 421 |
|
| Error |
Row 422, Column 29: "Replace `·...styles.infoContainer,·marginTop:·mvs(12)·` with `...styles.infoContainer,·marginTop:·mvs(12)`"
prettier/prettier
|
| 422 |
<View style={{ ...styles.infoContainer, marginTop: mvs(12) }}> |
| 423 |
<Regular label="Payment Processing" style={styles.label} /> |
| 424 |
<Regular |
| 425 |
label={`${profileData?.currency?.currency_code} ${orderTaxes?.processing_fee}`} |
| 426 |
style={styles.value} |
| 427 |
/> |
| 428 |
</View> |
| 429 |
|
| Warning |
Row 430, Column 15: "Empty components are self-closing"
react/self-closing-comp
|
| 430 |
<View style={styles.line}></View> |
| 431 |
|
| Error |
Row 432, Column 29: "Replace `·...styles.infoContainer,·marginTop:·mvs(11)·` with `...styles.infoContainer,·marginTop:·mvs(11)`"
prettier/prettier
|
| 432 |
<View style={{ ...styles.infoContainer, marginTop: mvs(11) }}> |
| 433 |
<Regular |
| 434 |
label="Total" |
| 435 |
style={{ |
| 436 |
...styles.label, |
| 437 |
color: colors.primary, |
| 438 |
fontSize: mvs(15), |
| 439 |
}} |
| 440 |
/> |
| 441 |
<Regular |
| Error |
Row 442, Column 70: "Insert `⏎····················`"
prettier/prettier
|
| 442 |
label={`${profileData?.currency?.currency_code} ${(parseFloat(payload?.productPrice) + |
| 443 |
parseFloat(payload?.reward) + |
| 444 |
parseFloat(orderTaxes?.taketo_fee) + |
| Error |
Row 445, Column 59: "Delete `).toFixed(2)`"
prettier/prettier
|
| 445 |
parseFloat(orderTaxes?.processing_fee)).toFixed(2) |
| Error |
Row 446, Column 19: "Replace `··` with `).toFixed(2)`"
prettier/prettier
|
| 446 |
}`} |
| 447 |
style={{ |
| 448 |
...styles.value, |
| 449 |
color: colors.primary, |
| 450 |
fontSize: mvs(15), |
| 451 |
}} |
| 452 |
/> |
| 453 |
</View> |
| 454 |
</View> |
| 455 |
</View> |
| 456 |
</View> |
| 457 |
|
| 458 |
<View style={styles.button}> |
| 459 |
<Buttons.ButtonPrimary |
| 460 |
onClick={onCreate} |
| 461 |
loading={loading} |
| 462 |
loaderColor={colors.white} |
| 463 |
title="Submit Order" |
| 464 |
/> |
| 465 |
</View> |
| 466 |
</ScrollView> |
| 467 |
<CongratsModal |
| 468 |
{...props} |
| 469 |
productName={payload.productName} |
| 470 |
image={payload.images[0]?.uri} |
| 471 |
visible={congratsModal} |
| 472 |
onClose={() => { |
| 473 |
props.navigation.navigate('main'); |
| 474 |
}} |
| 475 |
onPress={() => { |
| 476 |
props.navigation.navigate('main'); |
| 477 |
}} |
| 478 |
/> |
| Error |
Row 479, Column 21: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎········translucent⏎········activeStatusBarStyle={'light-content'}⏎········inactiveStatusBarBackgroundColor={colors.primary}⏎········ref={alertRef}⏎·····`"
prettier/prettier
|
| 479 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 480 |
</View> |
| 481 |
); |
| 482 |
}; |
| 483 |
|
| 484 |
const mapStateToProps = state => { |
| 485 |
return { |
| 486 |
profileData: state.auth.userInfo?.profile || {}, |
| 487 |
countryList: state.common.countriesList || [], |
| 488 |
}; |
| 489 |
}; |
| 490 |
|
| 491 |
const mapDispatchToProps = dispatch => ({ |
| Error |
Row 492, Column 46: "Insert `⏎···`"
prettier/prettier
|
| 492 |
createOrder: (data, isReOrder, endpoint) => dispatch(TAKE_TO_ACTIONS.createOrder(data, isReOrder, endpoint)), |
| 493 |
activeCountryList: countryList => |
| 494 |
dispatch(TAKE_TO_ACTIONS.activeCountryList(countryList)), |
| 495 |
}); |
| 496 |
export default connect( |
| 497 |
mapStateToProps, |
| 498 |
mapDispatchToProps, |
| 499 |
)(DetailsConfirmation); |
| 500 |
|
| 501 |
const styles = StyleSheet.create({ |
| 502 |
mainContainer: { |
| 503 |
flex: 1, |
| 504 |
backgroundColor: colors.white, |
| 505 |
}, |
| 506 |
header: { |
| 507 |
backgroundColor: colors.white, |
| 508 |
}, |
| 509 |
container: { |
| 510 |
flex: 1, |
| 511 |
}, |
| 512 |
productMainContainer: { |
| 513 |
paddingBottom: mvs(17), |
| 514 |
backgroundColor: colors.white, |
| 515 |
borderBottomLeftRadius: mvs(20), |
| 516 |
borderBottomRightRadius: mvs(20), |
| 517 |
}, |
| 518 |
productContainer: { |
| 519 |
paddingHorizontal: mvs(22), |
| 520 |
}, |
| 521 |
CONTAINER: { |
| 522 |
flex: 1, |
| 523 |
flexDirection: 'row', |
| 524 |
marginTop: mvs(30), |
| 525 |
}, |
| 526 |
IMAGE_CONTAINER: { |
| 527 |
borderRadius: mvs(10), |
| 528 |
height: mvs(125), |
| 529 |
width: mvs(104), |
| 530 |
backgroundColor: colors.white, |
| 531 |
overflow: 'hidden', |
| 532 |
borderWidth: StyleSheet.hairlineWidth, |
| 533 |
borderColor: colors.price_border, |
| 534 |
}, |
| 535 |
IMAGE: { |
| 536 |
height: '100%', |
| 537 |
width: '100%', |
| 538 |
borderRadius: 20, |
| 539 |
}, |
| 540 |
TITLE: { |
| 541 |
fontSize: mvs(18), |
| 542 |
color: colors.headerTitle, |
| 543 |
}, |
| 544 |
DESCRIPTION_CONTAINER: { |
| 545 |
marginLeft: mvs(9), |
| 546 |
flex: 1, |
| 547 |
width: mvs(146), |
| 548 |
}, |
| 549 |
CARD_CONTENT_LABLE: { |
| 550 |
fontSize: mvs(12), |
| 551 |
color: colors.headerTitle, |
| 552 |
}, |
| 553 |
PRICE_CONTAINER: { |
| 554 |
borderColor: colors.price_border, |
| 555 |
borderTopWidth: 1, |
| 556 |
borderBottomWidth: 1, |
| 557 |
flexDirection: 'row', |
| 558 |
justifyContent: 'space-between', |
| 559 |
paddingVertical: mvs(4), |
| 560 |
marginTop: mvs(9), |
| 561 |
}, |
| 562 |
PENDING_REWARD_CONTAINER: { |
| 563 |
marginTop: mvs(13), |
| 564 |
flexDirection: 'row', |
| 565 |
justifyContent: 'space-between', |
| 566 |
}, |
| 567 |
BUTTON_CONTAINER: { |
| 568 |
marginTop: mvs(11), |
| 569 |
alignItems: 'center', |
| 570 |
flexDirection: 'row', |
| 571 |
justifyContent: 'space-between', |
| 572 |
}, |
| 573 |
TODAY: { |
| 574 |
fontSize: mvs(12), |
| 575 |
color: colors.pink, |
| 576 |
}, |
| 577 |
MAKE_OFFER: { |
| 578 |
width: mvs(73), |
| 579 |
height: mvs(31), |
| 580 |
backgroundColor: colors.green, |
| 581 |
}, |
| 582 |
LOCATION_DESTINATION: { |
| 583 |
flexDirection: 'row', |
| 584 |
justifyContent: 'space-between', |
| 585 |
marginTop: mvs(14), |
| 586 |
height: mvs(55), |
| 587 |
paddingRight: mvs(134), |
| 588 |
}, |
| 589 |
SUB_LOCATION_DESTINATION: { |
| 590 |
justifyContent: 'space-between', |
| 591 |
alignItems: 'center', |
| 592 |
width: '100%', |
| 593 |
}, |
| 594 |
USER_IMAGE_CONTAINER: { |
| 595 |
borderRadius: mvs(10), |
| 596 |
}, |
| 597 |
SUB_USER_IMAGE_CONTAINER: { |
| 598 |
flex: 1, |
| 599 |
justifyContent: 'space-between', |
| 600 |
alignItems: 'center', |
| 601 |
}, |
| 602 |
USER_IMAGE: { |
| 603 |
height: mvs(37), |
| 604 |
width: mvs(37), |
| 605 |
borderRadius: mvs(10), |
| 606 |
backgroundColor: colors.secondary, |
| 607 |
}, |
| 608 |
rewardContainer: { |
| 609 |
height: mvs(58), |
| 610 |
width: '100%', |
| 611 |
borderRadius: mvs(10), |
| 612 |
backgroundColor: colors.green, |
| 613 |
marginTop: mvs(20), |
| 614 |
paddingHorizontal: mvs(11), |
| 615 |
flexDirection: 'row', |
| 616 |
alignItems: 'center', |
| 617 |
justifyContent: 'space-between', |
| 618 |
}, |
| 619 |
container1: { |
| 620 |
paddingHorizontal: mvs(22), |
| 621 |
}, |
| 622 |
infoContainer: { |
| 623 |
width: '100%', |
| 624 |
flexDirection: 'row', |
| 625 |
//borderWidth : 1, |
| 626 |
justifyContent: 'space-between', |
| 627 |
}, |
| 628 |
label: { |
| 629 |
fontSize: mvs(13), |
| 630 |
color: colors.label, |
| 631 |
}, |
| 632 |
value: { |
| 633 |
fontSize: mvs(13), |
| 634 |
color: colors.headerTitle, |
| 635 |
}, |
| 636 |
line: { |
| 637 |
width: '100%', |
| 638 |
borderBottomWidth: mvs(0.5), |
| 639 |
borderColor: colors.horizontalLine, |
| 640 |
marginTop: mvs(11), |
| 641 |
}, |
| 642 |
moreInfoContainer: { |
| 643 |
backgroundColor: colors.white, |
| 644 |
paddingBottom: mvs(22), |
| 645 |
borderBottomWidth: mvs(0.5), |
| 646 |
borderColor: colors.horizontalLine, |
| 647 |
}, |
| 648 |
button: { |
| 649 |
width: '100%', |
| 650 |
paddingHorizontal: mvs(22), |
| 651 |
marginTop: mvs(30), |
| 652 |
marginBottom: mvs(40), |
| 653 |
}, |
| 654 |
paymentMethod: { |
| 655 |
marginTop: mvs(15), |
| 656 |
paddingHorizontal: mvs(22), |
| 657 |
}, |
| 658 |
radioContainer: { |
| 659 |
height: mvs(38), |
| 660 |
marginTop: mvs(10), |
| 661 |
width: '100%', |
| 662 |
borderRadius: mvs(10), |
| 663 |
backgroundColor: colors.secondary, |
| 664 |
flexDirection: 'row', |
| 665 |
paddingHorizontal: mvs(10), |
| 666 |
alignItems: 'center', |
| 667 |
}, |
| 668 |
radioOuter: { |
| 669 |
height: mvs(15), |
| 670 |
width: mvs(15), |
| 671 |
borderRadius: mvs(15 / 2), |
| 672 |
backgroundColor: colors.white, |
| 673 |
justifyContent: 'center', |
| 674 |
alignItems: 'center', |
| 675 |
}, |
| 676 |
radioInner: { |
| 677 |
height: mvs(7), |
| 678 |
width: mvs(7), |
| 679 |
borderRadius: mvs(7 / 2), |
| 680 |
backgroundColor: colors.doted, |
| 681 |
}, |
| 682 |
priceContainer: { |
| 683 |
height: mvs(38), |
| 684 |
width: '25%', |
| 685 |
justifyContent: 'center', |
| 686 |
alignItems: 'center', |
| 687 |
borderRadius: mvs(10), |
| 688 |
backgroundColor: colors.primary, |
| 689 |
}, |
| 690 |
userContainer: { |
| 691 |
height: '100%', |
| 692 |
position: 'absolute', |
| 693 |
right: 0, |
| 694 |
justifyContent: 'space-between', |
| 695 |
}, |
| 696 |
summaryContainer: { |
| 697 |
borderWidth: 1, |
| 698 |
marginTop: mvs(30), |
| 699 |
paddingHorizontal: mvs(10), |
| Error |
Row 700, Column 5: "Duplicate key 'borderWidth'."
no-dupe-keys
|
| 700 |
borderWidth: mvs(0.5), |
| 701 |
borderColor: colors.doted, |
| 702 |
borderRadius: mvs(10), |
| 703 |
}, |
| 704 |
}); |
| 705 |
|
|
|
|
/src/screens/orders/highest-paid-destinition.js
|
35 problems (23 errors, 12 warnings)
|
| Severity |
Rule |
| Warning |
Row 1, Column 8: "'services' is defined but never used."
no-unused-vars
|
| Error |
Row 5, Column 9: "Replace `·FlatList,·ScrollView,·StyleSheet,·View,·ActivityIndicator·` with `⏎··FlatList,⏎··ScrollView,⏎··StyleSheet,⏎··View,⏎··ActivityIndicator,⏎`"
prettier/prettier
|
| Warning |
Row 5, Column 20: "'ScrollView' is defined but never used."
no-unused-vars
|
| Error |
Row 6, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 12, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| Error |
Row 15, Column 10: "Replace `·fetchHeighPaidOrdersList,·heigh_paid_destinations·}·=·props` with `fetchHeighPaidOrdersList,·heigh_paid_destinations}·=·props;`"
prettier/prettier
|
| Warning |
Row 15, Column 70: "Missing semicolon."
semi
|
| Error |
Row 18, Column 86: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 31, Column 21: "Replace `"data:::",·heigh_paid_destinations)` with `'data:::',·heigh_paid_destinations);`"
prettier/prettier
|
| Warning |
Row 31, Column 21: "Strings must use singlequote."
quotes
|
| Warning |
Row 31, Column 56: "Missing semicolon."
semi
|
| Warning |
Row 34, Column 9: "Unexpected alert."
no-alert
|
| Error |
Row 36, Column 10: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 38, Column 6: "React Hook React.useEffect has missing dependencies: 'fetchHeighPaidOrdersList' and 'heigh_paid_destinations'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 40, Column 1: "Delete `⏎`"
prettier/prettier
|
| Warning |
Row 43, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 43, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Error |
Row 44, Column 16: "Replace `·{...props}·title="Heigh·paid·destinations"·allowBackBtn·bellIcon` with `⏎··········{...props}⏎··········title="Heigh·paid·destinations"⏎··········allowBackBtn⏎··········bellIcon⏎·······`"
prettier/prettier
|
| Warning |
Row 45, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 45, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| Warning |
Row 52, Column 18: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 52, Column 19: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Error |
Row 53, Column 14: "Replace `·{...props}·title="Heigh·paid·destinations"·allowBackBtn·bellIcon` with `⏎········{...props}⏎········title="Heigh·paid·destinations"⏎········allowBackBtn⏎········bellIcon⏎·····`"
prettier/prettier
|
| Error |
Row 54, Column 21: "Replace `·paddingHorizontal:·mvs(22)·` with `paddingHorizontal:·mvs(22)`"
prettier/prettier
|
| Error |
Row 57, Column 49: "Insert `·`"
prettier/prettier
|
| Error |
Row 61, Column 33: "Replace `·paddingHorizontal:·mvs(22)·` with `paddingHorizontal:·mvs(22)`"
prettier/prettier
|
| Error |
Row 62, Column 23: "Replace `·item,·index·` with `item,·index`"
prettier/prettier
|
| Error |
Row 68, Column 31: "Delete `·`"
prettier/prettier
|
| Error |
Row 70, Column 12: "Insert `;`"
prettier/prettier
|
| Warning |
Row 70, Column 12: "Missing semicolon."
semi
|
| Error |
Row 112, Column 77: "Insert `,`"
prettier/prettier
|
| Warning |
Row 112, Column 77: "Missing trailing comma."
comma-dangle
|
| Error |
Row 116, Column 34: "Delete `⏎···`"
prettier/prettier
|
| Error |
Row 120, Column 24: "Replace `mapStateToProps,·mapDispatchToProps` with `⏎··mapStateToProps,⏎··mapDispatchToProps,⏎`"
prettier/prettier
|
| Warning |
Row 122, Column 7: "'styles' is assigned a value but never used."
no-unused-vars
|
| Line |
Source |
| Warning |
Row 1, Column 8: "'services' is defined but never used."
no-unused-vars
|
| 1 |
import services from '@khan_ahmad786/common/api/services'; |
| 2 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 3 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 4 |
import React from 'react'; |
| Error |
Row 5, Column 9: "Replace `·FlatList,·ScrollView,·StyleSheet,·View,·ActivityIndicator·` with `⏎··FlatList,⏎··ScrollView,⏎··StyleSheet,⏎··View,⏎··ActivityIndicator,⏎`"
prettier/prettier
|
| Warning |
Row 5, Column 20: "'ScrollView' is defined but never used."
no-unused-vars
|
| 5 |
import { FlatList, ScrollView, StyleSheet, View, ActivityIndicator } from 'react-native'; |
| Error |
Row 6, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 6 |
import { connect } from 'react-redux'; |
| 7 |
import HighestDestinationCard from '../../components/molecules/destination-card/highest-paid-destination-card'; |
| 8 |
import Header from '../../components/molecules/header/header-1x'; |
| 9 |
import InternationalOrderDateFilterModal from '../../components/molecules/modals/international-order-date-filter-modal'; |
| 10 |
import OrderTypeHeader from '../../components/molecules/order_card/order-type-header'; |
| 11 |
import colors from '../../config/colors'; |
| Error |
Row 12, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| 12 |
import { mvs, width } from '../../config/metrices'; |
| 13 |
|
| 14 |
const HighestPaidDestinations = props => { |
| Error |
Row 15, Column 10: "Replace `·fetchHeighPaidOrdersList,·heigh_paid_destinations·}·=·props` with `fetchHeighPaidOrdersList,·heigh_paid_destinations}·=·props;`"
prettier/prettier
|
| Warning |
Row 15, Column 70: "Missing semicolon."
semi
|
| 15 |
const { fetchHeighPaidOrdersList, heigh_paid_destinations } = props |
| 16 |
const [openFilter, setOpenFilter] = React.useState(false); |
| 17 |
const [loading, setLoading] = React.useState(false); |
| Error |
Row 18, Column 86: "Delete `⏎`"
prettier/prettier
|
| 18 |
//const [heigh_paid_destinations, set_heigh_paid_destinations] = React.useState([]) |
| 19 |
|
| 20 |
|
| 21 |
React.useEffect(() => { |
| 22 |
(async () => { |
| 23 |
// setLoading(true); |
| 24 |
// const request = await client.get(`${services.order.heigh_paid_destinations}`); |
| 25 |
// set_heigh_paid_destinations(request?.data?.data) |
| 26 |
// setLoading(false); |
| 27 |
// console.log("res::",request?.data?.data) |
| 28 |
try { |
| 29 |
setLoading(true); |
| 30 |
await fetchHeighPaidOrdersList(); |
| Error |
Row 31, Column 21: "Replace `"data:::",·heigh_paid_destinations)` with `'data:::',·heigh_paid_destinations);`"
prettier/prettier
|
| Warning |
Row 31, Column 21: "Strings must use singlequote."
quotes
|
| Warning |
Row 31, Column 56: "Missing semicolon."
semi
|
| 31 |
console.log("data:::", heigh_paid_destinations) |
| 32 |
setLoading(false); |
| 33 |
} catch (error) { |
| Warning |
Row 34, Column 9: "Unexpected alert."
no-alert
|
| 34 |
alert(UI_API._returnError(error)); |
| 35 |
} |
| Error |
Row 36, Column 10: "Delete `⏎`"
prettier/prettier
|
| 36 |
})(); |
| 37 |
|
| Error |
Row 38, Column 6: "React Hook React.useEffect has missing dependencies: 'fetchHeighPaidOrdersList' and 'heigh_paid_destinations'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| 38 |
}, []); |
| 39 |
|
| Error |
Row 40, Column 1: "Delete `⏎`"
prettier/prettier
|
| 40 |
|
| 41 |
if (loading) { |
| 42 |
return ( |
| Warning |
Row 43, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 43, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 43 |
<View style={{ flex: 1, backgroundColor: colors.white }}> |
| Error |
Row 44, Column 16: "Replace `·{...props}·title="Heigh·paid·destinations"·allowBackBtn·bellIcon` with `⏎··········{...props}⏎··········title="Heigh·paid·destinations"⏎··········allowBackBtn⏎··········bellIcon⏎·······`"
prettier/prettier
|
| 44 |
<Header {...props} title="Heigh paid destinations" allowBackBtn bellIcon /> |
| Warning |
Row 45, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 45, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| 45 |
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> |
| 46 |
<ActivityIndicator size="small" color={colors.primary} /> |
| 47 |
</View> |
| 48 |
</View> |
| 49 |
); |
| 50 |
} |
| 51 |
return ( |
| Warning |
Row 52, Column 18: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 52, Column 19: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 52 |
<View style={{ flex: 1, backgroundColor: colors.white }}> |
| Error |
Row 53, Column 14: "Replace `·{...props}·title="Heigh·paid·destinations"·allowBackBtn·bellIcon` with `⏎········{...props}⏎········title="Heigh·paid·destinations"⏎········allowBackBtn⏎········bellIcon⏎·····`"
prettier/prettier
|
| 53 |
<Header {...props} title="Heigh paid destinations" allowBackBtn bellIcon /> |
| Error |
Row 54, Column 21: "Replace `·paddingHorizontal:·mvs(22)·` with `paddingHorizontal:·mvs(22)`"
prettier/prettier
|
| 54 |
<View style={{ paddingHorizontal: mvs(22) }}> |
| 55 |
<OrderTypeHeader title="Highest Paid Destinations" seeMore={false} /> |
| 56 |
</View> |
| Error |
Row 57, Column 49: "Insert `·`"
prettier/prettier
|
| 57 |
{console.log('heigh_paid_destinations:::',heigh_paid_destinations)} |
| 58 |
<FlatList |
| 59 |
data={heigh_paid_destinations} |
| 60 |
keyExtractor={(item, index) => index.toString()} |
| Error |
Row 61, Column 33: "Replace `·paddingHorizontal:·mvs(22)·` with `paddingHorizontal:·mvs(22)`"
prettier/prettier
|
| 61 |
contentContainerStyle={{ paddingHorizontal: mvs(22) }} |
| Error |
Row 62, Column 23: "Replace `·item,·index·` with `item,·index`"
prettier/prettier
|
| 62 |
renderItem={({ item, index }) => { |
| 63 |
return ( |
| 64 |
<HighestDestinationCard |
| 65 |
{...props} |
| 66 |
key={index} |
| 67 |
item={item} |
| Error |
Row 68, Column 31: "Delete `·`"
prettier/prettier
|
| 68 |
onClick={() => { }} |
| 69 |
/> |
| Error |
Row 70, Column 12: "Insert `;`"
prettier/prettier
|
| Warning |
Row 70, Column 12: "Missing semicolon."
semi
|
| 70 |
) |
| 71 |
}} |
| 72 |
/> |
| 73 |
|
| 74 |
{/* <ScrollView |
| 75 |
showsVerticalScrollIndicator={false} |
| 76 |
contentContainerStyle={{paddingBottom: mvs(10)}}> |
| 77 |
<View style={{flex: 1}}> |
| 78 |
<View style={{paddingHorizontal: mvs(22)}}> |
| 79 |
<OrderTypeHeader title="Highest Paid Destinations" seeMore={false} /> |
| 80 |
<ScrollView> |
| 81 |
{Array(20) |
| 82 |
.fill('') |
| 83 |
.map((ele, index) => ( |
| 84 |
<HighestDestinationCard |
| 85 |
{...props} |
| 86 |
key={index} |
| 87 |
item={ele} |
| 88 |
onClick={() => {}} |
| 89 |
/> |
| 90 |
))} |
| 91 |
</ScrollView> |
| 92 |
</View> |
| 93 |
</View> |
| 94 |
</ScrollView> */} |
| 95 |
<InternationalOrderDateFilterModal |
| 96 |
onApply={() => { |
| 97 |
setOpenFilter(false); |
| 98 |
props.navigation.navigate('internationaldelivery', { |
| 99 |
isLocalOrder: false, |
| 100 |
}); |
| 101 |
}} |
| 102 |
visible={openFilter} |
| 103 |
onClose={setOpenFilter} |
| 104 |
{...props} |
| 105 |
/> |
| 106 |
</View> |
| 107 |
); |
| 108 |
}; |
| 109 |
|
| 110 |
//export default HighestPaidDestinations; |
| 111 |
const mapStateToProps = state => ({ |
| Error |
Row 112, Column 77: "Insert `,`"
prettier/prettier
|
| Warning |
Row 112, Column 77: "Missing trailing comma."
comma-dangle
|
| 112 |
heigh_paid_destinations: state.common_orders_list?.heigh_paid_orders?.data |
| 113 |
}); |
| 114 |
|
| 115 |
const mapDispatchToProps = { |
| Error |
Row 116, Column 34: "Delete `⏎···`"
prettier/prettier
|
| 116 |
fetchHeighPaidOrdersList: () => |
| 117 |
TAKE_TO_ACTIONS.fetchHeighPaidOrdersList(), |
| 118 |
}; |
| 119 |
|
| Error |
Row 120, Column 24: "Replace `mapStateToProps,·mapDispatchToProps` with `⏎··mapStateToProps,⏎··mapDispatchToProps,⏎`"
prettier/prettier
|
| 120 |
export default connect(mapStateToProps, mapDispatchToProps)(HighestPaidDestinations); |
| 121 |
|
| Warning |
Row 122, Column 7: "'styles' is assigned a value but never used."
no-unused-vars
|
| 122 |
const styles = StyleSheet.create({ |
| 123 |
SCROLL_CONTAINER: { |
| 124 |
paddingHorizontal: mvs(22), |
| 125 |
flexGrow: 1, |
| 126 |
}, |
| 127 |
RELEVENT_ORDER: { |
| 128 |
paddingBottom: mvs(22), |
| 129 |
marginBottom: mvs(25), |
| 130 |
width: width, |
| 131 |
alignSelf: 'center', |
| 132 |
}, |
| 133 |
PAGINATION: { |
| 134 |
bottom: mvs(0), |
| 135 |
}, |
| 136 |
}); |
| 137 |
|
|
|
|
/src/screens/orders/international.js
|
73 problems (54 errors, 19 warnings)
|
| Severity |
Rule |
| Error |
Row 10, Column 19: "Insert `,`"
prettier/prettier
|
| Warning |
Row 10, Column 19: "Missing trailing comma."
comma-dangle
|
| Error |
Row 12, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 19, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| Warning |
Row 26, Column 5: "'route' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 29, Column 16: "Insert `,`"
prettier/prettier
|
| Warning |
Row 29, Column 16: "Missing trailing comma."
comma-dangle
|
| Error |
Row 33, Column 52: "Insert `;`"
prettier/prettier
|
| Warning |
Row 33, Column 52: "Missing semicolon."
semi
|
| Error |
Row 37, Column 29: "Replace `·layoutMeasurement,·contentOffset,·contentSize·` with `layoutMeasurement,·contentOffset,·contentSize`"
prettier/prettier
|
| Error |
Row 39, Column 12: "Insert `(⏎······`"
prettier/prettier
|
| Error |
Row 40, Column 43: "Insert `⏎····)`"
prettier/prettier
|
| Warning |
Row 53, Column 30: "'setLoading' is already declared in the upper scope."
no-shadow
|
| Error |
Row 62, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 64, Column 38: "Replace `⏎········'error',⏎········UI_API._returnError(error),⏎······` with `'error',·UI_API._returnError(error)`"
prettier/prettier
|
| Error |
Row 74, Column 6: "React Hook React.useEffect has a missing dependency: 'onPagination'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 76, Column 1: "Delete `⏎`"
prettier/prettier
|
| Warning |
Row 79, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 79, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 81, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 81, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| Warning |
Row 88, Column 18: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 88, Column 19: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Error |
Row 91, Column 21: "Replace `·nativeEvent·` with `nativeEvent`"
prettier/prettier
|
| Error |
Row 93, Column 41: "Insert `;`"
prettier/prettier
|
| Warning |
Row 93, Column 41: "Missing semicolon."
semi
|
| Error |
Row 98, Column 33: "Replace `·paddingBottom:·mvs(10)·` with `paddingBottom:·mvs(10)`"
prettier/prettier
|
| Warning |
Row 99, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 99, Column 23: "Replace `·flex:·1,` with `flex:·1`"
prettier/prettier
|
| Warning |
Row 99, Column 31: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 100, Column 25: "Replace `·paddingHorizontal:·mvs(22)·` with `paddingHorizontal:·mvs(22)`"
prettier/prettier
|
| Error |
Row 105, Column 24: "Replace `⏎··············showsHorizontalScrollIndicator={false}⏎·············` with `·showsHorizontalScrollIndicator={false}`"
prettier/prettier
|
| Error |
Row 109, Column 65: "Insert `⏎··················`"
prettier/prettier
|
| Error |
Row 110, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 111, Column 21: "Insert `··`"
prettier/prettier
|
| Error |
Row 112, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 113, Column 21: "Insert `··`"
prettier/prettier
|
| Error |
Row 114, Column 1: "Replace `····················onClick={()·=>·{·` with `······················onClick={()·=>·{`"
prettier/prettier
|
| Error |
Row 115, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 116, Column 17: "Replace `)` with `··),⏎················`"
prettier/prettier
|
| Error |
Row 119, Column 32: "Replace `·paddingTop:·mvs(27)·` with `paddingTop:·mvs(27)`"
prettier/prettier
|
| Error |
Row 124, Column 29: "Replace `·navigation.navigate('internationaltrip',·{·isFilter:·true,·isOnline:·selected·?·false·:·true·})` with `⏎················navigation.navigate('internationaltrip',·{⏎··················isFilter:·true,⏎··················isOnline:·selected·?·false·:·true,⏎················})⏎··············`"
prettier/prettier
|
| Warning |
Row 133, Column 43: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 139, Column 35: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 149, Column 43: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 155, Column 35: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 162, Column 21: "Replace `·...styles.RELEVENT_ORDER,·backgroundColor:·colors.white,·` with `...styles.RELEVENT_ORDER,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 162, Column 77: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 163, Column 31: "Replace `·(international_orders?.international_orders?.data?.filter(x·=>·x?.order_site).length·<·1)·&&··x?.order_site,⏎··············).length·<·1·&&·(⏎················prettier/prettier
|
| Warning |
Row 163, Column 138: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 164, Column 1: "Replace `··············prettier/prettier
|
| Error |
Row 165, Column 1: "Replace `············` with `················⏎··············)`"
prettier/prettier
|
| Error |
Row 166, Column 31: "Replace `·(international_orders?.international_orders?.data?.filter(x·=>·!x?.order_site).length·<·1)·&&··!x?.order_site,⏎··············).length·<·1·&&·(⏎················prettier/prettier
|
| Warning |
Row 166, Column 139: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 167, Column 1: "Replace `··············prettier/prettier
|
| Error |
Row 168, Column 1: "Replace `············` with `················⏎··············)`"
prettier/prettier
|
| Error |
Row 173, Column 78: "Replace `(x·=>·x?.order_site)` with `⏎······················x·=>·x?.order_site`"
prettier/prettier
|
| Error |
Row 174, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 175, Column 78: "Replace `(x·=>·!x?.order_site)` with `⏎······················x·=>·!x?.order_site`"
prettier/prettier
|
| Error |
Row 176, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 177, Column 16: "Delete `⏎⏎`"
prettier/prettier
|
| Error |
Row 182, Column 29: "Replace `·item,·index·` with `item,·index`"
prettier/prettier
|
| Error |
Row 216, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 217, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 220, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 220, Column 11: "Replace `·⏎··········⏎` with ``"
prettier/prettier
|
| Error |
Row 236, Column 7: "Delete `·`"
prettier/prettier
|
| Error |
Row 237, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 238, Column 1: "Replace `················` with `··········`"
prettier/prettier
|
| Error |
Row 239, Column 9: "Delete `······`"
prettier/prettier
|
| Error |
Row 240, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 241, Column 1: "Replace `········prettier/prettier
|
| Error |
Row 251, Column 39: "Replace `(page)` with `page`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 2 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 3 |
import React from 'react'; |
| 4 |
import { |
| 5 |
ActivityIndicator, |
| 6 |
FlatList, |
| 7 |
ScrollView, |
| 8 |
StyleSheet, |
| 9 |
View, |
| Error |
Row 10, Column 19: "Insert `,`"
prettier/prettier
|
| Warning |
Row 10, Column 19: "Missing trailing comma."
comma-dangle
|
| 10 |
TouchableOpacity |
| 11 |
} from 'react-native'; |
| Error |
Row 12, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 12 |
import { connect } from 'react-redux'; |
| 13 |
import DestinationCard from '../../components/molecules/destination-card/destination-card'; |
| 14 |
import Header from '../../components/molecules/header/header-1x'; |
| 15 |
import InternationalOrderDateFilterModal from '../../components/molecules/modals/international-order-date-filter-modal'; |
| 16 |
import MakeOfferOrderCard from '../../components/molecules/order_card/make-offer-card'; |
| 17 |
import OrderTypeHeader from '../../components/molecules/order_card/order-type-header'; |
| 18 |
import colors from '../../config/colors'; |
| Error |
Row 19, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| 19 |
import { mvs, width } from '../../config/metrices'; |
| 20 |
import Regular from '../../presentation/typography/regular-text'; |
| 21 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 22 |
|
| 23 |
const International = props => { |
| 24 |
const { |
| 25 |
navigation, |
| Warning |
Row 26, Column 5: "'route' is assigned a value but never used."
no-unused-vars
|
| 26 |
route, |
| 27 |
fetchPostedInternationalOrdersList, |
| 28 |
international_orders, |
| Error |
Row 29, Column 16: "Insert `,`"
prettier/prettier
|
| Warning |
Row 29, Column 16: "Missing trailing comma."
comma-dangle
|
| 29 |
profileData |
| 30 |
} = props; |
| 31 |
const [openFilter, setOpenFilter] = React.useState(false); |
| 32 |
const [loading, setLoading] = React.useState(true); |
| Error |
Row 33, Column 52: "Insert `;`"
prettier/prettier
|
| Warning |
Row 33, Column 52: "Missing semicolon."
semi
|
| 33 |
const [selected, setSelected] = React.useState(0) |
| 34 |
const [pageLoading, setPageLoading] = React.useState(false); |
| 35 |
const alertRef = React.useRef(); |
| 36 |
|
| Error |
Row 37, Column 29: "Replace `·layoutMeasurement,·contentOffset,·contentSize·` with `layoutMeasurement,·contentOffset,·contentSize`"
prettier/prettier
|
| 37 |
const isCloseToBottom = ({ layoutMeasurement, contentOffset, contentSize }) => { |
| 38 |
const paddingToBottom = 20; |
| Error |
Row 39, Column 12: "Insert `(⏎······`"
prettier/prettier
|
| 39 |
return layoutMeasurement.height + contentOffset.y >= |
| Error |
Row 40, Column 43: "Insert `⏎····)`"
prettier/prettier
|
| 40 |
contentSize.height - paddingToBottom; |
| 41 |
}; |
| 42 |
// React.useEffect(() => { |
| 43 |
// (async () => { |
| 44 |
// try { |
| 45 |
// setLoading(true); |
| 46 |
// await fetchPostedInternationalOrdersList(); |
| 47 |
// setLoading(false); |
| 48 |
// } catch (error) { |
| 49 |
// alert(UI_API._returnError(error)); |
| 50 |
// } |
| 51 |
// })(); |
| 52 |
// }, [profileData?.currency]); |
| Warning |
Row 53, Column 30: "'setLoading' is already declared in the upper scope."
no-shadow
|
| 53 |
const onPagination = async setLoading => { |
| 54 |
try { |
| 55 |
let page = UI_API._returnPage(international_orders?.international_orders); |
| 56 |
if (!page) { |
| 57 |
return; |
| 58 |
} |
| 59 |
setLoading(true); |
| 60 |
|
| 61 |
await fetchPostedInternationalOrdersList(page); |
| Error |
Row 62, Column 1: "Delete `⏎`"
prettier/prettier
|
| 62 |
|
| 63 |
} catch (error) { |
| Error |
Row 64, Column 38: "Replace `⏎········'error',⏎········UI_API._returnError(error),⏎······` with `'error',·UI_API._returnError(error)`"
prettier/prettier
|
| 64 |
alertRef.current.alertWithType( |
| 65 |
'error', |
| 66 |
UI_API._returnError(error), |
| 67 |
); |
| 68 |
} finally { |
| 69 |
setLoading(false); |
| 70 |
} |
| 71 |
}; |
| 72 |
React.useEffect(() => { |
| 73 |
onPagination(setLoading); |
| Error |
Row 74, Column 6: "React Hook React.useEffect has a missing dependency: 'onPagination'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 74 |
}, [profileData?.currency]); |
| 75 |
|
| Error |
Row 76, Column 1: "Delete `⏎`"
prettier/prettier
|
| 76 |
|
| 77 |
if (loading) { |
| 78 |
return ( |
| Warning |
Row 79, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 79, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 79 |
<View style={{ flex: 1, backgroundColor: colors.white }}> |
| 80 |
<Header {...props} title="international" allowBackBtn bellIcon /> |
| Warning |
Row 81, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 81, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| 81 |
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> |
| 82 |
<ActivityIndicator size="small" color={colors.primary} /> |
| 83 |
</View> |
| 84 |
</View> |
| 85 |
); |
| 86 |
} |
| 87 |
return ( |
| Warning |
Row 88, Column 18: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 88, Column 19: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 88 |
<View style={{ flex: 1, backgroundColor: colors.white }}> |
| 89 |
<Header {...props} title="international" allowBackBtn bellIcon /> |
| 90 |
<ScrollView |
| Error |
Row 91, Column 21: "Replace `·nativeEvent·` with `nativeEvent`"
prettier/prettier
|
| 91 |
onScroll={({ nativeEvent }) => { |
| 92 |
if (isCloseToBottom(nativeEvent)) { |
| Error |
Row 93, Column 41: "Insert `;`"
prettier/prettier
|
| Warning |
Row 93, Column 41: "Missing semicolon."
semi
|
| 93 |
onPagination(setPageLoading) |
| 94 |
} |
| 95 |
}} |
| 96 |
scrollEventThrottle={400} |
| 97 |
showsVerticalScrollIndicator={false} |
| Error |
Row 98, Column 33: "Replace `·paddingBottom:·mvs(10)·` with `paddingBottom:·mvs(10)`"
prettier/prettier
|
| 98 |
contentContainerStyle={{ paddingBottom: mvs(10) }}> |
| Warning |
Row 99, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 99, Column 23: "Replace `·flex:·1,` with `flex:·1`"
prettier/prettier
|
| Warning |
Row 99, Column 31: "Unexpected trailing comma."
comma-dangle
|
| 99 |
<View style={{ flex: 1,}}> |
| Error |
Row 100, Column 25: "Replace `·paddingHorizontal:·mvs(22)·` with `paddingHorizontal:·mvs(22)`"
prettier/prettier
|
| 100 |
<View style={{ paddingHorizontal: mvs(22) }}> |
| 101 |
<OrderTypeHeader |
| 102 |
title="Highest Paid Destinations" |
| 103 |
onPress={() => navigation.navigate('highestpaiddestinations')} |
| 104 |
/> |
| Error |
Row 105, Column 24: "Replace `⏎··············showsHorizontalScrollIndicator={false}⏎·············` with `·showsHorizontalScrollIndicator={false}`"
prettier/prettier
|
| 105 |
<ScrollView |
| 106 |
showsHorizontalScrollIndicator={false} |
| 107 |
horizontal> |
| 108 |
{international_orders && |
| Error |
Row 109, Column 65: "Insert `⏎··················`"
prettier/prettier
|
| 109 |
international_orders?.highPay_destinations?.map((ele, index) => ( |
| Error |
Row 110, Column 1: "Insert `··`"
prettier/prettier
|
| 110 |
<DestinationCard |
| Error |
Row 111, Column 21: "Insert `··`"
prettier/prettier
|
| 111 |
{...props} |
| Error |
Row 112, Column 1: "Insert `··`"
prettier/prettier
|
| 112 |
key={index} |
| Error |
Row 113, Column 21: "Insert `··`"
prettier/prettier
|
| 113 |
item={ele} |
| Error |
Row 114, Column 1: "Replace `····················onClick={()·=>·{·` with `······················onClick={()·=>·{`"
prettier/prettier
|
| 114 |
onClick={() => { }} |
| Error |
Row 115, Column 1: "Insert `··`"
prettier/prettier
|
| 115 |
/> |
| Error |
Row 116, Column 17: "Replace `)` with `··),⏎················`"
prettier/prettier
|
| 116 |
))} |
| 117 |
</ScrollView> |
| 118 |
<OrderTypeHeader |
| Error |
Row 119, Column 32: "Replace `·paddingTop:·mvs(27)·` with `paddingTop:·mvs(27)`"
prettier/prettier
|
| 119 |
containerStyle={{ paddingTop: mvs(27) }} |
| 120 |
title="International Orders" |
| 121 |
isIcon |
| 122 |
isLocal={false} |
| 123 |
filter |
| Error |
Row 124, Column 29: "Replace `·navigation.navigate('internationaltrip',·{·isFilter:·true,·isOnline:·selected·?·false·:·true·})` with `⏎················navigation.navigate('internationaltrip',·{⏎··················isFilter:·true,⏎··················isOnline:·selected·?·false·:·true,⏎················})⏎··············`"
prettier/prettier
|
| 124 |
onPress={() => navigation.navigate('internationaltrip', { isFilter: true, isOnline: selected ? false : true })} |
| 125 |
/> |
| 126 |
</View> |
| 127 |
|
| 128 |
<View style={styles.buttonsContainer}> |
| 129 |
<TouchableOpacity |
| 130 |
onPress={() => setSelected(0)} |
| 131 |
style={{ |
| 132 |
...styles.topButton, |
| Warning |
Row 133, Column 43: "Expected '===' and instead saw '=='."
eqeqeq
|
| 133 |
backgroundColor: selected == 0 ? colors.primary : colors.white, |
| 134 |
}}> |
| 135 |
{/* {selected == 0 ? <Aeroplane /> : <AeroplaneActive />} */} |
| 136 |
<Regular |
| 137 |
label="Online" |
| 138 |
style={{ |
| Warning |
Row 139, Column 35: "Expected '===' and instead saw '=='."
eqeqeq
|
| 139 |
color: selected == 0 ? colors.white : colors.primary, |
| 140 |
marginLeft: mvs(11), |
| 141 |
}} |
| 142 |
/> |
| 143 |
</TouchableOpacity> |
| 144 |
|
| 145 |
<TouchableOpacity |
| 146 |
onPress={() => setSelected(1)} |
| 147 |
style={{ |
| 148 |
...styles.topButton, |
| Warning |
Row 149, Column 43: "Expected '===' and instead saw '=='."
eqeqeq
|
| 149 |
backgroundColor: selected == 1 ? colors.primary : colors.white, |
| 150 |
}}> |
| 151 |
{/* {selected == 1 ? <Car /> : <CarActive />} */} |
| 152 |
<Regular |
| 153 |
label="Physical" |
| 154 |
style={{ |
| Warning |
Row 155, Column 35: "Expected '===' and instead saw '=='."
eqeqeq
|
| 155 |
color: selected == 1 ? colors.white : colors.primary, |
| 156 |
marginLeft: mvs(11), |
| 157 |
}} |
| 158 |
/> |
| 159 |
</TouchableOpacity> |
| 160 |
</View> |
| 161 |
<View |
| Error |
Row 162, Column 21: "Replace `·...styles.RELEVENT_ORDER,·backgroundColor:·colors.white,·` with `...styles.RELEVENT_ORDER,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 162, Column 77: "Unexpected trailing comma."
comma-dangle
|
| 162 |
style={{ ...styles.RELEVENT_ORDER, backgroundColor: colors.white, }}> |
| Error |
Row 163, Column 31: "Replace `·(international_orders?.international_orders?.data?.filter(x·=>·x?.order_site).length·<·1)·&&··x?.order_site,⏎··············).length·<·1·&&·(⏎················prettier/prettier
|
| Warning |
Row 163, Column 138: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 163 |
{selected === 0 && (international_orders?.international_orders?.data?.filter(x => x?.order_site).length < 1) && <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> |
| Error |
Row 164, Column 1: "Replace `··············prettier/prettier
|
| 164 |
<Regular style={{ color: colors.primary }} label={'No Result Found'} /> |
| Error |
Row 165, Column 1: "Replace `············` with `················⏎··············)`"
prettier/prettier
|
| 165 |
</View>} |
| Error |
Row 166, Column 31: "Replace `·(international_orders?.international_orders?.data?.filter(x·=>·!x?.order_site).length·<·1)·&&··!x?.order_site,⏎··············).length·<·1·&&·(⏎················prettier/prettier
|
| Warning |
Row 166, Column 139: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 166 |
{selected === 1 && (international_orders?.international_orders?.data?.filter(x => !x?.order_site).length < 1) && <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> |
| Error |
Row 167, Column 1: "Replace `··············prettier/prettier
|
| 167 |
<Regular style={{ color: colors.primary }} label={'No Result Found'} /> |
| Error |
Row 168, Column 1: "Replace `············` with `················⏎··············)`"
prettier/prettier
|
| 168 |
</View>} |
| 169 |
|
| 170 |
<FlatList |
| 171 |
data={ |
| 172 |
selected === 0 |
| Error |
Row 173, Column 78: "Replace `(x·=>·x?.order_site)` with `⏎······················x·=>·x?.order_site`"
prettier/prettier
|
| 173 |
? international_orders?.international_orders?.data?.filter((x => x?.order_site), |
| Error |
Row 174, Column 1: "Insert `··`"
prettier/prettier
|
| 174 |
) |
| Error |
Row 175, Column 78: "Replace `(x·=>·!x?.order_site)` with `⏎······················x·=>·!x?.order_site`"
prettier/prettier
|
| 175 |
: international_orders?.international_orders?.data?.filter((x => !x?.order_site), |
| Error |
Row 176, Column 1: "Insert `··`"
prettier/prettier
|
| 176 |
) |
| Error |
Row 177, Column 16: "Delete `⏎⏎`"
prettier/prettier
|
| 177 |
} |
| 178 |
|
| 179 |
|
| 180 |
keyExtractor={(item, index) => index.toString()} |
| 181 |
contentContainerStyle={{}} |
| Error |
Row 182, Column 29: "Replace `·item,·index·` with `item,·index`"
prettier/prettier
|
| 182 |
renderItem={({ item, index }) => { |
| 183 |
return ( |
| 184 |
<View |
| 185 |
style={{ |
| 186 |
paddingHorizontal: mvs(22), |
| 187 |
paddingBottom: mvs(2), |
| 188 |
marginBottom: mvs(20), |
| 189 |
}}> |
| 190 |
<MakeOfferOrderCard |
| 191 |
{...props} |
| 192 |
{...item} |
| 193 |
order_data={item} |
| 194 |
{...UI_API._returnOrderProps(item)} |
| 195 |
// local={!item.is_international} |
| 196 |
// urgent_delivery={item?.is_urgent} |
| 197 |
// time={item.order_created_at} |
| 198 |
// title={`${item.order_title}`} |
| 199 |
// website={`${item.order_store_url}`} |
| 200 |
// price={item.order_price} |
| 201 |
// store_img={item.order_image} |
| 202 |
// reward={item.order_reward_price} |
| 203 |
// user_name={item.order_by.user_name} |
| 204 |
// user_img={item.order_by.user_image} |
| 205 |
// order_from={item.order_from} |
| 206 |
// order_to={item.order_to} |
| 207 |
// order_from_flag={item.order_from_flag} |
| 208 |
// order_to_flag={item.order_to_flag} |
| 209 |
style={{ |
| 210 |
width: width - mvs(22) * 2, |
| 211 |
}} |
| 212 |
/> |
| 213 |
</View> |
| 214 |
); |
| 215 |
}} |
| Error |
Row 216, Column 13: "Insert `··`"
prettier/prettier
|
| 216 |
// onEndReachedThreshold={0.5} |
| Error |
Row 217, Column 1: "Insert `··`"
prettier/prettier
|
| 217 |
// onEndReached={() => onPagination(setPageLoading)} |
| 218 |
/> |
| 219 |
{/* <Pagination list={international_orders.data ? international_orders.data.international_orders : []} scrollX={scrollX4} style={styles.PAGINATION} /> */} |
| Warning |
Row 220, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 220, Column 11: "Replace `·⏎··········⏎` with ``"
prettier/prettier
|
| 220 |
|
| 221 |
</View> |
| 222 |
|
| 223 |
</View> |
| 224 |
</ScrollView> |
| 225 |
<InternationalOrderDateFilterModal |
| 226 |
onApply={() => { |
| 227 |
setOpenFilter(false); |
| 228 |
props.navigation.navigate('internationaldelivery', { |
| 229 |
isLocalOrder: false, |
| 230 |
}); |
| 231 |
}} |
| 232 |
visible={openFilter} |
| 233 |
onClose={setOpenFilter} |
| 234 |
{...props} |
| 235 |
/> |
| Error |
Row 236, Column 7: "Delete `·`"
prettier/prettier
|
| 236 |
{pageLoading && ( |
| Error |
Row 237, Column 1: "Delete `······`"
prettier/prettier
|
| 237 |
<View style={styles.pageLoader}> |
| Error |
Row 238, Column 1: "Replace `················` with `··········`"
prettier/prettier
|
| 238 |
<ActivityIndicator size="small" color={colors.primary} /> |
| Error |
Row 239, Column 9: "Delete `······`"
prettier/prettier
|
| 239 |
</View> |
| Error |
Row 240, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 240 |
)} |
| Error |
Row 241, Column 1: "Replace `········prettier/prettier
|
| 241 |
<DropdownAlert inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 242 |
</View> |
| 243 |
); |
| 244 |
}; |
| 245 |
const mapStateToProps = state => ({ |
| 246 |
international_orders: state.common_orders_list?.international_orders, |
| 247 |
profileData: state.auth.userInfo?.profile || {}, |
| 248 |
}); |
| 249 |
|
| 250 |
const mapDispatchToProps = { |
| Error |
Row 251, Column 39: "Replace `(page)` with `page`"
prettier/prettier
|
| 251 |
fetchPostedInternationalOrdersList: (page) => |
| 252 |
TAKE_TO_ACTIONS.fetchPostedInternationalOrdersList(page), |
| 253 |
}; |
| 254 |
|
| 255 |
export default connect(mapStateToProps, mapDispatchToProps)(International); |
| 256 |
|
| 257 |
const styles = StyleSheet.create({ |
| 258 |
SCROLL_CONTAINER: { |
| 259 |
paddingHorizontal: mvs(22), |
| 260 |
flexGrow: 1, |
| 261 |
}, |
| 262 |
RELEVENT_ORDER: { |
| 263 |
paddingBottom: mvs(22), |
| 264 |
marginBottom: mvs(25), |
| 265 |
width: width, |
| 266 |
alignSelf: 'center', |
| 267 |
}, |
| 268 |
PAGINATION: { |
| 269 |
bottom: mvs(0), |
| 270 |
}, |
| 271 |
buttonsContainer: { |
| 272 |
//height: mvs(44), |
| 273 |
paddingHorizontal: mvs(22), |
| 274 |
width: '100%', |
| 275 |
//borderWidth : 1, |
| 276 |
// marginTop: mvs(30), |
| 277 |
marginBottom: mvs(2), |
| 278 |
flexDirection: 'row', |
| 279 |
justifyContent: 'space-between', |
| 280 |
paddingBottom: mvs(20), |
| 281 |
}, |
| 282 |
topButton: { |
| 283 |
height: mvs(44), |
| 284 |
width: '48%', |
| 285 |
borderWidth: 1, |
| 286 |
borderRadius: mvs(10), |
| 287 |
justifyContent: 'center', |
| 288 |
alignItems: 'center', |
| 289 |
flexDirection: 'row', |
| 290 |
borderColor: colors.primary, |
| 291 |
}, |
| 292 |
pageLoader: { |
| 293 |
height: mvs(50), |
| 294 |
width: mvs(50), |
| 295 |
borderRadius: mvs(25), |
| 296 |
position: 'absolute', |
| 297 |
bottom: mvs(20), |
| 298 |
alignSelf: 'center', |
| 299 |
justifyContent: 'center', |
| 300 |
alignItems: 'center', |
| 301 |
}, |
| 302 |
}); |
| 303 |
|
|
|
|
/src/screens/orders/local-orders.js
|
73 problems (37 errors, 36 warnings)
|
| Severity |
Rule |
| Warning |
Row 3, Column 8: "'AsyncStorage' is defined but never used."
no-unused-vars
|
| Warning |
Row 16, Column 8: "'LocalOrderFilterModal' is defined but never used."
no-unused-vars
|
| Error |
Row 22, Column 8: "Replace `·DeviceInfo·` with `DeviceInfo`"
prettier/prettier
|
| Error |
Row 24, Column 10: "Replace `navigation,·fetchPostedLocalOrdersList,·local_orders,countriesList,profileData` with `⏎····navigation,⏎····fetchPostedLocalOrdersList,⏎····local_orders,⏎····countriesList,⏎····profileData,⏎··`"
prettier/prettier
|
| Warning |
Row 24, Column 63: "'countriesList' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 32, Column 1: "Delete `⏎`"
prettier/prettier
|
| Warning |
Row 33, Column 30: "'setLoading' is already declared in the upper scope."
no-shadow
|
| Warning |
Row 36, Column 7: "Expected space(s) after "if"."
keyword-spacing
|
| Error |
Row 36, Column 9: "Replace `(!page)` with `·(!page)·`"
prettier/prettier
|
| Error |
Row 37, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 40, Column 22: "Replace `=await··` with `·=·await·`"
prettier/prettier
|
| Warning |
Row 40, Column 22: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 41, Column 5: "Insert `··`"
prettier/prettier
|
| Error |
Row 42, Column 5: "Replace `if(·Object.keys(providers).length·>·0)` with `··if·(Object.keys(providers).length·>·0)·`"
prettier/prettier
|
| Warning |
Row 42, Column 5: "Expected space(s) after "if"."
keyword-spacing
|
| Error |
Row 43, Column 1: "Replace `⏎` with `··`"
prettier/prettier
|
| Error |
Row 45, Column 1: "Replace `······console.log("LOC·::·",location)` with `········console.log('LOC·::·',·location);`"
prettier/prettier
|
| Warning |
Row 45, Column 19: "Strings must use singlequote."
quotes
|
| Warning |
Row 45, Column 38: "Missing semicolon."
semi
|
| Error |
Row 46, Column 1: "Replace `······if(location)` with `········if·(location)·`"
prettier/prettier
|
| Warning |
Row 46, Column 7: "Expected space(s) after "if"."
keyword-spacing
|
| Error |
Row 48, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 49, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 50, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 51, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 52, Column 1: "Replace `······}else` with `········}·else·`"
prettier/prettier
|
| Warning |
Row 52, Column 8: "Expected space(s) before "else"."
keyword-spacing
|
| Warning |
Row 52, Column 8: "Expected space(s) after "else"."
keyword-spacing
|
| Error |
Row 53, Column 1: "Replace `···········await·fetchPostedLocalOrdersList(⏎··········undefined,⏎··········undefined,⏎··········page,⏎········` with `··········await·fetchPostedLocalOrdersList(undefined,·undefined,·page`"
prettier/prettier
|
| Error |
Row 58, Column 1: "Replace `······` with `········`"
prettier/prettier
|
| Error |
Row 59, Column 5: "Replace `}⏎····else` with `··}·else·`"
prettier/prettier
|
| Warning |
Row 60, Column 5: "Expected space(s) after "else"."
keyword-spacing
|
| Error |
Row 61, Column 9: "Replace `·await·fetchPostedLocalOrdersList(⏎··········undefined,⏎··········undefined,⏎··········page,⏎········` with `await·fetchPostedLocalOrdersList(undefined,·undefined,·page`"
prettier/prettier
|
| Error |
Row 66, Column 5: "Replace `}⏎·····` with `··}`"
prettier/prettier
|
| Warning |
Row 67, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 70, Column 38: "Replace `⏎········'error',⏎········UI_API._returnError(error),⏎······` with `'error',·UI_API._returnError(error)`"
prettier/prettier
|
| Error |
Row 74, Column 6: "Replace `finally` with `·finally·`"
prettier/prettier
|
| Warning |
Row 74, Column 6: "Expected space(s) before "finally"."
keyword-spacing
|
| Warning |
Row 74, Column 6: "Expected space(s) after "finally"."
keyword-spacing
|
| Error |
Row 80, Column 6: "React Hook React.useEffect has a missing dependency: 'onPagination'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 81, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 84, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Warning |
Row 86, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 93, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Warning |
Row 96, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 103, Column 20: "Strings must use singlequote."
quotes
|
| Warning |
Row 104, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 109, Column 5: "Expected { after 'else'."
curly
|
| Warning |
Row 111, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Warning |
Row 114, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 121, Column 29: "Replace `·navigation.navigate('localtrip',·{isFilter:·true,isOnline:selected?false:true})` with `⏎················navigation.navigate('localtrip',·{⏎··················isFilter:·true,⏎··················isOnline:·selected·?·false·:·true,⏎················})⏎··············`"
prettier/prettier
|
| Warning |
Row 121, Column 96: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 130, Column 43: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 135, Column 35: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 145, Column 43: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 150, Column 35: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 156, Column 20: "Replace `===0&&(local_orders?.data?.filter(x·=>x?.order_site).length·<·1)·&&··x?.order_site).length·<·1·&&·(⏎··············prettier/prettier
|
| Warning |
Row 156, Column 20: "Operator '===' must be spaced."
space-infix-ops
|
| Warning |
Row 156, Column 24: "Operator '&&' must be spaced."
space-infix-ops
|
| Warning |
Row 156, Column 101: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 157, Column 1: "Replace `············prettier/prettier
|
| Error |
Row 158, Column 1: "Replace `··········` with `··············⏎············)`"
prettier/prettier
|
| Error |
Row 159, Column 20: "Replace `===1&&(local_orders?.data?.filter(x·=>!x?.order_site).length·<·1)·&&··!x?.order_site).length·<·1·&&·(⏎··············prettier/prettier
|
| Warning |
Row 159, Column 20: "Operator '===' must be spaced."
space-infix-ops
|
| Warning |
Row 159, Column 24: "Operator '&&' must be spaced."
space-infix-ops
|
| Warning |
Row 159, Column 102: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 160, Column 1: "Replace `············prettier/prettier
|
| Error |
Row 161, Column 1: "Replace `··········` with `··············⏎············)`"
prettier/prettier
|
| Error |
Row 165, Column 46: "Replace `(x·=>x?.order_site),⏎··················)` with `x·=>·x?.order_site)`"
prettier/prettier
|
| Error |
Row 167, Column 46: "Replace `(x·=>!x?.order_site),⏎··················` with `x·=>·!x?.order_site`"
prettier/prettier
|
| Error |
Row 201, Column 23: "Replace `··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}·/>⏎` with `⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎········/>`"
prettier/prettier
|
| Error |
Row 215, Column 52: "Insert `·`"
prettier/prettier
|
| Error |
Row 216, Column 68: "Insert `·`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 2 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| Warning |
Row 3, Column 8: "'AsyncStorage' is defined but never used."
no-unused-vars
|
| 3 |
import AsyncStorage from '@react-native-async-storage/async-storage'; |
| 4 |
import React from 'react'; |
| 5 |
import { |
| 6 |
ActivityIndicator, |
| 7 |
FlatList, |
| 8 |
StyleSheet, |
| 9 |
View, |
| 10 |
TouchableOpacity, |
| 11 |
} from 'react-native'; |
| 12 |
import {connect} from 'react-redux'; |
| 13 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 14 |
|
| 15 |
import Header from '../../components/molecules/header/header-1x'; |
| Warning |
Row 16, Column 8: "'LocalOrderFilterModal' is defined but never used."
no-unused-vars
|
| 16 |
import LocalOrderFilterModal from '../../components/molecules/modals/local-order-filter-modal'; |
| 17 |
import MakeOfferOrderCard from '../../components/molecules/order_card/make-offer-card'; |
| 18 |
import OrderTypeHeader from '../../components/molecules/order_card/order-type-header'; |
| 19 |
import colors from '../../config/colors'; |
| 20 |
import {mvs, width} from '../../config/metrices'; |
| 21 |
import Regular from '../../presentation/typography/regular-text'; |
| Error |
Row 22, Column 8: "Replace `·DeviceInfo·` with `DeviceInfo`"
prettier/prettier
|
| 22 |
import DeviceInfo from 'react-native-device-info'; |
| 23 |
const LocalOrders = props => { |
| Error |
Row 24, Column 10: "Replace `navigation,·fetchPostedLocalOrdersList,·local_orders,countriesList,profileData` with `⏎····navigation,⏎····fetchPostedLocalOrdersList,⏎····local_orders,⏎····countriesList,⏎····profileData,⏎··`"
prettier/prettier
|
| Warning |
Row 24, Column 63: "'countriesList' is assigned a value but never used."
no-unused-vars
|
| 24 |
const {navigation, fetchPostedLocalOrdersList, local_orders,countriesList,profileData} = props; |
| 25 |
const [pageLoading, setPageLoading] = React.useState(false); |
| 26 |
const [loading, setLoading] = React.useState(true); |
| 27 |
const [selected, setSelected] = React.useState(0); |
| 28 |
const isLocalOrders = true; |
| 29 |
const alertRef = React.useRef(); |
| 30 |
///console.log('local_orders',JSON.stringify(local_orders)); |
| 31 |
|
| Error |
Row 32, Column 1: "Delete `⏎`"
prettier/prettier
|
| 32 |
|
| Warning |
Row 33, Column 30: "'setLoading' is already declared in the upper scope."
no-shadow
|
| 33 |
const onPagination = async setLoading => { |
| 34 |
try { |
| 35 |
let page = UI_API._returnPage(local_orders); |
| Warning |
Row 36, Column 7: "Expected space(s) after "if"."
keyword-spacing
|
| Error |
Row 36, Column 9: "Replace `(!page)` with `·(!page)·`"
prettier/prettier
|
| 36 |
if(!page){ |
| Error |
Row 37, Column 1: "Delete `··`"
prettier/prettier
|
| 37 |
return; |
| 38 |
} |
| 39 |
setLoading(true); |
| Error |
Row 40, Column 22: "Replace `=await··` with `·=·await·`"
prettier/prettier
|
| Warning |
Row 40, Column 22: "Operator '=' must be spaced."
space-infix-ops
|
| 40 |
const providers=await DeviceInfo.getAvailableLocationProviders(); |
| Error |
Row 41, Column 5: "Insert `··`"
prettier/prettier
|
| 41 |
console.log(providers); |
| Error |
Row 42, Column 5: "Replace `if(·Object.keys(providers).length·>·0)` with `··if·(Object.keys(providers).length·>·0)·`"
prettier/prettier
|
| Warning |
Row 42, Column 5: "Expected space(s) after "if"."
keyword-spacing
|
| 42 |
if( Object.keys(providers).length > 0){ |
| Error |
Row 43, Column 1: "Replace `⏎` with `··`"
prettier/prettier
|
| 43 |
|
| 44 |
let location = await UI_API._get_current_location(false); |
| Error |
Row 45, Column 1: "Replace `······console.log("LOC·::·",location)` with `········console.log('LOC·::·',·location);`"
prettier/prettier
|
| Warning |
Row 45, Column 19: "Strings must use singlequote."
quotes
|
| Warning |
Row 45, Column 38: "Missing semicolon."
semi
|
| 45 |
console.log("LOC :: ",location) |
| Error |
Row 46, Column 1: "Replace `······if(location)` with `········if·(location)·`"
prettier/prettier
|
| Warning |
Row 46, Column 7: "Expected space(s) after "if"."
keyword-spacing
|
| 46 |
if(location){ |
| 47 |
await fetchPostedLocalOrdersList( |
| Error |
Row 48, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 48 |
location?.latitude, |
| Error |
Row 49, Column 1: "Insert `··`"
prettier/prettier
|
| 49 |
location?.longitude, |
| Error |
Row 50, Column 11: "Insert `··`"
prettier/prettier
|
| 50 |
page, |
| Error |
Row 51, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 51 |
); |
| Error |
Row 52, Column 1: "Replace `······}else` with `········}·else·`"
prettier/prettier
|
| Warning |
Row 52, Column 8: "Expected space(s) before "else"."
keyword-spacing
|
| Warning |
Row 52, Column 8: "Expected space(s) after "else"."
keyword-spacing
|
| 52 |
}else{ |
| Error |
Row 53, Column 1: "Replace `···········await·fetchPostedLocalOrdersList(⏎··········undefined,⏎··········undefined,⏎··········page,⏎········` with `··········await·fetchPostedLocalOrdersList(undefined,·undefined,·page`"
prettier/prettier
|
| 53 |
await fetchPostedLocalOrdersList( |
| 54 |
undefined, |
| 55 |
undefined, |
| 56 |
page, |
| 57 |
); |
| Error |
Row 58, Column 1: "Replace `······` with `········`"
prettier/prettier
|
| 58 |
} |
| Error |
Row 59, Column 5: "Replace `}⏎····else` with `··}·else·`"
prettier/prettier
|
| 59 |
} |
| Warning |
Row 60, Column 5: "Expected space(s) after "else"."
keyword-spacing
|
| 60 |
else{ |
| Error |
Row 61, Column 9: "Replace `·await·fetchPostedLocalOrdersList(⏎··········undefined,⏎··········undefined,⏎··········page,⏎········` with `await·fetchPostedLocalOrdersList(undefined,·undefined,·page`"
prettier/prettier
|
| 61 |
await fetchPostedLocalOrdersList( |
| 62 |
undefined, |
| 63 |
undefined, |
| 64 |
page, |
| 65 |
); |
| Error |
Row 66, Column 5: "Replace `}⏎·····` with `··}`"
prettier/prettier
|
| 66 |
} |
| Warning |
Row 67, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| 67 |
|
| 68 |
} catch (error) { |
| 69 |
// alert(UI_API._returnError(error)); |
| Error |
Row 70, Column 38: "Replace `⏎········'error',⏎········UI_API._returnError(error),⏎······` with `'error',·UI_API._returnError(error)`"
prettier/prettier
|
| 70 |
alertRef.current.alertWithType( |
| 71 |
'error', |
| 72 |
UI_API._returnError(error), |
| 73 |
); |
| Error |
Row 74, Column 6: "Replace `finally` with `·finally·`"
prettier/prettier
|
| Warning |
Row 74, Column 6: "Expected space(s) before "finally"."
keyword-spacing
|
| Warning |
Row 74, Column 6: "Expected space(s) after "finally"."
keyword-spacing
|
| 74 |
}finally{ |
| 75 |
setLoading(false); |
| 76 |
} |
| 77 |
}; |
| 78 |
React.useEffect(() => { |
| 79 |
onPagination(setLoading); |
| Error |
Row 80, Column 6: "React Hook React.useEffect has a missing dependency: 'onPagination'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 80 |
}, [profileData?.currency]); |
| Error |
Row 81, Column 1: "Insert `··`"
prettier/prettier
|
| 81 |
// alert('asds') |
| 82 |
if (loading) { |
| 83 |
return ( |
| Warning |
Row 84, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 84 |
<View style={{flex: 1, backgroundColor: colors.white}}> |
| 85 |
<Header {...props} title={'local orders'} allowBackBtn bellIcon /> |
| Warning |
Row 86, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 86 |
<View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}> |
| 87 |
<ActivityIndicator size="small" color={colors.primary} /> |
| 88 |
</View> |
| 89 |
</View> |
| 90 |
); |
| 91 |
} else if (!loading && Object.keys(local_orders)?.length <= 0) { |
| 92 |
return ( |
| Warning |
Row 93, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 93 |
<View style={{flex: 1, backgroundColor: colors.white}}> |
| 94 |
<Header {...props} title={'local orders'} allowBackBtn bellIcon /> |
| 95 |
<View |
| Warning |
Row 96, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 96 |
style={{ |
| 97 |
flex: 1, |
| 98 |
justifyContent: 'center', |
| 99 |
alignItems: 'center', |
| 100 |
paddingHorizontal: mvs(20), |
| 101 |
}}> |
| 102 |
<Regular |
| Warning |
Row 103, Column 20: "Strings must use singlequote."
quotes
|
| 103 |
label={`No Record Found`} |
| Warning |
Row 104, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 104 |
style={{textAlign: 'center', color: colors.primary}} |
| 105 |
/> |
| 106 |
</View> |
| 107 |
</View> |
| 108 |
); |
| Warning |
Row 109, Column 5: "Expected { after 'else'."
curly
|
| 109 |
} else |
| 110 |
return ( |
| Warning |
Row 111, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 111 |
<View style={{flex: 1, backgroundColor: colors.white}}> |
| 112 |
<Header {...props} title={'local orders'} allowBackBtn bellIcon /> |
| 113 |
|
| Warning |
Row 114, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 114 |
<View style={{flex: 1}}> |
| 115 |
<View style={styles.SCROLL_CONTAINER}> |
| 116 |
<OrderTypeHeader |
| 117 |
title={'Local Orders'} |
| 118 |
filter |
| 119 |
isIcon |
| 120 |
isLocal={isLocalOrders} |
| Error |
Row 121, Column 29: "Replace `·navigation.navigate('localtrip',·{isFilter:·true,isOnline:selected?false:true})` with `⏎················navigation.navigate('localtrip',·{⏎··················isFilter:·true,⏎··················isOnline:·selected·?·false·:·true,⏎················})⏎··············`"
prettier/prettier
|
| Warning |
Row 121, Column 96: "Operator '?' must be spaced."
space-infix-ops
|
| 121 |
onPress={() => navigation.navigate('localtrip', {isFilter: true,isOnline:selected?false:true})} |
| 122 |
/> |
| 123 |
</View> |
| 124 |
|
| 125 |
<View style={styles.buttonsContainer}> |
| 126 |
<TouchableOpacity |
| 127 |
onPress={() => setSelected(0)} |
| 128 |
style={{ |
| 129 |
...styles.topButton, |
| Warning |
Row 130, Column 43: "Expected '===' and instead saw '=='."
eqeqeq
|
| 130 |
backgroundColor: selected == 0 ? colors.primary : colors.white, |
| 131 |
}}> |
| 132 |
<Regular |
| 133 |
label="Online" |
| 134 |
style={{ |
| Warning |
Row 135, Column 35: "Expected '===' and instead saw '=='."
eqeqeq
|
| 135 |
color: selected == 0 ? colors.white : colors.primary, |
| 136 |
marginLeft: mvs(11), |
| 137 |
}} |
| 138 |
/> |
| 139 |
</TouchableOpacity> |
| 140 |
|
| 141 |
<TouchableOpacity |
| 142 |
onPress={() => setSelected(1)} |
| 143 |
style={{ |
| 144 |
...styles.topButton, |
| Warning |
Row 145, Column 43: "Expected '===' and instead saw '=='."
eqeqeq
|
| 145 |
backgroundColor: selected == 1 ? colors.primary : colors.white, |
| 146 |
}}> |
| 147 |
<Regular |
| 148 |
label="Physical" |
| 149 |
style={{ |
| Warning |
Row 150, Column 35: "Expected '===' and instead saw '=='."
eqeqeq
|
| 150 |
color: selected == 1 ? colors.white : colors.primary, |
| 151 |
marginLeft: mvs(11), |
| 152 |
}} |
| 153 |
/> |
| 154 |
</TouchableOpacity> |
| 155 |
</View> |
| Error |
Row 156, Column 20: "Replace `===0&&(local_orders?.data?.filter(x·=>x?.order_site).length·<·1)·&&··x?.order_site).length·<·1·&&·(⏎··············prettier/prettier
|
| Warning |
Row 156, Column 20: "Operator '===' must be spaced."
space-infix-ops
|
| Warning |
Row 156, Column 24: "Operator '&&' must be spaced."
space-infix-ops
|
| Warning |
Row 156, Column 101: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 156 |
{selected===0&&(local_orders?.data?.filter(x =>x?.order_site).length < 1) && <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> |
| Error |
Row 157, Column 1: "Replace `············prettier/prettier
|
| 157 |
<Regular style={{ color: colors.primary }} label={'No Result Found'} /> |
| Error |
Row 158, Column 1: "Replace `··········` with `··············⏎············)`"
prettier/prettier
|
| 158 |
</View>} |
| Error |
Row 159, Column 20: "Replace `===1&&(local_orders?.data?.filter(x·=>!x?.order_site).length·<·1)·&&··!x?.order_site).length·<·1·&&·(⏎··············prettier/prettier
|
| Warning |
Row 159, Column 20: "Operator '===' must be spaced."
space-infix-ops
|
| Warning |
Row 159, Column 24: "Operator '&&' must be spaced."
space-infix-ops
|
| Warning |
Row 159, Column 102: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 159 |
{selected===1&&(local_orders?.data?.filter(x =>!x?.order_site).length < 1) && <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> |
| Error |
Row 160, Column 1: "Replace `············prettier/prettier
|
| 160 |
<Regular style={{ color: colors.primary }} label={'No Result Found'} /> |
| Error |
Row 161, Column 1: "Replace `··········` with `··············⏎············)`"
prettier/prettier
|
| 161 |
</View>} |
| 162 |
<FlatList |
| 163 |
data={ |
| 164 |
selected === 0 |
| Error |
Row 165, Column 46: "Replace `(x·=>x?.order_site),⏎··················)` with `x·=>·x?.order_site)`"
prettier/prettier
|
| 165 |
? local_orders?.data?.filter((x =>x?.order_site), |
| 166 |
) |
| Error |
Row 167, Column 46: "Replace `(x·=>!x?.order_site),⏎··················` with `x·=>·!x?.order_site`"
prettier/prettier
|
| 167 |
: local_orders?.data?.filter((x =>!x?.order_site), |
| 168 |
) |
| 169 |
} |
| 170 |
keyExtractor={(item, index) => index.toString()} |
| 171 |
contentContainerStyle={{ |
| 172 |
...styles.SCROLL_CONTAINER, |
| 173 |
paddingTop: mvs(5), |
| 174 |
paddingBottom: mvs(22), |
| 175 |
}} |
| 176 |
renderItem={({item}) => { |
| 177 |
return ( |
| 178 |
<> |
| 179 |
<MakeOfferOrderCard |
| 180 |
{...props} |
| 181 |
{...item} |
| 182 |
order_data={item} |
| 183 |
{...UI_API._returnOrderProps(item)} |
| 184 |
style={{ |
| 185 |
width: width - mvs(22) * 2, |
| 186 |
}} |
| 187 |
/> |
| 188 |
<View style={{marginBottom: mvs(20)}} /> |
| 189 |
</> |
| 190 |
); |
| 191 |
}} |
| 192 |
onEndReachedThreshold={0.5} |
| 193 |
onEndReached={() => onPagination(setPageLoading)} |
| 194 |
/> |
| 195 |
</View> |
| 196 |
{pageLoading && ( |
| 197 |
<View style={styles.pageLoader}> |
| 198 |
<ActivityIndicator size="small" color={colors.primary} /> |
| 199 |
</View> |
| 200 |
)} |
| Error |
Row 201, Column 23: "Replace `··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}·/>⏎` with `⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎········/>`"
prettier/prettier
|
| 201 |
<DropdownAlert inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 202 |
|
| 203 |
</View> |
| 204 |
); |
| 205 |
}; |
| 206 |
|
| 207 |
export const mapStateToProps = state => ({ |
| 208 |
countriesList: state.common?.countriesList, |
| 209 |
local_orders: state.common_orders_list?.local_orders, |
| 210 |
profileData: state.auth.userInfo?.profile || {}, |
| 211 |
}); |
| 212 |
|
| 213 |
export const mapDispatchToProps = { |
| 214 |
// fetchRelaventOrders: () => TAKE_TO_ACTIONS.fetchRelaventOrders(), |
| Error |
Row 215, Column 52: "Insert `·`"
prettier/prettier
|
| 215 |
fetchPostedLocalOrdersList: (latitude, longitude,page) => |
| Error |
Row 216, Column 68: "Insert `·`"
prettier/prettier
|
| 216 |
TAKE_TO_ACTIONS.fetchPostedLocalOrdersList(latitude, longitude,page), |
| 217 |
// fetchAllPostedInternationalOrdersList: () => |
| 218 |
// TAKE_TO_ACTIONS.fetchAllPostedInternationalOrdersList(), |
| 219 |
}; |
| 220 |
export default connect(mapStateToProps, mapDispatchToProps)(LocalOrders); |
| 221 |
|
| 222 |
const styles = StyleSheet.create({ |
| 223 |
SCROLL_CONTAINER: { |
| 224 |
paddingHorizontal: mvs(22), |
| 225 |
}, |
| 226 |
buttonsContainer: { |
| 227 |
//height: mvs(44), |
| 228 |
paddingHorizontal: mvs(22), |
| 229 |
width: '100%', |
| 230 |
//borderWidth : 1, |
| 231 |
// marginTop: mvs(30), |
| 232 |
marginBottom: mvs(2), |
| 233 |
flexDirection: 'row', |
| 234 |
justifyContent: 'space-between', |
| 235 |
paddingBottom: mvs(20), |
| 236 |
}, |
| 237 |
topButton: { |
| 238 |
height: mvs(44), |
| 239 |
width: '48%', |
| 240 |
borderWidth: 1, |
| 241 |
borderRadius: mvs(10), |
| 242 |
justifyContent: 'center', |
| 243 |
alignItems: 'center', |
| 244 |
flexDirection: 'row', |
| 245 |
borderColor: colors.primary, |
| 246 |
}, |
| 247 |
pageLoader: { |
| 248 |
height: mvs(50), |
| 249 |
width: mvs(50), |
| 250 |
borderRadius: mvs(25), |
| 251 |
position: 'absolute', |
| 252 |
bottom: mvs(20), |
| 253 |
alignSelf: 'center', |
| 254 |
justifyContent: 'center', |
| 255 |
alignItems: 'center', |
| 256 |
}, |
| 257 |
}); |
| 258 |
|
|
|
|
/src/screens/orders/order-delivery-detail.js
|
84 problems (53 errors, 31 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·useIsFocused·` with `useIsFocused`"
prettier/prettier
|
| Warning |
Row 3, Column 8: "'moment' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 16: "Replace `·useEffect,·useState·` with `useEffect,·useState`"
prettier/prettier
|
| Error |
Row 14, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 25, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 27, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 30, Column 7: "'isFoucs' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 33, Column 10: "Replace `·navigation,·route,·selectedDeliveryAddress,·fetchDeliveryAddress,·profileData·}·=⏎···` with `⏎····navigation,⏎····route,⏎····selectedDeliveryAddress,⏎····fetchDeliveryAddress,⏎····profileData,⏎··}·=`"
prettier/prettier
|
| Warning |
Row 33, Column 11: "'navigation' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 51, Column 6: "React Hook React.useEffect has a missing dependency: 'fetchDeliveryAddress'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 59, Column 6: "React Hook useEffect has a missing dependency: 'payload'. Either include it or remove the dependency array. You can also do a functional update 'setPayload(p => ...)' if you only need 'payload' in the 'setPayload' call."
react-hooks/exhaustive-deps
|
| Error |
Row 66, Column 6: "React Hook useEffect has a missing dependency: 'payload'. Either include it or remove the dependency array. You can also do a functional update 'setPayload(p => ...)' if you only need 'payload' in the 'setPayload' call."
react-hooks/exhaustive-deps
|
| Warning |
Row 96, Column 10: "'dateOption' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 104, Column 53: "Delete `···`"
prettier/prettier
|
| Error |
Row 106, Column 60: "Insert `;`"
prettier/prettier
|
| Warning |
Row 106, Column 60: "Missing semicolon."
semi
|
| Error |
Row 122, Column 37: "Replace `·?·(payload?.country·!==·payload?.deliveryLocation?.country)·:·payload?.storeAddress?.country·?·(payload?.storeAddress?.country·!==·payload?.deliveryLocation?.country)·:·true` with `⏎····?·payload?.country·!==·payload?.deliveryLocation?.country⏎····:·payload?.storeAddress?.country⏎····?·payload?.storeAddress?.country·!==·payload?.deliveryLocation?.country⏎····:·true;`"
prettier/prettier
|
| Warning |
Row 122, Column 211: "Missing semicolon."
semi
|
| Error |
Row 123, Column 15: "Replace `"PAYLOAD·::·",·payload)` with `'PAYLOAD·::·',·payload);`"
prettier/prettier
|
| Warning |
Row 123, Column 15: "Strings must use singlequote."
quotes
|
| Warning |
Row 123, Column 38: "Missing semicolon."
semi
|
| Warning |
Row 126, Column 14: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 126, Column 15: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 128, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 128, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Error |
Row 132, Column 27: "Replace `·paddingHorizontal:·mvs(22)·}}>⏎` with `paddingHorizontal:·mvs(22)}}>`"
prettier/prettier
|
| Error |
Row 143, Column 32: "Replace `·fontSize:·mvs(15)·` with `fontSize:·mvs(15)`"
prettier/prettier
|
| Warning |
Row 145, Column 45: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 148, Column 23: "Insert `··`"
prettier/prettier
|
| Error |
Row 149, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 151, Column 31: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Error |
Row 152, Column 31: "Replace `·top:·Platform.OS·===·'android'·?·mvs(44)·:·mvs(30)·}}` with `⏎····················top:·Platform.OS·===·'android'·?·mvs(44)·:·mvs(30),⏎··················}}·`"
prettier/prettier
|
| Error |
Row 176, Column 25: "Replace `·marginTop:·mvs(22)·` with `marginTop:·mvs(22)`"
prettier/prettier
|
| Error |
Row 180, Column 32: "Replace `·fontSize:·mvs(15)·` with `fontSize:·mvs(15)`"
prettier/prettier
|
| Error |
Row 181, Column 39: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 194, Column 27: "Replace `·...styles.BOTTOM_CONTAINER·` with `...styles.BOTTOM_CONTAINER`"
prettier/prettier
|
| Error |
Row 196, Column 58: "Replace `·color:·colors.pink·` with `color:·colors.pink`"
prettier/prettier
|
| Error |
Row 217, Column 38: "Insert `;`"
prettier/prettier
|
| Warning |
Row 217, Column 38: "Missing semicolon."
semi
|
| Warning |
Row 219, Column 28: "Inline style: {
elevation: 'payload.is24Days ? 10 : 0',
borderWidth: 'payload.is24Days ? 0 : mvs(0.5)'
}"
react-native/no-inline-styles
|
| Warning |
Row 229, Column 23: "Empty components are self-closing"
react/self-closing-comp
|
| Warning |
Row 260, Column 34: "Inline style: { width: '50%', padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 283, Column 46: "Replace `` with `(⏎··························⏎························)`"
prettier/prettier
|
| Error |
Row 298, Column 38: "Insert `;`"
prettier/prettier
|
| Warning |
Row 298, Column 38: "Missing semicolon."
semi
|
| Warning |
Row 300, Column 28: "Inline style: {
elevation: 'payload.is2Days ? 10 : 0',
borderWidth: 'payload.is2Days ? 0 : mvs(0.5)'
}"
react-native/no-inline-styles
|
| Warning |
Row 310, Column 23: "Empty components are self-closing"
react/self-closing-comp
|
| Warning |
Row 341, Column 34: "Inline style: { width: '50%', padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 364, Column 45: "Replace `` with `(⏎··························⏎························)`"
prettier/prettier
|
| Error |
Row 379, Column 38: "Insert `;`"
prettier/prettier
|
| Warning |
Row 379, Column 38: "Missing semicolon."
semi
|
| Warning |
Row 381, Column 28: "Inline style: {
elevation: 'payload.is3Days ? 10 : 0',
borderWidth: 'payload.is3Days ? 0 : mvs(0.5)'
}"
react-native/no-inline-styles
|
| Warning |
Row 391, Column 23: "Empty components are self-closing"
react/self-closing-comp
|
| Warning |
Row 422, Column 34: "Inline style: { width: '50%', padding: 0 }"
react-native/no-inline-styles
|
| Error |
Row 445, Column 45: "Replace `` with `(⏎··························⏎························)`"
prettier/prettier
|
| Error |
Row 448, Column 38: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 452, Column 28: "Insert `·(`"
prettier/prettier
|
| Error |
Row 453, Column 22: "Replace `·style={{·...styles.dateAndRewardMainContainer,·...colors.shadow,·shadowOpacity:·0.2` with `⏎··················style={{⏎····················...styles.dateAndRewardMainContainer,⏎····················...colors.shadow,⏎····················shadowOpacity:·0.2,⏎·················`"
prettier/prettier
|
| Warning |
Row 453, Column 30: "Inline style: { shadowOpacity: 0.2 }"
react-native/no-inline-styles
|
| Warning |
Row 465, Column 28: "Inline style: {
elevation: 'payload?.is24Days || payload?.is3Days || payload?.is2Days\n' +
' ? 0\n' +
' : 10'
}"
react-native/no-inline-styles
|
| Error |
Row 468, Column 45: "Replace `·payload?.is3Days·||` with `⏎························payload?.is3Days·||⏎·······················`"
prettier/prettier
|
| Error |
Row 472, Column 45: "Replace `·payload?.is3Days·||` with `⏎························payload?.is3Days·||⏎·······················`"
prettier/prettier
|
| Error |
Row 475, Column 24: "Delete `⏎`"
prettier/prettier
|
| Warning |
Row 478, Column 30: "Inline style: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center'
}"
react-native/no-inline-styles
|
| Error |
Row 485, Column 33: "Replace `·color:·colors.typeHeader·}}` with `color:·colors.typeHeader}}>`"
prettier/prettier
|
| Error |
Row 486, Column 1: "Replace `······················>` with `························prettier/prettier
|
| Error |
Row 487, Column 25: "Replace `prettier/prettier
|
| Warning |
Row 512, Column 32: "Inline style: { width: '49%', flexDirection: 'row-reverse' }"
react-native/no-inline-styles
|
| Error |
Row 519, Column 1: "Delete `⏎`"
prettier/prettier
|
| Warning |
Row 523, Column 30: "Inline style: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| Error |
Row 529, Column 48: "Delete `·`"
prettier/prettier
|
| Error |
Row 530, Column 33: "Replace `·label={payload?.isUrgent·?·''·:·'*'}·style={{·color:·colors.mendatory·}}` with `⏎··························label={payload?.isUrgent·?·''·:·'*'}⏎··························style={{color:·colors.mendatory}}⏎·······················`"
prettier/prettier
|
| Warning |
Row 533, Column 41: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 533, Column 42: "Replace `·width:·'49%'·` with `width:·'49%'`"
prettier/prettier
|
| Error |
Row 534, Column 37: "Replace `'0'` with `"0"`"
prettier/prettier
|
| Warning |
Row 534, Column 37: "Unexpected usage of singlequote."
jsx-quotes
|
| Error |
Row 535, Column 33: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Error |
Row 556, Column 15: "Insert `)`"
prettier/prettier
|
| Error |
Row 557, Column 29: "Replace `·paddingHorizontal:·mvs(22)·` with `paddingHorizontal:·mvs(22)`"
prettier/prettier
|
| Error |
Row 568, Column 48: "Insert `,`"
prettier/prettier
|
| Warning |
Row 568, Column 48: "Missing trailing comma."
comma-dangle
|
| Error |
Row 605, Column 25: "Replace `·...payload,·deliveryLocation:·selectedItem?.title·` with `...payload,·deliveryLocation:·selectedItem?.title`"
prettier/prettier
|
| Error |
Row 609, Column 48: "Replace `·...ele,·isSelected:·false·` with `...ele,·isSelected:·false`"
prettier/prettier
|
| Error |
Row 638, Column 21: "Replace `·translucent·activeStatusBarStyle={'light-content'}·inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎········translucent⏎········activeStatusBarStyle={'light-content'}⏎········inactiveStatusBarBackgroundColor={colors.primary}⏎········ref={alertRef}⏎·····`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| Error |
Row 2, Column 9: "Replace `·useIsFocused·` with `useIsFocused`"
prettier/prettier
|
| 2 |
import { useIsFocused } from '@react-navigation/native'; |
| Warning |
Row 3, Column 8: "'moment' is defined but never used."
no-unused-vars
|
| 3 |
import moment from 'moment'; |
| Error |
Row 4, Column 16: "Replace `·useEffect,·useState·` with `useEffect,·useState`"
prettier/prettier
|
| 4 |
import React, { useEffect, useState } from 'react'; |
| 5 |
import { |
| 6 |
KeyboardAvoidingView, |
| 7 |
Platform, |
| 8 |
ScrollView, |
| 9 |
StyleSheet, |
| 10 |
TextInput, |
| 11 |
TouchableOpacity, |
| 12 |
View, |
| 13 |
} from 'react-native'; |
| Error |
Row 14, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 14 |
import { connect } from 'react-redux'; |
| 15 |
import UI_API from '../../../../common/store/services'; |
| 16 |
import TAKE_TO_CONSTANT from '../../../../common/utils/utils'; |
| 17 |
import Buttons from '../../components/atoms/Button'; |
| 18 |
import Header from '../../components/molecules/header/header-1x'; |
| 19 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 20 |
import InputWithTitle from '../../components/molecules/input-with-title'; |
| 21 |
import DatePickerModal from '../../components/molecules/modals/date-picker-modal'; |
| 22 |
import DeliveryLocationModal from '../../components/molecules/modals/delivery-location-modal'; |
| 23 |
import SearchLocationModal from '../../components/molecules/modals/search-location-modal/searchlocation-modal'; |
| 24 |
import colors from '../../config/colors'; |
| Error |
Row 25, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 25 |
import { mvs } from '../../config/metrices'; |
| 26 |
import Regular from '../../presentation/typography/regular-text'; |
| Error |
Row 27, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 27 |
import { TAKE_TO_INPUT_FIELD } from '../../components/atoms'; |
| 28 |
|
| 29 |
const OrderDeliveryDetail = props => { |
| Warning |
Row 30, Column 7: "'isFoucs' is assigned a value but never used."
no-unused-vars
|
| 30 |
let isFoucs = useIsFocused(); |
| 31 |
const alertRef = React.useRef(null); |
| 32 |
const [locationModal, setLocationModal] = useState(false); |
| Error |
Row 33, Column 10: "Replace `·navigation,·route,·selectedDeliveryAddress,·fetchDeliveryAddress,·profileData·}·=⏎···` with `⏎····navigation,⏎····route,⏎····selectedDeliveryAddress,⏎····fetchDeliveryAddress,⏎····profileData,⏎··}·=`"
prettier/prettier
|
| Warning |
Row 33, Column 11: "'navigation' is assigned a value but never used."
no-unused-vars
|
| 33 |
const { navigation, route, selectedDeliveryAddress, fetchDeliveryAddress, profileData } = |
| 34 |
props; |
| 35 |
const [tempDate, setTempDate] = useState(''); |
| 36 |
const [payload, setPayload] = React.useState({ |
| 37 |
...route.params.payload, |
| 38 |
isTraveller: true, |
| 39 |
isCarrier: false, |
| 40 |
storeAddress: '', |
| 41 |
reward: '', |
| 42 |
is24Days: true, |
| 43 |
is2Days: false, |
| 44 |
is3Days: false, |
| 45 |
isUrgent: true, |
| 46 |
deliveryLocation: '', |
| 47 |
}); |
| 48 |
|
| 49 |
React.useEffect(() => { |
| 50 |
fetchDeliveryAddress(''); |
| Error |
Row 51, Column 6: "React Hook React.useEffect has a missing dependency: 'fetchDeliveryAddress'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 51 |
}, []); |
| 52 |
|
| 53 |
useEffect(() => { |
| 54 |
//console.log("selectedDeliveryAddress:", selectedDeliveryAddress) |
| 55 |
setPayload({ |
| 56 |
...payload, |
| 57 |
deliveryLocation: selectedDeliveryAddress, |
| 58 |
}); |
| Error |
Row 59, Column 6: "React Hook useEffect has a missing dependency: 'payload'. Either include it or remove the dependency array. You can also do a functional update 'setPayload(p => ...)' if you only need 'payload' in the 'setPayload' call."
react-hooks/exhaustive-deps
|
| 59 |
}, [selectedDeliveryAddress]); |
| 60 |
|
| 61 |
useEffect(() => { |
| 62 |
setPayload({ |
| 63 |
...payload, |
| 64 |
storeAddress: payload?.shopAddress, |
| 65 |
}); |
| Error |
Row 66, Column 6: "React Hook useEffect has a missing dependency: 'payload'. Either include it or remove the dependency array. You can also do a functional update 'setPayload(p => ...)' if you only need 'payload' in the 'setPayload' call."
react-hooks/exhaustive-deps
|
| 66 |
}, []); |
| 67 |
|
| 68 |
const [visible, setVisible] = React.useState(false); |
| 69 |
const [list, setList] = React.useState([ |
| 70 |
{ |
| 71 |
title: 'Home Salmiya', |
| 72 |
subTitle: '5 St. 4 lane, Salmiya', |
| 73 |
isSelected: true, |
| 74 |
iconName: 'map', |
| 75 |
}, |
| 76 |
{ |
| 77 |
title: 'Work', |
| 78 |
subTitle: 'Kuwait, Dhow tower', |
| 79 |
isSelected: false, |
| 80 |
iconName: 'map', |
| 81 |
}, |
| 82 |
{ |
| 83 |
title: 'Deliver to current location', |
| 84 |
subTitle: 'Allow Taketo to access your location', |
| 85 |
isSelected: false, |
| 86 |
iconName: 'any', |
| 87 |
}, |
| 88 |
{ |
| 89 |
title: 'Deliver to a different location', |
| 90 |
subTitle: 'Choose location on map', |
| 91 |
isSelected: false, |
| 92 |
iconName: 'any', |
| 93 |
}, |
| 94 |
]); |
| 95 |
|
| Warning |
Row 96, Column 10: "'dateOption' is assigned a value but never used."
no-unused-vars
|
| 96 |
const [dateOption, setDateOption] = React.useState(''); |
| 97 |
const [isDatePickerVisible, setDatePickerVisibility] = React.useState(false); |
| 98 |
|
| 99 |
const hideDatePicker = d => { |
| 100 |
// console.log("date::", d); |
| 101 |
// console.log(`${date?.day} / ${date?.month+1} / ${date?.year}`); |
| 102 |
setPayload({ |
| 103 |
...payload, |
| Error |
Row 104, Column 53: "Delete `···`"
prettier/prettier
|
| 104 |
date: `${d?.day}-${d?.month + 1}-${d?.year}`, //moment({years: d.year, months: d.month, days: d.day}), |
| 105 |
}); |
| Error |
Row 106, Column 60: "Insert `;`"
prettier/prettier
|
| Warning |
Row 106, Column 60: "Missing semicolon."
semi
|
| 106 |
setTempDate(`${d?.day} / ${d?.month + 1} / ${d?.year}`) |
| 107 |
// setPayload({ |
| 108 |
// ...payload, |
| 109 |
// [option]: moment().format('YYYY-MM-DD'), //`${new Date().getDate()} / ${new Date().getMonth()} / ${new Date().getFullYear()}`, |
| 110 |
// }); |
| 111 |
|
| 112 |
setDatePickerVisibility(false); |
| 113 |
}; |
| 114 |
|
| 115 |
const showDatePicker = option => { |
| 116 |
// if (!payload[option]) { |
| 117 |
|
| 118 |
setDateOption(option); |
| 119 |
setDatePickerVisibility(true); |
| 120 |
}; |
| 121 |
|
| Error |
Row 122, Column 37: "Replace `·?·(payload?.country·!==·payload?.deliveryLocation?.country)·:·payload?.storeAddress?.country·?·(payload?.storeAddress?.country·!==·payload?.deliveryLocation?.country)·:·true` with `⏎····?·payload?.country·!==·payload?.deliveryLocation?.country⏎····:·payload?.storeAddress?.country⏎····?·payload?.storeAddress?.country·!==·payload?.deliveryLocation?.country⏎····:·true;`"
prettier/prettier
|
| Warning |
Row 122, Column 211: "Missing semicolon."
semi
|
| 122 |
const isDisplay = payload?.country ? (payload?.country !== payload?.deliveryLocation?.country) : payload?.storeAddress?.country ? (payload?.storeAddress?.country !== payload?.deliveryLocation?.country) : true |
| Error |
Row 123, Column 15: "Replace `"PAYLOAD·::·",·payload)` with `'PAYLOAD·::·',·payload);`"
prettier/prettier
|
| Warning |
Row 123, Column 15: "Strings must use singlequote."
quotes
|
| Warning |
Row 123, Column 38: "Missing semicolon."
semi
|
| 123 |
console.log("PAYLOAD :: ", payload) |
| 124 |
return ( |
| 125 |
<KeyboardAvoidingView |
| Warning |
Row 126, Column 14: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 126, Column 15: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 126 |
style={{ flex: 1, backgroundColor: colors.white }} |
| 127 |
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}> |
| Warning |
Row 128, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 128, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 128 |
<View style={{ flex: 1, backgroundColor: colors.white }}> |
| 129 |
<Header {...props} title="Delivery Details" allowBackBtn bellIcon /> |
| 130 |
<View style={styles.BODY}> |
| 131 |
<ScrollView contentContainerStyle={styles.SCROLL_CONTAINER}> |
| Error |
Row 132, Column 27: "Replace `·paddingHorizontal:·mvs(22)·}}>⏎` with `paddingHorizontal:·mvs(22)}}>`"
prettier/prettier
|
| 132 |
<View style={{ paddingHorizontal: mvs(22) }}> |
| 133 |
|
| 134 |
<TouchableOpacity |
| 135 |
disabled={true} //{payload?.isPhysical} |
| 136 |
onPress={() => { |
| 137 |
setLocationModal(true); |
| 138 |
}}> |
| 139 |
{/* {console.log(payload)} */} |
| 140 |
<InputWithTitle |
| 141 |
title="Buy from" |
| 142 |
isRequired |
| Error |
Row 143, Column 32: "Replace `·fontSize:·mvs(15)·` with `fontSize:·mvs(15)`"
prettier/prettier
|
| 143 |
titleStyle={{ fontSize: mvs(15) }} |
| 144 |
value={ |
| Warning |
Row 145, Column 45: "Expected '===' and instead saw '=='."
eqeqeq
|
| 145 |
props.route.params.type == 'pstore' |
| 146 |
? payload?.shopAddress?.fulladdress |
| 147 |
: //`${payload?.shopAddress?.street_address}, ${payload?.shopAddress?.street}, ${payload?.shopAddress?.block}, ${payload?.shopAddress?.city}, ${payload?.shopAddress?.country}` |
| Error |
Row 148, Column 23: "Insert `··`"
prettier/prettier
|
| 148 |
//payload?.storeAddress?.fulladdress |
| Error |
Row 149, Column 1: "Insert `··`"
prettier/prettier
|
| 149 |
payload?.country |
| 150 |
} |
| Error |
Row 151, Column 31: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 151 |
textStyle={{ color: colors.primary }} |
| Error |
Row 152, Column 31: "Replace `·top:·Platform.OS·===·'android'·?·mvs(44)·:·mvs(30)·}}` with `⏎····················top:·Platform.OS·===·'android'·?·mvs(44)·:·mvs(30),⏎··················}}·`"
prettier/prettier
|
| 152 |
flagStyle={{ top: Platform.OS === 'android' ? mvs(44) : mvs(30) }}//changed from 32 to 44 |
| 153 |
// flag={true} |
| 154 |
flag={!payload?.isPhysical} |
| 155 |
multiline //={payload?.isPhysical} |
| 156 |
flagUri={ |
| 157 |
props.countryList?.find( |
| 158 |
el => |
| 159 |
el.short_name === |
| 160 |
(payload?.isPhysical |
| 161 |
? payload?.shopAddress?.country_short_name?.toLowerCase() |
| 162 |
: payload?.country_short_name?.toLowerCase()), |
| 163 |
)?.flag |
| 164 |
// payload?.flag |
| 165 |
} |
| 166 |
editable={false} |
| 167 |
placeholder="Select Store Location" |
| 168 |
/> |
| 169 |
</TouchableOpacity> |
| 170 |
|
| 171 |
<TouchableOpacity |
| 172 |
onPress={() => { |
| 173 |
fetchDeliveryAddress(''); |
| 174 |
props.navigation.navigate('deliverto'); |
| 175 |
}} |
| Error |
Row 176, Column 25: "Replace `·marginTop:·mvs(22)·` with `marginTop:·mvs(22)`"
prettier/prettier
|
| 176 |
style={{ marginTop: mvs(22) }}> |
| 177 |
<InputWithTitle |
| 178 |
title="Deliver to" |
| 179 |
isRequired |
| Error |
Row 180, Column 32: "Replace `·fontSize:·mvs(15)·` with `fontSize:·mvs(15)`"
prettier/prettier
|
| 180 |
titleStyle={{ fontSize: mvs(15) }} |
| Error |
Row 181, Column 39: "Replace `·=·` with `=`"
prettier/prettier
|
| 181 |
placeholderTextColor = {colors.input_placehoder} |
| 182 |
placeholder="Select" |
| 183 |
editable={false} |
| 184 |
multiline |
| 185 |
value={ |
| 186 |
payload?.deliveryLocation?.fulladdress |
| 187 |
? payload?.deliveryLocation?.fulladdress |
| 188 |
: payload?.deliveryLocation?.address |
| 189 |
} |
| 190 |
/> |
| 191 |
</TouchableOpacity> |
| 192 |
</View> |
| 193 |
|
| Error |
Row 194, Column 27: "Replace `·...styles.BOTTOM_CONTAINER·` with `...styles.BOTTOM_CONTAINER`"
prettier/prettier
|
| 194 |
<View style={{ ...styles.BOTTOM_CONTAINER }}> |
| 195 |
<View style={styles.urgentContainer}> |
| Error |
Row 196, Column 58: "Replace `·color:·colors.pink·` with `color:·colors.pink`"
prettier/prettier
|
| 196 |
<Regular label="Urgent Delivery" style={{ color: colors.pink }} /> |
| 197 |
<Regular |
| 198 |
label="Extra Rewards apply for deliveries before" |
| 199 |
style={{ |
| 200 |
fontSize: mvs(12), |
| 201 |
color: colors.lightgrey2, |
| 202 |
marginTop: mvs(6), |
| 203 |
}} |
| 204 |
/> |
| 205 |
<View style={styles.radiosContainer}> |
| 206 |
<TouchableOpacity |
| 207 |
onPress={() => { |
| 208 |
setPayload({ |
| 209 |
...payload, |
| 210 |
is24Days: true, |
| 211 |
is3Days: false, |
| 212 |
is2Days: false, |
| 213 |
reward: '', |
| 214 |
isUrgent: true, |
| 215 |
date: '', |
| 216 |
}); |
| Error |
Row 217, Column 38: "Insert `;`"
prettier/prettier
|
| Warning |
Row 217, Column 38: "Missing semicolon."
semi
|
| 217 |
setTempDate('') |
| 218 |
}} |
| Warning |
Row 219, Column 28: "Inline style: {
elevation: 'payload.is24Days ? 10 : 0',
borderWidth: 'payload.is24Days ? 0 : mvs(0.5)'
}"
react-native/no-inline-styles
|
| 219 |
style={{ |
| 220 |
...styles.radioBox, |
| 221 |
...colors.shadow, |
| 222 |
shadowColor: payload.is24Days |
| 223 |
? colors.black |
| 224 |
: colors.white, |
| 225 |
elevation: payload.is24Days ? 10 : 0, |
| 226 |
borderWidth: payload.is24Days ? 0 : mvs(0.5), |
| 227 |
}}> |
| 228 |
<View style={styles.radioOuter}> |
| Warning |
Row 229, Column 23: "Empty components are self-closing"
react/self-closing-comp
|
| 229 |
<View |
| 230 |
style={{ |
| 231 |
...styles.radioInner, |
| 232 |
backgroundColor: payload.is24Days |
| 233 |
? colors.pink |
| 234 |
: colors.secondary, |
| 235 |
}}></View> |
| 236 |
</View> |
| 237 |
<Regular label="24 hours" style={styles.time} /> |
| 238 |
<View |
| 239 |
style={{ |
| 240 |
...styles.rewardMainContainer, |
| 241 |
backgroundColor: payload.is24Days |
| 242 |
? colors.pink |
| 243 |
: colors.secondary, |
| 244 |
}}> |
| 245 |
<Regular |
| 246 |
label={'Reward'} |
| 247 |
style={{ |
| 248 |
fontSize: mvs(12), |
| 249 |
marginTop: mvs(4), |
| 250 |
color: payload.is24Days |
| 251 |
? colors.white |
| 252 |
: colors.headerTitle, |
| 253 |
}} |
| 254 |
/> |
| 255 |
<View style={styles.price_container}> |
| 256 |
<TextInput |
| 257 |
placeholder={payload.is24Days ? '0' : undefined} |
| 258 |
placeholderTextColor={colors.input_placehoder} |
| 259 |
textAlign="center" |
| Warning |
Row 260, Column 34: "Inline style: { width: '50%', padding: 0 }"
react-native/no-inline-styles
|
| 260 |
style={{ |
| 261 |
width: '50%', |
| 262 |
color: colors.primary, |
| 263 |
padding: 0, |
| 264 |
fontSize: mvs(15), |
| 265 |
}} |
| 266 |
value={payload.is24Days ? payload.reward : null} |
| 267 |
keyboardType="number-pad" |
| 268 |
editable={payload.is24Days} |
| 269 |
onChangeText={txt => { |
| 270 |
if (txt === '') { |
| 271 |
setPayload({ |
| 272 |
...payload, |
| 273 |
reward: txt.trim(), |
| 274 |
}); |
| 275 |
} else if (TAKE_TO_CONSTANT.floatValidation(txt)) { |
| 276 |
setPayload({ |
| 277 |
...payload, |
| 278 |
reward: txt.trim(), |
| 279 |
}); |
| 280 |
} |
| 281 |
}} |
| 282 |
/> |
| Error |
Row 283, Column 46: "Replace `` with `(⏎··························⏎························)`"
prettier/prettier
|
| 283 |
{payload.is24Days && <Regular label={`${profileData?.currency?.currency_code}`} />} |
| 284 |
</View> |
| 285 |
</View> |
| 286 |
</TouchableOpacity> |
| 287 |
<TouchableOpacity |
| 288 |
onPress={() => { |
| 289 |
setPayload({ |
| 290 |
...payload, |
| 291 |
is24Days: false, |
| 292 |
is3Days: false, |
| 293 |
is2Days: true, |
| 294 |
reward: '', |
| 295 |
isUrgent: true, |
| 296 |
date: '', |
| 297 |
}); |
| Error |
Row 298, Column 38: "Insert `;`"
prettier/prettier
|
| Warning |
Row 298, Column 38: "Missing semicolon."
semi
|
| 298 |
setTempDate('') |
| 299 |
}} |
| Warning |
Row 300, Column 28: "Inline style: {
elevation: 'payload.is2Days ? 10 : 0',
borderWidth: 'payload.is2Days ? 0 : mvs(0.5)'
}"
react-native/no-inline-styles
|
| 300 |
style={{ |
| 301 |
...styles.radioBox, |
| 302 |
...colors.shadow, |
| 303 |
shadowColor: payload.is2Days |
| 304 |
? colors.black |
| 305 |
: colors.white, |
| 306 |
elevation: payload.is2Days ? 10 : 0, |
| 307 |
borderWidth: payload.is2Days ? 0 : mvs(0.5), |
| 308 |
}}> |
| 309 |
<View style={styles.radioOuter}> |
| Warning |
Row 310, Column 23: "Empty components are self-closing"
react/self-closing-comp
|
| 310 |
<View |
| 311 |
style={{ |
| 312 |
...styles.radioInner, |
| 313 |
backgroundColor: payload.is2Days |
| 314 |
? colors.pink |
| 315 |
: colors.secondary, |
| 316 |
}}></View> |
| 317 |
</View> |
| 318 |
<Regular label="2 days" style={styles.time} /> |
| 319 |
<View |
| 320 |
style={{ |
| 321 |
...styles.rewardMainContainer, |
| 322 |
backgroundColor: payload.is2Days |
| 323 |
? colors.pink |
| 324 |
: colors.secondary, |
| 325 |
}}> |
| 326 |
<Regular |
| 327 |
label={'Reward'} |
| 328 |
style={{ |
| 329 |
fontSize: mvs(12), |
| 330 |
marginTop: mvs(4), |
| 331 |
color: payload.is2Days |
| 332 |
? colors.white |
| 333 |
: colors.headerTitle, |
| 334 |
}} |
| 335 |
/> |
| 336 |
<View style={styles.price_container}> |
| 337 |
<TextInput |
| 338 |
textAlign="center" |
| 339 |
placeholder={payload.is2Days ? '0' : undefined} |
| 340 |
placeholderTextColor={colors.input_placehoder} |
| Warning |
Row 341, Column 34: "Inline style: { width: '50%', padding: 0 }"
react-native/no-inline-styles
|
| 341 |
style={{ |
| 342 |
width: '50%', |
| 343 |
color: colors.primary, |
| 344 |
padding: 0, |
| 345 |
fontSize: mvs(15), |
| 346 |
}} |
| 347 |
value={payload.is2Days ? payload.reward : null} |
| 348 |
keyboardType="number-pad" |
| 349 |
editable={payload.is2Days} |
| 350 |
onChangeText={txt => { |
| 351 |
if (txt === '') { |
| 352 |
setPayload({ |
| 353 |
...payload, |
| 354 |
reward: txt.trim(), |
| 355 |
}); |
| 356 |
} else if (TAKE_TO_CONSTANT.floatValidation(txt)) { |
| 357 |
setPayload({ |
| 358 |
...payload, |
| 359 |
reward: txt.trim(), |
| 360 |
}); |
| 361 |
} |
| 362 |
}} |
| 363 |
/> |
| Error |
Row 364, Column 45: "Replace `` with `(⏎··························⏎························)`"
prettier/prettier
|
| 364 |
{payload.is2Days && <Regular label={`${profileData?.currency?.currency_code}`} />} |
| 365 |
</View> |
| 366 |
</View> |
| 367 |
</TouchableOpacity> |
| 368 |
<TouchableOpacity |
| 369 |
onPress={() => { |
| 370 |
setPayload({ |
| 371 |
...payload, |
| 372 |
is24Days: false, |
| 373 |
is3Days: true, |
| 374 |
is2Days: false, |
| 375 |
reward: '', |
| 376 |
isUrgent: true, |
| 377 |
date: '', |
| 378 |
}); |
| Error |
Row 379, Column 38: "Insert `;`"
prettier/prettier
|
| Warning |
Row 379, Column 38: "Missing semicolon."
semi
|
| 379 |
setTempDate('') |
| 380 |
}} |
| Warning |
Row 381, Column 28: "Inline style: {
elevation: 'payload.is3Days ? 10 : 0',
borderWidth: 'payload.is3Days ? 0 : mvs(0.5)'
}"
react-native/no-inline-styles
|
| 381 |
style={{ |
| 382 |
...styles.radioBox, |
| 383 |
...colors.shadow, |
| 384 |
shadowColor: payload.is3Days |
| 385 |
? colors.black |
| 386 |
: colors.white, |
| 387 |
elevation: payload.is3Days ? 10 : 0, |
| 388 |
borderWidth: payload.is3Days ? 0 : mvs(0.5), |
| 389 |
}}> |
| 390 |
<View style={styles.radioOuter}> |
| Warning |
Row 391, Column 23: "Empty components are self-closing"
react/self-closing-comp
|
| 391 |
<View |
| 392 |
style={{ |
| 393 |
...styles.radioInner, |
| 394 |
backgroundColor: payload.is3Days |
| 395 |
? colors.pink |
| 396 |
: colors.secondary, |
| 397 |
}}></View> |
| 398 |
</View> |
| 399 |
<Regular label="3 days" style={styles.time} /> |
| 400 |
<View |
| 401 |
style={{ |
| 402 |
...styles.rewardMainContainer, |
| 403 |
backgroundColor: payload.is3Days |
| 404 |
? colors.pink |
| 405 |
: colors.secondary, |
| 406 |
}}> |
| 407 |
<Regular |
| 408 |
label={'Reward'} |
| 409 |
style={{ |
| 410 |
fontSize: mvs(12), |
| 411 |
marginTop: mvs(4), |
| 412 |
color: payload.is3Days |
| 413 |
? colors.white |
| 414 |
: colors.headerTitle, |
| 415 |
}} |
| 416 |
/> |
| 417 |
<View style={styles.price_container}> |
| 418 |
<TextInput |
| 419 |
placeholder={payload.is3Days ? '0' : undefined} |
| 420 |
placeholderTextColor={colors.input_placehoder} |
| 421 |
textAlign="center" |
| Warning |
Row 422, Column 34: "Inline style: { width: '50%', padding: 0 }"
react-native/no-inline-styles
|
| 422 |
style={{ |
| 423 |
width: '50%', |
| 424 |
color: colors.primary, |
| 425 |
padding: 0, |
| 426 |
fontSize: mvs(15), |
| 427 |
}} |
| 428 |
value={payload.is3Days ? payload.reward : null} |
| 429 |
keyboardType="number-pad" |
| 430 |
editable={payload.is3Days} |
| 431 |
onChangeText={txt => { |
| 432 |
if (txt === '') { |
| 433 |
setPayload({ |
| 434 |
...payload, |
| 435 |
reward: txt.trim(), |
| 436 |
}); |
| 437 |
} else if (TAKE_TO_CONSTANT.floatValidation(txt)) { |
| 438 |
setPayload({ |
| 439 |
...payload, |
| 440 |
reward: txt.trim(), |
| 441 |
}); |
| 442 |
} |
| 443 |
}} |
| 444 |
/> |
| Error |
Row 445, Column 45: "Replace `` with `(⏎··························⏎························)`"
prettier/prettier
|
| 445 |
{payload.is3Days && <Regular label={profileData?.currency?.currency_code} />} |
| 446 |
</View> |
| 447 |
</View> |
| Error |
Row 448, Column 38: "Delete `⏎`"
prettier/prettier
|
| 448 |
</TouchableOpacity> |
| 449 |
|
| 450 |
</View> |
| 451 |
</View> |
| Error |
Row 452, Column 28: "Insert `·(`"
prettier/prettier
|
| 452 |
{isDisplay && |
| Error |
Row 453, Column 22: "Replace `·style={{·...styles.dateAndRewardMainContainer,·...colors.shadow,·shadowOpacity:·0.2` with `⏎··················style={{⏎····················...styles.dateAndRewardMainContainer,⏎····················...colors.shadow,⏎····················shadowOpacity:·0.2,⏎·················`"
prettier/prettier
|
| Warning |
Row 453, Column 30: "Inline style: { shadowOpacity: 0.2 }"
react-native/no-inline-styles
|
| 453 |
<View style={{ ...styles.dateAndRewardMainContainer, ...colors.shadow, shadowOpacity: 0.2 }}> |
| 454 |
<TouchableOpacity |
| 455 |
activeOpacity={0.9} |
| 456 |
onPress={() => { |
| 457 |
setPayload({ |
| 458 |
...payload, |
| 459 |
is24Days: false, |
| 460 |
is3Days: false, |
| 461 |
is2Days: false, |
| 462 |
isUrgent: false, |
| 463 |
}); |
| 464 |
}} |
| Warning |
Row 465, Column 28: "Inline style: {
elevation: 'payload?.is24Days || payload?.is3Days || payload?.is2Days\n' +
' ? 0\n' +
' : 10'
}"
react-native/no-inline-styles
|
| 465 |
style={{ |
| 466 |
...styles.dateAndRewardContainer, |
| 467 |
elevation: |
| Error |
Row 468, Column 45: "Replace `·payload?.is3Days·||` with `⏎························payload?.is3Days·||⏎·······················`"
prettier/prettier
|
| 468 |
payload?.is24Days || payload?.is3Days || payload?.is2Days |
| 469 |
? 0 |
| 470 |
: 10, |
| 471 |
borderWidth: |
| Error |
Row 472, Column 45: "Replace `·payload?.is3Days·||` with `⏎························payload?.is3Days·||⏎·······················`"
prettier/prettier
|
| 472 |
payload?.is24Days || payload?.is3Days || payload?.is2Days |
| 473 |
? mvs(0.5) |
| 474 |
: mvs(0), |
| Error |
Row 475, Column 24: "Delete `⏎`"
prettier/prettier
|
| 475 |
}}> |
| 476 |
|
| 477 |
<View |
| Warning |
Row 478, Column 30: "Inline style: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center'
}"
react-native/no-inline-styles
|
| 478 |
style={{ |
| 479 |
flexDirection: 'row', |
| 480 |
justifyContent: 'space-between', |
| 481 |
alignItems: 'center', |
| 482 |
}}> |
| 483 |
<Regular |
| 484 |
label={'Or Deliver before'} |
| Error |
Row 485, Column 33: "Replace `·color:·colors.typeHeader·}}` with `color:·colors.typeHeader}}>`"
prettier/prettier
|
| 485 |
style={{ color: colors.typeHeader }} |
| Error |
Row 486, Column 1: "Replace `······················>` with `························prettier/prettier
|
| 486 |
> |
| Error |
Row 487, Column 25: "Replace `prettier/prettier
|
| 487 |
<Regular label={payload?.isUrgent ? '' : '*'} style={{ color: colors.mendatory }} /> |
| 488 |
</Regular> |
| 489 |
<Buttons.ButtonRTL |
| 490 |
textStyle={{ |
| 491 |
color: tempDate ? colors.primary : colors.label, |
| 492 |
}} |
| 493 |
// disabled={ifRadio(radioLabels.label1Way)} |
| 494 |
onClick={() => { |
| 495 |
setPayload({ |
| 496 |
...payload, |
| 497 |
is24Days: false, |
| 498 |
is3Days: false, |
| 499 |
is2Days: false, |
| 500 |
reward: payload.isUrgent ? '' : payload.reward, |
| 501 |
isUrgent: false, |
| 502 |
}); |
| 503 |
showDatePicker('date'); |
| 504 |
}} |
| 505 |
iconName={'date'} |
| 506 |
title={ |
| 507 |
// tempDate && |
| 508 |
tempDate || |
| 509 |
//moment(payload?.date).format('DD / MM / YYYY') || |
| 510 |
'Date' |
| 511 |
} |
| Warning |
Row 512, Column 32: "Inline style: { width: '49%', flexDirection: 'row-reverse' }"
react-native/no-inline-styles
|
| 512 |
style={{ |
| 513 |
width: '49%', |
| 514 |
height: mvs(38), |
| 515 |
flexDirection: 'row-reverse', |
| 516 |
backgroundColor: colors.secondary, |
| 517 |
}} |
| 518 |
/> |
| Error |
Row 519, Column 1: "Delete `⏎`"
prettier/prettier
|
| 519 |
|
| 520 |
</View> |
| 521 |
|
| 522 |
<View |
| Warning |
Row 523, Column 30: "Inline style: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| 523 |
style={{ |
| 524 |
flexDirection: 'row', |
| 525 |
alignItems: 'center', |
| 526 |
justifyContent: 'space-between', |
| 527 |
marginTop: mvs(10), |
| 528 |
}}> |
| Error |
Row 529, Column 48: "Delete `·`"
prettier/prettier
|
| 529 |
<Regular label={'Reward'} > |
| Error |
Row 530, Column 33: "Replace `·label={payload?.isUrgent·?·''·:·'*'}·style={{·color:·colors.mendatory·}}` with `⏎··························label={payload?.isUrgent·?·''·:·'*'}⏎··························style={{color:·colors.mendatory}}⏎·······················`"
prettier/prettier
|
| 530 |
<Regular label={payload?.isUrgent ? '' : '*'} style={{ color: colors.mendatory }} /> |
| 531 |
</Regular> |
| 532 |
<TAKE_TO_INPUT_FIELD.PriceInput |
| Warning |
Row 533, Column 41: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 533, Column 42: "Replace `·width:·'49%'·` with `width:·'49%'`"
prettier/prettier
|
| 533 |
containerStyle={{ width: '49%' }} |
| Error |
Row 534, Column 37: "Replace `'0'` with `"0"`"
prettier/prettier
|
| Warning |
Row 534, Column 37: "Unexpected usage of singlequote."
jsx-quotes
|
| 534 |
placeholder='0' |
| Error |
Row 535, Column 33: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 535 |
style={{ color: colors.primary }} |
| 536 |
editable={!payload.isUrgent} |
| 537 |
value={!payload.isUrgent ? payload.reward : ''} |
| 538 |
onChangeText={txt => { |
| 539 |
if (txt === '') { |
| 540 |
setPayload({ |
| 541 |
...payload, |
| 542 |
reward: txt.trim(), |
| 543 |
}); |
| 544 |
} else if (TAKE_TO_CONSTANT.floatValidation(txt)) { |
| 545 |
setPayload({ |
| 546 |
...payload, |
| 547 |
reward: txt.trim(), |
| 548 |
}); |
| 549 |
} |
| 550 |
}} |
| 551 |
priceUnit={profileData?.currency?.currency_code} |
| 552 |
/> |
| 553 |
</View> |
| 554 |
</TouchableOpacity> |
| 555 |
</View> |
| Error |
Row 556, Column 15: "Insert `)`"
prettier/prettier
|
| 556 |
} |
| Error |
Row 557, Column 29: "Replace `·paddingHorizontal:·mvs(22)·` with `paddingHorizontal:·mvs(22)`"
prettier/prettier
|
| 557 |
<View style={{ paddingHorizontal: mvs(22) }}> |
| 558 |
<Buttons.ButtonPrimary |
| 559 |
onClick={async () => { |
| 560 |
// //console.log("data:", payload) |
| 561 |
try { |
| 562 |
const response = |
| 563 |
TAKE_TO_CONSTANT.deliveryDetailsValidation(payload); |
| 564 |
if (response.status) { |
| 565 |
props.navigation.navigate('detailsconfirmation', { |
| 566 |
payload: { |
| 567 |
...payload, |
| Error |
Row 568, Column 48: "Insert `,`"
prettier/prettier
|
| Warning |
Row 568, Column 48: "Missing trailing comma."
comma-dangle
|
| 568 |
date: payload?.date |
| 569 |
//date: moment(payload?.date).format('YYYY-MM-DD'), |
| 570 |
}, |
| 571 |
}); |
| 572 |
} else { |
| 573 |
throw new Error(response.message); |
| 574 |
} |
| 575 |
} catch (error) { |
| 576 |
//alert(UI_API._returnError(error)); |
| 577 |
alertRef.current.alertWithType( |
| 578 |
'error', |
| 579 |
'Error', |
| 580 |
UI_API._returnError(error), |
| 581 |
); |
| 582 |
} |
| 583 |
}} |
| 584 |
title={payload.isCarrier ? 'Apply & Wait' : 'Next'} |
| 585 |
style={{ |
| 586 |
backgroundColor: colors.primary, |
| 587 |
marginTop: mvs(133), |
| 588 |
}} |
| 589 |
textStyle={{ |
| 590 |
color: colors.white, |
| 591 |
}} |
| 592 |
/> |
| 593 |
</View> |
| 594 |
</View> |
| 595 |
</ScrollView> |
| 596 |
</View> |
| 597 |
<DeliveryLocationModal |
| 598 |
list={list} |
| 599 |
selectedLocation={payload.deliveryLocation} |
| 600 |
visible={visible} |
| 601 |
onClose={() => { |
| 602 |
setVisible(false); |
| 603 |
const selectedItem = list.find(ele => ele.isSelected); |
| 604 |
console.log('sele: ', selectedItem); |
| Error |
Row 605, Column 25: "Replace `·...payload,·deliveryLocation:·selectedItem?.title·` with `...payload,·deliveryLocation:·selectedItem?.title`"
prettier/prettier
|
| 605 |
setPayload({ ...payload, deliveryLocation: selectedItem?.title }); |
| 606 |
}} |
| 607 |
onCancel={() => setVisible(false)} |
| 608 |
onChangeSelection={(item, index) => { |
| Error |
Row 609, Column 48: "Replace `·...ele,·isSelected:·false·` with `...ele,·isSelected:·false`"
prettier/prettier
|
| 609 |
const copy = [...list.map(ele => ({ ...ele, isSelected: false }))]; |
| 610 |
item.isSelected = true; |
| 611 |
copy[index] = item; |
| 612 |
setList(copy); |
| 613 |
}} |
| 614 |
/> |
| 615 |
|
| 616 |
<DatePickerModal |
| 617 |
visible={isDatePickerVisible} |
| 618 |
onClose={() => { |
| 619 |
setDatePickerVisibility(false); |
| 620 |
}} |
| 621 |
onApply={d => hideDatePicker(d)} |
| 622 |
/> |
| 623 |
|
| 624 |
<SearchLocationModal |
| 625 |
visible={locationModal} |
| 626 |
setVisible={() => { |
| 627 |
setLocationModal(false); |
| 628 |
}} |
| 629 |
setLocation={res => { |
| 630 |
console.log(res); |
| 631 |
setPayload({ |
| 632 |
...payload, |
| 633 |
storeAddress: res, |
| 634 |
}); |
| 635 |
}} |
| 636 |
/> |
| 637 |
</View> |
| Error |
Row 638, Column 21: "Replace `·translucent·activeStatusBarStyle={'light-content'}·inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎········translucent⏎········activeStatusBarStyle={'light-content'}⏎········inactiveStatusBarBackgroundColor={colors.primary}⏎········ref={alertRef}⏎·····`"
prettier/prettier
|
| 638 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 639 |
</KeyboardAvoidingView> |
| 640 |
); |
| 641 |
}; |
| 642 |
|
| 643 |
//export default OrderDeliveryDetail; |
| 644 |
const mapStateToProps = state => { |
| 645 |
return { |
| 646 |
// addressesList: state.auth.userInfo?.addresses || [], |
| 647 |
selectedDeliveryAddress: state.common.selectedDeliveryAddress, |
| 648 |
profileData: state.auth.userInfo?.profile || {}, |
| 649 |
countryList: state.common.countriesList || [], |
| 650 |
}; |
| 651 |
}; |
| 652 |
|
| 653 |
const mapDispatchToProps = dispatch => ({ |
| 654 |
fetchDeliveryAddress: data => |
| 655 |
dispatch(TAKE_TO_ACTIONS.fetchDeliveryAddress(data)), |
| 656 |
}); |
| 657 |
|
| 658 |
export default connect( |
| 659 |
mapStateToProps, |
| 660 |
mapDispatchToProps, |
| 661 |
)(OrderDeliveryDetail); |
| 662 |
|
| 663 |
const styles = StyleSheet.create({ |
| 664 |
SCROLL_CONTAINER: { |
| 665 |
flexGrow: 1, |
| 666 |
paddingBottom: mvs(30), |
| 667 |
}, |
| 668 |
BODY: { |
| 669 |
flex: 1, |
| 670 |
backgroundColor: colors.white, |
| 671 |
}, |
| 672 |
CARD: { |
| 673 |
paddingTop: mvs(29), |
| 674 |
backgroundColor: colors.white, |
| 675 |
paddingBottom: mvs(20), |
| 676 |
paddingHorizontal: mvs(22), |
| 677 |
borderBottomEndRadius: mvs(20), |
| 678 |
borderBottomStartRadius: mvs(20), |
| 679 |
}, |
| 680 |
BOTTOM_CONTAINER: { |
| 681 |
//borderWidth : 1 |
| 682 |
}, |
| 683 |
URGENT_CONTAINER: { |
| 684 |
padding: mvs(15), |
| 685 |
backgroundColor: colors.white, |
| 686 |
borderRadius: mvs(10), |
| 687 |
marginTop: mvs(22), |
| 688 |
}, |
| 689 |
FLAG_BUTTON: { |
| 690 |
// width: mvs(161), |
| 691 |
height: mvs(38), |
| 692 |
flexDirection: 'row-reverse', |
| 693 |
backgroundColor: colors.secondary, |
| 694 |
}, |
| 695 |
ROW: { |
| 696 |
flexDirection: 'row', |
| 697 |
justifyContent: 'space-between', |
| 698 |
alignItems: 'center', |
| 699 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 700 |
borderColor: colors.price_border, |
| 701 |
paddingBottom: mvs(10), |
| 702 |
}, |
| 703 |
DELIVERY_LOC: { |
| 704 |
backgroundColor: colors.secondary, |
| 705 |
alignItems: 'flex-start', |
| 706 |
paddingHorizontal: mvs(10), |
| 707 |
width: '65%', |
| 708 |
height: mvs(38), |
| 709 |
}, |
| 710 |
calendarContainer: { |
| 711 |
backgroundColor: colors.white, |
| 712 |
paddingBottom: mvs(20), |
| 713 |
}, |
| 714 |
urgentContainer: { |
| 715 |
//borderWidth : 1, |
| 716 |
paddingHorizontal: mvs(22), |
| 717 |
paddingTop: mvs(22), |
| 718 |
paddingBottom: mvs(30), |
| 719 |
}, |
| 720 |
radiosContainer: { |
| 721 |
//height : mvs(121), |
| 722 |
//borderWidth : 1, |
| 723 |
width: '100%', |
| 724 |
marginTop: mvs(18), |
| 725 |
flexDirection: 'row', |
| 726 |
justifyContent: 'space-between', |
| 727 |
}, |
| 728 |
radioBox: { |
| 729 |
backgroundColor: colors.white, |
| 730 |
borderRadius: mvs(10), |
| 731 |
height: '100%', |
| 732 |
width: '32%', |
| 733 |
alignItems: 'center', |
| 734 |
padding: mvs(5), |
| 735 |
borderWidth: mvs(0.5), |
| 736 |
borderColor: '#BBC0C3', |
| 737 |
}, |
| 738 |
radioOuter: { |
| 739 |
height: mvs(15), |
| 740 |
width: mvs(15), |
| 741 |
borderRadius: mvs(15 / 2), |
| 742 |
backgroundColor: colors.secondary, |
| 743 |
justifyContent: 'center', |
| 744 |
alignItems: 'center', |
| 745 |
marginTop: mvs(5), |
| 746 |
}, |
| 747 |
radioInner: { |
| 748 |
height: mvs(7), |
| 749 |
width: mvs(7), |
| 750 |
borderRadius: mvs(7 / 2), |
| 751 |
backgroundColor: colors.white, |
| 752 |
}, |
| 753 |
time: { |
| 754 |
fontSize: mvs(14), |
| 755 |
color: colors.typeHeader, |
| 756 |
marginTop: mvs(7), |
| 757 |
}, |
| 758 |
rewardMainContainer: { |
| 759 |
//height : mvs(60), |
| 760 |
width: '100%', |
| 761 |
backgroundColor: colors.secondary, |
| 762 |
marginTop: mvs(10), |
| 763 |
borderRadius: mvs(10), |
| 764 |
padding: mvs(4), |
| 765 |
alignItems: 'center', |
| 766 |
}, |
| 767 |
rewardContainer: { |
| 768 |
// paddingHorizontal : mvs(14), |
| 769 |
// paddingVertical : mvs(9), |
| 770 |
padding: 0, |
| 771 |
paddingHorizontal: mvs(10), |
| 772 |
backgroundColor: colors.white, |
| 773 |
borderRadius: mvs(10), |
| 774 |
marginTop: mvs(5), |
| 775 |
width: '100%', |
| 776 |
height: mvs(31), |
| 777 |
alignItems: 'center', |
| 778 |
justifyContent: 'center', |
| 779 |
color: colors.primary, |
| 780 |
}, |
| 781 |
dateAndRewardMainContainer: { |
| 782 |
paddingHorizontal: mvs(22), |
| 783 |
}, |
| 784 |
dateAndRewardContainer: { |
| 785 |
borderWidth: mvs(0.5), |
| 786 |
//height : mvs(120), |
| 787 |
borderRadius: mvs(10), |
| 788 |
borderColor: '#BBC0C3', |
| 789 |
padding: mvs(10), |
| 790 |
backgroundColor: colors.white, |
| 791 |
}, |
| 792 |
price_container: { |
| 793 |
flexDirection: 'row', |
| 794 |
justifyContent: 'space-between', |
| 795 |
alignItems: 'center', |
| 796 |
backgroundColor: colors.white, |
| 797 |
borderRadius: mvs(10), |
| 798 |
width: '100%', |
| 799 |
marginTop: mvs(5), |
| 800 |
height: mvs(31), |
| 801 |
paddingHorizontal: mvs(9), |
| 802 |
}, |
| 803 |
}); |
| 804 |
|
|
|
|
/src/screens/orders/payment-confirmation.js
|
4 problems (0 errors, 4 warnings)
|
| Line |
Source |
| 1 |
import React from 'react'; |
| 2 |
import {ScrollView, StyleSheet, View} from 'react-native'; |
| 3 |
import Buttons from '../../components/atoms/Button'; |
| 4 |
import ImagePlaceholder from '../../components/atoms/Placeholder'; |
| 5 |
import CustomSwitch from '../../components/atoms/Switch'; |
| 6 |
import DualText from '../../components/molecules/dual-text/dual-text'; |
| 7 |
import Header from '../../components/molecules/header/header-1x'; |
| 8 |
import SettingCard from '../../components/molecules/setting_card/setting-card'; |
| 9 |
import colors from '../../config/colors'; |
| 10 |
import {mvs} from '../../config/metrices'; |
| 11 |
import Regular from '../../presentation/typography/regular-text'; |
| 12 |
|
| 13 |
const PaymentConfirmation = props => { |
| 14 |
const [payload, setPayload] = React.useState({ |
| 15 |
isPromotionEmail: true, |
| 16 |
isOrderEmail: true, |
| 17 |
isSms: false, |
| 18 |
}); |
| 19 |
|
| 20 |
return ( |
| 21 |
<View style={styles.mainContainer}> |
| 22 |
<Header {...props} title="payment confirmation" /> |
| 23 |
<ScrollView style={styles.container}> |
| 24 |
<Regular label="Congratulations" style={styles.title} /> |
| 25 |
<Regular |
| 26 |
label="Your payment was successfully made," |
| 27 |
style={styles.detail} |
| 28 |
/> |
| 29 |
<Regular |
| 30 |
label="& your offers were requested." |
| Warning |
Row 31, Column 18: "Inline style: { marginTop: 0 }"
react-native/no-inline-styles
|
| 31 |
style={{...styles.detail, marginTop: 0}} |
| 32 |
/> |
| 33 |
<View style={styles.imageContainer}> |
| 34 |
<ImagePlaceholder containerStyle={styles.image} /> |
| 35 |
</View> |
| 36 |
<Regular |
| 37 |
label="iPhone 13 Pro 128GB Sierra blue" |
| 38 |
style={styles.productName} |
| 39 |
/> |
| 40 |
|
| 41 |
<SettingCard |
| 42 |
heading={'Make sure your notifications are on'} |
| Warning |
Row 43, Column 25: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| 43 |
headingStyle={{alignSelf: 'center'}} |
| 44 |
style={{marginTop: mvs(33)}}> |
| 45 |
<DualText |
| Warning |
Row 46, Column 20: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| 46 |
style={{ |
| 47 |
alignSelf: 'center', |
| 48 |
fontSize: mvs(11), |
| 49 |
color: colors.lightgrey2, |
| 50 |
}} |
| 51 |
content={'You will be notified when you start receiving Offers'} |
| 52 |
/> |
| 53 |
<CustomSwitch |
| 54 |
value={payload.isOrderEmail} |
| 55 |
label={'Email'} |
| 56 |
onChange={v => setPayload({...payload, isOrderEmail: v})} |
| 57 |
textStyle={{color: colors.primary}} |
| 58 |
/> |
| 59 |
<CustomSwitch |
| 60 |
style={{marginTop: mvs(28)}} |
| 61 |
value={payload.isSms} |
| 62 |
label={'SMS'} |
| 63 |
onChange={v => setPayload({...payload, isSms: v})} |
| 64 |
textStyle={{color: colors.primary}} |
| 65 |
/> |
| 66 |
</SettingCard> |
| 67 |
|
| 68 |
<View style={styles.noteContainer}> |
| 69 |
<DualText |
| 70 |
style={{ |
| 71 |
color: colors.headerTitle, |
| 72 |
fontSize: mvs(12), |
| 73 |
}} |
| 74 |
content={'By publishing my order, I agree to Taketo’s'} |
| 75 |
highlightText={' Terms of Use'} |
| Warning |
Row 76, Column 33: "Inline style: { textDecorationLine: 'underline' }"
react-native/no-inline-styles
|
| 76 |
highlightTextStyle={{ |
| 77 |
textDecorationLine: 'underline', |
| 78 |
fontSize: mvs(12), |
| 79 |
}}> |
| 80 |
<Regular |
| 81 |
style={{ |
| 82 |
color: colors.headerTitle, |
| 83 |
fontSize: mvs(12), |
| 84 |
}} |
| 85 |
label=". I understand that if the product price is incorrect, my order may be canceled." |
| 86 |
/> |
| 87 |
</DualText> |
| 88 |
</View> |
| 89 |
|
| 90 |
<Buttons.ButtonPrimary |
| 91 |
onClick={() => { |
| 92 |
props.navigation.navigate('main'); |
| 93 |
}} |
| 94 |
style={styles.button} |
| 95 |
title="Cancel Order" |
| 96 |
/> |
| 97 |
|
| 98 |
<Buttons.ButtonPrimary |
| 99 |
onClick={() => { |
| 100 |
props.navigation.navigate('Home'); |
| 101 |
}} |
| 102 |
style={styles.button1} |
| 103 |
title="Back to Home Page" |
| 104 |
/> |
| 105 |
</ScrollView> |
| 106 |
</View> |
| 107 |
); |
| 108 |
}; |
| 109 |
|
| 110 |
export default PaymentConfirmation; |
| 111 |
|
| 112 |
const styles = StyleSheet.create({ |
| 113 |
mainContainer: { |
| 114 |
flex: 1, |
| 115 |
backgroundColor: colors.white, |
| 116 |
}, |
| 117 |
container: { |
| 118 |
flex: 1, |
| 119 |
paddingHorizontal: mvs(22), |
| 120 |
}, |
| 121 |
imageContainer: { |
| 122 |
alignSelf: 'center', |
| 123 |
marginTop: mvs(30), |
| 124 |
height: mvs(125), |
| 125 |
width: mvs(104), |
| 126 |
borderWidth: 0.3, |
| 127 |
borderRadius: mvs(10), |
| 128 |
borderColor: colors.price_border, |
| 129 |
justifyContent: 'center', |
| 130 |
alignItems: 'center', |
| 131 |
}, |
| 132 |
image: { |
| 133 |
height: mvs(98), |
| 134 |
width: mvs(75), |
| 135 |
borderRadius: mvs(10), |
| 136 |
}, |
| 137 |
productName: { |
| 138 |
fontSize: mvs(18), |
| 139 |
color: colors.headerTitle, |
| 140 |
alignSelf: 'center', |
| 141 |
marginTop: mvs(10), |
| 142 |
}, |
| 143 |
title: { |
| 144 |
fontSize: mvs(20), |
| 145 |
color: colors.primary, |
| 146 |
alignSelf: 'center', |
| 147 |
marginTop: mvs(37), |
| 148 |
}, |
| 149 |
detail: { |
| 150 |
fontSize: mvs(13), |
| 151 |
color: colors.lightgrey2, |
| 152 |
alignSelf: 'center', |
| 153 |
marginTop: mvs(10), |
| 154 |
}, |
| 155 |
noteContainer: { |
| 156 |
//borderWidth : 1, |
| 157 |
marginTop: mvs(20), |
| 158 |
}, |
| 159 |
button: { |
| 160 |
marginTop: mvs(74), |
| 161 |
backgroundColor: colors.pink, |
| 162 |
}, |
| 163 |
button1: { |
| 164 |
marginTop: mvs(12), |
| 165 |
marginBottom: mvs(40), |
| 166 |
}, |
| 167 |
}); |
| 168 |
|
|
|
|
/src/screens/orders/posted-orders.js
|
60 problems (33 errors, 27 warnings)
|
| Severity |
Rule |
| Error |
Row 9, Column 7: "Insert `,`"
prettier/prettier
|
| Warning |
Row 9, Column 7: "Missing trailing comma."
comma-dangle
|
| Error |
Row 11, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 12, Column 9: "Replace `·Pagination·` with `Pagination`"
prettier/prettier
|
| Error |
Row 17, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| Warning |
Row 19, Column 8: "'AsyncStorage' is defined but never used."
no-unused-vars
|
| Error |
Row 21, Column 8: "Replace `·DeviceInfo·` with `DeviceInfo`"
prettier/prettier
|
| Warning |
Row 26, Column 5: "'route' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 29, Column 16: "Insert `,`"
prettier/prettier
|
| Warning |
Row 29, Column 16: "Missing trailing comma."
comma-dangle
|
| Error |
Row 37, Column 26: "Replace `=·async·(stateLoader)` with `·=·async·stateLoader`"
prettier/prettier
|
| Warning |
Row 37, Column 26: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 41, Column 5: "Replace `const·providers=await·` with `··const·providers·=·await`"
prettier/prettier
|
| Warning |
Row 41, Column 20: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 42, Column 1: "Replace `····` with `······`"
prettier/prettier
|
| Error |
Row 43, Column 5: "Replace `if(·Object.keys(providers).length·>·0)` with `··if·(Object.keys(providers).length·>·0)·`"
prettier/prettier
|
| Warning |
Row 43, Column 5: "Expected space(s) after "if"."
keyword-spacing
|
| Error |
Row 44, Column 1: "Replace `⏎` with `··`"
prettier/prettier
|
| Error |
Row 46, Column 7: "Replace `console.log("LOC·::·",location)` with `··console.log('LOC·::·',·location);`"
prettier/prettier
|
| Warning |
Row 46, Column 19: "Strings must use singlequote."
quotes
|
| Warning |
Row 46, Column 38: "Missing semicolon."
semi
|
| Error |
Row 47, Column 7: "Replace `if(location)` with `··if·(location)·`"
prettier/prettier
|
| Warning |
Row 47, Column 7: "Expected space(s) after "if"."
keyword-spacing
|
| Error |
Row 48, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 49, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 50, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 51, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 52, Column 7: "Replace `}else` with `··}·else·`"
prettier/prettier
|
| Warning |
Row 52, Column 8: "Expected space(s) before "else"."
keyword-spacing
|
| Warning |
Row 52, Column 8: "Expected space(s) after "else"."
keyword-spacing
|
| Error |
Row 53, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 54, Column 7: "Delete `}⏎··`"
prettier/prettier
|
| Error |
Row 56, Column 4: "Replace `·else` with `···}·else·`"
prettier/prettier
|
| Warning |
Row 56, Column 5: "Expected space(s) after "else"."
keyword-spacing
|
| Error |
Row 57, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 58, Column 4: "Replace `·}⏎····` with `···}`"
prettier/prettier
|
| Warning |
Row 59, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 61, Column 28: "Insert `·`"
prettier/prettier
|
| Error |
Row 62, Column 38: "Replace `⏎········'error',⏎········UI_API._returnError(error),⏎······` with `'error',·UI_API._returnError(error)`"
prettier/prettier
|
| Error |
Row 66, Column 6: "Replace `finally` with `·finally·`"
prettier/prettier
|
| Warning |
Row 66, Column 6: "Expected space(s) before "finally"."
keyword-spacing
|
| Warning |
Row 66, Column 6: "Expected space(s) after "finally"."
keyword-spacing
|
| Error |
Row 69, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 69, Column 4: "Missing semicolon."
semi
|
| Error |
Row 72, Column 34: "Insert `;`"
prettier/prettier
|
| Warning |
Row 72, Column 34: "Missing semicolon."
semi
|
| Error |
Row 73, Column 6: "React Hook React.useEffect has a missing dependency: 'fetchPostedOrders'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 93, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Warning |
Row 95, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 98, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| Warning |
Row 107, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Warning |
Row 110, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 117, Column 20: "Strings must use singlequote."
quotes
|
| Warning |
Row 118, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 121, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| Warning |
Row 124, Column 5: "Expected { after 'else'."
curly
|
| Warning |
Row 126, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Warning |
Row 128, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 247, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| Error |
Row 254, Column 1: "Delete `··`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 2 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 3 |
import React from 'react'; |
| 4 |
import { |
| 5 |
ActivityIndicator, |
| 6 |
Animated, |
| 7 |
ScrollView, |
| 8 |
StyleSheet, |
| Error |
Row 9, Column 7: "Insert `,`"
prettier/prettier
|
| Warning |
Row 9, Column 7: "Missing trailing comma."
comma-dangle
|
| 9 |
View |
| 10 |
} from 'react-native'; |
| Error |
Row 11, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 11 |
import { connect } from 'react-redux'; |
| Error |
Row 12, Column 9: "Replace `·Pagination·` with `Pagination`"
prettier/prettier
|
| 12 |
import { Pagination } from '../../components/atoms/pagination'; |
| 13 |
import Header from '../../components/molecules/header/header-1x'; |
| 14 |
import MakeOfferOrderCard from '../../components/molecules/order_card/make-offer-card'; |
| 15 |
import OrderTypeHeader from '../../components/molecules/order_card/order-type-header'; |
| 16 |
import colors from '../../config/colors'; |
| Error |
Row 17, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| 17 |
import { mvs, width } from '../../config/metrices'; |
| 18 |
import Regular from '../../presentation/typography/regular-text'; |
| Warning |
Row 19, Column 8: "'AsyncStorage' is defined but never used."
no-unused-vars
|
| 19 |
import AsyncStorage from '@react-native-async-storage/async-storage'; |
| 20 |
import DropdownAlert from 'react-native-dropdownalert'; |
| Error |
Row 21, Column 8: "Replace `·DeviceInfo·` with `DeviceInfo`"
prettier/prettier
|
| 21 |
import DeviceInfo from 'react-native-device-info'; |
| 22 |
|
| 23 |
const PostedOrders = props => { |
| 24 |
const { |
| 25 |
navigation, |
| Warning |
Row 26, Column 5: "'route' is assigned a value but never used."
no-unused-vars
|
| 26 |
route, |
| 27 |
local_international_orders_list, |
| 28 |
fetchPostedOrdersLocalAndInternational, |
| Error |
Row 29, Column 16: "Insert `,`"
prettier/prettier
|
| Warning |
Row 29, Column 16: "Missing trailing comma."
comma-dangle
|
| 29 |
profileData |
| 30 |
} = props; |
| 31 |
const [local_order, setLocal_Order] = React.useState([]); |
| 32 |
const [international_order, setInternational_Order] = React.useState([]); |
| 33 |
const scrollX = React.useRef(new Animated.Value(0)).current; |
| 34 |
const scrollX2 = React.useRef(new Animated.Value(0)).current; |
| 35 |
const [loading, setLoading] = React.useState(true); |
| 36 |
const alertRef = React.useRef(); |
| Error |
Row 37, Column 26: "Replace `=·async·(stateLoader)` with `·=·async·stateLoader`"
prettier/prettier
|
| Warning |
Row 37, Column 26: "Operator '=' must be spaced."
space-infix-ops
|
| 37 |
const fetchPostedOrders= async (stateLoader) => { |
| 38 |
try { |
| 39 |
stateLoader(true); |
| 40 |
// let location = await AsyncStorage.getItem('@location'); |
| Error |
Row 41, Column 5: "Replace `const·providers=await·` with `··const·providers·=·await`"
prettier/prettier
|
| Warning |
Row 41, Column 20: "Operator '=' must be spaced."
space-infix-ops
|
| 41 |
const providers=await DeviceInfo.getAvailableLocationProviders(); |
| Error |
Row 42, Column 1: "Replace `····` with `······`"
prettier/prettier
|
| 42 |
console.log(providers); |
| Error |
Row 43, Column 5: "Replace `if(·Object.keys(providers).length·>·0)` with `··if·(Object.keys(providers).length·>·0)·`"
prettier/prettier
|
| Warning |
Row 43, Column 5: "Expected space(s) after "if"."
keyword-spacing
|
| 43 |
if( Object.keys(providers).length > 0){ |
| Error |
Row 44, Column 1: "Replace `⏎` with `··`"
prettier/prettier
|
| 44 |
|
| 45 |
let location = await UI_API._get_current_location(false); |
| Error |
Row 46, Column 7: "Replace `console.log("LOC·::·",location)` with `··console.log('LOC·::·',·location);`"
prettier/prettier
|
| Warning |
Row 46, Column 19: "Strings must use singlequote."
quotes
|
| Warning |
Row 46, Column 38: "Missing semicolon."
semi
|
| 46 |
console.log("LOC :: ",location) |
| Error |
Row 47, Column 7: "Replace `if(location)` with `··if·(location)·`"
prettier/prettier
|
| Warning |
Row 47, Column 7: "Expected space(s) after "if"."
keyword-spacing
|
| 47 |
if(location){ |
| Error |
Row 48, Column 1: "Insert `··`"
prettier/prettier
|
| 48 |
await fetchPostedOrdersLocalAndInternational( |
| Error |
Row 49, Column 11: "Insert `··`"
prettier/prettier
|
| 49 |
location?.latitude, |
| Error |
Row 50, Column 1: "Insert `··`"
prettier/prettier
|
| 50 |
location?.longitude, |
| Error |
Row 51, Column 1: "Insert `··`"
prettier/prettier
|
| 51 |
); |
| Error |
Row 52, Column 7: "Replace `}else` with `··}·else·`"
prettier/prettier
|
| Warning |
Row 52, Column 8: "Expected space(s) before "else"."
keyword-spacing
|
| Warning |
Row 52, Column 8: "Expected space(s) after "else"."
keyword-spacing
|
| 52 |
}else{ |
| Error |
Row 53, Column 1: "Insert `··`"
prettier/prettier
|
| 53 |
await fetchPostedOrdersLocalAndInternational(); |
| Error |
Row 54, Column 7: "Delete `}⏎··`"
prettier/prettier
|
| 54 |
} |
| 55 |
} |
| Error |
Row 56, Column 4: "Replace `·else` with `···}·else·`"
prettier/prettier
|
| Warning |
Row 56, Column 5: "Expected space(s) after "else"."
keyword-spacing
|
| 56 |
else{ |
| Error |
Row 57, Column 1: "Insert `··`"
prettier/prettier
|
| 57 |
await fetchPostedOrdersLocalAndInternational(); |
| Error |
Row 58, Column 4: "Replace `·}⏎····` with `···}`"
prettier/prettier
|
| 58 |
} |
| Warning |
Row 59, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| 59 |
|
| 60 |
} catch (error) { |
| Error |
Row 61, Column 28: "Insert `·`"
prettier/prettier
|
| 61 |
console.log('error:',error); |
| Error |
Row 62, Column 38: "Replace `⏎········'error',⏎········UI_API._returnError(error),⏎······` with `'error',·UI_API._returnError(error)`"
prettier/prettier
|
| 62 |
alertRef.current.alertWithType( |
| 63 |
'error', |
| 64 |
UI_API._returnError(error), |
| 65 |
); |
| Error |
Row 66, Column 6: "Replace `finally` with `·finally·`"
prettier/prettier
|
| Warning |
Row 66, Column 6: "Expected space(s) before "finally"."
keyword-spacing
|
| Warning |
Row 66, Column 6: "Expected space(s) after "finally"."
keyword-spacing
|
| 66 |
}finally{ |
| 67 |
stateLoader(false); |
| 68 |
} |
| Error |
Row 69, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 69, Column 4: "Missing semicolon."
semi
|
| 69 |
} |
| 70 |
|
| 71 |
React.useEffect(() => { |
| Error |
Row 72, Column 34: "Insert `;`"
prettier/prettier
|
| Warning |
Row 72, Column 34: "Missing semicolon."
semi
|
| 72 |
fetchPostedOrders(setLoading) |
| Error |
Row 73, Column 6: "React Hook React.useEffect has a missing dependency: 'fetchPostedOrders'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 73 |
}, [profileData?.currency]); |
| 74 |
|
| 75 |
React.useEffect(() => { |
| 76 |
Object.keys(local_international_orders_list).length > 1 && |
| 77 |
setLocal_Order( |
| 78 |
local_international_orders_list |
| 79 |
? local_international_orders_list?.local_orders |
| 80 |
: [], |
| 81 |
); |
| 82 |
Object.keys(local_international_orders_list).length > 1 && |
| 83 |
setInternational_Order( |
| 84 |
local_international_orders_list |
| 85 |
? local_international_orders_list?.international_orders |
| 86 |
: [], |
| 87 |
); |
| 88 |
}, [local_international_orders_list]); |
| 89 |
|
| 90 |
// console.log(local_order) |
| 91 |
if (loading) { |
| 92 |
return ( |
| Warning |
Row 93, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 93 |
<View style={{flex: 1, backgroundColor: colors.white}}> |
| 94 |
<Header {...props} title="posted orders" allowBackBtn bellIcon /> |
| Warning |
Row 95, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 95 |
<View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}> |
| 96 |
<ActivityIndicator size="small" color={colors.primary} /> |
| 97 |
</View> |
| Error |
Row 98, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| 98 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 99 |
</View> |
| 100 |
); |
| 101 |
} else if ( |
| 102 |
!loading && |
| 103 |
local_order.length <= 0 && |
| 104 |
international_order.length <= 0 |
| 105 |
) { |
| 106 |
return ( |
| Warning |
Row 107, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 107 |
<View style={{flex: 1, backgroundColor: colors.white}}> |
| 108 |
<Header {...props} title="posted orders" allowBackBtn bellIcon /> |
| 109 |
<View |
| Warning |
Row 110, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 110 |
style={{ |
| 111 |
flex: 1, |
| 112 |
justifyContent: 'center', |
| 113 |
alignItems: 'center', |
| 114 |
paddingHorizontal: mvs(20), |
| 115 |
}}> |
| 116 |
<Regular |
| Warning |
Row 117, Column 20: "Strings must use singlequote."
quotes
|
| 117 |
label={`No Record Found`} |
| Warning |
Row 118, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 118 |
style={{textAlign: 'center', color: colors.primary}} |
| 119 |
/> |
| 120 |
</View> |
| Error |
Row 121, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| 121 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 122 |
</View> |
| 123 |
); |
| Warning |
Row 124, Column 5: "Expected { after 'else'."
curly
|
| 124 |
} else |
| 125 |
return ( |
| Warning |
Row 126, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 126 |
<View style={{flex: 1, backgroundColor: colors.white}}> |
| 127 |
<Header {...props} title="posted orders" allowBackBtn bellIcon /> |
| Warning |
Row 128, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 128 |
<View style={{flex: 1}}> |
| 129 |
<ScrollView |
| 130 |
contentContainerStyle={styles.SCROLL_CONTAINER} |
| 131 |
showsVerticalScrollIndicator={false}> |
| 132 |
{local_order?.length !== 0 && ( |
| 133 |
<> |
| 134 |
<OrderTypeHeader |
| 135 |
isIcon |
| 136 |
containerStyle={{paddingTop: mvs(10)}} |
| 137 |
title="Local Orders" |
| 138 |
onPress={() => |
| 139 |
navigation.navigate('localorders', {isLocalOrders: true}) |
| 140 |
} |
| 141 |
/> |
| 142 |
<View style={{...styles.RELEVENT_ORDER}}> |
| 143 |
<Animated.FlatList |
| 144 |
showsHorizontalScrollIndicator={false} |
| 145 |
pagingEnabled |
| 146 |
horizontal |
| 147 |
contentContainerStyle={{}} |
| 148 |
onScroll={Animated.event( |
| 149 |
[ |
| 150 |
{ |
| 151 |
nativeEvent: { |
| 152 |
contentOffset: {x: scrollX}, |
| 153 |
}, |
| 154 |
}, |
| 155 |
], |
| 156 |
{ |
| 157 |
useNativeDriver: true, |
| 158 |
}, |
| 159 |
)} |
| 160 |
data={local_order} |
| 161 |
renderItem={({item}) => ( |
| 162 |
<View |
| 163 |
style={{ |
| 164 |
paddingHorizontal: mvs(22), |
| 165 |
paddingBottom: mvs(2), |
| 166 |
}}> |
| 167 |
<MakeOfferOrderCard |
| 168 |
{...props} |
| 169 |
order_data={item} |
| 170 |
{...local_order} |
| 171 |
{...UI_API._returnOrderProps(item)} |
| 172 |
style={{ |
| 173 |
width: width - mvs(22) * 2, |
| 174 |
}} |
| 175 |
/> |
| 176 |
</View> |
| 177 |
)} |
| 178 |
keyExtractor={(item, index) => index + ''} |
| 179 |
/> |
| 180 |
<Pagination |
| 181 |
list={local_order} |
| 182 |
scrollX={scrollX} |
| 183 |
style={styles.PAGINATION} |
| 184 |
dotStyle={{backgroundColor: colors.price_border}} |
| 185 |
/> |
| 186 |
</View> |
| 187 |
</> |
| 188 |
)} |
| 189 |
{international_order?.length !== 0 && ( |
| 190 |
<> |
| 191 |
<OrderTypeHeader |
| 192 |
isLocal={false} |
| 193 |
isIcon |
| 194 |
containerStyle={{paddingTop: mvs(32)}} |
| 195 |
title="International Orders" |
| 196 |
onPress={() => navigation.navigate('international')} |
| 197 |
/> |
| 198 |
<View style={{...styles.RELEVENT_ORDER}}> |
| 199 |
<Animated.FlatList |
| 200 |
showsHorizontalScrollIndicator={false} |
| 201 |
pagingEnabled |
| 202 |
horizontal |
| 203 |
contentContainerStyle={{}} |
| 204 |
onScroll={Animated.event( |
| 205 |
[ |
| 206 |
{ |
| 207 |
nativeEvent: { |
| 208 |
contentOffset: {x: scrollX2}, |
| 209 |
}, |
| 210 |
}, |
| 211 |
], |
| 212 |
{ |
| 213 |
useNativeDriver: true, |
| 214 |
}, |
| 215 |
)} |
| 216 |
data={international_order} |
| 217 |
renderItem={({item}) => ( |
| 218 |
<View |
| 219 |
style={{ |
| 220 |
paddingHorizontal: mvs(22), |
| 221 |
paddingBottom: mvs(2), |
| 222 |
}}> |
| 223 |
<MakeOfferOrderCard |
| 224 |
{...props} |
| 225 |
order_data={item} |
| 226 |
{...international_order} |
| 227 |
{...UI_API._returnOrderProps(item)} |
| 228 |
style={{ |
| 229 |
width: width - mvs(22) * 2, |
| 230 |
}} |
| 231 |
/> |
| 232 |
</View> |
| 233 |
)} |
| 234 |
keyExtractor={(item, index) => index + ''} |
| 235 |
/> |
| 236 |
<Pagination |
| 237 |
list={international_order} |
| 238 |
scrollX={scrollX2} |
| 239 |
style={styles.PAGINATION} |
| 240 |
dotStyle={{backgroundColor: colors.price_border}} |
| 241 |
/> |
| 242 |
</View> |
| 243 |
</> |
| 244 |
)} |
| 245 |
</ScrollView> |
| 246 |
</View> |
| Error |
Row 247, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| 247 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 248 |
</View> |
| 249 |
); |
| 250 |
}; |
| 251 |
export const mapStateToProps = state => ({ |
| 252 |
local_international_orders_list: |
| 253 |
state.common_orders_list?.local_international_orders_list, |
| Error |
Row 254, Column 1: "Delete `··`"
prettier/prettier
|
| 254 |
profileData: state.auth.userInfo?.profile || {}, |
| 255 |
}); |
| 256 |
|
| 257 |
export const mapDispatchToProps = { |
| 258 |
fetchPostedOrdersLocalAndInternational: (latitude, longitude) => |
| 259 |
TAKE_TO_ACTIONS.fetchPostedOrdersLocalAndInternational(latitude, longitude), |
| 260 |
}; |
| 261 |
export default connect(mapStateToProps, mapDispatchToProps)(PostedOrders); |
| 262 |
|
| 263 |
const styles = StyleSheet.create({ |
| 264 |
SCROLL_CONTAINER: { |
| 265 |
paddingHorizontal: mvs(22), |
| 266 |
// paddingBottom: mvs(22), |
| 267 |
}, |
| 268 |
RELEVENT_ORDER: { |
| 269 |
// height: mvs(260), |
| 270 |
paddingBottom: mvs(22), |
| 271 |
// backgroundColor: colors.black, |
| 272 |
// marginBottom: mvs(25), |
| 273 |
width: width, |
| 274 |
alignSelf: 'center', |
| 275 |
}, |
| 276 |
PAGINATION: { |
| 277 |
bottom: mvs(0), |
| 278 |
}, |
| 279 |
}); |
| 280 |
|
|
|
|
/src/screens/orders/processing-orders.js
|
33 problems (21 errors, 12 warnings)
|
| Severity |
Rule |
| Error |
Row 4, Column 9: "Replace `·ActivityIndicator,·FlatList,·StyleSheet,·View·` with `ActivityIndicator,·FlatList,·StyleSheet,·View`"
prettier/prettier
|
| Error |
Row 6, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 10, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| Error |
Row 14, Column 10: "Replace `·navigation,·route,·processing_orders,·fetchProcessingOrders,·profileData` with `⏎····navigation,⏎····route,⏎····processing_orders,⏎····fetchProcessingOrders,⏎····profileData,⏎·`"
prettier/prettier
|
| Warning |
Row 14, Column 23: "'route' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 18, Column 9: "'scrollRef' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 19, Column 63: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 22, Column 1: "Delete `⏎`"
prettier/prettier
|
| Warning |
Row 23, Column 30: "'setLoading' is already declared in the upper scope."
no-shadow
|
| Error |
Row 30, Column 41: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 44, Column 6: "React Hook React.useEffect has a missing dependency: 'onPagination'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 44, Column 31: "Delete `⏎`"
prettier/prettier
|
| Warning |
Row 49, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 49, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 51, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 51, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| Error |
Row 54, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| Warning |
Row 59, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 59, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 62, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 69, Column 20: "Strings must use singlequote."
quotes
|
| Warning |
Row 70, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 70, Column 21: "Replace `·textAlign:·'center',·color:·colors.primary·` with `textAlign:·'center',·color:·colors.primary`"
prettier/prettier
|
| Error |
Row 73, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| Warning |
Row 76, Column 5: "Expected { after 'else'."
curly
|
| Warning |
Row 78, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 78, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 80, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 80, Column 23: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| Error |
Row 83, Column 33: "Insert `·`"
prettier/prettier
|
| Error |
Row 85, Column 27: "Replace `·item·` with `item`"
prettier/prettier
|
| Error |
Row 113, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| Error |
Row 123, Column 26: "Replace `(page)` with `page`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 2 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 3 |
import React from 'react'; |
| Error |
Row 4, Column 9: "Replace `·ActivityIndicator,·FlatList,·StyleSheet,·View·` with `ActivityIndicator,·FlatList,·StyleSheet,·View`"
prettier/prettier
|
| 4 |
import { ActivityIndicator, FlatList, StyleSheet, View } from 'react-native'; |
| 5 |
import DropdownAlert from 'react-native-dropdownalert'; |
| Error |
Row 6, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 6 |
import { connect } from 'react-redux'; |
| 7 |
import Header from '../../components/molecules/header/header-1x'; |
| 8 |
import ProcessingOrderCard from '../../components/molecules/order_card/processed-offer-card'; |
| 9 |
import colors from '../../config/colors'; |
| Error |
Row 10, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| 10 |
import { mvs, width } from '../../config/metrices'; |
| 11 |
import Regular from '../../presentation/typography/regular-text'; |
| 12 |
|
| 13 |
const ProcessingOrders = props => { |
| Error |
Row 14, Column 10: "Replace `·navigation,·route,·processing_orders,·fetchProcessingOrders,·profileData` with `⏎····navigation,⏎····route,⏎····processing_orders,⏎····fetchProcessingOrders,⏎····profileData,⏎·`"
prettier/prettier
|
| Warning |
Row 14, Column 23: "'route' is assigned a value but never used."
no-unused-vars
|
| 14 |
const { navigation, route, processing_orders, fetchProcessingOrders, profileData } = props; |
| 15 |
|
| 16 |
const [loading, setLoading] = React.useState(true); |
| 17 |
const alertRef = React.useRef(); |
| Warning |
Row 18, Column 9: "'scrollRef' is assigned a value but never used."
no-unused-vars
|
| 18 |
const scrollRef = React.useRef(); |
| Error |
Row 19, Column 63: "Delete `⏎`"
prettier/prettier
|
| 19 |
const [pageLoading, setPageLoading] = React.useState(false); |
| 20 |
|
| 21 |
|
| Error |
Row 22, Column 1: "Delete `⏎`"
prettier/prettier
|
| 22 |
|
| Warning |
Row 23, Column 30: "'setLoading' is already declared in the upper scope."
no-shadow
|
| 23 |
const onPagination = async setLoading => { |
| 24 |
try { |
| 25 |
let page = UI_API._returnPage(processing_orders); |
| 26 |
if (!page) { |
| 27 |
return; |
| 28 |
} |
| 29 |
setLoading(true); |
| Error |
Row 30, Column 41: "Delete `⏎`"
prettier/prettier
|
| 30 |
await fetchProcessingOrders(page); |
| 31 |
|
| 32 |
} catch (error) { |
| 33 |
alertRef.current.alertWithType( |
| 34 |
'error', |
| 35 |
'Error', |
| 36 |
UI_API._returnError(error), |
| 37 |
); |
| 38 |
} finally { |
| 39 |
setLoading(false); |
| 40 |
} |
| 41 |
}; |
| 42 |
React.useEffect(() => { |
| 43 |
onPagination(setLoading); |
| Error |
Row 44, Column 6: "React Hook React.useEffect has a missing dependency: 'onPagination'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 44, Column 31: "Delete `⏎`"
prettier/prettier
|
| 44 |
}, [profileData?.currency]); |
| 45 |
|
| 46 |
|
| 47 |
if (loading) { |
| 48 |
return ( |
| Warning |
Row 49, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 49, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 49 |
<View style={{ flex: 1, backgroundColor: colors.white }}> |
| 50 |
<Header {...props} title="Processing orders" allowBackBtn bellIcon /> |
| Warning |
Row 51, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 51, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| 51 |
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> |
| 52 |
<ActivityIndicator size="small" color={colors.primary} /> |
| 53 |
</View> |
| Error |
Row 54, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| 54 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 55 |
</View> |
| 56 |
); |
| 57 |
} else if (!loading && Object.keys(processing_orders)?.length <= 0) { |
| 58 |
return ( |
| Warning |
Row 59, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 59, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 59 |
<View style={{ flex: 1, backgroundColor: colors.white }}> |
| 60 |
<Header {...props} title="Processing orders" allowBackBtn bellIcon /> |
| 61 |
<View |
| Warning |
Row 62, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 62 |
style={{ |
| 63 |
flex: 1, |
| 64 |
justifyContent: 'center', |
| 65 |
alignItems: 'center', |
| 66 |
paddingHorizontal: mvs(20), |
| 67 |
}}> |
| 68 |
<Regular |
| Warning |
Row 69, Column 20: "Strings must use singlequote."
quotes
|
| 69 |
label={`No Record Found`} |
| Warning |
Row 70, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 70, Column 21: "Replace `·textAlign:·'center',·color:·colors.primary·` with `textAlign:·'center',·color:·colors.primary`"
prettier/prettier
|
| 70 |
style={{ textAlign: 'center', color: colors.primary }} |
| 71 |
/> |
| 72 |
</View> |
| Error |
Row 73, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| 73 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 74 |
</View> |
| 75 |
); |
| Warning |
Row 76, Column 5: "Expected { after 'else'."
curly
|
| 76 |
} else |
| 77 |
return ( |
| Warning |
Row 78, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 78, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 78 |
<View style={{ flex: 1, backgroundColor: colors.white }}> |
| 79 |
<Header {...props} title="Processing orders" allowBackBtn bellIcon /> |
| Warning |
Row 80, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 80, Column 23: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| 80 |
<View style={{ flex: 1 }}> |
| 81 |
<FlatList |
| 82 |
data={processing_orders?.data} |
| Error |
Row 83, Column 33: "Insert `·`"
prettier/prettier
|
| 83 |
keyExtractor={(item,number) => number.toString()} |
| 84 |
contentContainerStyle={styles.SCROLL_CONTAINER} |
| Error |
Row 85, Column 27: "Replace `·item·` with `item`"
prettier/prettier
|
| 85 |
renderItem={({ item }) => ( |
| 86 |
<ProcessingOrderCard |
| 87 |
order_data={item} |
| 88 |
{...props} |
| 89 |
{...item} |
| 90 |
onclick={() => |
| 91 |
navigation.navigate('orderdetails', { |
| 92 |
isLocalOrder: item?.is_international, |
| 93 |
orderType: 'processing', |
| 94 |
order_id: item?.order_id, |
| 95 |
}) |
| 96 |
} |
| 97 |
detinationWidth={mvs(50)} |
| 98 |
{...UI_API._returnOrderProps(item)} |
| 99 |
style={{ |
| 100 |
width: width - mvs(22) * 2, |
| 101 |
}} |
| 102 |
/> |
| 103 |
)} |
| 104 |
onEndReachedThreshold={0.5} |
| 105 |
onEndReached={() => onPagination(setPageLoading)} |
| 106 |
/> |
| 107 |
</View> |
| 108 |
{pageLoading && ( |
| 109 |
<View style={styles.pageLoader}> |
| 110 |
<ActivityIndicator size="small" color={colors.primary} /> |
| 111 |
</View> |
| 112 |
)} |
| Error |
Row 113, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| 113 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 114 |
</View> |
| 115 |
); |
| 116 |
}; |
| 117 |
export const mapStateToProps = state => ({ |
| 118 |
processing_orders: state.order?.processing_orders, |
| 119 |
profileData: state.auth.userInfo?.profile || {}, |
| 120 |
}); |
| 121 |
|
| 122 |
export const mapDispatchToProps = { |
| Error |
Row 123, Column 26: "Replace `(page)` with `page`"
prettier/prettier
|
| 123 |
fetchProcessingOrders: (page) => TAKE_TO_ACTIONS.fetchProcessingOrders(page), |
| 124 |
}; |
| 125 |
export default connect(mapStateToProps, mapDispatchToProps)(ProcessingOrders); |
| 126 |
|
| 127 |
const styles = StyleSheet.create({ |
| 128 |
SCROLL_CONTAINER: { |
| 129 |
paddingHorizontal: mvs(22), |
| 130 |
paddingBottom: mvs(22), |
| 131 |
paddingTop: mvs(5), |
| 132 |
}, |
| 133 |
pageLoader: { |
| 134 |
height: mvs(50), |
| 135 |
width: mvs(50), |
| 136 |
borderRadius: mvs(25), |
| 137 |
position: 'absolute', |
| 138 |
bottom: mvs(20), |
| 139 |
alignSelf: 'center', |
| 140 |
justifyContent: 'center', |
| 141 |
alignItems: 'center', |
| 142 |
}, |
| 143 |
}); |
| 144 |
|
|
| Severity |
Rule |
| Error |
Row 1, Column 16: "Replace `·useEffect,·useRef,·useState·` with `useEffect,·useRef,·useState`"
prettier/prettier
|
| Error |
Row 2, Column 9: "Replace `·Alert,·AppState,·Image,·Keyboard,·Linking,·ScrollView,·StyleSheet,·Text,·TouchableOpacity,·View·` with `⏎··Alert,⏎··AppState,⏎··Image,⏎··Keyboard,⏎··Linking,⏎··ScrollView,⏎··StyleSheet,⏎··Text,⏎··TouchableOpacity,⏎··View,⏎`"
prettier/prettier
|
| Warning |
Row 2, Column 10: "'Alert' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 53: "'ScrollView' is defined but never used."
no-unused-vars
|
| Warning |
Row 3, Column 8: "'GetLocation' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 11, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 14, Column 8: "'LocalOrderFilterModal' is defined but never used."
no-unused-vars
|
| Error |
Row 17, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 19, Column 8: "'InternationalOrderDateFilterModal' is defined but never used."
no-unused-vars
|
| Warning |
Row 22, Column 8: "'AsyncStorage' is defined but never used."
no-unused-vars
|
| Error |
Row 24, Column 7: "Replace `··DeviceInfo··` with `·DeviceInfo·`"
prettier/prettier
|
| Error |
Row 28, Column 10: "Replace `·filter_Orders,·filterPostedLocalOrdersList,profileData·` with `filter_Orders,·filterPostedLocalOrdersList,·profileData`"
prettier/prettier
|
| Error |
Row 29, Column 10: "Replace `·isLocalOrder·=·false,·filterPayload,·selected,·isFilter,` with `⏎····isLocalOrder·=·false,⏎····filterPayload,⏎····selected,⏎····isFilter,⏎·`"
prettier/prettier
|
| Warning |
Row 29, Column 58: "'isFilter' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 29, Column 66: "Unexpected trailing comma."
comma-dangle
|
| Warning |
Row 30, Column 23: "["calout_bottom"] is better written in dot notation."
dot-notation
|
| Error |
Row 30, Column 39: "Insert `;`"
prettier/prettier
|
| Warning |
Row 30, Column 39: "Missing semicolon."
semi
|
| Warning |
Row 31, Column 10: "'filter' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 31, Column 18: "'setFilter' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 31, Column 46: "Insert `;`"
prettier/prettier
|
| Warning |
Row 31, Column 46: "Missing semicolon."
semi
|
| Error |
Row 32, Column 48: "Insert `;`"
prettier/prettier
|
| Warning |
Row 32, Column 48: "Missing semicolon."
semi
|
| Error |
Row 34, Column 42: "Insert `;`"
prettier/prettier
|
| Warning |
Row 34, Column 42: "Missing semicolon."
semi
|
| Error |
Row 36, Column 26: "Replace `setLocationService]=` with `·setLocationService]·=·`"
prettier/prettier
|
| Warning |
Row 36, Column 45: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 42, Column 6: "Delete `⏎⏎`"
prettier/prettier
|
| Error |
Row 50, Column 52: "Replace `"change",` with `⏎······'change',⏎·····`"
prettier/prettier
|
| Warning |
Row 50, Column 52: "Strings must use singlequote."
quotes
|
| Error |
Row 51, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 52, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 53, Column 9: "Replace `nextAppState·===·"active"` with `··nextAppState·===·'active'`"
prettier/prettier
|
| Warning |
Row 53, Column 26: "Strings must use singlequote."
quotes
|
| Error |
Row 54, Column 1: "Replace `······` with `········`"
prettier/prettier
|
| Error |
Row 55, Column 1: "Replace `········console.log("App·has·come·to·the·foreground!"` with `··········console.log('App·has·come·to·the·foreground!'`"
prettier/prettier
|
| Warning |
Row 55, Column 21: "Strings must use singlequote."
quotes
|
| Error |
Row 56, Column 9: "Replace `const·providers=await·` with `··const·providers·=·await`"
prettier/prettier
|
| Warning |
Row 56, Column 24: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 57, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 58, Column 9: "Replace `if·(locationService||` with `··if·(locationService·||·`"
prettier/prettier
|
| Warning |
Row 58, Column 28: "Operator '||' must be spaced."
space-infix-ops
|
| Error |
Row 59, Column 1: "Replace `··········const·permissionStatus·=·await·UI_API._checkPermissions(alertRef,·Linking)` with `············const·permissionStatus·=·await·UI_API._checkPermissions(⏎··············alertRef,⏎··············Linking,⏎············);`"
prettier/prettier
|
| Warning |
Row 59, Column 85: "Missing semicolon."
semi
|
| Error |
Row 60, Column 1: "Replace `··········setLocationService(permissionStatus·===·'disabled'·?·false·:·permissionStatus` with `············setLocationService(⏎··············permissionStatus·===·'disabled'·?·false·:·permissionStatus,⏎···········`"
prettier/prettier
|
| Error |
Row 61, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 62, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 63, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 64, Column 5: "Replace `}` with `··},⏎····`"
prettier/prettier
|
| Error |
Row 69, Column 6: "React Hook useEffect has a missing dependency: 'locationService'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 72, Column 53: "Replace `(providers)` with `providers`"
prettier/prettier
|
| Error |
Row 73, Column 29: "Insert `;`"
prettier/prettier
|
| Warning |
Row 73, Column 29: "Missing semicolon."
semi
|
| Error |
Row 74, Column 26: "Delete `·`"
prettier/prettier
|
| Error |
Row 76, Column 1: "Replace `⏎··},·[profileData]);⏎⏎` with `··},·[profileData]);`"
prettier/prettier
|
| Error |
Row 82, Column 42: "Insert `·`"
prettier/prettier
|
| Error |
Row 83, Column 21: "Insert `;`"
prettier/prettier
|
| Warning |
Row 83, Column 21: "Missing semicolon."
semi
|
| Warning |
Row 88, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 107, Column 4: "Replace `⏎⏎⏎⏎⏎⏎⏎⏎⏎⏎` with `;`"
prettier/prettier
|
| Warning |
Row 107, Column 4: "Missing semicolon."
semi
|
| Error |
Row 120, Column 50: "Replace `(radius)` with `radius`"
prettier/prettier
|
| Warning |
Row 120, Column 51: "'radius' is already declared in the upper scope."
no-shadow
|
| Error |
Row 130, Column 8: "Insert `;`"
prettier/prettier
|
| Warning |
Row 130, Column 8: "Missing semicolon."
semi
|
| Error |
Row 132, Column 22: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 142, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 142, Column 4: "Missing semicolon."
semi
|
| Warning |
Row 143, Column 43: "'radius' is already declared in the upper scope."
no-shadow
|
| Error |
Row 145, Column 22: "Replace `·...filterPayload,·radius·}` with `...filterPayload,·radius};`"
prettier/prettier
|
| Warning |
Row 145, Column 49: "Missing semicolon."
semi
|
| Error |
Row 147, Column 20: "Replace `·...payload,·...location·}` with `...payload,·...location};`"
prettier/prettier
|
| Warning |
Row 147, Column 46: "Missing semicolon."
semi
|
| Error |
Row 150, Column 22: "Delete `⏎⏎····`"
prettier/prettier
|
| Error |
Row 153, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 153, Column 4: "Missing semicolon."
semi
|
| Warning |
Row 154, Column 27: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 154, Column 27: "Delete `·`"
prettier/prettier
|
| Error |
Row 155, Column 32: "Replace `(location)` with `location`"
prettier/prettier
|
| Error |
Row 158, Column 37: "Replace `⏎········location,⏎········1000,⏎······` with `location,·1000`"
prettier/prettier
|
| Error |
Row 165, Column 8: "Insert `;`"
prettier/prettier
|
| Warning |
Row 165, Column 8: "Missing semicolon."
semi
|
| Error |
Row 174, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 174, Column 4: "Missing semicolon."
semi
|
| Error |
Row 187, Column 10: "Insert `;`"
prettier/prettier
|
| Warning |
Row 187, Column 10: "Missing semicolon."
semi
|
| Error |
Row 192, Column 22: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 202, Column 4: "Replace `⏎` with `;`"
prettier/prettier
|
| Warning |
Row 202, Column 4: "Missing semicolon."
semi
|
| Error |
Row 210, Column 8: "Insert `,`"
prettier/prettier
|
| Error |
Row 216, Column 8: "Insert `,`"
prettier/prettier
|
| Error |
Row 227, Column 6: "React Hook useEffect has a missing dependency: 'filterOrdersWithRadius'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 227, Column 24: "Replace `⏎⏎` with `;`"
prettier/prettier
|
| Warning |
Row 227, Column 24: "Missing semicolon."
semi
|
| Warning |
Row 233, Column 36: "Inline style: { flexGrow: 1 }"
react-native/no-inline-styles
|
| Error |
Row 233, Column 37: "Replace `·flexGrow:·1·` with `flexGrow:·1`"
prettier/prettier
|
| Warning |
Row 236, Column 18: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 236, Column 19: "Replace `·height:·'100%',·width:·'100%'·` with `height:·'100%',·width:·'100%'`"
prettier/prettier
|
| Error |
Row 253, Column 33: "Replace `·height:·mvs(48)·` with `height:·mvs(48)`"
prettier/prettier
|
| Warning |
Row 260, Column 34: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 260, Column 35: "Replace `·flexDirection:·'row'·` with `flexDirection:·'row'`"
prettier/prettier
|
| Error |
Row 264, Column 52: "Replace `·...styles.status·` with `...styles.status`"
prettier/prettier
|
| Warning |
Row 267, Column 30: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 267, Column 31: "Replace `·alignSelf:·'center',·marginTop:·-mvs(3)·` with `alignSelf:·'center',·marginTop:·-mvs(3)`"
prettier/prettier
|
| Error |
Row 274, Column 26: "Replace `·onPress={()=>changeLocationService(!locationService)}·activeOpacity={0.5}` with `⏎··········onPress={()·=>·changeLocationService(!locationService)}⏎··········activeOpacity={0.5}⏎·········`"
prettier/prettier
|
| Warning |
Row 274, Column 108: "Inline style: {
position: 'absolute',
alignItems: 'center',
justifyContent: 'center'
}"
react-native/no-inline-styles
|
| Error |
Row 275, Column 1: "Insert `·`"
prettier/prettier
|
| Error |
Row 276, Column 10: "Replace `top:·mvs(200),` with `···top:·mvs(200),⏎···········`"
prettier/prettier
|
| Error |
Row 277, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 278, Column 1: "Insert `···`"
prettier/prettier
|
| Error |
Row 279, Column 10: "Replace `borderRadius:·mvs(20),·backgroundColor:·colors.white,·right:·mvs(22),alignItems:'center',justifyContent:'center'` with `···borderRadius:·mvs(20),⏎············backgroundColor:·colors.white,⏎············right:·mvs(22),⏎············alignItems:·'center',⏎············justifyContent:·'center',⏎·········`"
prettier/prettier
|
| Error |
Row 280, Column 1: "Replace `···········prettier/prettier
|
| Warning |
Row 280, Column 107: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 281, Column 1: "Delete `·`"
prettier/prettier
|
| Error |
Row 286, Column 21: "Replace `·backgroundColor:·colors.white·` with `backgroundColor:·colors.white`"
prettier/prettier
|
| Error |
Row 288, Column 31: "Delete `·`"
prettier/prettier
|
| Error |
Row 290, Column 27: "Replace `·props?.navigation?.replace(isLocalOrder·?·'localtrip'·:·'internationaltrip',·{·isFilter:·true,·isOnline:·selected·===·0·?·true·:·false·})` with `⏎··············props?.navigation?.replace(⏎················isLocalOrder·?·'localtrip'·:·'internationaltrip',⏎················{isFilter:·true,·isOnline:·selected·===·0·?·true·:·false},⏎··············)⏎············`"
prettier/prettier
|
| Error |
Row 292, Column 26: "Delete `⏎·············`"
prettier/prettier
|
| Error |
Row 304, Column 30: "Insert `(⏎········`"
prettier/prettier
|
| Error |
Row 305, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 306, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 307, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 308, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 309, Column 1: "Replace `········onSlider={(val)` with `··········onSlider={val`"
prettier/prettier
|
| Error |
Row 310, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 310, Column 44: "Missing radix parameter."
radix
|
| Error |
Row 311, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 311, Column 21: "Missing radix parameter."
radix
|
| Error |
Row 312, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 313, Column 1: "Replace `········onClose={()·=>` with `··········onClose={()·=>⏎···········`"
prettier/prettier
|
| Error |
Row 314, Column 11: "Insert `····`"
prettier/prettier
|
| Error |
Row 315, Column 1: "Replace `··········` with `··············`"
prettier/prettier
|
| Error |
Row 316, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 317, Column 11: "Insert `····`"
prettier/prettier
|
| Error |
Row 318, Column 1: "Replace `··········flags:·isLocalOrder·?·{·from:·props.localFilter?.from_flag,·to:·props.localFilter?.to_flag·}·:·{·from:·props.internationalFilter?.from_flag,·to:·props.internationalFilter?.to_flag` with `··············flags:·isLocalOrder⏎················?·{⏎····················from:·props.localFilter?.from_flag,⏎····················to:·props.localFilter?.to_flag,⏎··················}⏎················:·{⏎····················from:·props.internationalFilter?.from_flag,⏎····················to:·props.internationalFilter?.to_flag,⏎·················`"
prettier/prettier
|
| Error |
Row 319, Column 1: "Replace `········})` with `············})⏎··········`"
prettier/prettier
|
| Error |
Row 320, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 321, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 322, Column 7: "Replace `/>` with `··/>⏎······)`"
prettier/prettier
|
| Error |
Row 323, Column 21: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎········translucent⏎········activeStatusBarStyle={'light-content'}⏎········inactiveStatusBarBackgroundColor={colors.primary}⏎········ref={alertRef}⏎·····`"
prettier/prettier
|
| Error |
Row 338, Column 58: "Insert `⏎···`"
prettier/prettier
|
| Line |
Source |
| Error |
Row 1, Column 16: "Replace `·useEffect,·useRef,·useState·` with `useEffect,·useRef,·useState`"
prettier/prettier
|
| 1 |
import React, { useEffect, useRef, useState } from 'react'; |
| Error |
Row 2, Column 9: "Replace `·Alert,·AppState,·Image,·Keyboard,·Linking,·ScrollView,·StyleSheet,·Text,·TouchableOpacity,·View·` with `⏎··Alert,⏎··AppState,⏎··Image,⏎··Keyboard,⏎··Linking,⏎··ScrollView,⏎··StyleSheet,⏎··Text,⏎··TouchableOpacity,⏎··View,⏎`"
prettier/prettier
|
| Warning |
Row 2, Column 10: "'Alert' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 53: "'ScrollView' is defined but never used."
no-unused-vars
|
| 2 |
import { Alert, AppState, Image, Keyboard, Linking, ScrollView, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; |
| Warning |
Row 3, Column 8: "'GetLocation' is defined but never used."
no-unused-vars
|
| 3 |
import GetLocation from 'react-native-get-location'; |
| 4 |
import MapView, { |
| 5 |
Callout, |
| 6 |
Circle, |
| 7 |
Marker, |
| 8 |
PROVIDER_GOOGLE, |
| 9 |
} from 'react-native-maps'; |
| Error |
Row 10, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 10 |
import { connect } from 'react-redux'; |
| Error |
Row 11, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| 11 |
import { TAKE_TO_IMAGES } from '../../../resource/assets/image_resouce'; |
| 12 |
import * as SVGS from '../../../resource/assets/order-car-icons/index'; |
| 13 |
import GoogleSearchBar from '../../components/molecules/google-search-bar'; |
| Warning |
Row 14, Column 8: "'LocalOrderFilterModal' is defined but never used."
no-unused-vars
|
| 14 |
import LocalOrderFilterModal from '../../components/molecules/modals/local-order-filter-modal'; |
| 15 |
import MapSearchOrderRadiusModal from '../../components/molecules/modals/map-search-order-radius'; |
| 16 |
import colors from '../../config/colors'; |
| Error |
Row 17, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 17 |
import { mvs } from '../../config/metrices'; |
| 18 |
import Medium from '../../presentation/typography/medium-text'; |
| Warning |
Row 19, Column 8: "'InternationalOrderDateFilterModal' is defined but never used."
no-unused-vars
|
| 19 |
import InternationalOrderDateFilterModal from './../../components/molecules/modals/international-order-date-filter-modal'; |
| 20 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 21 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| Warning |
Row 22, Column 8: "'AsyncStorage' is defined but never used."
no-unused-vars
|
| 22 |
import AsyncStorage from '@react-native-async-storage/async-storage'; |
| 23 |
import DropdownAlert from 'react-native-dropdownalert'; |
| Error |
Row 24, Column 7: "Replace `··DeviceInfo··` with `·DeviceInfo·`"
prettier/prettier
|
| 24 |
import DeviceInfo from 'react-native-device-info'; |
| 25 |
|
| 26 |
const SearchMap = props => { |
| 27 |
let ref = useRef(); |
| Error |
Row 28, Column 10: "Replace `·filter_Orders,·filterPostedLocalOrdersList,profileData·` with `filter_Orders,·filterPostedLocalOrdersList,·profileData`"
prettier/prettier
|
| 28 |
const { filter_Orders, filterPostedLocalOrdersList,profileData } = props; |
| Error |
Row 29, Column 10: "Replace `·isLocalOrder·=·false,·filterPayload,·selected,·isFilter,` with `⏎····isLocalOrder·=·false,⏎····filterPayload,⏎····selected,⏎····isFilter,⏎·`"
prettier/prettier
|
| Warning |
Row 29, Column 58: "'isFilter' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 29, Column 66: "Unexpected trailing comma."
comma-dangle
|
| 29 |
const { isLocalOrder = false, filterPayload, selected, isFilter, } = props.route.params; |
| Warning |
Row 30, Column 23: "["calout_bottom"] is better written in dot notation."
dot-notation
|
| Error |
Row 30, Column 39: "Insert `;`"
prettier/prettier
|
| Warning |
Row 30, Column 39: "Missing semicolon."
semi
|
| 30 |
const Bottom = SVGS['calout_bottom'] |
| Warning |
Row 31, Column 10: "'filter' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 31, Column 18: "'setFilter' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 31, Column 46: "Insert `;`"
prettier/prettier
|
| Warning |
Row 31, Column 46: "Missing semicolon."
semi
|
| 31 |
const [filter, setFilter] = useState(false) |
| Error |
Row 32, Column 48: "Insert `;`"
prettier/prettier
|
| Warning |
Row 32, Column 48: "Missing semicolon."
semi
|
| 32 |
const [loading, setLoading] = useState(false) |
| 33 |
const [isKeyboardVisible, setKeyboardVisible] = useState(false); |
| Error |
Row 34, Column 42: "Insert `;`"
prettier/prettier
|
| Warning |
Row 34, Column 42: "Missing semicolon."
semi
|
| 34 |
const [radius, setRadius] = useState(0) |
| 35 |
const alertRef = React.useRef(); |
| Error |
Row 36, Column 26: "Replace `setLocationService]=` with `·setLocationService]·=·`"
prettier/prettier
|
| Warning |
Row 36, Column 45: "Operator '=' must be spaced."
space-infix-ops
|
| 36 |
const [locationService,setLocationService]=React.useState(false); |
| 37 |
const [region, setRegion] = useState({ |
| 38 |
latitude: 37.78825, |
| 39 |
latitudeDelta: 0.015, |
| 40 |
longitude: -122.4324, |
| 41 |
longitudeDelta: 0.0121, |
| Error |
Row 42, Column 6: "Delete `⏎⏎`"
prettier/prettier
|
| 42 |
}); |
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
const appState = React.useRef(AppState.currentState); |
| 47 |
// const [appStateVisible, setAppStateVisible] = useState(appState.current); |
| 48 |
|
| 49 |
useEffect(() => { |
| Error |
Row 50, Column 52: "Replace `"change",` with `⏎······'change',⏎·····`"
prettier/prettier
|
| Warning |
Row 50, Column 52: "Strings must use singlequote."
quotes
|
| 50 |
const subscription = AppState.addEventListener("change", async nextAppState => { |
| Error |
Row 51, Column 7: "Insert `··`"
prettier/prettier
|
| 51 |
if ( |
| Error |
Row 52, Column 1: "Insert `··`"
prettier/prettier
|
| 52 |
appState.current.match(/inactive|background/) && |
| Error |
Row 53, Column 9: "Replace `nextAppState·===·"active"` with `··nextAppState·===·'active'`"
prettier/prettier
|
| Warning |
Row 53, Column 26: "Strings must use singlequote."
quotes
|
| 53 |
nextAppState === "active" |
| Error |
Row 54, Column 1: "Replace `······` with `········`"
prettier/prettier
|
| 54 |
) { |
| Error |
Row 55, Column 1: "Replace `········console.log("App·has·come·to·the·foreground!"` with `··········console.log('App·has·come·to·the·foreground!'`"
prettier/prettier
|
| Warning |
Row 55, Column 21: "Strings must use singlequote."
quotes
|
| 55 |
console.log("App has come to the foreground!"); |
| Error |
Row 56, Column 9: "Replace `const·providers=await·` with `··const·providers·=·await`"
prettier/prettier
|
| Warning |
Row 56, Column 24: "Operator '=' must be spaced."
space-infix-ops
|
| 56 |
const providers=await DeviceInfo.getAvailableLocationProviders(); |
| Error |
Row 57, Column 1: "Insert `··`"
prettier/prettier
|
| 57 |
console.log(providers); |
| Error |
Row 58, Column 9: "Replace `if·(locationService||` with `··if·(locationService·||·`"
prettier/prettier
|
| Warning |
Row 58, Column 28: "Operator '||' must be spaced."
space-infix-ops
|
| 58 |
if (locationService||Object.keys(providers).length > 0) { |
| Error |
Row 59, Column 1: "Replace `··········const·permissionStatus·=·await·UI_API._checkPermissions(alertRef,·Linking)` with `············const·permissionStatus·=·await·UI_API._checkPermissions(⏎··············alertRef,⏎··············Linking,⏎············);`"
prettier/prettier
|
| Warning |
Row 59, Column 85: "Missing semicolon."
semi
|
| 59 |
const permissionStatus = await UI_API._checkPermissions(alertRef, Linking) |
| Error |
Row 60, Column 1: "Replace `··········setLocationService(permissionStatus·===·'disabled'·?·false·:·permissionStatus` with `············setLocationService(⏎··············permissionStatus·===·'disabled'·?·false·:·permissionStatus,⏎···········`"
prettier/prettier
|
| 60 |
setLocationService(permissionStatus === 'disabled' ? false : permissionStatus ); |
| Error |
Row 61, Column 1: "Insert `··`"
prettier/prettier
|
| 61 |
} |
| Error |
Row 62, Column 7: "Insert `··`"
prettier/prettier
|
| 62 |
} |
| Error |
Row 63, Column 1: "Insert `··`"
prettier/prettier
|
| 63 |
appState.current = nextAppState; |
| Error |
Row 64, Column 5: "Replace `}` with `··},⏎····`"
prettier/prettier
|
| 64 |
}); |
| 65 |
|
| 66 |
return () => { |
| 67 |
subscription.remove(); |
| 68 |
}; |
| Error |
Row 69, Column 6: "React Hook useEffect has a missing dependency: 'locationService'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 69 |
}, []); |
| 70 |
|
| 71 |
React.useEffect(() => { |
| Error |
Row 72, Column 53: "Replace `(providers)` with `providers`"
prettier/prettier
|
| 72 |
DeviceInfo.getAvailableLocationProviders().then((providers) => { |
| Error |
Row 73, Column 29: "Insert `;`"
prettier/prettier
|
| Warning |
Row 73, Column 29: "Missing semicolon."
semi
|
| 73 |
console.log(providers) |
| Error |
Row 74, Column 26: "Delete `·`"
prettier/prettier
|
| 74 |
setLocationService( Object.keys(providers).length > 0); |
| 75 |
}); |
| Error |
Row 76, Column 1: "Replace `⏎··},·[profileData]);⏎⏎` with `··},·[profileData]);`"
prettier/prettier
|
| 76 |
|
| 77 |
}, [profileData]); |
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
const changeLocationService = async (is_app_state_changed = false) => { |
| Error |
Row 82, Column 42: "Insert `·`"
prettier/prettier
|
| 82 |
console.log('is_app_state_changed::',is_app_state_changed); |
| Error |
Row 83, Column 21: "Insert `;`"
prettier/prettier
|
| Warning |
Row 83, Column 21: "Missing semicolon."
semi
|
| 83 |
let flag = false |
| 84 |
|
| 85 |
try { |
| 86 |
if (is_app_state_changed) { |
| 87 |
flag = await UI_API._getLocPermissionStatus(Linking, alertRef); |
| Warning |
Row 88, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| 88 |
if (flag == true) { |
| 89 |
setLocationService(flag); |
| 90 |
} |
| 91 |
|
| 92 |
if (flag === 'disabled') { |
| 93 |
UI_API.locationSettingAlert(); |
| 94 |
} else { |
| 95 |
setLocationService(flag); |
| 96 |
} |
| 97 |
} else { |
| 98 |
UI_API.locationSettingAlert(); |
| 99 |
} |
| 100 |
} catch (error) { |
| 101 |
alertRef.current.alertWithType( |
| 102 |
'error', |
| 103 |
'Error', |
| 104 |
UI_API._returnError(error), |
| 105 |
); |
| 106 |
} |
| Error |
Row 107, Column 4: "Replace `⏎⏎⏎⏎⏎⏎⏎⏎⏎⏎` with `;`"
prettier/prettier
|
| Warning |
Row 107, Column 4: "Missing semicolon."
semi
|
| 107 |
} |
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
//search with not current location |
| Error |
Row 120, Column 50: "Replace `(radius)` with `radius`"
prettier/prettier
|
| Warning |
Row 120, Column 51: "'radius' is already declared in the upper scope."
no-shadow
|
| 120 |
const filterOrdersWithRadiusWithLatLng = async (radius) => { |
| 121 |
try { |
| 122 |
setLoading(true); |
| 123 |
// ref?.current?.animateToRegion( |
| 124 |
// region, |
| 125 |
// 1000, |
| 126 |
// ); |
| 127 |
let latlng = { |
| 128 |
latitude: region?.latitude, |
| 129 |
longitude: region?.longitude, |
| Error |
Row 130, Column 8: "Insert `;`"
prettier/prettier
|
| Warning |
Row 130, Column 8: "Missing semicolon."
semi
|
| 130 |
} |
| 131 |
await onfilterOrders(latlng, radius); |
| Error |
Row 132, Column 22: "Delete `⏎`"
prettier/prettier
|
| 132 |
} catch (error) { |
| 133 |
|
| 134 |
alertRef.current.alertWithType( |
| 135 |
'error', |
| 136 |
'Error', |
| 137 |
UI_API._returnError(error), |
| 138 |
); |
| 139 |
} finally { |
| 140 |
setLoading(false); |
| 141 |
} |
| Error |
Row 142, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 142, Column 4: "Missing semicolon."
semi
|
| 142 |
} |
| Warning |
Row 143, Column 43: "'radius' is already declared in the upper scope."
no-shadow
|
| 143 |
const onfilterOrders = async (location, radius) => { |
| 144 |
try { |
| Error |
Row 145, Column 22: "Replace `·...filterPayload,·radius·}` with `...filterPayload,·radius};`"
prettier/prettier
|
| Warning |
Row 145, Column 49: "Missing semicolon."
semi
|
| 145 |
let payload = { ...filterPayload, radius } |
| 146 |
if (location) { |
| Error |
Row 147, Column 20: "Replace `·...payload,·...location·}` with `...payload,·...location};`"
prettier/prettier
|
| Warning |
Row 147, Column 46: "Missing semicolon."
semi
|
| 147 |
payload = { ...payload, ...location } |
| 148 |
} |
| 149 |
await filterPostedLocalOrdersList(payload, isLocalOrder); |
| Error |
Row 150, Column 22: "Delete `⏎⏎····`"
prettier/prettier
|
| 150 |
} catch (error) { |
| 151 |
|
| 152 |
} |
| Error |
Row 153, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 153, Column 4: "Missing semicolon."
semi
|
| 153 |
} |
| Warning |
Row 154, Column 27: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 154, Column 27: "Delete `·`"
prettier/prettier
|
| 154 |
// on search place click |
| Error |
Row 155, Column 32: "Replace `(location)` with `location`"
prettier/prettier
|
| 155 |
const onSearchChange = async (location) => { |
| 156 |
try { |
| 157 |
setRegion(location); |
| Error |
Row 158, Column 37: "Replace `⏎········location,⏎········1000,⏎······` with `location,·1000`"
prettier/prettier
|
| 158 |
ref?.current?.animateToRegion( |
| 159 |
location, |
| 160 |
1000, |
| 161 |
); |
| 162 |
let latlng = { |
| 163 |
latitude: location?.latitude, |
| 164 |
longitude: location?.longitude, |
| Error |
Row 165, Column 8: "Insert `;`"
prettier/prettier
|
| Warning |
Row 165, Column 8: "Missing semicolon."
semi
|
| 165 |
} |
| 166 |
onfilterOrders(latlng, radius); |
| 167 |
} catch (error) { |
| 168 |
alertRef.current.alertWithType( |
| 169 |
'error', |
| 170 |
'Error', |
| 171 |
UI_API._returnError(error), |
| 172 |
); |
| 173 |
} |
| Error |
Row 174, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 174, Column 4: "Missing semicolon."
semi
|
| 174 |
} |
| 175 |
// on radius change with current location |
| 176 |
const filterOrdersWithRadius = async () => { |
| 177 |
try { |
| 178 |
setLoading(true); |
| 179 |
let location = await UI_API._get_current_location(); |
| 180 |
console.log('location::', location); |
| 181 |
if (location) { |
| 182 |
setRegion(location); |
| 183 |
ref?.current?.animateToRegion(location, 1000); |
| 184 |
let latlng = { |
| 185 |
latitude: location?.latitude, |
| 186 |
longitude: location?.longitude, |
| Error |
Row 187, Column 10: "Insert `;`"
prettier/prettier
|
| Warning |
Row 187, Column 10: "Missing semicolon."
semi
|
| 187 |
} |
| 188 |
await onfilterOrders(latlng, radius); |
| 189 |
} else { |
| 190 |
await onfilterOrders(undefined, radius); |
| 191 |
} |
| Error |
Row 192, Column 22: "Delete `⏎`"
prettier/prettier
|
| 192 |
} catch (error) { |
| 193 |
|
| 194 |
alertRef.current.alertWithType( |
| 195 |
'error', |
| 196 |
'Error', |
| 197 |
UI_API._returnError(error), |
| 198 |
); |
| 199 |
} finally { |
| 200 |
setLoading(false); |
| 201 |
} |
| Error |
Row 202, Column 4: "Replace `⏎` with `;`"
prettier/prettier
|
| Warning |
Row 202, Column 4: "Missing semicolon."
semi
|
| 202 |
} |
| 203 |
|
| 204 |
|
| 205 |
useEffect(() => { |
| 206 |
const keyboardDidShowListener = Keyboard.addListener( |
| 207 |
'keyboardDidShow', |
| 208 |
() => { |
| 209 |
setKeyboardVisible(true); // or some other action |
| Error |
Row 210, Column 8: "Insert `,`"
prettier/prettier
|
| 210 |
} |
| 211 |
); |
| 212 |
const keyboardDidHideListener = Keyboard.addListener( |
| 213 |
'keyboardDidHide', |
| 214 |
() => { |
| 215 |
setKeyboardVisible(false); // or some other action |
| Error |
Row 216, Column 8: "Insert `,`"
prettier/prettier
|
| 216 |
} |
| 217 |
); |
| 218 |
|
| 219 |
return () => { |
| 220 |
keyboardDidHideListener.remove(); |
| 221 |
keyboardDidShowListener.remove(); |
| 222 |
}; |
| 223 |
}, []); |
| 224 |
|
| 225 |
useEffect(() => { |
| 226 |
filterOrdersWithRadius(); |
| Error |
Row 227, Column 6: "React Hook useEffect has a missing dependency: 'filterOrdersWithRadius'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 227, Column 24: "Replace `⏎⏎` with `;`"
prettier/prettier
|
| Warning |
Row 227, Column 24: "Missing semicolon."
semi
|
| 227 |
}, [locationService]) |
| 228 |
|
| 229 |
|
| 230 |
|
| 231 |
return ( |
| 232 |
<View style={styles.mainContainer}> |
| Warning |
Row 233, Column 36: "Inline style: { flexGrow: 1 }"
react-native/no-inline-styles
|
| Error |
Row 233, Column 37: "Replace `·flexGrow:·1·` with `flexGrow:·1`"
prettier/prettier
|
| 233 |
<View contentContainerStyle={{ flexGrow: 1 }}> |
| 234 |
<MapView |
| 235 |
provider={PROVIDER_GOOGLE} // remove if not using Google Maps |
| Warning |
Row 236, Column 18: "Inline style: { height: '100%', width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 236, Column 19: "Replace `·height:·'100%',·width:·'100%'·` with `height:·'100%',·width:·'100%'`"
prettier/prettier
|
| 236 |
style={{ height: '100%', width: '100%' }} |
| 237 |
ref={ref} |
| 238 |
initialRegion={region} |
| 239 |
showsUserLocation={true} |
| 240 |
showsMyLocationButton={false}> |
| 241 |
{console.log(radius)} |
| 242 |
<Circle |
| 243 |
center={region} |
| 244 |
radius={radius * 1000} |
| 245 |
fillColor={colors.primary50} |
| 246 |
strokeWidth={0} |
| 247 |
/> |
| 248 |
|
| 249 |
<Marker coordinate={region}> |
| 250 |
<Callout tooltip={true}> |
| 251 |
<View style={styles.callout}> |
| 252 |
<View style={styles.calloutInner}> |
| Error |
Row 253, Column 33: "Replace `·height:·mvs(48)·` with `height:·mvs(48)`"
prettier/prettier
|
| 253 |
<Text style={{ height: mvs(48) }}> |
| 254 |
<Image |
| 255 |
source={TAKE_TO_IMAGES.chat_dp} |
| 256 |
style={styles.image} |
| 257 |
/> |
| 258 |
</Text> |
| 259 |
<View style={styles.calloutMiddleContainer}> |
| Warning |
Row 260, Column 34: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 260, Column 35: "Replace `·flexDirection:·'row'·` with `flexDirection:·'row'`"
prettier/prettier
|
| 260 |
<View style={{ flexDirection: 'row' }}> |
| 261 |
<Medium label="REWARD" style={styles.label} /> |
| 262 |
<Medium label="US$ 25" style={styles.value} /> |
| 263 |
</View> |
| Error |
Row 264, Column 52: "Replace `·...styles.status·` with `...styles.status`"
prettier/prettier
|
| 264 |
<Medium label="URGENT" style={{ ...styles.status }} /> |
| 265 |
</View> |
| 266 |
</View> |
| Warning |
Row 267, Column 30: "Inline style: { alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 267, Column 31: "Replace `·alignSelf:·'center',·marginTop:·-mvs(3)·` with `alignSelf:·'center',·marginTop:·-mvs(3)`"
prettier/prettier
|
| 267 |
<View style={{ alignSelf: 'center', marginTop: -mvs(3) }}> |
| 268 |
<Bottom /> |
| 269 |
</View> |
| 270 |
</View> |
| 271 |
</Callout> |
| 272 |
</Marker> |
| 273 |
</MapView> |
| Error |
Row 274, Column 26: "Replace `·onPress={()=>changeLocationService(!locationService)}·activeOpacity={0.5}` with `⏎··········onPress={()·=>·changeLocationService(!locationService)}⏎··········activeOpacity={0.5}⏎·········`"
prettier/prettier
|
| Warning |
Row 274, Column 108: "Inline style: {
position: 'absolute',
alignItems: 'center',
justifyContent: 'center'
}"
react-native/no-inline-styles
|
| 274 |
<TouchableOpacity onPress={()=>changeLocationService(!locationService)} activeOpacity={0.5} style={{ |
| Error |
Row 275, Column 1: "Insert `·`"
prettier/prettier
|
| 275 |
position: 'absolute', |
| Error |
Row 276, Column 10: "Replace `top:·mvs(200),` with `···top:·mvs(200),⏎···········`"
prettier/prettier
|
| 276 |
top: mvs(200), height: mvs(40), |
| Error |
Row 277, Column 11: "Insert `··`"
prettier/prettier
|
| 277 |
width: mvs(40), |
| Error |
Row 278, Column 1: "Insert `···`"
prettier/prettier
|
| 278 |
...colors.shadow, |
| Error |
Row 279, Column 10: "Replace `borderRadius:·mvs(20),·backgroundColor:·colors.white,·right:·mvs(22),alignItems:'center',justifyContent:'center'` with `···borderRadius:·mvs(20),⏎············backgroundColor:·colors.white,⏎············right:·mvs(22),⏎············alignItems:·'center',⏎············justifyContent:·'center',⏎·········`"
prettier/prettier
|
| 279 |
borderRadius: mvs(20), backgroundColor: colors.white, right: mvs(22),alignItems:'center',justifyContent:'center' }}> |
| Error |
Row 280, Column 1: "Replace `···········prettier/prettier
|
| Warning |
Row 280, Column 107: "Operator '?' must be spaced."
space-infix-ops
|
| 280 |
<View style={{height:mvs(20),width:mvs(20),borderRadius:mvs(10),backgroundColor:locationService? colors.primary:colors.label}}/> |
| Error |
Row 281, Column 1: "Delete `·`"
prettier/prettier
|
| 281 |
</TouchableOpacity> |
| 282 |
<View style={styles.barContainer}> |
| 283 |
<GoogleSearchBar |
| 284 |
{...props} |
| 285 |
placeholder="Enter an address" |
| Error |
Row 286, Column 21: "Replace `·backgroundColor:·colors.white·` with `backgroundColor:·colors.white`"
prettier/prettier
|
| 286 |
style={{ backgroundColor: colors.white }} |
| 287 |
filter={true} |
| Error |
Row 288, Column 31: "Delete `·`"
prettier/prettier
|
| 288 |
inputStyle={{color : colors.typeHeader}} |
| 289 |
back={true} |
| Error |
Row 290, Column 27: "Replace `·props?.navigation?.replace(isLocalOrder·?·'localtrip'·:·'internationaltrip',·{·isFilter:·true,·isOnline:·selected·===·0·?·true·:·false·})` with `⏎··············props?.navigation?.replace(⏎················isLocalOrder·?·'localtrip'·:·'internationaltrip',⏎················{isFilter:·true,·isOnline:·selected·===·0·?·true·:·false},⏎··············)⏎············`"
prettier/prettier
|
| 290 |
onClick={() => props?.navigation?.replace(isLocalOrder ? 'localtrip' : 'internationaltrip', { isFilter: true, isOnline: selected === 0 ? true : false })} |
| 291 |
onPress={(data, details = null) => { |
| Error |
Row 292, Column 26: "Delete `⏎·············`"
prettier/prettier
|
| 292 |
const obj = |
| 293 |
{ |
| 294 |
latitude: details?.geometry?.location?.lat, |
| 295 |
latitudeDelta: 0.015, |
| 296 |
longitude: details?.geometry?.location?.lng, |
| 297 |
longitudeDelta: 0.0121, |
| 298 |
}; |
| 299 |
onSearchChange(obj); |
| 300 |
}} |
| 301 |
/> |
| 302 |
</View> |
| 303 |
</View> |
| Error |
Row 304, Column 30: "Insert `(⏎········`"
prettier/prettier
|
| 304 |
{!isKeyboardVisible && <MapSearchOrderRadiusModal |
| Error |
Row 305, Column 1: "Insert `··`"
prettier/prettier
|
| 305 |
loading={loading} |
| Error |
Row 306, Column 9: "Insert `··`"
prettier/prettier
|
| 306 |
orders={filter_Orders?.data} |
| Error |
Row 307, Column 1: "Insert `··`"
prettier/prettier
|
| 307 |
visible={true} |
| Error |
Row 308, Column 9: "Insert `··`"
prettier/prettier
|
| 308 |
value={radius} |
| Error |
Row 309, Column 1: "Replace `········onSlider={(val)` with `··········onSlider={val`"
prettier/prettier
|
| 309 |
onSlider={(val) => { |
| Error |
Row 310, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 310, Column 44: "Missing radix parameter."
radix
|
| 310 |
filterOrdersWithRadiusWithLatLng(parseInt(val)); |
| Error |
Row 311, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 311, Column 21: "Missing radix parameter."
radix
|
| 311 |
setRadius(parseInt(val)); |
| Error |
Row 312, Column 9: "Insert `··`"
prettier/prettier
|
| 312 |
}} |
| Error |
Row 313, Column 1: "Replace `········onClose={()·=>` with `··········onClose={()·=>⏎···········`"
prettier/prettier
|
| 313 |
onClose={() => props.navigation.replace('internationaldelivery', { |
| Error |
Row 314, Column 11: "Insert `····`"
prettier/prettier
|
| 314 |
isFilter: true, |
| Error |
Row 315, Column 1: "Replace `··········` with `··············`"
prettier/prettier
|
| 315 |
isLocalOrder, |
| Error |
Row 316, Column 1: "Insert `····`"
prettier/prettier
|
| 316 |
filterPayload, |
| Error |
Row 317, Column 11: "Insert `····`"
prettier/prettier
|
| 317 |
radius, |
| Error |
Row 318, Column 1: "Replace `··········flags:·isLocalOrder·?·{·from:·props.localFilter?.from_flag,·to:·props.localFilter?.to_flag·}·:·{·from:·props.internationalFilter?.from_flag,·to:·props.internationalFilter?.to_flag` with `··············flags:·isLocalOrder⏎················?·{⏎····················from:·props.localFilter?.from_flag,⏎····················to:·props.localFilter?.to_flag,⏎··················}⏎················:·{⏎····················from:·props.internationalFilter?.from_flag,⏎····················to:·props.internationalFilter?.to_flag,⏎·················`"
prettier/prettier
|
| 318 |
flags: isLocalOrder ? { from: props.localFilter?.from_flag, to: props.localFilter?.to_flag } : { from: props.internationalFilter?.from_flag, to: props.internationalFilter?.to_flag }, |
| Error |
Row 319, Column 1: "Replace `········})` with `············})⏎··········`"
prettier/prettier
|
| 319 |
})} |
| Error |
Row 320, Column 9: "Insert `··`"
prettier/prettier
|
| 320 |
{...props} |
| Error |
Row 321, Column 1: "Insert `··`"
prettier/prettier
|
| 321 |
isLocalOrder={isLocalOrder} |
| Error |
Row 322, Column 7: "Replace `/>` with `··/>⏎······)`"
prettier/prettier
|
| 322 |
/>} |
| Error |
Row 323, Column 21: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎········translucent⏎········activeStatusBarStyle={'light-content'}⏎········inactiveStatusBarBackgroundColor={colors.primary}⏎········ref={alertRef}⏎·····`"
prettier/prettier
|
| 323 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 324 |
</View> |
| 325 |
); |
| 326 |
}; |
| 327 |
|
| 328 |
// export default SearchMap |
| 329 |
|
| 330 |
export const mapStateToProps = state => ({ |
| 331 |
filter_Orders: state.common_orders_list?.filter_Orders, |
| 332 |
internationalFilter: state.common.internationalFilter, |
| 333 |
localFilter: state.common.localFilter, |
| 334 |
profileData: state.auth.userInfo?.profile, |
| 335 |
}); |
| 336 |
|
| 337 |
export const mapDispatchToProps = { |
| Error |
Row 338, Column 58: "Insert `⏎···`"
prettier/prettier
|
| 338 |
filterPostedLocalOrdersList: (payload, isLocalOrder) => TAKE_TO_ACTIONS.filterPostedLocalOrdersList(payload, isLocalOrder), |
| 339 |
// createOrFilterTrip: (filterPayload, isLocalOrder, page) => TAKE_TO_ACTIONS.createOrFilterTrip(filterPayload, isLocalOrder, page), |
| 340 |
}; |
| 341 |
export default connect(mapStateToProps, mapDispatchToProps)(SearchMap); |
| 342 |
|
| 343 |
const styles = StyleSheet.create({ |
| 344 |
mainContainer: { |
| 345 |
flex: 1, |
| 346 |
backgroundColor: colors.white, |
| 347 |
}, |
| 348 |
barContainer: { |
| 349 |
width: '100%', |
| 350 |
paddingHorizontal: mvs(22), |
| 351 |
position: 'absolute', |
| 352 |
top: mvs(45), |
| 353 |
}, |
| 354 |
image: { |
| 355 |
height: mvs(28), |
| 356 |
width: mvs(28), |
| 357 |
borderRadius: mvs(8), |
| 358 |
overflow: 'hidden', |
| 359 |
}, |
| 360 |
callout: { |
| 361 |
height: mvs(49.39), |
| 362 |
alignSelf: 'center', |
| 363 |
}, |
| 364 |
calloutInner: { |
| 365 |
height: mvs(44.26), |
| 366 |
width: '100%', |
| 367 |
backgroundColor: colors.white, |
| 368 |
borderRadius: mvs(8), |
| 369 |
flexDirection: 'row', |
| 370 |
paddingHorizontal: mvs(5), |
| 371 |
alignItems: 'center', |
| 372 |
}, |
| 373 |
calloutMiddleContainer: { |
| 374 |
marginLeft: mvs(5), |
| 375 |
}, |
| 376 |
label: { |
| 377 |
fontSize: mvs(9), |
| 378 |
color: colors.title, |
| 379 |
}, |
| 380 |
status: { |
| 381 |
fontSize: mvs(9), |
| 382 |
color: colors.pink, |
| 383 |
marginTop: mvs(8), |
| 384 |
}, |
| 385 |
calloutEndContainer: { |
| 386 |
marginLeft: mvs(14), |
| 387 |
borderWidth: 1, |
| 388 |
}, |
| 389 |
value: { |
| 390 |
fontSize: mvs(9), |
| 391 |
color: colors.green, |
| 392 |
marginLeft: mvs(14), |
| 393 |
}, |
| 394 |
marker: { |
| 395 |
height: mvs(28), |
| 396 |
width: mvs(22), |
| 397 |
}, |
| 398 |
}); |
| 399 |
|
|
| Severity |
Rule |
| Warning |
Row 1, Column 16: "'useEffect' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 27: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 33: "'Image' is defined but never used."
no-unused-vars
|
| Warning |
Row 3, Column 8: "'GetLocation' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 3: "'Circle' is defined but never used."
no-unused-vars
|
| Warning |
Row 10, Column 8: "'GoogleSearchBar' is defined but never used."
no-unused-vars
|
| Warning |
Row 11, Column 8: "'header1x' is defined but never used."
no-unused-vars
|
| Error |
Row 17, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 17, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| Error |
Row 19, Column 9: "Replace `·showLocation·}·from·'react-native-map-link'` with `showLocation}·from·'react-native-map-link';`"
prettier/prettier
|
| Warning |
Row 19, Column 53: "Missing semicolon."
semi
|
| Error |
Row 23, Column 10: "Replace `·shopRegion·,·order_data}·=·props.route.params` with `shopRegion,·order_data}·=·props.route.params;`"
prettier/prettier
|
| Warning |
Row 23, Column 56: "Missing semicolon."
semi
|
| Warning |
Row 24, Column 9: "'Maps' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 24, Column 21: "["google_maps"] is better written in dot notation."
dot-notation
|
| Error |
Row 24, Column 35: "Insert `;`"
prettier/prettier
|
| Warning |
Row 24, Column 35: "Missing semicolon."
semi
|
| Warning |
Row 25, Column 18: "'setRegion' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 25, Column 40: "Replace `shopRegion||` with `⏎····shopRegion·||·`"
prettier/prettier
|
| Warning |
Row 25, Column 50: "Operator '||' must be spaced."
space-infix-ops
|
| Error |
Row 26, Column 5: "Insert `··`"
prettier/prettier
|
| Error |
Row 27, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 28, Column 5: "Insert `··`"
prettier/prettier
|
| Error |
Row 29, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 30, Column 3: "Replace `});⏎` with `··},⏎··);`"
prettier/prettier
|
| Error |
Row 33, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 33, Column 26: "Missing semicolon."
semi
|
| Warning |
Row 56, Column 14: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 56, Column 15: "Replace `⏎······{...props}·⏎······title="Store·location"·⏎······allowBackBtn·⏎······userIcon·=·{false}⏎·····` with `{...props}·title="Store·location"·allowBackBtn·userIcon={false}`"
prettier/prettier
|
| Warning |
Row 57, Column 17: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 58, Column 29: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 59, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 64, Column 16: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 68, Column 38: "Insert `>`"
prettier/prettier
|
| Error |
Row 69, Column 3: "Delete `····>⏎`"
prettier/prettier
|
| Error |
Row 71, Column 11: "Delete `··`"
prettier/prettier
|
| Error |
Row 72, Column 1: "Delete `··`"
prettier/prettier
|
| Warning |
Row 73, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 73, Column 15: "Delete `··⏎················`"
prettier/prettier
|
| Error |
Row 76, Column 17: "Replace `label·=·` with `··label=`"
prettier/prettier
|
| Error |
Row 77, Column 1: "Replace `················style·=·{{color·` with `··················style={{color`"
prettier/prettier
|
| Error |
Row 79, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 85, Column 1: "Replace `··················` with `················`"
prettier/prettier
|
| Error |
Row 92, Column 15: "Delete `··`"
prettier/prettier
|
| Error |
Row 93, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 96, Column 13: "Delete `··`"
prettier/prettier
|
| Error |
Row 97, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 98, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 126, Column 14: "Replace `·=·` with `=`"
prettier/prettier
|
| Error |
Row 127, Column 16: "Replace `·=·` with `={`${`$`"
prettier/prettier
|
| Error |
Row 128, Column 11: "Replace ``${·`${order_data?.shop_street?order_data?.shop_street+',':''}`}${order_data?.shop_block?order_data?.shop_block+',':''}${order_data?.shop_city},·${order_data?.shop_country}`⏎········` with `order_data?.shop_street·?·order_data?.shop_street·+·','·:·''⏎········}`}${order_data?.shop_block·?·order_data?.shop_block·+·','·:·''}${⏎··········order_data?.shop_city⏎········},·${order_data?.shop_country}``"
prettier/prettier
|
| Warning |
Row 128, Column 41: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 128, Column 65: "Operator '+' must be spaced."
space-infix-ops
|
| Warning |
Row 128, Column 99: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 128, Column 122: "Operator '+' must be spaced."
space-infix-ops
|
| Error |
Row 133, Column 21: "Delete `·`"
prettier/prettier
|
| Error |
Row 134, Column 22: "Replace `·:·order_data?.shop_location?.longitude` with `:·order_data?.shop_location?.longitude,`"
prettier/prettier
|
| Warning |
Row 134, Column 61: "Missing trailing comma."
comma-dangle
|
| Error |
Row 135, Column 13: "Insert `;`"
prettier/prettier
|
| Warning |
Row 135, Column 13: "Missing semicolon."
semi
|
| Error |
Row 174, Column 5: "Duplicate key 'paddingHorizontal'."
no-dupe-keys
|
| Error |
Row 174, Column 22: "Replace `·:·mvs(20)` with `:·mvs(20),`"
prettier/prettier
|
| Warning |
Row 174, Column 32: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| Warning |
Row 1, Column 16: "'useEffect' is defined but never used."
no-unused-vars
|
| 1 |
import React, {useEffect, useRef, useState} from 'react'; |
| Warning |
Row 2, Column 27: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 2, Column 33: "'Image' is defined but never used."
no-unused-vars
|
| 2 |
import {StyleSheet, View, Text, Image} from 'react-native'; |
| Warning |
Row 3, Column 8: "'GetLocation' is defined but never used."
no-unused-vars
|
| 3 |
import GetLocation from 'react-native-get-location'; |
| 4 |
import MapView, { |
| 5 |
Callout, |
| Warning |
Row 6, Column 3: "'Circle' is defined but never used."
no-unused-vars
|
| 6 |
Circle, |
| 7 |
Marker, |
| 8 |
PROVIDER_GOOGLE, |
| 9 |
} from 'react-native-maps'; |
| Warning |
Row 10, Column 8: "'GoogleSearchBar' is defined but never used."
no-unused-vars
|
| 10 |
import GoogleSearchBar from '../../components/molecules/google-search-bar'; |
| Warning |
Row 11, Column 8: "'header1x' is defined but never used."
no-unused-vars
|
| 11 |
import header1x from '../../components/molecules/header/header-1x'; |
| 12 |
import PinStoreLocationModal from '../../components/molecules/modals/pin-store-location'; |
| 13 |
import colors from '../../config/colors'; |
| 14 |
import * as SVGS from '../../../resource/assets/social-icons/index'; |
| 15 |
import {mvs} from '../../config/metrices'; |
| 16 |
import Header from '../../components/molecules/header/header-1x'; |
| Error |
Row 17, Column 9: "Replace `·TAKE_TO_IMAGES·` with `TAKE_TO_IMAGES`"
prettier/prettier
|
| Warning |
Row 17, Column 10: "'TAKE_TO_IMAGES' is defined but never used."
no-unused-vars
|
| 17 |
import { TAKE_TO_IMAGES } from '../../../resource/assets/image_resouce'; |
| 18 |
import Medium from '../../presentation/typography/medium-text'; |
| Error |
Row 19, Column 9: "Replace `·showLocation·}·from·'react-native-map-link'` with `showLocation}·from·'react-native-map-link';`"
prettier/prettier
|
| Warning |
Row 19, Column 53: "Missing semicolon."
semi
|
| 19 |
import { showLocation } from 'react-native-map-link' |
| 20 |
|
| 21 |
const StoreLocation = props => { |
| 22 |
let ref = useRef(); |
| Error |
Row 23, Column 10: "Replace `·shopRegion·,·order_data}·=·props.route.params` with `shopRegion,·order_data}·=·props.route.params;`"
prettier/prettier
|
| Warning |
Row 23, Column 56: "Missing semicolon."
semi
|
| 23 |
const { shopRegion , order_data} = props.route.params |
| Warning |
Row 24, Column 9: "'Maps' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 24, Column 21: "["google_maps"] is better written in dot notation."
dot-notation
|
| Error |
Row 24, Column 35: "Insert `;`"
prettier/prettier
|
| Warning |
Row 24, Column 35: "Missing semicolon."
semi
|
| 24 |
const Maps = SVGS['google_maps'] |
| Warning |
Row 25, Column 18: "'setRegion' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 25, Column 40: "Replace `shopRegion||` with `⏎····shopRegion·||·`"
prettier/prettier
|
| Warning |
Row 25, Column 50: "Operator '||' must be spaced."
space-infix-ops
|
| 25 |
const [region, setRegion] = useState(shopRegion||{ |
| Error |
Row 26, Column 5: "Insert `··`"
prettier/prettier
|
| 26 |
latitude: 37.78825, |
| Error |
Row 27, Column 1: "Insert `··`"
prettier/prettier
|
| 27 |
latitudeDelta: 0.015, |
| Error |
Row 28, Column 5: "Insert `··`"
prettier/prettier
|
| 28 |
longitude: -122.4324, |
| Error |
Row 29, Column 1: "Insert `··`"
prettier/prettier
|
| 29 |
longitudeDelta: 0.0121, |
| Error |
Row 30, Column 3: "Replace `});⏎` with `··},⏎··);`"
prettier/prettier
|
| 30 |
}); |
| 31 |
|
| 32 |
|
| Error |
Row 33, Column 26: "Insert `;`"
prettier/prettier
|
| Warning |
Row 33, Column 26: "Missing semicolon."
semi
|
| 33 |
console.log(shopRegion) |
| 34 |
|
| 35 |
// useEffect(() => { |
| 36 |
// GetLocation.getCurrentPosition({ |
| 37 |
// enableHighAccuracy: true, |
| 38 |
// timeout: 15000, |
| 39 |
// }) |
| 40 |
// .then(location => { |
| 41 |
// setRegion({ |
| 42 |
// latitude: location?.latitude, |
| 43 |
// latitudeDelta: 0.015, |
| 44 |
// longitude: location?.longitude, |
| 45 |
// longitudeDelta: 0.0121, |
| 46 |
// }); |
| 47 |
// }) |
| 48 |
// .catch(error => { |
| 49 |
// const {code, message} = error; |
| 50 |
// console.warn(code, message); |
| 51 |
// }); |
| 52 |
// }, []); |
| 53 |
|
| 54 |
return ( |
| 55 |
<View style={styles.mainContainer}> |
| Warning |
Row 56, Column 14: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 56, Column 15: "Replace `⏎······{...props}·⏎······title="Store·location"·⏎······allowBackBtn·⏎······userIcon·=·{false}⏎·····` with `{...props}·title="Store·location"·allowBackBtn·userIcon={false}`"
prettier/prettier
|
| 56 |
<Header |
| Warning |
Row 57, Column 17: "Trailing spaces not allowed."
no-trailing-spaces
|
| 57 |
{...props} |
| Warning |
Row 58, Column 29: "Trailing spaces not allowed."
no-trailing-spaces
|
| 58 |
title="Store location" |
| Warning |
Row 59, Column 19: "Trailing spaces not allowed."
no-trailing-spaces
|
| 59 |
allowBackBtn |
| 60 |
userIcon = {false} |
| 61 |
/> |
| 62 |
<MapView |
| 63 |
provider={PROVIDER_GOOGLE} // remove if not using Google Maps |
| Warning |
Row 64, Column 16: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 64 |
style={{flex: 1}} |
| 65 |
ref={ref} |
| 66 |
initialRegion={region} |
| 67 |
showsUserLocation={true} |
| Error |
Row 68, Column 38: "Insert `>`"
prettier/prettier
|
| 68 |
showsMyLocationButton={false} |
| Error |
Row 69, Column 3: "Delete `····>⏎`"
prettier/prettier
|
| 69 |
> |
| 70 |
<Marker coordinate={{latitude: 33.6392975, longitude: 73.0740016}}> |
| Error |
Row 71, Column 11: "Delete `··`"
prettier/prettier
|
| 71 |
<Callout tooltip={true}> |
| Error |
Row 72, Column 1: "Delete `··`"
prettier/prettier
|
| 72 |
<View style={styles.callout}> |
| Warning |
Row 73, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 73, Column 15: "Delete `··⏎················`"
prettier/prettier
|
| 73 |
|
| 74 |
<View style={styles.calloutInner}> |
| 75 |
<Medium |
| Error |
Row 76, Column 17: "Replace `label·=·` with `··label=`"
prettier/prettier
|
| 76 |
label = {order_data?.order_shop_name} |
| Error |
Row 77, Column 1: "Replace `················style·=·{{color·` with `··················style={{color`"
prettier/prettier
|
| 77 |
style = {{color : colors.primary}} |
| 78 |
/> |
| Error |
Row 79, Column 1: "Delete `··`"
prettier/prettier
|
| 79 |
{/* <Text style={{height: mvs(48)}}> |
| 80 |
<Image |
| 81 |
source={TAKE_TO_IMAGES.chat_dp} |
| 82 |
style={styles.image} |
| 83 |
/> |
| 84 |
</Text> */} |
| Error |
Row 85, Column 1: "Replace `··················` with `················`"
prettier/prettier
|
| 85 |
{/* <View style={styles.calloutMiddleContainer}> |
| 86 |
<View style={{flexDirection: 'row'}}> |
| 87 |
<Medium label="REWARD" style={styles.label} /> |
| 88 |
<Medium label="US$ 25" style={styles.value} /> |
| 89 |
</View> |
| 90 |
<Medium label="URGENT" style={{...styles.status}} /> |
| 91 |
</View> */} |
| Error |
Row 92, Column 15: "Delete `··`"
prettier/prettier
|
| 92 |
</View> |
| Error |
Row 93, Column 1: "Delete `··`"
prettier/prettier
|
| 93 |
{/* <View style={{alignSelf: 'center', marginTop: -mvs(3)}}> |
| 94 |
<Bottom /> |
| 95 |
</View> */} |
| Error |
Row 96, Column 13: "Delete `··`"
prettier/prettier
|
| 96 |
</View> |
| Error |
Row 97, Column 1: "Delete `··`"
prettier/prettier
|
| 97 |
</Callout> |
| Error |
Row 98, Column 1: "Delete `··`"
prettier/prettier
|
| 98 |
</Marker> |
| 99 |
</MapView> |
| 100 |
|
| 101 |
{/* <View style={styles.barContainer}> |
| 102 |
<GoogleSearchBar |
| 103 |
style={{backgroundColor: colors.white}} |
| 104 |
onPress={(data, details = null) => { |
| 105 |
setRegion({ |
| 106 |
latitude: details?.geometry?.location?.lat, |
| 107 |
latitudeDelta: 0.015, |
| 108 |
longitude: details?.geometry?.location?.lng, |
| 109 |
longitudeDelta: 0.0121, |
| 110 |
}); |
| 111 |
ref?.current?.animateToRegion( |
| 112 |
{ |
| 113 |
latitude: details?.geometry?.location?.lat, |
| 114 |
latitudeDelta: 0.015, |
| 115 |
longitude: details?.geometry?.location?.lng, |
| 116 |
longitudeDelta: 0.0121, |
| 117 |
}, |
| 118 |
1000, |
| 119 |
); |
| 120 |
}} |
| 121 |
/> |
| 122 |
</View> */} |
| 123 |
|
| 124 |
<PinStoreLocationModal |
| 125 |
visible={true} |
| Error |
Row 126, Column 14: "Replace `·=·` with `=`"
prettier/prettier
|
| 126 |
title = {order_data?.order_shop_name} |
| Error |
Row 127, Column 16: "Replace `·=·` with `={`${`$`"
prettier/prettier
|
| 127 |
address = { |
| Error |
Row 128, Column 11: "Replace ``${·`${order_data?.shop_street?order_data?.shop_street+',':''}`}${order_data?.shop_block?order_data?.shop_block+',':''}${order_data?.shop_city},·${order_data?.shop_country}`⏎········` with `order_data?.shop_street·?·order_data?.shop_street·+·','·:·''⏎········}`}${order_data?.shop_block·?·order_data?.shop_block·+·','·:·''}${⏎··········order_data?.shop_city⏎········},·${order_data?.shop_country}``"
prettier/prettier
|
| Warning |
Row 128, Column 41: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 128, Column 65: "Operator '+' must be spaced."
space-infix-ops
|
| Warning |
Row 128, Column 99: "Operator '?' must be spaced."
space-infix-ops
|
| Warning |
Row 128, Column 122: "Operator '+' must be spaced."
space-infix-ops
|
| 128 |
`${ `${order_data?.shop_street?order_data?.shop_street+',':''}`}${order_data?.shop_block?order_data?.shop_block+',':''}${order_data?.shop_city}, ${order_data?.shop_country}` |
| 129 |
} |
| 130 |
onClose={() => props.navigation.pop()} |
| 131 |
onPress={() => { |
| 132 |
showLocation({ |
| Error |
Row 133, Column 21: "Delete `·`"
prettier/prettier
|
| 133 |
latitude : order_data?.shop_location?.latitude, |
| Error |
Row 134, Column 22: "Replace `·:·order_data?.shop_location?.longitude` with `:·order_data?.shop_location?.longitude,`"
prettier/prettier
|
| Warning |
Row 134, Column 61: "Missing trailing comma."
comma-dangle
|
| 134 |
longitude : order_data?.shop_location?.longitude |
| Error |
Row 135, Column 13: "Insert `;`"
prettier/prettier
|
| Warning |
Row 135, Column 13: "Missing semicolon."
semi
|
| 135 |
}) |
| 136 |
}} |
| 137 |
/> |
| 138 |
</View> |
| 139 |
); |
| 140 |
}; |
| 141 |
|
| 142 |
export default StoreLocation; |
| 143 |
|
| 144 |
const styles = StyleSheet.create({ |
| 145 |
mainContainer: { |
| 146 |
flex: 1, |
| 147 |
backgroundColor: colors.white, |
| 148 |
}, |
| 149 |
barContainer: { |
| 150 |
width: '100%', |
| 151 |
paddingHorizontal: mvs(22), |
| 152 |
position: 'absolute', |
| 153 |
//top: mvs(45), |
| 154 |
}, |
| 155 |
image: { |
| 156 |
height: mvs(28), |
| 157 |
width: mvs(28), |
| 158 |
borderRadius: mvs(8), |
| 159 |
overflow: 'hidden', |
| 160 |
}, |
| 161 |
callout: { |
| 162 |
height: mvs(49.39), |
| 163 |
alignSelf: 'center', |
| 164 |
//backgroundColor : colors.white |
| 165 |
}, |
| 166 |
calloutInner: { |
| 167 |
height: mvs(44.26), |
| 168 |
width: '100%', |
| 169 |
backgroundColor: colors.white, |
| 170 |
borderRadius: mvs(8), |
| 171 |
flexDirection: 'row', |
| 172 |
paddingHorizontal: mvs(5), |
| 173 |
alignItems: 'center', |
| Error |
Row 174, Column 5: "Duplicate key 'paddingHorizontal'."
no-dupe-keys
|
| Error |
Row 174, Column 22: "Replace `·:·mvs(20)` with `:·mvs(20),`"
prettier/prettier
|
| Warning |
Row 174, Column 32: "Missing trailing comma."
comma-dangle
|
| 174 |
paddingHorizontal : mvs(20) |
| 175 |
}, |
| 176 |
calloutMiddleContainer: { |
| 177 |
marginLeft: mvs(5), |
| 178 |
}, |
| 179 |
label: { |
| 180 |
fontSize: mvs(9), |
| 181 |
color: colors.title, |
| 182 |
}, |
| 183 |
status: { |
| 184 |
fontSize: mvs(9), |
| 185 |
color: colors.pink, |
| 186 |
marginTop: mvs(8), |
| 187 |
}, |
| 188 |
calloutEndContainer: { |
| 189 |
marginLeft: mvs(14), |
| 190 |
borderWidth: 1, |
| 191 |
}, |
| 192 |
value: { |
| 193 |
fontSize: mvs(9), |
| 194 |
color: colors.green, |
| 195 |
marginLeft: mvs(14), |
| 196 |
}, |
| 197 |
marker: { |
| 198 |
height: mvs(28), |
| 199 |
width: mvs(22), |
| 200 |
}, |
| 201 |
}); |
| 202 |
|
|
|
|
/src/screens/popular-stores/stores.js
|
12 problems (4 errors, 8 warnings)
|
| Severity |
Rule |
| Error |
Row 11, Column 10: "Insert `,`"
prettier/prettier
|
| Warning |
Row 11, Column 10: "Missing trailing comma."
comma-dangle
|
| Error |
Row 13, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 17, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 31, Column 7: "Unexpected alert."
no-alert
|
| Error |
Row 37, Column 6: "React Hook React.useEffect has a missing dependency: 'fetchPopularStoreHandler'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 43, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 52, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 54, Column 20: "Strings must use singlequote."
quotes
|
| Warning |
Row 55, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 60, Column 5: "Expected { after 'else'."
curly
|
| Warning |
Row 78, Column 41: "'index' is already declared in the upper scope."
no-shadow
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 2 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 3 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 4 |
import React from 'react'; |
| 5 |
import { |
| 6 |
ActivityIndicator, |
| 7 |
FlatList, |
| 8 |
ScrollView, |
| 9 |
StyleSheet, |
| 10 |
View, |
| Error |
Row 11, Column 10: "Insert `,`"
prettier/prettier
|
| Warning |
Row 11, Column 10: "Missing trailing comma."
comma-dangle
|
| 11 |
Linking |
| 12 |
} from 'react-native'; |
| Error |
Row 13, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 13 |
import { connect } from 'react-redux'; |
| 14 |
import Header from '../../components/molecules/header/header-1x'; |
| 15 |
import PopularStores from '../../components/molecules/popular_stores/store'; |
| 16 |
import colors from '../../config/colors'; |
| Error |
Row 17, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 17 |
import { mvs } from '../../config/metrices'; |
| 18 |
import Regular from '../../presentation/typography/regular-text'; |
| 19 |
|
| 20 |
const Stores = props => { |
| 21 |
const {fetchPopularStores, popular_stores_list} = props; |
| 22 |
const [loading, setLoading] = React.useState(false); |
| 23 |
|
| 24 |
const fetchPopularStoreHandler = async () => { |
| 25 |
try { |
| 26 |
setLoading(true); |
| 27 |
await fetchPopularStores(); |
| 28 |
setLoading(false); |
| 29 |
} catch (error) { |
| 30 |
setLoading(false); |
| Warning |
Row 31, Column 7: "Unexpected alert."
no-alert
|
| 31 |
alert(UI_API._returnError(error)); |
| 32 |
} |
| 33 |
}; |
| 34 |
|
| 35 |
React.useEffect(() => { |
| 36 |
fetchPopularStoreHandler(); |
| Error |
Row 37, Column 6: "React Hook React.useEffect has a missing dependency: 'fetchPopularStoreHandler'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 37 |
}, []); |
| 38 |
|
| 39 |
if (loading) { |
| 40 |
return ( |
| 41 |
<View style={styles.mainContainer}> |
| 42 |
<Header {...props} title={'Popular stores'} allowBackBtn bellIcon /> |
| Warning |
Row 43, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 43 |
<View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}> |
| 44 |
<ActivityIndicator size="small" color={colors.primary} /> |
| 45 |
</View> |
| 46 |
</View> |
| 47 |
); |
| 48 |
} else if (!loading && !popular_stores_list.data) { |
| 49 |
return ( |
| 50 |
<View style={styles.mainContainer}> |
| 51 |
<Header {...props} title={'Popular stores'} allowBackBtn bellIcon /> |
| Warning |
Row 52, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 52 |
<View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}> |
| 53 |
<Regular |
| Warning |
Row 54, Column 20: "Strings must use singlequote."
quotes
|
| 54 |
label={`Oops! it seems their is no popular store available.`} |
| Warning |
Row 55, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 55 |
style={{textAlign: 'center', color: colors.primary}} |
| 56 |
/> |
| 57 |
</View> |
| 58 |
</View> |
| 59 |
); |
| Warning |
Row 60, Column 5: "Expected { after 'else'."
curly
|
| 60 |
} else |
| 61 |
return ( |
| 62 |
<View style={styles.mainContainer}> |
| 63 |
<Header {...props} title={'Popular stores'} allowBackBtn bellIcon /> |
| 64 |
|
| 65 |
<ScrollView contentContainerStyle={styles.storesMainContainer}> |
| 66 |
{TAKE_TO_CONSTANT.returnObjectKeys(popular_stores_list.data).map( |
| 67 |
(key, index) => ( |
| 68 |
<View style={styles.stores} key={index}> |
| 69 |
<Regular |
| 70 |
label={TAKE_TO_CONSTANT.convertCapitalizeFirst(key)} |
| 71 |
style={styles.storeType} |
| 72 |
/> |
| 73 |
<View style={{height: mvs(185)}}> |
| 74 |
<FlatList |
| 75 |
data={popular_stores_list.data[key]} |
| 76 |
showsHorizontalScrollIndicator={false} |
| 77 |
horizontal |
| Warning |
Row 78, Column 41: "'index' is already declared in the upper scope."
no-shadow
|
| 78 |
renderItem={({item, index}) => ( |
| 79 |
<> |
| 80 |
<PopularStores |
| 81 |
store_url={item.name} |
| 82 |
store_img={item?.image} |
| 83 |
fav_icon={item?.fav_icon} |
| 84 |
//onPress={()=> alert("")} |
| 85 |
onPress={() => Linking.openURL(item?.url)} |
| 86 |
/> |
| 87 |
<View style={{width: mvs(15)}} /> |
| 88 |
</> |
| 89 |
)} |
| 90 |
/> |
| 91 |
</View> |
| 92 |
</View> |
| 93 |
), |
| 94 |
)} |
| 95 |
</ScrollView> |
| 96 |
</View> |
| 97 |
); |
| 98 |
}; |
| 99 |
|
| 100 |
const mapStateToProps = state => ({ |
| 101 |
popular_stores_list: state.common_orders_list?.popular_stores_list, |
| 102 |
}); |
| 103 |
|
| 104 |
const mapDispatchToProps = { |
| 105 |
fetchPopularStores: () => TAKE_TO_ACTIONS.fetchPopularStores(), |
| 106 |
}; |
| 107 |
|
| 108 |
export default connect(mapStateToProps, mapDispatchToProps)(Stores); |
| 109 |
|
| 110 |
const styles = StyleSheet.create({ |
| 111 |
mainContainer: { |
| 112 |
flex: 1, |
| 113 |
backgroundColor: '#fff', |
| 114 |
}, |
| 115 |
storesMainContainer: { |
| 116 |
// flex: 1, |
| 117 |
paddingLeft: mvs(23), |
| 118 |
paddingBottom: mvs(100), |
| 119 |
//borderWidth : 1 |
| 120 |
}, |
| 121 |
stores: { |
| 122 |
height: mvs(222), |
| 123 |
width: '100%', |
| 124 |
//borderWidth : 1, |
| 125 |
marginTop: mvs(22), |
| 126 |
justifyContent: 'space-between', |
| 127 |
}, |
| 128 |
storeType: { |
| 129 |
//textDecorationLine: 'underline', |
| 130 |
fontSize: mvs(20), |
| 131 |
color: colors.headerTitle, |
| 132 |
}, |
| 133 |
}); |
| 134 |
|
|
|
|
/src/screens/privacy-files/privacyAndTerms.js
|
9 problems (3 errors, 6 warnings)
|
| Severity |
Rule |
| Warning |
Row 2, Column 21: "'Text' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| Error |
Row 10, Column 11: "Insert `⏎····`"
prettier/prettier
|
| Warning |
Row 11, Column 18: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 12, Column 14: "Replace `·{...props}·title={""}·allowBackBtn·spacebetween·userIcon={false}` with `⏎········{...props}⏎········title={''}⏎········allowBackBtn⏎········spacebetween⏎········userIcon={false}⏎·····`"
prettier/prettier
|
| Warning |
Row 12, Column 33: "Strings must use singlequote."
quotes
|
| Warning |
Row 13, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 14, Column 17: "Replace `·source={{uri:`https://taketo.exodevs.com/pages/${URL}`}}··startInLoadingState` with `⏎··········source={{uri:·`https://taketo.exodevs.com/pages/${URL}`}}⏎··········startInLoadingState⏎········`"
prettier/prettier
|
| Warning |
Row 22, Column 7: "'styles' is assigned a value but never used."
no-unused-vars
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Warning |
Row 2, Column 21: "'Text' is defined but never used."
no-unused-vars
|
| 2 |
import {StyleSheet, Text, View} from 'react-native'; |
| 3 |
import Header from '../../components/molecules/header/header-1x'; |
| 4 |
import colors from '../../config/colors'; |
| 5 |
import {WebView} from 'react-native-webview'; |
| Warning |
Row 6, Column 8: "'TAKE_TO_CONSTANT' is defined but never used."
no-unused-vars
|
| 6 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 7 |
const privacyAndTerms = props => { |
| 8 |
const {route} = props; |
| 9 |
const {URL} = route?.params; |
| Error |
Row 10, Column 11: "Insert `⏎····`"
prettier/prettier
|
| 10 |
return (//TAKE_TO_CONSTANT.convertUpperCase(URL.replace('-',' ')) |
| Warning |
Row 11, Column 18: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 11 |
<View style={{flex: 1, backgroundColor: colors.white}}> |
| Error |
Row 12, Column 14: "Replace `·{...props}·title={""}·allowBackBtn·spacebetween·userIcon={false}` with `⏎········{...props}⏎········title={''}⏎········allowBackBtn⏎········spacebetween⏎········userIcon={false}⏎·····`"
prettier/prettier
|
| Warning |
Row 12, Column 33: "Strings must use singlequote."
quotes
|
| 12 |
<Header {...props} title={""} allowBackBtn spacebetween userIcon={false} /> |
| Warning |
Row 13, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 13 |
<View style={{flex: 1}}> |
| Error |
Row 14, Column 17: "Replace `·source={{uri:`https://taketo.exodevs.com/pages/${URL}`}}··startInLoadingState` with `⏎··········source={{uri:·`https://taketo.exodevs.com/pages/${URL}`}}⏎··········startInLoadingState⏎········`"
prettier/prettier
|
| 14 |
<WebView source={{uri:`https://taketo.exodevs.com/pages/${URL}`}} startInLoadingState/> |
| 15 |
</View> |
| 16 |
</View> |
| 17 |
); |
| 18 |
}; |
| 19 |
|
| 20 |
export default privacyAndTerms; |
| 21 |
|
| Warning |
Row 22, Column 7: "'styles' is assigned a value but never used."
no-unused-vars
|
| 22 |
const styles = StyleSheet.create({}); |
| 23 |
|
|
|
|
/src/screens/profile/user-profile.js
|
154 problems (113 errors, 41 warnings)
|
| Severity |
Rule |
| Warning |
Row 6, Column 3: "'ImageBackground' is defined but never used."
no-unused-vars
|
| Warning |
Row 7, Column 3: "'Image' is defined but never used."
no-unused-vars
|
| Error |
Row 12, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 13, Column 9: "Replace `·Colors·` with `Colors`"
prettier/prettier
|
| Warning |
Row 13, Column 10: "'Colors' is defined but never used."
no-unused-vars
|
| Error |
Row 14, Column 9: "Replace `·StarTick·` with `StarTick`"
prettier/prettier
|
| Warning |
Row 14, Column 10: "'StarTick' is defined but never used."
no-unused-vars
|
| Error |
Row 15, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 22, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| Warning |
Row 23, Column 8: "'Regular' is defined but never used."
no-unused-vars
|
| Error |
Row 25, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 31, Column 10: "Replace `·route,·navigation,·publicUserInfo,·fetchPublicUserInfo,·profileData·}·=` with `route,·navigation,·publicUserInfo,·fetchPublicUserInfo,·profileData}·=⏎···`"
prettier/prettier
|
| Warning |
Row 31, Column 18: "'navigation' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 32, Column 10: "Replace `·user_id,is_review,·order_id·` with `user_id,·is_review,·order_id`"
prettier/prettier
|
| Error |
Row 33, Column 80: "Insert `;`"
prettier/prettier
|
| Warning |
Row 33, Column 80: "Missing semicolon."
semi
|
| Error |
Row 35, Column 30: "Insert `;`"
prettier/prettier
|
| Warning |
Row 35, Column 30: "Missing semicolon."
semi
|
| Error |
Row 38, Column 69: "Insert `;`"
prettier/prettier
|
| Warning |
Row 38, Column 69: "Missing semicolon."
semi
|
| Error |
Row 41, Column 64: "Insert `;`"
prettier/prettier
|
| Warning |
Row 41, Column 64: "Missing semicolon."
semi
|
| Error |
Row 44, Column 35: "Replace `(setLoading)` with `setLoading`"
prettier/prettier
|
| Warning |
Row 44, Column 36: "'setLoading' is already declared in the upper scope."
no-shadow
|
| Error |
Row 57, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 57, Column 4: "Missing semicolon."
semi
|
| Error |
Row 63, Column 6: "React Hook React.useEffect has a missing dependency: 'getPublicUserInfo'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 63, Column 16: "Insert `;`"
prettier/prettier
|
| Warning |
Row 63, Column 16: "Missing semicolon."
semi
|
| Error |
Row 72, Column 7: "Insert `;`"
prettier/prettier
|
| Warning |
Row 72, Column 7: "Missing semicolon."
semi
|
| Error |
Row 73, Column 23: "Insert `;`"
prettier/prettier
|
| Warning |
Row 73, Column 23: "Missing semicolon."
semi
|
| Error |
Row 75, Column 27: "Insert `·`"
prettier/prettier
|
| Error |
Row 80, Column 40: "Replace `⏎··········'error',⏎··········'Error',⏎··········response.message,⏎········` with `'error',·'Error',·response.message`"
prettier/prettier
|
| Error |
Row 88, Column 9: "Replace `"user_id"` with `user_id`"
prettier/prettier
|
| Warning |
Row 88, Column 9: "Strings must use singlequote."
quotes
|
| Error |
Row 89, Column 9: "Replace `"order_id"` with `order_id`"
prettier/prettier
|
| Warning |
Row 89, Column 9: "Strings must use singlequote."
quotes
|
| Error |
Row 90, Column 9: "Replace `"comment"` with `comment`"
prettier/prettier
|
| Warning |
Row 90, Column 9: "Strings must use singlequote."
quotes
|
| Error |
Row 91, Column 9: "Replace `"comunication_rating":·payload?.communicationStar,` with `comunication_rating:·payload?.communicationStar,·`"
prettier/prettier
|
| Warning |
Row 91, Column 9: "Strings must use singlequote."
quotes
|
| Error |
Row 92, Column 9: "Replace `"value_rating"` with `value_rating`"
prettier/prettier
|
| Warning |
Row 92, Column 9: "Strings must use singlequote."
quotes
|
| Error |
Row 93, Column 9: "Replace `"punctuality_rating":·payload?.PunctualityStar,` with `punctuality_rating:·payload?.PunctualityStar,·`"
prettier/prettier
|
| Warning |
Row 93, Column 9: "Strings must use singlequote."
quotes
|
| Error |
Row 94, Column 9: "Replace `"service_rating":·payload?.ServiceStar` with `service_rating:·payload?.ServiceStar,·`"
prettier/prettier
|
| Warning |
Row 94, Column 9: "Strings must use singlequote."
quotes
|
| Warning |
Row 94, Column 47: "Missing trailing comma."
comma-dangle
|
| Error |
Row 95, Column 8: "Insert `;`"
prettier/prettier
|
| Warning |
Row 95, Column 8: "Missing semicolon."
semi
|
| Error |
Row 98, Column 28: "Insert `;`"
prettier/prettier
|
| Warning |
Row 98, Column 28: "Missing semicolon."
semi
|
| Error |
Row 99, Column 13: "'client' is not defined."
no-undef
|
| Error |
Row 101, Column 31: "Insert `;`"
prettier/prettier
|
| Warning |
Row 101, Column 31: "Missing semicolon."
semi
|
| Error |
Row 109, Column 50: "Replace `⏎` with `;`"
prettier/prettier
|
| Warning |
Row 109, Column 50: "Missing semicolon."
semi
|
| Error |
Row 111, Column 15: "Insert `;`"
prettier/prettier
|
| Warning |
Row 111, Column 15: "Missing semicolon."
semi
|
| Error |
Row 112, Column 29: "Insert `;`"
prettier/prettier
|
| Warning |
Row 112, Column 29: "Missing semicolon."
semi
|
| Error |
Row 114, Column 29: "Insert `;`"
prettier/prettier
|
| Warning |
Row 114, Column 29: "Missing semicolon."
semi
|
| Error |
Row 121, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 121, Column 4: "Missing semicolon."
semi
|
| Warning |
Row 125, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 125, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 127, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 127, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| Error |
Row 136, Column 1: "Replace `····style={{·flex:·1,·backgroundColor:·colors.white·` with `······style={{flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 136, Column 12: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 137, Column 5: "Insert `··`"
prettier/prettier
|
| Error |
Row 138, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 139, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 140, Column 1: "Replace `······` with `········`"
prettier/prettier
|
| Error |
Row 141, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 142, Column 1: "Replace `········prettier/prettier
|
| Warning |
Row 142, Column 48: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 143, Column 1: "Replace `··········{publicUserInfo?.rate_by?.length·>·0·&&··0·&&·(⏎··············prettier/prettier
|
| Warning |
Row 143, Column 85: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 144, Column 1: "Replace `············prettier/prettier
|
| Error |
Row 145, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 146, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 147, Column 15: "Insert `····`"
prettier/prettier
|
| Error |
Row 148, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 149, Column 11: "Replace `` with `····⏎············)`"
prettier/prettier
|
| Error |
Row 150, Column 1: "Replace `··········prettier/prettier
|
| Error |
Row 151, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 152, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 153, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 154, Column 17: "Replace `setPayload({·...payload,·communicationStar:·number·` with `··setPayload({...payload,·communicationStar:·number`"
prettier/prettier
|
| Error |
Row 155, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 156, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 157, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 158, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 159, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 164, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 165, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 166, Column 15: "Replace `onPress={number·=>·setPayload({·...payload,·ServiceStar:·number·})` with `··onPress={number·=>⏎··················setPayload({...payload,·ServiceStar:·number})⏎················`"
prettier/prettier
|
| Error |
Row 167, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 168, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 169, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 170, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 171, Column 15: "Replace `disabled={!is_review·||·publicUserInfo?.rate_by?.some(el·=>·el.order_id·===·order_id·&&·el.rated_by_id·===·profileData?.id)` with `··disabled={⏎··················!is_review·||⏎··················publicUserInfo?.rate_by?.some(⏎····················el·=>⏎······················el.order_id·===·order_id·&&⏎······················el.rated_by_id·===·profileData?.id,⏎··················)⏎················`"
prettier/prettier
|
| Error |
Row 172, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 173, Column 1: "Replace `················setPayload({·...payload,·PunctualityStar:·number·` with `··················setPayload({...payload,·PunctualityStar:·number`"
prettier/prettier
|
| Error |
Row 174, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 175, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 176, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 177, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 178, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 179, Column 11: "Replace `{(is_review·&&·!isSubmitReview·&&·!publicUserInfo?.rate_by?.some(el·=>·el.order_id·===·order_id·&&·el.rated_by_id·===·profileData?.id))·&&·` with `··{is_review·&&⏎··············!isSubmitReview·&&⏎··············!publicUserInfo?.rate_by?.some(⏎················el·=>⏎··················el.order_id·===·order_id·&&⏎··················el.rated_by_id·===·profileData?.id,⏎··············)·&&·(⏎················`"
prettier/prettier
|
| Error |
Row 180, Column 1: "Replace `············prettier/prettier
|
| Error |
Row 181, Column 1: "Replace `··············` with `····················`"
prettier/prettier
|
| Error |
Row 182, Column 1: "Replace `················label='Write·a·Review'` with `······················label="Write·a·Review"`"
prettier/prettier
|
| Warning |
Row 182, Column 23: "Unexpected usage of singlequote."
jsx-quotes
|
| Error |
Row 183, Column 1: "Insert `······`"
prettier/prettier
|
| Error |
Row 184, Column 1: "Replace `················onChangeText={text·=>·setPayload({·...payload,·review:·text·})` with `······················onChangeText={text·=>⏎························setPayload({...payload,·review:·text})⏎······················`"
prettier/prettier
|
| Error |
Row 185, Column 1: "Replace `··············` with `····················`"
prettier/prettier
|
| Error |
Row 186, Column 1: "Insert `······`"
prettier/prettier
|
| Error |
Row 187, Column 13: "Insert `······`"
prettier/prettier
|
| Error |
Row 188, Column 1: "Replace `··············` with `····················`"
prettier/prettier
|
| Warning |
Row 188, Column 22: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 189, Column 1: "Insert `······`"
prettier/prettier
|
| Error |
Row 190, Column 1: "Replace `················` with `······················`"
prettier/prettier
|
| Error |
Row 191, Column 1: "Insert `······`"
prettier/prettier
|
| Error |
Row 192, Column 1: "Replace `··············` with `····················`"
prettier/prettier
|
| Error |
Row 193, Column 1: "Insert `······`"
prettier/prettier
|
| Error |
Row 194, Column 17: "Insert `······`"
prettier/prettier
|
| Error |
Row 195, Column 1: "Replace `················` with `······················`"
prettier/prettier
|
| Error |
Row 196, Column 1: "Insert `······`"
prettier/prettier
|
| Error |
Row 197, Column 1: "Replace `················` with `······················`"
prettier/prettier
|
| Error |
Row 198, Column 17: "Insert `······`"
prettier/prettier
|
| Error |
Row 199, Column 1: "Replace `················` with `······················`"
prettier/prettier
|
| Error |
Row 200, Column 15: "Insert `······`"
prettier/prettier
|
| Error |
Row 201, Column 1: "Insert `······`"
prettier/prettier
|
| Error |
Row 202, Column 1: "Replace `··········>` with `················>⏎··············)`"
prettier/prettier
|
| Error |
Row 203, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 204, Column 1: "Replace `⏎` with `··`"
prettier/prettier
|
| Error |
Row 206, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 207, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 208, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 209, Column 1: "Replace `··········setRatingSubmittedModal(false)` with `············setRatingSubmittedModal(false);`"
prettier/prettier
|
| Warning |
Row 209, Column 41: "Missing semicolon."
semi
|
| Error |
Row 210, Column 1: "Replace `··········props.navigation.navigate('orderhistory')` with `············props.navigation.navigate('orderhistory');`"
prettier/prettier
|
| Warning |
Row 210, Column 52: "Missing semicolon."
semi
|
| Error |
Row 211, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 212, Column 9: "Replace `onPrimary={()·=>·setRatingSubmittedModal(false)}·visible={ratingSubmittedModal}` with `··onPrimary={()·=>·setRatingSubmittedModal(false)}⏎··········visible={ratingSubmittedModal}⏎·······`"
prettier/prettier
|
| Error |
Row 213, Column 1: "Replace `·······prettier/prettier
|
| Error |
Row 214, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 224, Column 24: "Replace `(user_id)` with `user_id`"
prettier/prettier
|
| Error |
Row 226, Column 74: "Delete `⏎`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| 2 |
import { |
| 3 |
View, |
| 4 |
StyleSheet, |
| 5 |
ScrollView, |
| Warning |
Row 6, Column 3: "'ImageBackground' is defined but never used."
no-unused-vars
|
| 6 |
ImageBackground, |
| Warning |
Row 7, Column 3: "'Image' is defined but never used."
no-unused-vars
|
| 7 |
Image, |
| 8 |
ActivityIndicator, |
| 9 |
KeyboardAvoidingView, |
| 10 |
Platform, |
| 11 |
} from 'react-native'; |
| Error |
Row 12, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 12 |
import { mvs } from '../../config/metrices'; |
| Error |
Row 13, Column 9: "Replace `·Colors·` with `Colors`"
prettier/prettier
|
| Warning |
Row 13, Column 10: "'Colors' is defined but never used."
no-unused-vars
|
| 13 |
import { Colors } from 'react-native/Libraries/NewAppScreen'; |
| Error |
Row 14, Column 9: "Replace `·StarTick·` with `StarTick`"
prettier/prettier
|
| Warning |
Row 14, Column 10: "'StarTick' is defined but never used."
no-unused-vars
|
| 14 |
import { StarTick } from '../../../resource/assets/profile'; |
| Error |
Row 15, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 15 |
import { TAKE_TO_INPUT_FIELD } from '../../components/atoms'; |
| 16 |
import Buttons from '../../components/atoms/Button'; |
| 17 |
import Header from '../../components/molecules/header/header-1x'; |
| 18 |
import PublicRating from '../../components/molecules/profile/public-rating'; |
| 19 |
import UserInfo from '../../components/molecules/profile/user-info'; |
| 20 |
import UserRating from '../../components/molecules/profile/user-rating'; |
| 21 |
import colors from '../../config/colors'; |
| Warning |
Row 22, Column 8: "'Medium' is defined but never used."
no-unused-vars
|
| 22 |
import Medium from '../../presentation/typography/medium-text'; |
| Warning |
Row 23, Column 8: "'Regular' is defined but never used."
no-unused-vars
|
| 23 |
import Regular from '../../presentation/typography/regular-text'; |
| 24 |
import RatingSubmittedModal from '../../components/molecules/modals/rating-submited-modal'; |
| Error |
Row 25, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 25 |
import { connect } from 'react-redux'; |
| 26 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 27 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 28 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 29 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 30 |
const UserProfile = props => { |
| Error |
Row 31, Column 10: "Replace `·route,·navigation,·publicUserInfo,·fetchPublicUserInfo,·profileData·}·=` with `route,·navigation,·publicUserInfo,·fetchPublicUserInfo,·profileData}·=⏎···`"
prettier/prettier
|
| Warning |
Row 31, Column 18: "'navigation' is assigned a value but never used."
no-unused-vars
|
| 31 |
const { route, navigation, publicUserInfo, fetchPublicUserInfo, profileData } = props; |
| Error |
Row 32, Column 10: "Replace `·user_id,is_review,·order_id·` with `user_id,·is_review,·order_id`"
prettier/prettier
|
| 32 |
const { user_id,is_review, order_id } = route?.params; |
| Error |
Row 33, Column 80: "Insert `;`"
prettier/prettier
|
| Warning |
Row 33, Column 80: "Missing semicolon."
semi
|
| 33 |
const [ratingSubmittedModal, setRatingSubmittedModal] = React.useState(false) |
| 34 |
const [loading, setLoading] = React.useState(false); |
| Error |
Row 35, Column 30: "Insert `;`"
prettier/prettier
|
| Warning |
Row 35, Column 30: "Missing semicolon."
semi
|
| 35 |
console.log(publicUserInfo) |
| 36 |
const [payload, setPayload] = React.useState({}); |
| 37 |
console.log('payload:::::', payload); |
| Error |
Row 38, Column 69: "Insert `;`"
prettier/prettier
|
| Warning |
Row 38, Column 69: "Missing semicolon."
semi
|
| 38 |
const [isSubmitReview, setIsSubmitReviews] = React.useState(false) |
| 39 |
const alertRef = React.useRef(); |
| 40 |
|
| Error |
Row 41, Column 64: "Insert `;`"
prettier/prettier
|
| Warning |
Row 41, Column 64: "Missing semicolon."
semi
|
| 41 |
const [ratingLoader, setRatingLoader] = React.useState(false) |
| 42 |
|
| 43 |
console.log('publicUserInfo::', publicUserInfo); |
| Error |
Row 44, Column 35: "Replace `(setLoading)` with `setLoading`"
prettier/prettier
|
| Warning |
Row 44, Column 36: "'setLoading' is already declared in the upper scope."
no-shadow
|
| 44 |
const getPublicUserInfo = async (setLoading) => { |
| 45 |
try { |
| 46 |
setLoading(true); |
| 47 |
await fetchPublicUserInfo(user_id); |
| 48 |
} catch (error) { |
| 49 |
alertRef.current.alertWithType( |
| 50 |
'error', |
| 51 |
'Error', |
| 52 |
UI_API._returnError(error), |
| 53 |
); |
| 54 |
} finally { |
| 55 |
setLoading(false); |
| 56 |
} |
| Error |
Row 57, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 57, Column 4: "Missing semicolon."
semi
|
| 57 |
} |
| 58 |
React.useEffect(() => { |
| 59 |
// console.log('props::',props?.route?.params); |
| 60 |
if (user_id) { |
| 61 |
getPublicUserInfo(setLoading); |
| 62 |
} |
| Error |
Row 63, Column 6: "React Hook React.useEffect has a missing dependency: 'getPublicUserInfo'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 63, Column 16: "Insert `;`"
prettier/prettier
|
| Warning |
Row 63, Column 16: "Missing semicolon."
semi
|
| 63 |
}, [user_id]) |
| 64 |
|
| 65 |
React.useEffect(() => { |
| 66 |
setPayload({ |
| 67 |
communicationStar: publicUserInfo?.communication, |
| 68 |
// valueStar: publicUserInfo?.punctuality, |
| 69 |
ServiceStar: publicUserInfo?.service, |
| 70 |
PunctualityStar: publicUserInfo?.punctuality, |
| 71 |
review: '', |
| Error |
Row 72, Column 7: "Insert `;`"
prettier/prettier
|
| Warning |
Row 72, Column 7: "Missing semicolon."
semi
|
| 72 |
}) |
| Error |
Row 73, Column 23: "Insert `;`"
prettier/prettier
|
| Warning |
Row 73, Column 23: "Missing semicolon."
semi
|
| 73 |
}, [publicUserInfo]) |
| 74 |
|
| Error |
Row 75, Column 27: "Insert `·`"
prettier/prettier
|
| 75 |
console.log('payload::',payload); |
| 76 |
const submitRatingHandler = async () => { |
| 77 |
try { |
| 78 |
const response = TAKE_TO_CONSTANT.submitReviewValidation(payload); |
| 79 |
if (!response.status) { |
| Error |
Row 80, Column 40: "Replace `⏎··········'error',⏎··········'Error',⏎··········response.message,⏎········` with `'error',·'Error',·response.message`"
prettier/prettier
|
| 80 |
alertRef.current.alertWithType( |
| 81 |
'error', |
| 82 |
'Error', |
| 83 |
response.message, |
| 84 |
); |
| 85 |
return; |
| 86 |
} |
| 87 |
const data = { |
| Error |
Row 88, Column 9: "Replace `"user_id"` with `user_id`"
prettier/prettier
|
| Warning |
Row 88, Column 9: "Strings must use singlequote."
quotes
|
| 88 |
"user_id": user_id, |
| Error |
Row 89, Column 9: "Replace `"order_id"` with `order_id`"
prettier/prettier
|
| Warning |
Row 89, Column 9: "Strings must use singlequote."
quotes
|
| 89 |
"order_id": order_id, |
| Error |
Row 90, Column 9: "Replace `"comment"` with `comment`"
prettier/prettier
|
| Warning |
Row 90, Column 9: "Strings must use singlequote."
quotes
|
| 90 |
"comment": payload?.review, |
| Error |
Row 91, Column 9: "Replace `"comunication_rating":·payload?.communicationStar,` with `comunication_rating:·payload?.communicationStar,·`"
prettier/prettier
|
| Warning |
Row 91, Column 9: "Strings must use singlequote."
quotes
|
| 91 |
"comunication_rating": payload?.communicationStar,// |
| Error |
Row 92, Column 9: "Replace `"value_rating"` with `value_rating`"
prettier/prettier
|
| Warning |
Row 92, Column 9: "Strings must use singlequote."
quotes
|
| 92 |
"value_rating": 0, |
| Error |
Row 93, Column 9: "Replace `"punctuality_rating":·payload?.PunctualityStar,` with `punctuality_rating:·payload?.PunctualityStar,·`"
prettier/prettier
|
| Warning |
Row 93, Column 9: "Strings must use singlequote."
quotes
|
| 93 |
"punctuality_rating": payload?.PunctualityStar,// |
| Error |
Row 94, Column 9: "Replace `"service_rating":·payload?.ServiceStar` with `service_rating:·payload?.ServiceStar,·`"
prettier/prettier
|
| Warning |
Row 94, Column 9: "Strings must use singlequote."
quotes
|
| Warning |
Row 94, Column 47: "Missing trailing comma."
comma-dangle
|
| 94 |
"service_rating": payload?.ServiceStar// |
| Error |
Row 95, Column 8: "Insert `;`"
prettier/prettier
|
| Warning |
Row 95, Column 8: "Missing semicolon."
semi
|
| 95 |
} |
| 96 |
|
| 97 |
// return console.log(data) |
| Error |
Row 98, Column 28: "Insert `;`"
prettier/prettier
|
| Warning |
Row 98, Column 28: "Missing semicolon."
semi
|
| 98 |
setRatingLoader(true) |
| Error |
Row 99, Column 13: "'client' is not defined."
no-undef
|
| 99 |
await client.post('store-reviews', data); |
| 100 |
await getPublicUserInfo(setRatingLoader); |
| Error |
Row 101, Column 31: "Insert `;`"
prettier/prettier
|
| Warning |
Row 101, Column 31: "Missing semicolon."
semi
|
| 101 |
setIsSubmitReviews(true) |
| 102 |
alertRef.current.alertWithType( |
| 103 |
'success', |
| 104 |
'Reivew Submitted', |
| 105 |
'Your review successfully submitted', |
| 106 |
); |
| 107 |
setTimeout(() => { |
| 108 |
// setRatingSubmittedModal(true) |
| Error |
Row 109, Column 50: "Replace `⏎` with `;`"
prettier/prettier
|
| Warning |
Row 109, Column 50: "Missing semicolon."
semi
|
| 109 |
props.navigation.navigate('orderhistory') |
| 110 |
|
| Error |
Row 111, Column 15: "Insert `;`"
prettier/prettier
|
| Warning |
Row 111, Column 15: "Missing semicolon."
semi
|
| 111 |
}, 2000) |
| Error |
Row 112, Column 29: "Insert `;`"
prettier/prettier
|
| Warning |
Row 112, Column 29: "Missing semicolon."
semi
|
| 112 |
setRatingLoader(false) |
| 113 |
} catch (error) { |
| Error |
Row 114, Column 29: "Insert `;`"
prettier/prettier
|
| Warning |
Row 114, Column 29: "Missing semicolon."
semi
|
| 114 |
setRatingLoader(false) |
| 115 |
alertRef.current.alertWithType( |
| 116 |
'error', |
| 117 |
'Error', |
| 118 |
UI_API._returnError(error), |
| 119 |
); |
| 120 |
} |
| Error |
Row 121, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 121, Column 4: "Missing semicolon."
semi
|
| 121 |
} |
| 122 |
|
| 123 |
if (loading) { |
| 124 |
return ( |
| Warning |
Row 125, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 125, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 125 |
<View style={{ flex: 1, backgroundColor: colors.white }}> |
| 126 |
<Header {...props} title="Profile" allowBackBtn userIcon={false} /> |
| Warning |
Row 127, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 127, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| 127 |
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> |
| 128 |
<ActivityIndicator size="small" color={colors.primary} /> |
| 129 |
</View> |
| 130 |
</View> |
| 131 |
); |
| 132 |
} |
| 133 |
|
| 134 |
return ( |
| 135 |
<KeyboardAvoidingView |
| Error |
Row 136, Column 1: "Replace `····style={{·flex:·1,·backgroundColor:·colors.white·` with `······style={{flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 136, Column 12: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 136 |
style={{ flex: 1, backgroundColor: colors.white }} |
| Error |
Row 137, Column 5: "Insert `··`"
prettier/prettier
|
| 137 |
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}> |
| Error |
Row 138, Column 1: "Insert `··`"
prettier/prettier
|
| 138 |
<View style={styles.CONTAINER}> |
| Error |
Row 139, Column 7: "Insert `··`"
prettier/prettier
|
| 139 |
<Header {...props} title="Profile" allowBackBtn userIcon={false} /> |
| Error |
Row 140, Column 1: "Replace `······` with `········`"
prettier/prettier
|
| 140 |
<View style={styles.BODY}> |
| Error |
Row 141, Column 9: "Insert `··`"
prettier/prettier
|
| 141 |
<UserInfo {...props} /> |
| Error |
Row 142, Column 1: "Replace `········prettier/prettier
|
| Warning |
Row 142, Column 48: "Unexpected trailing comma."
comma-dangle
|
| 142 |
<ScrollView style={{ marginTop: mvs(33), }} contentContainerStyle={styles.SCROLL} showsVerticalScrollIndicator={false}> |
| Error |
Row 143, Column 1: "Replace `··········{publicUserInfo?.rate_by?.length·>·0·&&··0·&&·(⏎··············prettier/prettier
|
| Warning |
Row 143, Column 85: "Unexpected trailing comma."
comma-dangle
|
| 143 |
{publicUserInfo?.rate_by?.length > 0 && <View style={{ maxHeight: mvs(197), }}> |
| Error |
Row 144, Column 1: "Replace `············prettier/prettier
|
| 144 |
<ScrollView nestedScrollEnabled showsVerticalScrollIndicator={false}> |
| Error |
Row 145, Column 1: "Insert `····`"
prettier/prettier
|
| 145 |
{publicUserInfo?.rate_by?.map((item, index) => ( |
| Error |
Row 146, Column 1: "Insert `····`"
prettier/prettier
|
| 146 |
<PublicRating {...item} /> |
| Error |
Row 147, Column 15: "Insert `····`"
prettier/prettier
|
| 147 |
))} |
| Error |
Row 148, Column 1: "Insert `····`"
prettier/prettier
|
| 148 |
</ScrollView> |
| Error |
Row 149, Column 11: "Replace `` with `····⏎············)`"
prettier/prettier
|
| 149 |
</View>} |
| Error |
Row 150, Column 1: "Replace `··········prettier/prettier
|
| 150 |
<View style={{ marginTop: mvs(18) }}> |
| Error |
Row 151, Column 1: "Insert `··`"
prettier/prettier
|
| 151 |
<UserRating |
| Error |
Row 152, Column 15: "Insert `··`"
prettier/prettier
|
| 152 |
disabled={!is_review} |
| Error |
Row 153, Column 1: "Insert `··`"
prettier/prettier
|
| 153 |
onPress={number => |
| Error |
Row 154, Column 17: "Replace `setPayload({·...payload,·communicationStar:·number·` with `··setPayload({...payload,·communicationStar:·number`"
prettier/prettier
|
| 154 |
setPayload({ ...payload, communicationStar: number }) |
| Error |
Row 155, Column 15: "Insert `··`"
prettier/prettier
|
| 155 |
} |
| Error |
Row 156, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 156 |
fill={payload.communicationStar} |
| Error |
Row 157, Column 1: "Insert `··`"
prettier/prettier
|
| 157 |
label={'Communication'} |
| Error |
Row 158, Column 13: "Insert `··`"
prettier/prettier
|
| 158 |
/> |
| Error |
Row 159, Column 1: "Insert `··`"
prettier/prettier
|
| 159 |
{/* <UserRating |
| 160 |
onPress={number => setPayload({ ...payload, valueStar: number })} |
| 161 |
fill={payload.valueStar} |
| 162 |
label={'Value'} |
| 163 |
/> */} |
| Error |
Row 164, Column 13: "Insert `··`"
prettier/prettier
|
| 164 |
<UserRating |
| Error |
Row 165, Column 1: "Insert `··`"
prettier/prettier
|
| 165 |
disabled={!is_review} |
| Error |
Row 166, Column 15: "Replace `onPress={number·=>·setPayload({·...payload,·ServiceStar:·number·})` with `··onPress={number·=>⏎··················setPayload({...payload,·ServiceStar:·number})⏎················`"
prettier/prettier
|
| 166 |
onPress={number => setPayload({ ...payload, ServiceStar: number })} |
| Error |
Row 167, Column 1: "Insert `··`"
prettier/prettier
|
| 167 |
fill={payload.ServiceStar} |
| Error |
Row 168, Column 15: "Insert `··`"
prettier/prettier
|
| 168 |
label={'Service'} |
| Error |
Row 169, Column 1: "Insert `··`"
prettier/prettier
|
| 169 |
/> |
| Error |
Row 170, Column 13: "Insert `··`"
prettier/prettier
|
| 170 |
<UserRating |
| Error |
Row 171, Column 15: "Replace `disabled={!is_review·||·publicUserInfo?.rate_by?.some(el·=>·el.order_id·===·order_id·&&·el.rated_by_id·===·profileData?.id)` with `··disabled={⏎··················!is_review·||⏎··················publicUserInfo?.rate_by?.some(⏎····················el·=>⏎······················el.order_id·===·order_id·&&⏎······················el.rated_by_id·===·profileData?.id,⏎··················)⏎················`"
prettier/prettier
|
| 171 |
disabled={!is_review || publicUserInfo?.rate_by?.some(el => el.order_id === order_id && el.rated_by_id === profileData?.id)} |
| Error |
Row 172, Column 1: "Insert `··`"
prettier/prettier
|
| 172 |
onPress={number => |
| Error |
Row 173, Column 1: "Replace `················setPayload({·...payload,·PunctualityStar:·number·` with `··················setPayload({...payload,·PunctualityStar:·number`"
prettier/prettier
|
| 173 |
setPayload({ ...payload, PunctualityStar: number }) |
| Error |
Row 174, Column 15: "Insert `··`"
prettier/prettier
|
| 174 |
} |
| Error |
Row 175, Column 1: "Insert `··`"
prettier/prettier
|
| 175 |
fill={payload.PunctualityStar} |
| Error |
Row 176, Column 15: "Insert `··`"
prettier/prettier
|
| 176 |
label={'Punctuality'} |
| Error |
Row 177, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 177 |
/> |
| Error |
Row 178, Column 1: "Insert `··`"
prettier/prettier
|
| 178 |
</View> |
| Error |
Row 179, Column 11: "Replace `{(is_review·&&·!isSubmitReview·&&·!publicUserInfo?.rate_by?.some(el·=>·el.order_id·===·order_id·&&·el.rated_by_id·===·profileData?.id))·&&·` with `··{is_review·&&⏎··············!isSubmitReview·&&⏎··············!publicUserInfo?.rate_by?.some(⏎················el·=>⏎··················el.order_id·===·order_id·&&⏎··················el.rated_by_id·===·profileData?.id,⏎··············)·&&·(⏎················`"
prettier/prettier
|
| 179 |
{(is_review && !isSubmitReview && !publicUserInfo?.rate_by?.some(el => el.order_id === order_id && el.rated_by_id === profileData?.id)) && <> |
| Error |
Row 180, Column 1: "Replace `············prettier/prettier
|
| 180 |
<View style={{ marginTop: mvs(17), marginBottom: mvs(20) }}> |
| Error |
Row 181, Column 1: "Replace `··············` with `····················`"
prettier/prettier
|
| 181 |
<TAKE_TO_INPUT_FIELD.ReviewInput |
| Error |
Row 182, Column 1: "Replace `················label='Write·a·Review'` with `······················label="Write·a·Review"`"
prettier/prettier
|
| Warning |
Row 182, Column 23: "Unexpected usage of singlequote."
jsx-quotes
|
| 182 |
label='Write a Review' |
| Error |
Row 183, Column 1: "Insert `······`"
prettier/prettier
|
| 183 |
value={payload.review} |
| Error |
Row 184, Column 1: "Replace `················onChangeText={text·=>·setPayload({·...payload,·review:·text·})` with `······················onChangeText={text·=>⏎························setPayload({...payload,·review:·text})⏎······················`"
prettier/prettier
|
| 184 |
onChangeText={text => setPayload({ ...payload, review: text })} |
| Error |
Row 185, Column 1: "Replace `··············` with `····················`"
prettier/prettier
|
| 185 |
/> |
| Error |
Row 186, Column 1: "Insert `······`"
prettier/prettier
|
| 186 |
</View> |
| Error |
Row 187, Column 13: "Insert `······`"
prettier/prettier
|
| 187 |
<View |
| Error |
Row 188, Column 1: "Replace `··············` with `····················`"
prettier/prettier
|
| Warning |
Row 188, Column 22: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| 188 |
style={{ |
| Error |
Row 189, Column 1: "Insert `······`"
prettier/prettier
|
| 189 |
paddingBottom: mvs(20), |
| Error |
Row 190, Column 1: "Replace `················` with `······················`"
prettier/prettier
|
| 190 |
width: '100%', |
| Error |
Row 191, Column 1: "Insert `······`"
prettier/prettier
|
| 191 |
backgroundColor: colors.white, |
| Error |
Row 192, Column 1: "Replace `··············` with `····················`"
prettier/prettier
|
| 192 |
}}> |
| Error |
Row 193, Column 1: "Insert `······`"
prettier/prettier
|
| 193 |
<Buttons.ButtonPrimary |
| Error |
Row 194, Column 17: "Insert `······`"
prettier/prettier
|
| 194 |
loaderColor={colors.white} |
| Error |
Row 195, Column 1: "Replace `················` with `······················`"
prettier/prettier
|
| 195 |
loading={ratingLoader} |
| Error |
Row 196, Column 1: "Insert `······`"
prettier/prettier
|
| 196 |
disabled={ratingLoader} |
| Error |
Row 197, Column 1: "Replace `················` with `······················`"
prettier/prettier
|
| 197 |
// onClick={() => props.navigation.navigate('orderhistory')} |
| Error |
Row 198, Column 17: "Insert `······`"
prettier/prettier
|
| 198 |
onClick={submitRatingHandler} |
| Error |
Row 199, Column 1: "Replace `················` with `······················`"
prettier/prettier
|
| 199 |
title={'Submit Rating'} |
| Error |
Row 200, Column 15: "Insert `······`"
prettier/prettier
|
| 200 |
/> |
| Error |
Row 201, Column 1: "Insert `······`"
prettier/prettier
|
| 201 |
</View> |
| Error |
Row 202, Column 1: "Replace `··········>` with `················>⏎··············)`"
prettier/prettier
|
| 202 |
</>} |
| Error |
Row 203, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 203 |
</ScrollView> |
| Error |
Row 204, Column 1: "Replace `⏎` with `··`"
prettier/prettier
|
| 204 |
|
| 205 |
</View> |
| Error |
Row 206, Column 7: "Insert `··`"
prettier/prettier
|
| 206 |
<RatingSubmittedModal |
| Error |
Row 207, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 207 |
onClose={() => setRatingSubmittedModal(false)} |
| Error |
Row 208, Column 9: "Insert `··`"
prettier/prettier
|
| 208 |
onOuline={() => { |
| Error |
Row 209, Column 1: "Replace `··········setRatingSubmittedModal(false)` with `············setRatingSubmittedModal(false);`"
prettier/prettier
|
| Warning |
Row 209, Column 41: "Missing semicolon."
semi
|
| 209 |
setRatingSubmittedModal(false) |
| Error |
Row 210, Column 1: "Replace `··········props.navigation.navigate('orderhistory')` with `············props.navigation.navigate('orderhistory');`"
prettier/prettier
|
| Warning |
Row 210, Column 52: "Missing semicolon."
semi
|
| 210 |
props.navigation.navigate('orderhistory') |
| Error |
Row 211, Column 1: "Insert `··`"
prettier/prettier
|
| 211 |
}} |
| Error |
Row 212, Column 9: "Replace `onPrimary={()·=>·setRatingSubmittedModal(false)}·visible={ratingSubmittedModal}` with `··onPrimary={()·=>·setRatingSubmittedModal(false)}⏎··········visible={ratingSubmittedModal}⏎·······`"
prettier/prettier
|
| 212 |
onPrimary={() => setRatingSubmittedModal(false)} visible={ratingSubmittedModal} /> |
| Error |
Row 213, Column 1: "Replace `·······prettier/prettier
|
| 213 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| Error |
Row 214, Column 1: "Insert `··`"
prettier/prettier
|
| 214 |
</View> |
| 215 |
</KeyboardAvoidingView> |
| 216 |
); |
| 217 |
}; |
| 218 |
const mapStateToProps = state => ({ |
| 219 |
publicUserInfo: state.auth?.publicUserInfo, |
| 220 |
profileData: state.auth.userInfo?.profile || {}, |
| 221 |
}); |
| 222 |
|
| 223 |
const mapDispatchToProps = { |
| Error |
Row 224, Column 24: "Replace `(user_id)` with `user_id`"
prettier/prettier
|
| 224 |
fetchPublicUserInfo: (user_id) => TAKE_TO_ACTIONS.fetchPublicUserInfo(user_id), |
| 225 |
}; |
| Error |
Row 226, Column 74: "Delete `⏎`"
prettier/prettier
|
| 226 |
export default connect(mapStateToProps, mapDispatchToProps)(UserProfile); |
| 227 |
|
| 228 |
|
| 229 |
const styles = StyleSheet.create({ |
| 230 |
CONTAINER: { |
| 231 |
flex: 1, |
| 232 |
backgroundColor: colors.white, |
| 233 |
}, |
| 234 |
BODY: { |
| 235 |
flex: 1, |
| 236 |
}, |
| 237 |
SCROLL: { |
| 238 |
paddingHorizontal: mvs(22), |
| 239 |
// paddingBottom:mvs(120) |
| 240 |
}, |
| 241 |
LABEL: {}, |
| 242 |
LIST_CONTAINER: { |
| 243 |
paddingBottom: mvs(9), |
| 244 |
marginBottom: mvs(15), |
| 245 |
borderColor: colors.price_border, |
| 246 |
}, |
| 247 |
}); |
| 248 |
|
|
|
|
/src/screens/setting-screens/change-email.js
|
134 problems (111 errors, 23 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ScrollView,·Platform,·KeyboardAvoidingView·` with `⏎··View,⏎··StyleSheet,⏎··ScrollView,⏎··Platform,⏎··KeyboardAvoidingView,⏎`"
prettier/prettier
|
| Error |
Row 3, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| Warning |
Row 3, Column 15: "'width' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 8, Column 8: "'Regular' is defined but never used."
no-unused-vars
|
| Error |
Row 9, Column 9: "Replace `·Tick·` with `Tick`"
prettier/prettier
|
| Warning |
Row 9, Column 10: "'Tick' is defined but never used."
no-unused-vars
|
| Error |
Row 14, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 17, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 19, Column 10: "Replace `·profileData,·fetchUserInfo,·updateUserProfile·` with `profileData,·fetchUserInfo,·updateUserProfile`"
prettier/prettier
|
| Error |
Row 31, Column 58: "Insert `;`"
prettier/prettier
|
| Warning |
Row 31, Column 58: "Missing semicolon."
semi
|
| Warning |
Row 32, Column 9: "'list' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 32, Column 26: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 35, Column 27: "Replace `(reSend)` with `reSend`"
prettier/prettier
|
| Warning |
Row 37, Column 7: "Expected { after 'if' condition."
curly
|
| Error |
Row 37, Column 38: "Replace `·setLoading(true)` with `⏎······setLoading(true);`"
prettier/prettier
|
| Warning |
Row 37, Column 55: "Missing semicolon."
semi
|
| Error |
Row 38, Column 58: "Replace `·email:·payload?.newEmail` with `⏎········email:·payload?.newEmail,⏎·····`"
prettier/prettier
|
| Error |
Row 43, Column 21: "Replace `·...payload,·receivedOtp:·res?.data?.data?.otp·` with `...payload,·receivedOtp:·res?.data?.data?.otp`"
prettier/prettier
|
| Error |
Row 51, Column 43: "Insert `;`"
prettier/prettier
|
| Warning |
Row 51, Column 43: "Missing semicolon."
semi
|
| Warning |
Row 53, Column 7: "Expected { after 'if' condition."
curly
|
| Error |
Row 53, Column 39: "Insert `⏎·····`"
prettier/prettier
|
| Warning |
Row 55, Column 7: "Expected { after 'if' condition."
curly
|
| Error |
Row 55, Column 39: "Insert `⏎·····`"
prettier/prettier
|
| Error |
Row 62, Column 4: "Replace `⏎⏎` with `;`"
prettier/prettier
|
| Warning |
Row 62, Column 4: "Missing semicolon."
semi
|
| Error |
Row 69, Column 24: "Insert `;`"
prettier/prettier
|
| Warning |
Row 69, Column 24: "Missing semicolon."
semi
|
| Error |
Row 72, Column 33: "Insert `,`"
prettier/prettier
|
| Warning |
Row 72, Column 33: "Missing trailing comma."
comma-dangle
|
| Error |
Row 73, Column 9: "Insert `;`"
prettier/prettier
|
| Warning |
Row 73, Column 9: "Missing semicolon."
semi
|
| Error |
Row 74, Column 25: "Insert `;`"
prettier/prettier
|
| Warning |
Row 74, Column 25: "Missing semicolon."
semi
|
| Error |
Row 79, Column 7: "Delete `··`"
prettier/prettier
|
| Error |
Row 80, Column 1: "Replace `········` with `······`"
prettier/prettier
|
| Error |
Row 83, Column 25: "Insert `;`"
prettier/prettier
|
| Warning |
Row 83, Column 25: "Missing semicolon."
semi
|
| Error |
Row 90, Column 5: "Delete `⏎⏎`"
prettier/prettier
|
| Error |
Row 96, Column 5: "Replace `style={{·flex:·1,·backgroundColor:·colors.white·` with `··style={{flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 96, Column 12: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 97, Column 1: "Replace `····` with `······`"
prettier/prettier
|
| Error |
Row 98, Column 5: "Insert `··`"
prettier/prettier
|
| Error |
Row 99, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 100, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 101, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 102, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 103, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 104, Column 1: "Replace `⏎` with `··`"
prettier/prettier
|
| Error |
Row 106, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 107, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 108, Column 11: "Replace `prettier/prettier
|
| Warning |
Row 108, Column 24: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Warning |
Row 108, Column 39: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 109, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 110, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 111, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 112, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 113, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 114, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 115, Column 1: "Replace `··············onChangeText={text·=>·setPayload({·...payload,·email:·text·` with `················onChangeText={text·=>·setPayload({...payload,·email:·text`"
prettier/prettier
|
| Error |
Row 116, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 117, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 118, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 119, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 120, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 121, Column 1: "Replace `··········prettier/prettier
|
| Warning |
Row 121, Column 24: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Warning |
Row 121, Column 39: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 122, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 123, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 124, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 125, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 126, Column 17: "Replace `setPayload({·...payload,·newEmail:·text·` with `··setPayload({...payload,·newEmail:·text`"
prettier/prettier
|
| Error |
Row 127, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| Error |
Row 128, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 129, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 130, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 131, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 132, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 134, Column 1: "Replace `··········{TAKE_TO_CONSTANT.validateEmail(payload?.newEmail)·&&·isSent·?·` with `············{TAKE_TO_CONSTANT.validateEmail(payload?.newEmail)·&&·isSent·?·(⏎··············`"
prettier/prettier
|
| Error |
Row 135, Column 13: "Insert `····`"
prettier/prettier
|
| Error |
Row 136, Column 1: "Replace `············` with `················`"
prettier/prettier
|
| Error |
Row 137, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 138, Column 1: "Replace `············textStyle={{·color:·colors.white·` with `················textStyle={{color:·colors.white`"
prettier/prettier
|
| Error |
Row 139, Column 1: "Replace `············` with `················`"
prettier/prettier
|
| Error |
Row 140, Column 1: "Replace `············style={{·backgroundColor:·colors.primary·` with `················style={{backgroundColor:·colors.primary`"
prettier/prettier
|
| Error |
Row 141, Column 11: "Replace `/>·:` with `····/>⏎············)·:·(`"
prettier/prettier
|
| Error |
Row 142, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 143, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 144, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 145, Column 15: "Replace `textStyle={{·color:·colors.doted·` with `··textStyle={{color:·colors.doted`"
prettier/prettier
|
| Error |
Row 146, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 147, Column 1: "Replace `··············style={{·backgroundColor:·colors.secondary·` with `················style={{backgroundColor:·colors.secondary`"
prettier/prettier
|
| Error |
Row 148, Column 13: "Replace `/>}⏎` with `··/>⏎············)}`"
prettier/prettier
|
| Error |
Row 153, Column 25: "Replace `(v)·=>·setPayload({·...payload,·otp:·v·})}` with `v·=>·setPayload({...payload,·otp:·v})}⏎···········`"
prettier/prettier
|
| Error |
Row 154, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 155, Column 13: "Replace `prettier/prettier
|
| Warning |
Row 155, Column 26: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 156, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 157, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 158, Column 17: "Replace `onClick={()·=>·{·` with `··onClick={()·=>·{`"
prettier/prettier
|
| Error |
Row 159, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 160, Column 17: "Replace `textStyle={{·color:·colors.doted·` with `··textStyle={{color:·colors.doted`"
prettier/prettier
|
| Error |
Row 161, Column 1: "Replace `················style={{·backgroundColor:·colors.secondary·` with `··················style={{backgroundColor:·colors.secondary`"
prettier/prettier
|
| Error |
Row 162, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 163, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 164, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 165, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 166, Column 1: "Replace `··············prettier/prettier
|
| Warning |
Row 166, Column 28: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 167, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 168, Column 19: "Insert `··`"
prettier/prettier
|
| Error |
Row 169, Column 19: "Insert `··`"
prettier/prettier
|
| Error |
Row 170, Column 1: "Replace `··················` with `····················`"
prettier/prettier
|
| Error |
Row 171, Column 19: "Replace `style={{·marginBottom:·mvs(15)·` with `··style={{marginBottom:·mvs(15)`"
prettier/prettier
|
| Error |
Row 172, Column 19: "Replace `textStyle={{·color:·isSent·?·colors.lightgrey2·:·colors.typeHeader` with `··textStyle={{⏎······················color:·isSent·?·colors.lightgrey2·:·colors.typeHeader,⏎···················`"
prettier/prettier
|
| Error |
Row 173, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 174, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 175, Column 19: "Insert `··`"
prettier/prettier
|
| Error |
Row 176, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 177, Column 1: "Replace `··················` with `····················`"
prettier/prettier
|
| Error |
Row 178, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 179, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 180, Column 17: "Insert `··`"
prettier/prettier
|
| Error |
Row 181, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 182, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 183, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 184, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 185, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 186, Column 1: "Replace `······prettier/prettier
|
| Error |
Row 187, Column 1: "Insert `··`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·View,·StyleSheet,·ScrollView,·Platform,·KeyboardAvoidingView·` with `⏎··View,⏎··StyleSheet,⏎··ScrollView,⏎··Platform,⏎··KeyboardAvoidingView,⏎`"
prettier/prettier
|
| 2 |
import { View, StyleSheet, ScrollView, Platform, KeyboardAvoidingView } from 'react-native'; |
| Error |
Row 3, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| Warning |
Row 3, Column 15: "'width' is defined but never used."
no-unused-vars
|
| 3 |
import { mvs, width } from '../../config/metrices'; |
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 4 |
import { TAKE_TO_INPUT_FIELD } from '../../components/atoms'; |
| 5 |
import Buttons from '../../components/atoms/Button'; |
| 6 |
import Header from '../../components/molecules/header/header-1x'; |
| 7 |
import colors from '../../config/colors'; |
| Warning |
Row 8, Column 8: "'Regular' is defined but never used."
no-unused-vars
|
| 8 |
import Regular from '../../presentation/typography/regular-text'; |
| Error |
Row 9, Column 9: "Replace `·Tick·` with `Tick`"
prettier/prettier
|
| Warning |
Row 9, Column 10: "'Tick' is defined but never used."
no-unused-vars
|
| 9 |
import { Tick } from '../../../resource/assets/common-icons'; |
| 10 |
import TAKE_2_API from '@khan_ahmad786/common/api/API'; |
| 11 |
import TAKE_TO_CONSTANT from '@khan_ahmad786/common/utils/utils'; |
| 12 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 13 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| Error |
Row 14, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 14 |
import { connect } from 'react-redux'; |
| 15 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 16 |
|
| Error |
Row 17, Column 1: "Delete `⏎`"
prettier/prettier
|
| 17 |
|
| 18 |
const ChangeEmail = props => { |
| Error |
Row 19, Column 10: "Replace `·profileData,·fetchUserInfo,·updateUserProfile·` with `profileData,·fetchUserInfo,·updateUserProfile`"
prettier/prettier
|
| 19 |
const { profileData, fetchUserInfo, updateUserProfile } = props; |
| 20 |
const [payload, setPayload] = React.useState({ |
| 21 |
email: profileData?.email, |
| 22 |
isemailVerify: false, |
| 23 |
newEmail: '', |
| 24 |
otp: '', |
| 25 |
receivedOtp: '', |
| 26 |
}); |
| 27 |
const alertRef = React.useRef(); |
| 28 |
const [isSent, setIsSent] = React.useState(true); |
| 29 |
const [loading, setLoading] = React.useState(false); |
| 30 |
const [verifing, setVerifing] = React.useState(false); |
| Error |
Row 31, Column 58: "Insert `;`"
prettier/prettier
|
| Warning |
Row 31, Column 58: "Missing semicolon."
semi
|
| 31 |
const [resending, setResending] = React.useState(false) |
| Warning |
Row 32, Column 9: "'list' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 32, Column 26: "Delete `⏎`"
prettier/prettier
|
| 32 |
const list = [0, 1, 2]; |
| 33 |
|
| 34 |
|
| Error |
Row 35, Column 27: "Replace `(reSend)` with `reSend`"
prettier/prettier
|
| 35 |
const onSentOtp = async (reSend) => { |
| 36 |
try { |
| Warning |
Row 37, Column 7: "Expected { after 'if' condition."
curly
|
| Error |
Row 37, Column 38: "Replace `·setLoading(true)` with `⏎······setLoading(true);`"
prettier/prettier
|
| Warning |
Row 37, Column 55: "Missing semicolon."
semi
|
| 37 |
if (reSend) setResending(true); setLoading(true) |
| Error |
Row 38, Column 58: "Replace `·email:·payload?.newEmail` with `⏎········email:·payload?.newEmail,⏎·····`"
prettier/prettier
|
| 38 |
const response = TAKE_TO_CONSTANT.resetValidation({ email: payload?.newEmail }); |
| 39 |
console.log('response::', response); |
| 40 |
if (response.status) { |
| 41 |
const res = await TAKE_2_API?.postEmailOtp(payload?.newEmail); |
| 42 |
// console.log('res:::',res); |
| Error |
Row 43, Column 21: "Replace `·...payload,·receivedOtp:·res?.data?.data?.otp·` with `...payload,·receivedOtp:·res?.data?.data?.otp`"
prettier/prettier
|
| 43 |
setPayload({ ...payload, receivedOtp: res?.data?.data?.otp }); |
| 44 |
alertRef.current.alertWithType( |
| 45 |
'success', |
| 46 |
'Email OTP', |
| 47 |
'OTP sent on your provided email successfully', |
| 48 |
); |
| 49 |
setIsSent(false); |
| 50 |
} else { |
| Error |
Row 51, Column 43: "Insert `;`"
prettier/prettier
|
| Warning |
Row 51, Column 43: "Missing semicolon."
semi
|
| 51 |
throw new Error(response?.message) |
| 52 |
} |
| Warning |
Row 53, Column 7: "Expected { after 'if' condition."
curly
|
| Error |
Row 53, Column 39: "Insert `⏎·····`"
prettier/prettier
|
| 53 |
if (reSend) setResending(false); setLoading(false); |
| 54 |
} catch (error) { |
| Warning |
Row 55, Column 7: "Expected { after 'if' condition."
curly
|
| Error |
Row 55, Column 39: "Insert `⏎·····`"
prettier/prettier
|
| 55 |
if (reSend) setResending(false); setLoading(false); |
| 56 |
alertRef.current.alertWithType( |
| 57 |
'error', |
| 58 |
'Error', |
| 59 |
UI_API._returnError(error), |
| 60 |
); |
| 61 |
} |
| Error |
Row 62, Column 4: "Replace `⏎⏎` with `;`"
prettier/prettier
|
| Warning |
Row 62, Column 4: "Missing semicolon."
semi
|
| 62 |
} |
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
const verifyOTP = async () => { |
| 67 |
//console.log("otp",payload?.otp) |
| 68 |
try { |
| Error |
Row 69, Column 24: "Insert `;`"
prettier/prettier
|
| Warning |
Row 69, Column 24: "Missing semicolon."
semi
|
| 69 |
setVerifing(true) |
| 70 |
await TAKE_2_API.verifyOTP(payload?.otp, 'email'); |
| 71 |
await updateUserProfile({ |
| Error |
Row 72, Column 33: "Insert `,`"
prettier/prettier
|
| Warning |
Row 72, Column 33: "Missing trailing comma."
comma-dangle
|
| 72 |
email: payload?.newEmail |
| Error |
Row 73, Column 9: "Insert `;`"
prettier/prettier
|
| Warning |
Row 73, Column 9: "Missing semicolon."
semi
|
| 73 |
}) |
| Error |
Row 74, Column 25: "Insert `;`"
prettier/prettier
|
| Warning |
Row 74, Column 25: "Missing semicolon."
semi
|
| 74 |
setVerifing(false) |
| 75 |
alertRef.current.alertWithType( |
| 76 |
'success', |
| 77 |
'OTP Verified', |
| 78 |
'OTP verified successfully', |
| Error |
Row 79, Column 7: "Delete `··`"
prettier/prettier
|
| 79 |
); |
| Error |
Row 80, Column 1: "Replace `········` with `······`"
prettier/prettier
|
| 80 |
await fetchUserInfo(); |
| 81 |
props.navigation.pop(); |
| 82 |
} catch (error) { |
| Error |
Row 83, Column 25: "Insert `;`"
prettier/prettier
|
| Warning |
Row 83, Column 25: "Missing semicolon."
semi
|
| 83 |
setVerifing(false) |
| 84 |
alertRef.current.alertWithType( |
| 85 |
'error', |
| 86 |
'Error', |
| 87 |
UI_API._returnError(error), |
| 88 |
); |
| 89 |
} |
| Error |
Row 90, Column 5: "Delete `⏎⏎`"
prettier/prettier
|
| 90 |
}; |
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
return ( |
| 95 |
<KeyboardAvoidingView |
| Error |
Row 96, Column 5: "Replace `style={{·flex:·1,·backgroundColor:·colors.white·` with `··style={{flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 96, Column 12: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 96 |
style={{ flex: 1, backgroundColor: colors.white }} |
| Error |
Row 97, Column 1: "Replace `····` with `······`"
prettier/prettier
|
| 97 |
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}> |
| Error |
Row 98, Column 5: "Insert `··`"
prettier/prettier
|
| 98 |
<View style={styles.CONTAINER}> |
| Error |
Row 99, Column 1: "Insert `··`"
prettier/prettier
|
| 99 |
<Header |
| Error |
Row 100, Column 9: "Insert `··`"
prettier/prettier
|
| 100 |
{...props} |
| Error |
Row 101, Column 1: "Insert `··`"
prettier/prettier
|
| 101 |
title="Change email address" |
| Error |
Row 102, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 102 |
allowBackBtn |
| Error |
Row 103, Column 1: "Insert `··`"
prettier/prettier
|
| 103 |
userIcon={false} |
| Error |
Row 104, Column 1: "Replace `⏎` with `··`"
prettier/prettier
|
| 104 |
|
| 105 |
/> |
| Error |
Row 106, Column 1: "Insert `··`"
prettier/prettier
|
| 106 |
<ScrollView contentContainerStyle={styles.SCROLL}> |
| Error |
Row 107, Column 1: "Insert `··`"
prettier/prettier
|
| 107 |
<View style={styles.BODY}> |
| Error |
Row 108, Column 11: "Replace `prettier/prettier
|
| Warning |
Row 108, Column 24: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Warning |
Row 108, Column 39: "Unexpected trailing comma."
comma-dangle
|
| 108 |
<View style={{ width: '100%', }}> |
| Error |
Row 109, Column 13: "Insert `··`"
prettier/prettier
|
| 109 |
<TAKE_TO_INPUT_FIELD.CustomInput |
| Error |
Row 110, Column 15: "Insert `··`"
prettier/prettier
|
| 110 |
editable={false} |
| Error |
Row 111, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 111 |
isVerify |
| Error |
Row 112, Column 1: "Insert `··`"
prettier/prettier
|
| 112 |
// style={{color:colors.label}} |
| Error |
Row 113, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 113 |
keyboardType={'email-address'} |
| Error |
Row 114, Column 15: "Insert `··`"
prettier/prettier
|
| 114 |
value={payload.email} |
| Error |
Row 115, Column 1: "Replace `··············onChangeText={text·=>·setPayload({·...payload,·email:·text·` with `················onChangeText={text·=>·setPayload({...payload,·email:·text`"
prettier/prettier
|
| 115 |
onChangeText={text => setPayload({ ...payload, email: text })} |
| Error |
Row 116, Column 1: "Insert `··`"
prettier/prettier
|
| 116 |
label={'Registered Email address'} |
| Error |
Row 117, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 117 |
// isVerify={payload.email} |
| Error |
Row 118, Column 1: "Insert `··`"
prettier/prettier
|
| 118 |
placeholder={'Registered email address'} |
| Error |
Row 119, Column 1: "Insert `··`"
prettier/prettier
|
| 119 |
/> |
| Error |
Row 120, Column 11: "Insert `··`"
prettier/prettier
|
| 120 |
</View> |
| Error |
Row 121, Column 1: "Replace `··········prettier/prettier
|
| Warning |
Row 121, Column 24: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Warning |
Row 121, Column 39: "Unexpected trailing comma."
comma-dangle
|
| 121 |
<View style={{ width: '100%', }}> |
| Error |
Row 122, Column 1: "Insert `··`"
prettier/prettier
|
| 122 |
<TAKE_TO_INPUT_FIELD.CustomInput |
| Error |
Row 123, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 123 |
keyboardType={'email-address'} |
| Error |
Row 124, Column 15: "Insert `··`"
prettier/prettier
|
| 124 |
value={payload.newEmail} |
| Error |
Row 125, Column 1: "Insert `··`"
prettier/prettier
|
| 125 |
onChangeText={text => { |
| Error |
Row 126, Column 17: "Replace `setPayload({·...payload,·newEmail:·text·` with `··setPayload({...payload,·newEmail:·text`"
prettier/prettier
|
| 126 |
setPayload({ ...payload, newEmail: text }); |
| Error |
Row 127, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| 127 |
setIsSent(true); |
| Error |
Row 128, Column 15: "Insert `··`"
prettier/prettier
|
| 128 |
}} |
| Error |
Row 129, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 129 |
label={'New Email address'} |
| Error |
Row 130, Column 1: "Insert `··`"
prettier/prettier
|
| 130 |
placeholder={'New email address'} |
| Error |
Row 131, Column 1: "Insert `··`"
prettier/prettier
|
| 131 |
/> |
| Error |
Row 132, Column 11: "Insert `··`"
prettier/prettier
|
| 132 |
</View> |
| 133 |
|
| Error |
Row 134, Column 1: "Replace `··········{TAKE_TO_CONSTANT.validateEmail(payload?.newEmail)·&&·isSent·?·` with `············{TAKE_TO_CONSTANT.validateEmail(payload?.newEmail)·&&·isSent·?·(⏎··············`"
prettier/prettier
|
| 134 |
{TAKE_TO_CONSTANT.validateEmail(payload?.newEmail) && isSent ? <Buttons.ButtonPrimary |
| Error |
Row 135, Column 13: "Insert `····`"
prettier/prettier
|
| 135 |
loading={loading} |
| Error |
Row 136, Column 1: "Replace `············` with `················`"
prettier/prettier
|
| 136 |
loaderColor={colors?.white} |
| Error |
Row 137, Column 1: "Insert `····`"
prettier/prettier
|
| 137 |
onClick={() => onSentOtp(false)} |
| Error |
Row 138, Column 1: "Replace `············textStyle={{·color:·colors.white·` with `················textStyle={{color:·colors.white`"
prettier/prettier
|
| 138 |
textStyle={{ color: colors.white }} |
| Error |
Row 139, Column 1: "Replace `············` with `················`"
prettier/prettier
|
| 139 |
title={'Send Code'} |
| Error |
Row 140, Column 1: "Replace `············style={{·backgroundColor:·colors.primary·` with `················style={{backgroundColor:·colors.primary`"
prettier/prettier
|
| 140 |
style={{ backgroundColor: colors.primary }} |
| Error |
Row 141, Column 11: "Replace `/>·:` with `····/>⏎············)·:·(`"
prettier/prettier
|
| 141 |
/> : |
| Error |
Row 142, Column 1: "Insert `··`"
prettier/prettier
|
| 142 |
<Buttons.ButtonPrimary |
| Error |
Row 143, Column 15: "Insert `··`"
prettier/prettier
|
| 143 |
disabled |
| Error |
Row 144, Column 1: "Insert `··`"
prettier/prettier
|
| 144 |
onClick={() => props.navigation.pop()} |
| Error |
Row 145, Column 15: "Replace `textStyle={{·color:·colors.doted·` with `··textStyle={{color:·colors.doted`"
prettier/prettier
|
| 145 |
textStyle={{ color: colors.doted }} |
| Error |
Row 146, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 146 |
title={'Send Code'} |
| Error |
Row 147, Column 1: "Replace `··············style={{·backgroundColor:·colors.secondary·` with `················style={{backgroundColor:·colors.secondary`"
prettier/prettier
|
| 147 |
style={{ backgroundColor: colors.secondary }} |
| Error |
Row 148, Column 13: "Replace `/>}⏎` with `··/>⏎············)}`"
prettier/prettier
|
| 148 |
/>} |
| 149 |
|
| 150 |
|
| 151 |
<TAKE_TO_INPUT_FIELD.CustomOtpInput |
| 152 |
value={payload.otp} |
| Error |
Row 153, Column 25: "Replace `(v)·=>·setPayload({·...payload,·otp:·v·})}` with `v·=>·setPayload({...payload,·otp:·v})}⏎···········`"
prettier/prettier
|
| 153 |
setValue={(v) => setPayload({ ...payload, otp: v })} /> |
| Error |
Row 154, Column 1: "Insert `··`"
prettier/prettier
|
| 154 |
{isSent ? ( |
| Error |
Row 155, Column 13: "Replace `prettier/prettier
|
| Warning |
Row 155, Column 26: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| 155 |
<View style={{ marginTop: mvs(270), paddingBottom: mvs(40), width: '100%' }}> |
| Error |
Row 156, Column 1: "Insert `··`"
prettier/prettier
|
| 156 |
<Buttons.ButtonSeconday |
| Error |
Row 157, Column 1: "Insert `··`"
prettier/prettier
|
| 157 |
disabled |
| Error |
Row 158, Column 17: "Replace `onClick={()·=>·{·` with `··onClick={()·=>·{`"
prettier/prettier
|
| 158 |
onClick={() => { }} |
| Error |
Row 159, Column 1: "Insert `··`"
prettier/prettier
|
| 159 |
title={'Verify'} |
| Error |
Row 160, Column 17: "Replace `textStyle={{·color:·colors.doted·` with `··textStyle={{color:·colors.doted`"
prettier/prettier
|
| 160 |
textStyle={{ color: colors.doted }} |
| Error |
Row 161, Column 1: "Replace `················style={{·backgroundColor:·colors.secondary·` with `··················style={{backgroundColor:·colors.secondary`"
prettier/prettier
|
| 161 |
style={{ backgroundColor: colors.secondary }} |
| Error |
Row 162, Column 1: "Insert `··`"
prettier/prettier
|
| 162 |
/> |
| Error |
Row 163, Column 13: "Insert `··`"
prettier/prettier
|
| 163 |
</View> |
| Error |
Row 164, Column 1: "Insert `··`"
prettier/prettier
|
| 164 |
) : ( |
| Error |
Row 165, Column 13: "Insert `··`"
prettier/prettier
|
| 165 |
<> |
| Error |
Row 166, Column 1: "Replace `··············prettier/prettier
|
| Warning |
Row 166, Column 28: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| 166 |
<View style={{ marginTop: mvs(208), paddingBottom: mvs(40), width: '100%' }}> |
| Error |
Row 167, Column 1: "Insert `··`"
prettier/prettier
|
| 167 |
<Buttons.ButtonSecondaryOutline |
| Error |
Row 168, Column 19: "Insert `··`"
prettier/prettier
|
| 168 |
onClick={() => onSentOtp(true)} |
| Error |
Row 169, Column 19: "Insert `··`"
prettier/prettier
|
| 169 |
loading={resending} |
| Error |
Row 170, Column 1: "Replace `··················` with `····················`"
prettier/prettier
|
| 170 |
title={'Resend code by email'} |
| Error |
Row 171, Column 19: "Replace `style={{·marginBottom:·mvs(15)·` with `··style={{marginBottom:·mvs(15)`"
prettier/prettier
|
| 171 |
style={{ marginBottom: mvs(15) }} |
| Error |
Row 172, Column 19: "Replace `textStyle={{·color:·isSent·?·colors.lightgrey2·:·colors.typeHeader` with `··textStyle={{⏎······················color:·isSent·?·colors.lightgrey2·:·colors.typeHeader,⏎···················`"
prettier/prettier
|
| 172 |
textStyle={{ color: isSent ? colors.lightgrey2 : colors.typeHeader }} |
| Error |
Row 173, Column 1: "Insert `··`"
prettier/prettier
|
| 173 |
/> |
| Error |
Row 174, Column 1: "Insert `··`"
prettier/prettier
|
| 174 |
<Buttons.ButtonPrimary |
| Error |
Row 175, Column 19: "Insert `··`"
prettier/prettier
|
| 175 |
loading={verifing} |
| Error |
Row 176, Column 1: "Insert `··`"
prettier/prettier
|
| 176 |
loaderColor={colors?.white} |
| Error |
Row 177, Column 1: "Replace `··················` with `····················`"
prettier/prettier
|
| 177 |
disabled={verifing} |
| Error |
Row 178, Column 1: "Insert `··`"
prettier/prettier
|
| 178 |
onClick={verifyOTP} |
| Error |
Row 179, Column 1: "Insert `··`"
prettier/prettier
|
| 179 |
title={'Verify'} |
| Error |
Row 180, Column 17: "Insert `··`"
prettier/prettier
|
| 180 |
/> |
| Error |
Row 181, Column 1: "Insert `··`"
prettier/prettier
|
| 181 |
</View> |
| Error |
Row 182, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 182 |
</> |
| Error |
Row 183, Column 11: "Insert `··`"
prettier/prettier
|
| 183 |
)} |
| Error |
Row 184, Column 1: "Insert `··`"
prettier/prettier
|
| 184 |
</View> |
| Error |
Row 185, Column 7: "Insert `··`"
prettier/prettier
|
| 185 |
</ScrollView> |
| Error |
Row 186, Column 1: "Replace `······prettier/prettier
|
| 186 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| Error |
Row 187, Column 1: "Insert `··`"
prettier/prettier
|
| 187 |
</View> |
| 188 |
</KeyboardAvoidingView> |
| 189 |
); |
| 190 |
}; |
| 191 |
// export default ChangeEmail; |
| 192 |
const mapStateToProps = state => { |
| 193 |
return { |
| 194 |
profileData: state.auth.userInfo?.profile, |
| 195 |
}; |
| 196 |
}; |
| 197 |
|
| 198 |
const mapDispatchToProps = dispatch => ({ |
| 199 |
updateUserProfile: data => dispatch(TAKE_TO_ACTIONS.updateUserProfile(data)), |
| 200 |
fetchUserInfo: () => dispatch(TAKE_TO_ACTIONS.fetchUserInfo()), |
| 201 |
}); |
| 202 |
// export default SignInScreen; |
| 203 |
export default connect(mapStateToProps, mapDispatchToProps)(ChangeEmail); |
| 204 |
const styles = StyleSheet.create({ |
| 205 |
CONTAINER: { |
| 206 |
flex: 1, |
| 207 |
backgroundColor: colors.white, |
| 208 |
}, |
| 209 |
BODY: { |
| 210 |
flex: 1, |
| 211 |
}, |
| 212 |
SCROLL: { |
| 213 |
paddingTop: mvs(6), |
| 214 |
paddingHorizontal: mvs(22), |
| 215 |
// paddingBottom: mvs(200), |
| 216 |
flexGrow: 1, |
| 217 |
}, |
| 218 |
LABEL: {}, |
| 219 |
LIST_CONTAINER: { |
| 220 |
paddingBottom: mvs(9), |
| 221 |
marginBottom: mvs(15), |
| 222 |
borderColor: colors.price_border, |
| 223 |
}, |
| 224 |
}); |
| 225 |
|
|
|
|
/src/screens/setting-screens/change-password.js
|
110 problems (104 errors, 6 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `View,·StyleSheet,·ScrollView,·Platform,·KeyboardAvoidingView` with `⏎··View,⏎··StyleSheet,⏎··ScrollView,⏎··Platform,⏎··KeyboardAvoidingView,⏎`"
prettier/prettier
|
| Warning |
Row 13, Column 10: "'navigation' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 43, Column 21: "Insert `;`"
prettier/prettier
|
| Warning |
Row 43, Column 21: "Missing semicolon."
semi
|
| Error |
Row 62, Column 5: "Replace `style={{·flex:·1,·backgroundColor:·colors.white·` with `··style={{flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 62, Column 12: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 63, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 64, Column 1: "Replace `····` with `······`"
prettier/prettier
|
| Error |
Row 65, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 66, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 67, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 68, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 69, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 70, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 71, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 72, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 73, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 73, Column 32: "Inline style: { flexGrow: 1 }"
react-native/no-inline-styles
|
| Error |
Row 74, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 75, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 76, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 77, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 78, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 79, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 80, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 81, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 82, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 83, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 84, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 85, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 86, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 87, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 88, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 89, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 90, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 91, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 92, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 93, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 94, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 95, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 96, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 97, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 98, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 99, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 100, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 101, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 102, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 103, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 104, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 105, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 106, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 107, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 108, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 109, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 110, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 111, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 112, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 113, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 114, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 115, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 116, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 117, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 118, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 119, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 121, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 122, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 123, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 124, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 125, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 126, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 127, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 128, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 129, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 130, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 131, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 132, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 133, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 134, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 135, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 136, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 137, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 138, Column 15: "Insert `··`"
prettier/prettier
|
| Warning |
Row 138, Column 32: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 139, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 140, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 141, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 142, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 143, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 144, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 145, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 146, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| Error |
Row 147, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 148, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 149, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 150, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 151, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 152, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 153, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 153, Column 13: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Warning |
Row 153, Column 20: "Inline style: { position: 'absolute', alignSelf: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 154, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 155, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 156, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 157, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 158, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 159, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 160, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 161, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 162, Column 1: "Replace `······prettier/prettier
|
| Error |
Row 163, Column 1: "Insert `··`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `View,·StyleSheet,·ScrollView,·Platform,·KeyboardAvoidingView` with `⏎··View,⏎··StyleSheet,⏎··ScrollView,⏎··Platform,⏎··KeyboardAvoidingView,⏎`"
prettier/prettier
|
| 2 |
import {View, StyleSheet, ScrollView, Platform, KeyboardAvoidingView} from 'react-native'; |
| 3 |
import {mvs} from '../../config/metrices'; |
| 4 |
import {TAKE_TO_INPUT_FIELD} from '../../components/atoms'; |
| 5 |
import Buttons from '../../components/atoms/Button'; |
| 6 |
import Header from '../../components/molecules/header/header-1x'; |
| 7 |
import colors from '../../config/colors'; |
| 8 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 9 |
import {connect} from 'react-redux'; |
| 10 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 11 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 12 |
const ChangePassword = props => { |
| Warning |
Row 13, Column 10: "'navigation' is assigned a value but never used."
no-unused-vars
|
| 13 |
const {navigation, updateUserProfile} = props; |
| 14 |
const [payload, setPayload] = React.useState({ |
| 15 |
old_password: '', |
| 16 |
isOldVerify: false, |
| 17 |
password: '', |
| 18 |
isNewVerify: false, |
| 19 |
confirm_password: '', |
| 20 |
isConfirmVerify: false, |
| 21 |
isOldPasswordSecure: true, |
| 22 |
isNewPasswordSecure: true, |
| 23 |
isConfirmPasswordSecure: true, |
| 24 |
}); |
| 25 |
const alertRef = React.useRef(); |
| 26 |
const [loading, setLoading] = React.useState(false); |
| 27 |
|
| 28 |
// console.log(payload); |
| 29 |
const updatePassword = async () => { |
| 30 |
try { |
| 31 |
setLoading(true); |
| 32 |
const newPayload = { |
| 33 |
old_password: payload?.old_password, |
| 34 |
password: payload?.password, |
| 35 |
confirm_password: payload?.confirm_password, |
| 36 |
}; |
| 37 |
await updateUserProfile(newPayload); |
| 38 |
alertRef.current.alertWithType( |
| 39 |
'success', |
| 40 |
'Password Updated', |
| 41 |
'Your password changed succesfully', |
| 42 |
); |
| Error |
Row 43, Column 21: "Insert `;`"
prettier/prettier
|
| Warning |
Row 43, Column 21: "Missing semicolon."
semi
|
| 43 |
setPayload({}) |
| 44 |
setLoading(false); |
| 45 |
} catch (error) { |
| 46 |
setLoading(false); |
| 47 |
alertRef.current.alertWithType( |
| 48 |
'error', |
| 49 |
'Error', |
| 50 |
UI_API._returnError(error), |
| 51 |
); |
| 52 |
} |
| 53 |
}; |
| 54 |
|
| 55 |
const onChangeHandle = (key, value, flag, flagValue) => { |
| 56 |
console.log({key, value, flag, flagValue}); |
| 57 |
setPayload({...payload, [key]: value, [flag]: flagValue}); |
| 58 |
}; |
| 59 |
|
| 60 |
return ( |
| 61 |
<KeyboardAvoidingView |
| Error |
Row 62, Column 5: "Replace `style={{·flex:·1,·backgroundColor:·colors.white·` with `··style={{flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 62, Column 12: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 62 |
style={{ flex: 1, backgroundColor: colors.white }} |
| Error |
Row 63, Column 1: "Insert `··`"
prettier/prettier
|
| 63 |
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}> |
| Error |
Row 64, Column 1: "Replace `····` with `······`"
prettier/prettier
|
| 64 |
<View style={styles.CONTAINER}> |
| Error |
Row 65, Column 7: "Insert `··`"
prettier/prettier
|
| 65 |
<Header |
| Error |
Row 66, Column 1: "Insert `··`"
prettier/prettier
|
| 66 |
{...props} |
| Error |
Row 67, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 67 |
title="Change password" |
| Error |
Row 68, Column 9: "Insert `··`"
prettier/prettier
|
| 68 |
allowBackBtn |
| Error |
Row 69, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 69 |
userIcon={false} |
| Error |
Row 70, Column 1: "Insert `··`"
prettier/prettier
|
| 70 |
/> |
| Error |
Row 71, Column 7: "Insert `··`"
prettier/prettier
|
| 71 |
<ScrollView |
| Error |
Row 72, Column 1: "Insert `··`"
prettier/prettier
|
| 72 |
showsVerticalScrollIndicator={false} |
| Error |
Row 73, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 73, Column 32: "Inline style: { flexGrow: 1 }"
react-native/no-inline-styles
|
| 73 |
contentContainerStyle={{ |
| Error |
Row 74, Column 11: "Insert `··`"
prettier/prettier
|
| 74 |
flexGrow: 1, |
| Error |
Row 75, Column 1: "Insert `··`"
prettier/prettier
|
| 75 |
paddingTop: mvs(6), |
| Error |
Row 76, Column 11: "Insert `··`"
prettier/prettier
|
| 76 |
paddingHorizontal: mvs(22), |
| Error |
Row 77, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 77 |
}}> |
| Error |
Row 78, Column 1: "Insert `··`"
prettier/prettier
|
| 78 |
{/* <View style={styles.BODY}> */} |
| Error |
Row 79, Column 9: "Insert `··`"
prettier/prettier
|
| 79 |
<TAKE_TO_INPUT_FIELD.CustomInput |
| Error |
Row 80, Column 1: "Insert `··`"
prettier/prettier
|
| 80 |
isVerify={payload.isOldVerify} |
| Error |
Row 81, Column 11: "Insert `··`"
prettier/prettier
|
| 81 |
onPress={() => {}} |
| Error |
Row 82, Column 1: "Insert `··`"
prettier/prettier
|
| 82 |
onPressIcon={() => |
| Error |
Row 83, Column 13: "Insert `··`"
prettier/prettier
|
| 83 |
setPayload({ |
| Error |
Row 84, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 84 |
...payload, |
| Error |
Row 85, Column 1: "Insert `··`"
prettier/prettier
|
| 85 |
isOldPasswordSecure: !payload.isOldPasswordSecure, |
| Error |
Row 86, Column 13: "Insert `··`"
prettier/prettier
|
| 86 |
}) |
| Error |
Row 87, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 87 |
} |
| Error |
Row 88, Column 1: "Insert `··`"
prettier/prettier
|
| 88 |
secure |
| Error |
Row 89, Column 1: "Insert `··`"
prettier/prettier
|
| 89 |
secureTextEntry={payload.isOldPasswordSecure} |
| Error |
Row 90, Column 11: "Insert `··`"
prettier/prettier
|
| 90 |
value={payload.old_password} |
| Error |
Row 91, Column 1: "Insert `··`"
prettier/prettier
|
| 91 |
onChangeText={text => |
| Error |
Row 92, Column 13: "Insert `··`"
prettier/prettier
|
| 92 |
onChangeHandle( |
| Error |
Row 93, Column 1: "Insert `··`"
prettier/prettier
|
| 93 |
'old_password', |
| Error |
Row 94, Column 15: "Insert `··`"
prettier/prettier
|
| 94 |
text, |
| Error |
Row 95, Column 1: "Insert `··`"
prettier/prettier
|
| 95 |
'isOldVerify', |
| Error |
Row 96, Column 15: "Insert `··`"
prettier/prettier
|
| 96 |
text?.length >= 8, |
| Error |
Row 97, Column 13: "Insert `··`"
prettier/prettier
|
| 97 |
) |
| Error |
Row 98, Column 1: "Insert `··`"
prettier/prettier
|
| 98 |
} |
| Error |
Row 99, Column 1: "Insert `··`"
prettier/prettier
|
| 99 |
label={'Old Password'} |
| Error |
Row 100, Column 11: "Insert `··`"
prettier/prettier
|
| 100 |
placeholder={'Enter old password'} |
| Error |
Row 101, Column 1: "Insert `··`"
prettier/prettier
|
| 101 |
/> |
| Error |
Row 102, Column 9: "Insert `··`"
prettier/prettier
|
| 102 |
<TAKE_TO_INPUT_FIELD.CustomInput |
| Error |
Row 103, Column 1: "Insert `··`"
prettier/prettier
|
| 103 |
isVerify={payload.isNewVerify} |
| Error |
Row 104, Column 11: "Insert `··`"
prettier/prettier
|
| 104 |
onPress={() => {}} |
| Error |
Row 105, Column 1: "Insert `··`"
prettier/prettier
|
| 105 |
onPressIcon={() => |
| Error |
Row 106, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 106 |
setPayload({ |
| Error |
Row 107, Column 15: "Insert `··`"
prettier/prettier
|
| 107 |
...payload, |
| Error |
Row 108, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 108 |
isNewPasswordSecure: !payload.isNewPasswordSecure, |
| Error |
Row 109, Column 13: "Insert `··`"
prettier/prettier
|
| 109 |
}) |
| Error |
Row 110, Column 1: "Insert `··`"
prettier/prettier
|
| 110 |
} |
| Error |
Row 111, Column 11: "Insert `··`"
prettier/prettier
|
| 111 |
secure |
| Error |
Row 112, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 112 |
secureTextEntry={payload.isNewPasswordSecure} |
| Error |
Row 113, Column 11: "Insert `··`"
prettier/prettier
|
| 113 |
value={payload.password} |
| Error |
Row 114, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 114 |
onChangeText={text => |
| Error |
Row 115, Column 1: "Insert `··`"
prettier/prettier
|
| 115 |
onChangeHandle('password', text, 'isNewVerify', text?.length >= 8) |
| Error |
Row 116, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 116 |
} |
| Error |
Row 117, Column 1: "Insert `··`"
prettier/prettier
|
| 117 |
label={'New Password'} |
| Error |
Row 118, Column 1: "Insert `··`"
prettier/prettier
|
| 118 |
placeholder={'New Password'} |
| Error |
Row 119, Column 9: "Insert `··`"
prettier/prettier
|
| 119 |
/> |
| 120 |
|
| Error |
Row 121, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 121 |
<TAKE_TO_INPUT_FIELD.CustomInput |
| Error |
Row 122, Column 1: "Insert `··`"
prettier/prettier
|
| 122 |
isVerify={payload.isConfirmVerify} |
| Error |
Row 123, Column 1: "Insert `··`"
prettier/prettier
|
| 123 |
onPress={() => {}} |
| Error |
Row 124, Column 11: "Insert `··`"
prettier/prettier
|
| 124 |
onPressIcon={() => |
| Error |
Row 125, Column 1: "Insert `··`"
prettier/prettier
|
| 125 |
setPayload({ |
| Error |
Row 126, Column 15: "Insert `··`"
prettier/prettier
|
| 126 |
...payload, |
| Error |
Row 127, Column 1: "Insert `··`"
prettier/prettier
|
| 127 |
isConfirmPasswordSecure: !payload.isConfirmPasswordSecure, |
| Error |
Row 128, Column 13: "Insert `··`"
prettier/prettier
|
| 128 |
}) |
| Error |
Row 129, Column 1: "Insert `··`"
prettier/prettier
|
| 129 |
} |
| Error |
Row 130, Column 11: "Insert `··`"
prettier/prettier
|
| 130 |
secure |
| Error |
Row 131, Column 1: "Insert `··`"
prettier/prettier
|
| 131 |
secureTextEntry={payload.isConfirmPasswordSecure} |
| Error |
Row 132, Column 11: "Insert `··`"
prettier/prettier
|
| 132 |
value={payload.confirm_password} |
| Error |
Row 133, Column 1: "Insert `··`"
prettier/prettier
|
| 133 |
onChangeText={text => |
| Error |
Row 134, Column 13: "Insert `··`"
prettier/prettier
|
| 134 |
onChangeHandle( |
| Error |
Row 135, Column 1: "Insert `··`"
prettier/prettier
|
| 135 |
'confirm_password', |
| Error |
Row 136, Column 15: "Insert `··`"
prettier/prettier
|
| 136 |
text, |
| Error |
Row 137, Column 1: "Insert `··`"
prettier/prettier
|
| 137 |
'isConfirmVerify', |
| Error |
Row 138, Column 15: "Insert `··`"
prettier/prettier
|
| Warning |
Row 138, Column 32: "Expected '===' and instead saw '=='."
eqeqeq
|
| 138 |
payload.password == text && text?.length >= 8, |
| Error |
Row 139, Column 13: "Insert `··`"
prettier/prettier
|
| 139 |
) |
| Error |
Row 140, Column 1: "Insert `··`"
prettier/prettier
|
| 140 |
} |
| Error |
Row 141, Column 11: "Insert `··`"
prettier/prettier
|
| 141 |
divider |
| Error |
Row 142, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 142 |
label={'Confirm New Password'} |
| Error |
Row 143, Column 11: "Insert `··`"
prettier/prettier
|
| 143 |
placeholder={'New Password'} |
| Error |
Row 144, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 144 |
/> |
| Error |
Row 145, Column 1: "Insert `··`"
prettier/prettier
|
| 145 |
{payload.isOldVerify && payload.isConfirmVerify && ( |
| Error |
Row 146, Column 1: "Replace `··········` with `············`"
prettier/prettier
|
| 146 |
<Buttons.ButtonPrimary |
| Error |
Row 147, Column 1: "Insert `··`"
prettier/prettier
|
| 147 |
onClick={updatePassword} |
| Error |
Row 148, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 148 |
loaderColor={colors.white} |
| Error |
Row 149, Column 13: "Insert `··`"
prettier/prettier
|
| 149 |
loading={loading} |
| Error |
Row 150, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 150 |
disabled={loading} |
| Error |
Row 151, Column 1: "Insert `··`"
prettier/prettier
|
| 151 |
title={'Save Password'} |
| Error |
Row 152, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 152 |
style={{marginTop: mvs(20)}} |
| Error |
Row 153, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 153, Column 13: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Warning |
Row 153, Column 20: "Inline style: { position: 'absolute', alignSelf: 'center' }"
react-native/no-inline-styles
|
| 153 |
style={{ |
| Error |
Row 154, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 154 |
position: 'absolute', |
| Error |
Row 155, Column 15: "Insert `··`"
prettier/prettier
|
| 155 |
bottom: mvs(40), |
| Error |
Row 156, Column 1: "Insert `··`"
prettier/prettier
|
| 156 |
alignSelf: 'center', |
| Error |
Row 157, Column 13: "Insert `··`"
prettier/prettier
|
| 157 |
}} |
| Error |
Row 158, Column 1: "Insert `··`"
prettier/prettier
|
| 158 |
/> |
| Error |
Row 159, Column 9: "Insert `··`"
prettier/prettier
|
| 159 |
)} |
| Error |
Row 160, Column 1: "Insert `··`"
prettier/prettier
|
| 160 |
{/* </View> */} |
| Error |
Row 161, Column 7: "Insert `··`"
prettier/prettier
|
| 161 |
</ScrollView> |
| Error |
Row 162, Column 1: "Replace `······prettier/prettier
|
| 162 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| Error |
Row 163, Column 1: "Insert `··`"
prettier/prettier
|
| 163 |
</View> |
| 164 |
</KeyboardAvoidingView> |
| 165 |
); |
| 166 |
}; |
| 167 |
const mapDispatchToProps = dispatch => ({ |
| 168 |
updateUserProfile: data => dispatch(TAKE_TO_ACTIONS.updateUserProfile(data)), |
| 169 |
}); |
| 170 |
export default connect(null, mapDispatchToProps)(ChangePassword); |
| 171 |
const styles = StyleSheet.create({ |
| 172 |
CONTAINER: { |
| 173 |
flex: 1, |
| 174 |
backgroundColor: colors.white, |
| 175 |
}, |
| 176 |
BODY: { |
| 177 |
flex: 1, |
| 178 |
paddingTop: mvs(6), |
| 179 |
paddingHorizontal: mvs(22), |
| 180 |
}, |
| 181 |
LABEL: {}, |
| 182 |
LIST_CONTAINER: { |
| 183 |
paddingBottom: mvs(9), |
| 184 |
marginBottom: mvs(15), |
| 185 |
borderColor: colors.price_border, |
| 186 |
}, |
| 187 |
}); |
| 188 |
|
|
|
|
/src/screens/setting-screens/change-phone-number.js
|
117 problems (86 errors, 31 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·KeyboardAvoidingView,·Platform,·ScrollView,·StyleSheet,·View` with `⏎··KeyboardAvoidingView,⏎··Platform,⏎··ScrollView,⏎··StyleSheet,⏎··View,⏎`"
prettier/prettier
|
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Warning |
Row 8, Column 8: "'Regular' is defined but never used."
no-unused-vars
|
| Error |
Row 9, Column 9: "Replace `·OtpInput·` with `OtpInput`"
prettier/prettier
|
| Warning |
Row 9, Column 10: "'OtpInput' is defined but never used."
no-unused-vars
|
| Error |
Row 12, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Warning |
Row 13, Column 8: "'PhoneVerificationModal' is defined but never used."
no-unused-vars
|
| Warning |
Row 16, Column 8: "'EmailVerificationModal' is defined but never used."
no-unused-vars
|
| Error |
Row 18, Column 1: "Replace `⏎··const·{profileData,·updateUserProfile,·navigation}·=·props` with `··const·{profileData,·updateUserProfile,·navigation}·=·props;`"
prettier/prettier
|
| Warning |
Row 19, Column 23: "'updateUserProfile' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 19, Column 61: "Missing semicolon."
semi
|
| Warning |
Row 23, Column 17: "'setPhone' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 33, Column 10: "'verify' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 33, Column 52: "Replace `⏎⏎` with `;`"
prettier/prettier
|
| Warning |
Row 33, Column 52: "Missing semicolon."
semi
|
| Warning |
Row 44, Column 10: "'isSend' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 44, Column 18: "'setIsSend' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 45, Column 26: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 60, Column 12: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 72, Column 24: "Insert `;`"
prettier/prettier
|
| Warning |
Row 72, Column 24: "Missing semicolon."
semi
|
| Error |
Row 86, Column 13: "'fetchUserInfo' is not defined."
no-undef
|
| Error |
Row 86, Column 28: "Insert `;`"
prettier/prettier
|
| Warning |
Row 86, Column 28: "Missing semicolon."
semi
|
| Error |
Row 92, Column 23: "Insert `;`"
prettier/prettier
|
| Warning |
Row 92, Column 23: "Missing semicolon."
semi
|
| Error |
Row 100, Column 5: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 109, Column 5: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 112, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 115, Column 1: "Replace `····style={{·flex:·1,·backgroundColor:·colors.white·` with `······style={{flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 115, Column 12: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 116, Column 1: "Replace `····` with `······`"
prettier/prettier
|
| Error |
Row 117, Column 5: "Insert `··`"
prettier/prettier
|
| Error |
Row 118, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 119, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 120, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 121, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 122, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 123, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 123, Column 9: "Insert `/>`"
prettier/prettier
|
| Error |
Row 124, Column 6: "Delete `·/>⏎···`"
prettier/prettier
|
| Error |
Row 126, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 127, Column 11: "Replace `prettier/prettier
|
| Warning |
Row 127, Column 28: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 128, Column 1: "Replace `··········label={'Verified·Phone·Number'}·⏎··········phone={phone?.number}·` with `··············label={'Verified·Phone·Number'}⏎··············phone={phone?.number}`"
prettier/prettier
|
| Warning |
Row 128, Column 42: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 129, Column 32: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 130, Column 11: "Replace `setPhone={text·=>·setPayload({·...payload,·⏎··········verifiedPhone:·text·` with `····setPhone={text·=>·setPayload({...payload,·verifiedPhone:·text})}`"
prettier/prettier
|
| Warning |
Row 130, Column 53: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 131, Column 30: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 131, Column 30: "Missing trailing comma."
comma-dangle
|
| Error |
Row 132, Column 5: "Delete `······})}·⏎`"
prettier/prettier
|
| Warning |
Row 132, Column 14: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 134, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 135, Column 1: "Replace `··········` with `··············`"
prettier/prettier
|
| Error |
Row 136, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 137, Column 1: "Replace `··········prettier/prettier
|
| Warning |
Row 137, Column 28: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 139, Column 11: "Insert `····`"
prettier/prettier
|
| Error |
Row 140, Column 11: "Replace `setPhone·=·{validatePhoneNumber}·⏎` with `····setPhone={validatePhoneNumber}⏎··`"
prettier/prettier
|
| Warning |
Row 140, Column 43: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 142, Column 1: "Replace `··········{newPhone.number·?` with `············{newPhone.number·?·(`"
prettier/prettier
|
| Error |
Row 143, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 144, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 145, Column 1: "Replace `··············textStyle={{·color:·colors.white·` with `················textStyle={{color:·colors.white`"
prettier/prettier
|
| Error |
Row 146, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 147, Column 15: "Replace `style={{·marginTop:·mvs(0),·` with `··style={{marginTop:·mvs(0)`"
prettier/prettier
|
| Warning |
Row 147, Column 41: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 148, Column 13: "Replace `/>·:` with `··/>⏎············)·:·(`"
prettier/prettier
|
| Error |
Row 149, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 150, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 151, Column 1: "Replace `··············onClick={()·=>·{·` with `················onClick={()·=>·{`"
prettier/prettier
|
| Error |
Row 152, Column 1: "Replace `··············textStyle={{·color:·colors.doted·` with `················textStyle={{color:·colors.doted`"
prettier/prettier
|
| Error |
Row 153, Column 15: "Insert `··`"
prettier/prettier
|
| Error |
Row 154, Column 1: "Replace `··············style={{·marginTop:·mvs(0),·backgroundColor:·colors.secondary·` with `················style={{marginTop:·mvs(0),·backgroundColor:·colors.secondary`"
prettier/prettier
|
| Error |
Row 155, Column 13: "Replace `/>` with `··/>⏎············)`"
prettier/prettier
|
| Error |
Row 157, Column 1: "Replace `···········setPayload({·...payload,·otpCode:·v·})}` with `·············setPayload({...payload,·otpCode:·v})}⏎···········`"
prettier/prettier
|
| Error |
Row 158, Column 1: "Replace `··········{(!newPhone·||·payload.otpCode.length·!==·6)` with `············{!newPhone·||·payload.otpCode.length·!==·6`"
prettier/prettier
|
| Error |
Row 159, Column 1: "Replace `············prettier/prettier
|
| Warning |
Row 159, Column 26: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 160, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 161, Column 1: "Replace `················disabled·⏎` with `··················disabled⏎··`"
prettier/prettier
|
| Warning |
Row 161, Column 25: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 163, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| Error |
Row 164, Column 17: "Replace `style={{·backgroundColor:·colors.secondary·` with `··style={{backgroundColor:·colors.secondary`"
prettier/prettier
|
| Error |
Row 165, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 166, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 167, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 168, Column 1: "Replace `············prettier/prettier
|
| Warning |
Row 168, Column 26: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 169, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 170, Column 17: "Replace `onClick={()·=>·{·` with `··onClick={()·=>·{`"
prettier/prettier
|
| Error |
Row 171, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 172, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 172, Column 7: "Replace `········⏎··············` with `··········`"
prettier/prettier
|
| Error |
Row 174, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 175, Column 17: "Replace `onClick={()·=>·{·` with `··onClick={()·=>·{`"
prettier/prettier
|
| Error |
Row 176, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| Error |
Row 177, Column 17: "Replace `style={{·marginTop:·mvs(15),·` with `··style={{marginTop:·mvs(15)`"
prettier/prettier
|
| Warning |
Row 177, Column 44: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 178, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 179, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 180, Column 17: "Insert `··`"
prettier/prettier
|
| Error |
Row 181, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 182, Column 17: "Replace `style={{·marginTop:·mvs(15)·` with `··style={{marginTop:·mvs(15)`"
prettier/prettier
|
| Error |
Row 183, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| Error |
Row 184, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 185, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 186, Column 1: "Replace `⏎` with `··`"
prettier/prettier
|
| Error |
Row 188, Column 1: "Replace `······` with `········`"
prettier/prettier
|
| Error |
Row 189, Column 1: "Replace `······prettier/prettier
|
| Error |
Row 191, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 204, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 218, Column 39: "'TAKE_TO_ACTIONS' is not defined."
no-undef
|
| Error |
Row 237, Column 17: "Replace `·color:·colors.primary,·backgroundColor:·colors.secondary,·height:·mvs(38),·paddingHorizontal:·mvs(10),·borderRadius:·mvs(10)` with `⏎····color:·colors.primary,⏎····backgroundColor:·colors.secondary,⏎····height:·mvs(38),⏎····paddingHorizontal:·mvs(10),⏎····borderRadius:·mvs(10),⏎·`"
prettier/prettier
|
| Error |
Row 244, Column 15: "Replace `·color:·colors.primary,·textDecorationLine:·'underline',·fontSize:·mvs(13)` with `⏎····color:·colors.primary,⏎····textDecorationLine:·'underline',⏎····fontSize:·mvs(13),⏎·`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `·KeyboardAvoidingView,·Platform,·ScrollView,·StyleSheet,·View` with `⏎··KeyboardAvoidingView,⏎··Platform,⏎··ScrollView,⏎··StyleSheet,⏎··View,⏎`"
prettier/prettier
|
| 2 |
import { KeyboardAvoidingView, Platform, ScrollView, StyleSheet, View} from 'react-native'; |
| Error |
Row 3, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 3 |
import { mvs } from '../../config/metrices'; |
| Error |
Row 4, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 4 |
import { TAKE_TO_INPUT_FIELD } from '../../components/atoms'; |
| 5 |
import Buttons from '../../components/atoms/Button'; |
| 6 |
import Header from '../../components/molecules/header/header-1x'; |
| 7 |
import colors from '../../config/colors'; |
| Warning |
Row 8, Column 8: "'Regular' is defined but never used."
no-unused-vars
|
| 8 |
import Regular from '../../presentation/typography/regular-text'; |
| Error |
Row 9, Column 9: "Replace `·OtpInput·` with `OtpInput`"
prettier/prettier
|
| Warning |
Row 9, Column 10: "'OtpInput' is defined but never used."
no-unused-vars
|
| 9 |
import { OtpInput } from '../../components/molecules/otp-input/otp-input'; |
| 10 |
import CustomPhoneInput from '../../components/molecules/phone-input/phone-input'; |
| 11 |
import DropdownAlert from 'react-native-dropdownalert'; |
| Error |
Row 12, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 12 |
import { connect } from 'react-redux'; |
| Warning |
Row 13, Column 8: "'PhoneVerificationModal' is defined but never used."
no-unused-vars
|
| 13 |
import PhoneVerificationModal from '../../components/molecules/modals/setting-modals/phone-verification-modal'; |
| 14 |
import TAKE_2_API from '@khan_ahmad786/common/api/API'; |
| 15 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| Warning |
Row 16, Column 8: "'EmailVerificationModal' is defined but never used."
no-unused-vars
|
| 16 |
import EmailVerificationModal from '../../components/molecules/modals/setting-modals/email-verification-modal'; |
| 17 |
const ChangePhoneNumber = props => { |
| Error |
Row 18, Column 1: "Replace `⏎··const·{profileData,·updateUserProfile,·navigation}·=·props` with `··const·{profileData,·updateUserProfile,·navigation}·=·props;`"
prettier/prettier
|
| 18 |
|
| Warning |
Row 19, Column 23: "'updateUserProfile' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 19, Column 61: "Missing semicolon."
semi
|
| 19 |
const {profileData, updateUserProfile, navigation} = props |
| 20 |
const phoneRef = React.useRef(null); |
| 21 |
const alertRef = React.useRef(); |
| 22 |
|
| Warning |
Row 23, Column 17: "'setPhone' is assigned a value but never used."
no-unused-vars
|
| 23 |
const [phone, setPhone] = React.useState({ |
| 24 |
iso: |
| 25 |
(profileData?.mobile && profileData?.mobile?.split('-')[0]) || |
| 26 |
// defaultCountry?.short_name || |
| 27 |
'kw', |
| 28 |
cc: (profileData?.mobile && profileData?.mobile?.split('-')[1]) || '', |
| 29 |
number: (profileData?.mobile && profileData?.mobile?.split('-')[2]) || '', |
| 30 |
}); |
| 31 |
const [newPhone, setNewPhone] = React.useState({}); |
| 32 |
|
| Warning |
Row 33, Column 10: "'verify' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 33, Column 52: "Replace `⏎⏎` with `;`"
prettier/prettier
|
| Warning |
Row 33, Column 52: "Missing semicolon."
semi
|
| 33 |
const [verify, setVerify] = React.useState(false) |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
const [payload, setPayload] = React.useState({ |
| 38 |
//verifiedPhone: '', |
| 39 |
// newPhone: '', |
| 40 |
otpCode: '', |
| 41 |
}); |
| 42 |
|
| 43 |
// const phoneInput = React.useRef(null); |
| Warning |
Row 44, Column 10: "'isSend' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 44, Column 18: "'setIsSend' is assigned a value but never used."
no-unused-vars
|
| 44 |
const [isSend, setIsSend] = React.useState(false); |
| Error |
Row 45, Column 26: "Delete `⏎`"
prettier/prettier
|
| 45 |
// console.log(payload) |
| 46 |
|
| 47 |
|
| 48 |
// React.useEffect(() => { |
| 49 |
// setPayload({ |
| 50 |
// ...payload, |
| 51 |
// newPhone : { |
| 52 |
// iso: |
| 53 |
// (profileData?.mobile && profileData?.mobile?.split('-')[0]) || |
| 54 |
// defaultCountry?.short_name || |
| 55 |
// 'kw', |
| 56 |
// cc: (profileData?.mobile && profileData?.mobile?.split('-')[1]) || '', |
| 57 |
// number: (profileData?.mobile && profileData?.mobile?.split('-')[2]) || '', |
| 58 |
// } |
| 59 |
// }); |
| Error |
Row 60, Column 12: "Delete `⏎`"
prettier/prettier
|
| 60 |
// }, []) |
| 61 |
|
| 62 |
|
| 63 |
const sendOTPHandler = async () => { |
| 64 |
try { |
| 65 |
await TAKE_2_API.postMobileOtp(`+${newPhone.cc}${newPhone.number}`); |
| 66 |
alertRef.current.alertWithType( |
| 67 |
'success', |
| 68 |
'Mobile OTP', |
| 69 |
'OTP sent on your provided Mobile Number successfully', |
| 70 |
); |
| 71 |
setTimeout(() => { |
| Error |
Row 72, Column 24: "Insert `;`"
prettier/prettier
|
| Warning |
Row 72, Column 24: "Missing semicolon."
semi
|
| 72 |
setVerify(true) |
| 73 |
}, 1000); |
| 74 |
} catch (error) { |
| 75 |
alertRef.current.alertWithType( |
| 76 |
'error', |
| 77 |
'Error', |
| 78 |
UI_API._returnError(error), |
| 79 |
); |
| 80 |
} |
| 81 |
}; |
| 82 |
|
| 83 |
const verifyOTP = async () => { |
| 84 |
try { |
| 85 |
await TAKE_2_API.verifyOTP(payload?.otpCode, 'mobile'); |
| Error |
Row 86, Column 13: "'fetchUserInfo' is not defined."
no-undef
|
| Error |
Row 86, Column 28: "Insert `;`"
prettier/prettier
|
| Warning |
Row 86, Column 28: "Missing semicolon."
semi
|
| 86 |
await fetchUserInfo() |
| 87 |
alertRef.current.alertWithType( |
| 88 |
'success', |
| 89 |
'OTP Verified', |
| 90 |
'OTP verified successfully', |
| 91 |
); |
| Error |
Row 92, Column 23: "Insert `;`"
prettier/prettier
|
| Warning |
Row 92, Column 23: "Missing semicolon."
semi
|
| 92 |
navigation.pop() |
| 93 |
} catch (error) { |
| 94 |
alertRef.current.alertWithType( |
| 95 |
'error', |
| 96 |
'Error', |
| 97 |
UI_API._returnError(error), |
| 98 |
); |
| 99 |
} |
| Error |
Row 100, Column 5: "Delete `⏎`"
prettier/prettier
|
| 100 |
}; |
| 101 |
|
| 102 |
|
| 103 |
const validatePhoneNumber = text => { |
| 104 |
setNewPhone({ |
| 105 |
iso: phoneRef?.current?.getCountryCode(), |
| 106 |
cc: phoneRef?.current?.getCallingCode(), |
| 107 |
number: text, |
| 108 |
}); |
| Error |
Row 109, Column 5: "Delete `⏎`"
prettier/prettier
|
| 109 |
}; |
| 110 |
|
| 111 |
|
| Error |
Row 112, Column 1: "Delete `⏎`"
prettier/prettier
|
| 112 |
|
| 113 |
return ( |
| 114 |
<KeyboardAvoidingView |
| Error |
Row 115, Column 1: "Replace `····style={{·flex:·1,·backgroundColor:·colors.white·` with `······style={{flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 115, Column 12: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 115 |
style={{ flex: 1, backgroundColor: colors.white }} |
| Error |
Row 116, Column 1: "Replace `····` with `······`"
prettier/prettier
|
| 116 |
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}> |
| Error |
Row 117, Column 5: "Insert `··`"
prettier/prettier
|
| 117 |
<View style={styles.CONTAINER}> |
| Error |
Row 118, Column 1: "Insert `··`"
prettier/prettier
|
| 118 |
<Header |
| Error |
Row 119, Column 9: "Insert `··`"
prettier/prettier
|
| 119 |
{...props} |
| Error |
Row 120, Column 1: "Insert `··`"
prettier/prettier
|
| 120 |
title="Change phone number" |
| Error |
Row 121, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 121 |
allowBackBtn |
| Error |
Row 122, Column 1: "Insert `··`"
prettier/prettier
|
| 122 |
userIcon={false} |
| Warning |
Row 123, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 123, Column 9: "Insert `/>`"
prettier/prettier
|
| 123 |
|
| Error |
Row 124, Column 6: "Delete `·/>⏎···`"
prettier/prettier
|
| 124 |
/> |
| 125 |
<ScrollView contentContainerStyle={styles.SCROLL}> |
| Error |
Row 126, Column 1: "Insert `··`"
prettier/prettier
|
| 126 |
<View style={styles.BODY}> |
| Error |
Row 127, Column 11: "Replace `prettier/prettier
|
| Warning |
Row 127, Column 28: "Trailing spaces not allowed."
no-trailing-spaces
|
| 127 |
<CustomPhoneInput |
| Error |
Row 128, Column 1: "Replace `··········label={'Verified·Phone·Number'}·⏎··········phone={phone?.number}·` with `··············label={'Verified·Phone·Number'}⏎··············phone={phone?.number}`"
prettier/prettier
|
| Warning |
Row 128, Column 42: "Trailing spaces not allowed."
no-trailing-spaces
|
| 128 |
label={'Verified Phone Number'} |
| Warning |
Row 129, Column 32: "Trailing spaces not allowed."
no-trailing-spaces
|
| 129 |
phone={phone?.number} |
| Error |
Row 130, Column 11: "Replace `setPhone={text·=>·setPayload({·...payload,·⏎··········verifiedPhone:·text·` with `····setPhone={text·=>·setPayload({...payload,·verifiedPhone:·text})}`"
prettier/prettier
|
| Warning |
Row 130, Column 53: "Trailing spaces not allowed."
no-trailing-spaces
|
| 130 |
setPhone={text => setPayload({ ...payload, |
| Warning |
Row 131, Column 30: "Trailing spaces not allowed."
no-trailing-spaces
|
| Warning |
Row 131, Column 30: "Missing trailing comma."
comma-dangle
|
| 131 |
verifiedPhone: text |
| Error |
Row 132, Column 5: "Delete `······})}·⏎`"
prettier/prettier
|
| Warning |
Row 132, Column 14: "Trailing spaces not allowed."
no-trailing-spaces
|
| 132 |
})} |
| 133 |
defaultCode={ |
| Error |
Row 134, Column 1: "Insert `····`"
prettier/prettier
|
| 134 |
(profileData && profileData?.mobile && phone.iso) || 'KW' |
| Error |
Row 135, Column 1: "Replace `··········` with `··············`"
prettier/prettier
|
| 135 |
} |
| Error |
Row 136, Column 1: "Insert `··`"
prettier/prettier
|
| 136 |
/> |
| Error |
Row 137, Column 1: "Replace `··········prettier/prettier
|
| Warning |
Row 137, Column 28: "Trailing spaces not allowed."
no-trailing-spaces
|
| 137 |
<CustomPhoneInput |
| 138 |
phoneRef={phoneRef} |
| Error |
Row 139, Column 11: "Insert `····`"
prettier/prettier
|
| 139 |
phone={newPhone} |
| Error |
Row 140, Column 11: "Replace `setPhone·=·{validatePhoneNumber}·⏎` with `····setPhone={validatePhoneNumber}⏎··`"
prettier/prettier
|
| Warning |
Row 140, Column 43: "Trailing spaces not allowed."
no-trailing-spaces
|
| 140 |
setPhone = {validatePhoneNumber} |
| 141 |
/> |
| Error |
Row 142, Column 1: "Replace `··········{newPhone.number·?` with `············{newPhone.number·?·(`"
prettier/prettier
|
| 142 |
{newPhone.number ? |
| Error |
Row 143, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 143 |
<Buttons.ButtonPrimary |
| Error |
Row 144, Column 1: "Insert `··`"
prettier/prettier
|
| 144 |
onClick={sendOTPHandler} |
| Error |
Row 145, Column 1: "Replace `··············textStyle={{·color:·colors.white·` with `················textStyle={{color:·colors.white`"
prettier/prettier
|
| 145 |
textStyle={{ color: colors.white }} |
| Error |
Row 146, Column 1: "Insert `··`"
prettier/prettier
|
| 146 |
title={'Send Code'} |
| Error |
Row 147, Column 15: "Replace `style={{·marginTop:·mvs(0),·` with `··style={{marginTop:·mvs(0)`"
prettier/prettier
|
| Warning |
Row 147, Column 41: "Unexpected trailing comma."
comma-dangle
|
| 147 |
style={{ marginTop: mvs(0), }} |
| Error |
Row 148, Column 13: "Replace `/>·:` with `··/>⏎············)·:·(`"
prettier/prettier
|
| 148 |
/> : |
| Error |
Row 149, Column 1: "Insert `··`"
prettier/prettier
|
| 149 |
<Buttons.ButtonSeconday |
| Error |
Row 150, Column 15: "Insert `··`"
prettier/prettier
|
| 150 |
disabled |
| Error |
Row 151, Column 1: "Replace `··············onClick={()·=>·{·` with `················onClick={()·=>·{`"
prettier/prettier
|
| 151 |
onClick={() => { }} |
| Error |
Row 152, Column 1: "Replace `··············textStyle={{·color:·colors.doted·` with `················textStyle={{color:·colors.doted`"
prettier/prettier
|
| 152 |
textStyle={{ color: colors.doted }} |
| Error |
Row 153, Column 15: "Insert `··`"
prettier/prettier
|
| 153 |
title={'Send Code'} |
| Error |
Row 154, Column 1: "Replace `··············style={{·marginTop:·mvs(0),·backgroundColor:·colors.secondary·` with `················style={{marginTop:·mvs(0),·backgroundColor:·colors.secondary`"
prettier/prettier
|
| 154 |
style={{ marginTop: mvs(0), backgroundColor: colors.secondary }} |
| Error |
Row 155, Column 13: "Replace `/>` with `··/>⏎············)`"
prettier/prettier
|
| 155 |
/>} |
| 156 |
{/* {console.log(payload?.newPhone)} */} |
| Error |
Row 157, Column 1: "Replace `···········setPayload({·...payload,·otpCode:·v·})}` with `·············setPayload({...payload,·otpCode:·v})}⏎···········`"
prettier/prettier
|
| 157 |
<TAKE_TO_INPUT_FIELD.CustomOtpInput value={payload.otpCode} setValue={(v) => setPayload({ ...payload, otpCode: v })} /> |
| Error |
Row 158, Column 1: "Replace `··········{(!newPhone·||·payload.otpCode.length·!==·6)` with `············{!newPhone·||·payload.otpCode.length·!==·6`"
prettier/prettier
|
| 158 |
{(!newPhone || payload.otpCode.length !== 6) ? ( |
| Error |
Row 159, Column 1: "Replace `············prettier/prettier
|
| Warning |
Row 159, Column 26: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| 159 |
<View style={{ marginTop: mvs(270), paddingBottom: mvs(40), width: '100%' }}> |
| Error |
Row 160, Column 1: "Insert `··`"
prettier/prettier
|
| 160 |
<Buttons.ButtonSeconday |
| Error |
Row 161, Column 1: "Replace `················disabled·⏎` with `··················disabled⏎··`"
prettier/prettier
|
| Warning |
Row 161, Column 25: "Trailing spaces not allowed."
no-trailing-spaces
|
| 161 |
disabled |
| 162 |
//onClick={verifyOTP} |
| Error |
Row 163, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| 163 |
title={'Verify'} |
| Error |
Row 164, Column 17: "Replace `style={{·backgroundColor:·colors.secondary·` with `··style={{backgroundColor:·colors.secondary`"
prettier/prettier
|
| 164 |
style={{ backgroundColor: colors.secondary }} |
| Error |
Row 165, Column 1: "Insert `··`"
prettier/prettier
|
| 165 |
/> |
| Error |
Row 166, Column 1: "Insert `··`"
prettier/prettier
|
| 166 |
</View> |
| Error |
Row 167, Column 11: "Insert `··`"
prettier/prettier
|
| 167 |
) : ( |
| Error |
Row 168, Column 1: "Replace `············prettier/prettier
|
| Warning |
Row 168, Column 26: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| 168 |
<View style={{ marginTop: mvs(208), width: '100%', paddingBottom: mvs(40) }}> |
| Error |
Row 169, Column 1: "Insert `··`"
prettier/prettier
|
| 169 |
<Buttons.ButtonSecondaryOutline |
| Error |
Row 170, Column 17: "Replace `onClick={()·=>·{·` with `··onClick={()·=>·{`"
prettier/prettier
|
| 170 |
onClick={() => { }} |
| Error |
Row 171, Column 1: "Insert `··`"
prettier/prettier
|
| 171 |
title={'Resend code'} |
| Warning |
Row 172, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 172, Column 7: "Replace `········⏎··············` with `··········`"
prettier/prettier
|
| 172 |
|
| 173 |
/> |
| Error |
Row 174, Column 1: "Insert `··`"
prettier/prettier
|
| 174 |
<Buttons.ButtonSecondaryOutline |
| Error |
Row 175, Column 17: "Replace `onClick={()·=>·{·` with `··onClick={()·=>·{`"
prettier/prettier
|
| 175 |
onClick={() => { }} |
| Error |
Row 176, Column 1: "Replace `················` with `··················`"
prettier/prettier
|
| 176 |
title={'Verify via Voice Call'} |
| Error |
Row 177, Column 17: "Replace `style={{·marginTop:·mvs(15),·` with `··style={{marginTop:·mvs(15)`"
prettier/prettier
|
| Warning |
Row 177, Column 44: "Unexpected trailing comma."
comma-dangle
|
| 177 |
style={{ marginTop: mvs(15), }} |
| Error |
Row 178, Column 1: "Insert `··`"
prettier/prettier
|
| 178 |
/> |
| Error |
Row 179, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 179 |
<Buttons.ButtonPrimary |
| Error |
Row 180, Column 17: "Insert `··`"
prettier/prettier
|
| 180 |
onClick={verifyOTP} |
| Error |
Row 181, Column 1: "Insert `··`"
prettier/prettier
|
| 181 |
title={'Verify'} |
| Error |
Row 182, Column 17: "Replace `style={{·marginTop:·mvs(15)·` with `··style={{marginTop:·mvs(15)`"
prettier/prettier
|
| 182 |
style={{ marginTop: mvs(15) }} |
| Error |
Row 183, Column 1: "Replace `··············` with `················`"
prettier/prettier
|
| 183 |
/> |
| Error |
Row 184, Column 1: "Insert `··`"
prettier/prettier
|
| 184 |
</View> |
| Error |
Row 185, Column 11: "Insert `··`"
prettier/prettier
|
| 185 |
)} |
| Error |
Row 186, Column 1: "Replace `⏎` with `··`"
prettier/prettier
|
| 186 |
|
| 187 |
</View> |
| Error |
Row 188, Column 1: "Replace `······` with `········`"
prettier/prettier
|
| 188 |
</ScrollView> |
| Error |
Row 189, Column 1: "Replace `······prettier/prettier
|
| 189 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 190 |
|
| Error |
Row 191, Column 1: "Insert `··`"
prettier/prettier
|
| 191 |
{/* <EmailVerificationModal |
| 192 |
//resendLoader={emailVerifyLoader} |
| 193 |
//verifyLoader={verifyLoader} |
| 194 |
visible={verifyModal} |
| 195 |
type={'mobile'} |
| 196 |
//onResendCode={type => sendOTPHandler(type)} |
| 197 |
verify={otp => { |
| 198 |
verifyOTP(otp, 'mobile'); |
| 199 |
}} |
| 200 |
onCLose={() => |
| 201 |
setVerifyModal(false) |
| 202 |
} |
| 203 |
/> */} |
| Error |
Row 204, Column 1: "Insert `··`"
prettier/prettier
|
| 204 |
</View> |
| 205 |
</KeyboardAvoidingView> |
| 206 |
); |
| 207 |
}; |
| 208 |
//export default ChangePhoneNumber; |
| 209 |
|
| 210 |
const mapStateToProps = state => { |
| 211 |
return { |
| 212 |
isGuest: state.auth.isGuest, |
| 213 |
profileData: state.auth.userInfo?.profile || {}, |
| 214 |
}; |
| 215 |
}; |
| 216 |
|
| 217 |
const mapDispatchToProps = dispatch => ({ |
| Error |
Row 218, Column 39: "'TAKE_TO_ACTIONS' is not defined."
no-undef
|
| 218 |
updateUserProfile: data => dispatch(TAKE_TO_ACTIONS.updateUserProfile(data)), |
| 219 |
}); |
| 220 |
|
| 221 |
export default connect(mapStateToProps, mapDispatchToProps)(ChangePhoneNumber); |
| 222 |
|
| 223 |
const styles = StyleSheet.create({ |
| 224 |
CONTAINER: { |
| 225 |
flex: 1, |
| 226 |
backgroundColor: colors.white, |
| 227 |
}, |
| 228 |
BODY: { |
| 229 |
flex: 1, |
| 230 |
}, |
| 231 |
SCROLL: { |
| 232 |
paddingTop: mvs(6), |
| 233 |
paddingHorizontal: mvs(22), |
| 234 |
paddingBottom: mvs(0), |
| 235 |
flexGrow: 1, |
| 236 |
}, |
| Error |
Row 237, Column 17: "Replace `·color:·colors.primary,·backgroundColor:·colors.secondary,·height:·mvs(38),·paddingHorizontal:·mvs(10),·borderRadius:·mvs(10)` with `⏎····color:·colors.primary,⏎····backgroundColor:·colors.secondary,⏎····height:·mvs(38),⏎····paddingHorizontal:·mvs(10),⏎····borderRadius:·mvs(10),⏎·`"
prettier/prettier
|
| 237 |
PHONE_INPUT: { color: colors.primary, backgroundColor: colors.secondary, height: mvs(38), paddingHorizontal: mvs(10), borderRadius: mvs(10) }, |
| 238 |
LABEL: {}, |
| 239 |
LIST_CONTAINER: { |
| 240 |
paddingBottom: mvs(9), |
| 241 |
marginBottom: mvs(15), |
| 242 |
borderColor: colors.price_border, |
| 243 |
}, |
| Error |
Row 244, Column 15: "Replace `·color:·colors.primary,·textDecorationLine:·'underline',·fontSize:·mvs(13)` with `⏎····color:·colors.primary,⏎····textDecorationLine:·'underline',⏎····fontSize:·mvs(13),⏎·`"
prettier/prettier
|
| 244 |
SEND_CODE: { color: colors.primary, textDecorationLine: 'underline', fontSize: mvs(13) }, |
| 245 |
PHONE_CONTAINER: { |
| 246 |
flexDirection: 'row', |
| 247 |
alignItems: 'center', |
| 248 |
justifyContent: 'space-between', |
| 249 |
}, |
| 250 |
}); |
| 251 |
|
|
|
|
/src/screens/setting-screens/delivery-location.js
|
65 problems (43 errors, 22 warnings)
|
| Severity |
Rule |
| Error |
Row 3, Column 16: "Replace `·useEffect,·useRef,·useState·` with `useEffect,·useRef,·useState`"
prettier/prettier
|
| Error |
Row 4, Column 9: "Replace `·AppState,·Linking,·Platform,·SafeAreaView,·StyleSheet,·TouchableOpacity,·View·` with `⏎··AppState,⏎··Linking,⏎··Platform,⏎··SafeAreaView,⏎··StyleSheet,⏎··TouchableOpacity,⏎··View,⏎`"
prettier/prettier
|
| Error |
Row 7, Column 18: "Replace `·PROVIDER_GOOGLE·` with `PROVIDER_GOOGLE`"
prettier/prettier
|
| Error |
Row 8, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 14, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 19, Column 10: "Replace `·fetchSelectedAddress,·route·` with `fetchSelectedAddress,·route`"
prettier/prettier
|
| Warning |
Row 19, Column 11: "'fetchSelectedAddress' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 20, Column 10: "Replace `·heading·}·=·route.params` with `heading}·=·route.params;`"
prettier/prettier
|
| Warning |
Row 20, Column 35: "Missing semicolon."
semi
|
| Warning |
Row 24, Column 9: "'Location' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 24, Column 25: "["location"] is better written in dot notation."
dot-notation
|
| Error |
Row 39, Column 52: "Replace `"change",` with `⏎······'change',⏎·····`"
prettier/prettier
|
| Warning |
Row 39, Column 52: "Strings must use singlequote."
quotes
|
| Error |
Row 40, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 41, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 42, Column 9: "Replace `nextAppState·===·"active"` with `··nextAppState·===·'active'`"
prettier/prettier
|
| Warning |
Row 42, Column 26: "Strings must use singlequote."
quotes
|
| Error |
Row 43, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 44, Column 1: "Replace `········console.log("App·has·come·to·the·foreground!"` with `··········console.log('App·has·come·to·the·foreground!'`"
prettier/prettier
|
| Warning |
Row 44, Column 21: "Strings must use singlequote."
quotes
|
| Error |
Row 45, Column 1: "Replace `········const·providers=await·` with `··········const·providers·=·await`"
prettier/prettier
|
| Warning |
Row 45, Column 24: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 46, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 47, Column 1: "Replace `········if·(locationService||` with `··········if·(locationService·||·`"
prettier/prettier
|
| Warning |
Row 47, Column 28: "Operator '||' must be spaced."
space-infix-ops
|
| Error |
Row 48, Column 1: "Replace `··········const·permissionStatus·=·await·UI_API._checkPermissions(alertRef,·Linking)` with `············const·permissionStatus·=·await·UI_API._checkPermissions(⏎··············alertRef,⏎··············Linking,⏎············);`"
prettier/prettier
|
| Warning |
Row 48, Column 85: "Missing semicolon."
semi
|
| Error |
Row 49, Column 1: "Replace `··········setLocationService(permissionStatus·===·'disabled'·?·false·:·permissionStatus` with `············setLocationService(⏎··············permissionStatus·===·'disabled'·?·false·:·permissionStatus,⏎············`"
prettier/prettier
|
| Error |
Row 50, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| Error |
Row 51, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 52, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 53, Column 5: "Replace `}` with `··},⏎····`"
prettier/prettier
|
| Error |
Row 58, Column 6: "React Hook useEffect has a missing dependency: 'locationService'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 61, Column 53: "Replace `(providers)` with `providers`"
prettier/prettier
|
| Error |
Row 64, Column 1: "Replace `⏎··},·[]);⏎⏎` with `··},·[]);`"
prettier/prettier
|
| Error |
Row 71, Column 21: "Insert `;`"
prettier/prettier
|
| Warning |
Row 71, Column 21: "Missing semicolon."
semi
|
| Warning |
Row 76, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 95, Column 4: "Replace `⏎⏎` with `;`"
prettier/prettier
|
| Warning |
Row 95, Column 4: "Missing semicolon."
semi
|
| Error |
Row 123, Column 16: "Replace `·code,·message·` with `code,·message`"
prettier/prettier
|
| Warning |
Row 137, Column 37: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 138, Column 57: "Replace `·region:·region,·address:·address,·type:·props.route.params.type·})` with `⏎············region:·region,⏎············address:·address,⏎············type:·props.route.params.type,⏎··········});`"
prettier/prettier
|
| Warning |
Row 138, Column 124: "Missing semicolon."
semi
|
| Warning |
Row 141, Column 37: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 141, Column 48: "Replace `·?·'selectaddress'` with `⏎··············?·'selectaddress'⏎·············`"
prettier/prettier
|
| Error |
Row 142, Column 14: "Replace `·region:·region,·address:·address,·type:·props.route.params.type·` with `region:·region,·address:·address,·type:·props.route.params.type`"
prettier/prettier
|
| Warning |
Row 152, Column 16: "Inline style: { alignItems: 'flex-start' }"
react-native/no-inline-styles
|
| Error |
Row 158, Column 36: "Replace `"Delivery·Location"` with `'Delivery·Location'`"
prettier/prettier
|
| Warning |
Row 158, Column 36: "Strings must use singlequote."
quotes
|
| Warning |
Row 165, Column 18: "Inline style: { flex: 1, justifyContent: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 165, Column 19: "Replace `·flex:·1,·justifyContent:·'center'·` with `flex:·1,·justifyContent:·'center'`"
prettier/prettier
|
| Error |
Row 176, Column 23: "Replace `·=·{{color·` with `={{color`"
prettier/prettier
|
| Warning |
Row 200, Column 18: "Inline style: { position: 'absolute', width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 213, Column 26: "Replace `·onPress={()·=>·changeLocationService(!locationService)}·activeOpacity={0.5}` with `⏎··········onPress={()·=>·changeLocationService(!locationService)}⏎··········activeOpacity={0.5}⏎·········`"
prettier/prettier
|
| Warning |
Row 213, Column 110: "Inline style: {
position: 'absolute',
alignItems: 'center',
justifyContent: 'center'
}"
react-native/no-inline-styles
|
| Error |
Row 214, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 215, Column 11: "Replace `top:·mvs(200),` with `··top:·mvs(200),⏎···········`"
prettier/prettier
|
| Error |
Row 216, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 217, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 218, Column 11: "Replace `borderRadius:·mvs(20),·backgroundColor:·colors.white,·right:·mvs(22),·alignItems:·'center',·justifyContent:·'center'` with `··borderRadius:·mvs(20),⏎············backgroundColor:·colors.white,⏎············right:·mvs(22),⏎············alignItems:·'center',⏎············justifyContent:·'center',`"
prettier/prettier
|
| Warning |
Row 218, Column 127: "Missing trailing comma."
comma-dangle
|
| Error |
Row 219, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 220, Column 16: "Replace `·style={{·height:·mvs(20),·width:·mvs(20),·borderRadius:·mvs(10),·backgroundColor:·locationService·?·colors.primary·:·colors.label·}}` with `⏎············style={{⏎··············height:·mvs(20),⏎··············width:·mvs(20),⏎··············borderRadius:·mvs(10),⏎··············backgroundColor:·locationService·?·colors.primary·:·colors.label,⏎············}}⏎·········`"
prettier/prettier
|
| Error |
Row 222, Column 1: "Replace `······⏎` with `········`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 2 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| Error |
Row 3, Column 16: "Replace `·useEffect,·useRef,·useState·` with `useEffect,·useRef,·useState`"
prettier/prettier
|
| 3 |
import React, { useEffect, useRef, useState } from 'react'; |
| Error |
Row 4, Column 9: "Replace `·AppState,·Linking,·Platform,·SafeAreaView,·StyleSheet,·TouchableOpacity,·View·` with `⏎··AppState,⏎··Linking,⏎··Platform,⏎··SafeAreaView,⏎··StyleSheet,⏎··TouchableOpacity,⏎··View,⏎`"
prettier/prettier
|
| 4 |
import { AppState, Linking, Platform, SafeAreaView, StyleSheet, TouchableOpacity, View } from 'react-native'; |
| 5 |
import Geocoder from 'react-native-geocoding'; |
| 6 |
import GetLocation from 'react-native-get-location'; |
| Error |
Row 7, Column 18: "Replace `·PROVIDER_GOOGLE·` with `PROVIDER_GOOGLE`"
prettier/prettier
|
| 7 |
import MapView, { PROVIDER_GOOGLE } from 'react-native-maps'; |
| Error |
Row 8, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 8 |
import { connect } from 'react-redux'; |
| 9 |
import SVGS from '../../../resource/assets/rtl-button-icons'; |
| 10 |
import Buttons from '../../components/atoms/Button'; |
| 11 |
import GoogleSearchBar from '../../components/molecules/google-search-bar'; |
| 12 |
import Header from '../../components/molecules/header/header-1x'; |
| 13 |
import colors from '../../config/colors'; |
| Error |
Row 14, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 14 |
import { mvs } from '../../config/metrices'; |
| 15 |
import DeviceInfo from 'react-native-device-info'; |
| 16 |
import DropdownAlert from 'react-native-dropdownalert'; |
| 17 |
|
| 18 |
const DeliveryLocation = props => { |
| Error |
Row 19, Column 10: "Replace `·fetchSelectedAddress,·route·` with `fetchSelectedAddress,·route`"
prettier/prettier
|
| Warning |
Row 19, Column 11: "'fetchSelectedAddress' is assigned a value but never used."
no-unused-vars
|
| 19 |
const { fetchSelectedAddress, route } = props; |
| Error |
Row 20, Column 10: "Replace `·heading·}·=·route.params` with `heading}·=·route.params;`"
prettier/prettier
|
| Warning |
Row 20, Column 35: "Missing semicolon."
semi
|
| 20 |
const { heading } = route.params |
| 21 |
let ref = useRef(); |
| 22 |
const alertRef = React.useRef(); |
| 23 |
|
| Warning |
Row 24, Column 9: "'Location' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 24, Column 25: "["location"] is better written in dot notation."
dot-notation
|
| 24 |
const Location = SVGS['location']; |
| 25 |
|
| 26 |
const [region, setRegion] = useState({ |
| 27 |
latitude: 37.78825, |
| 28 |
latitudeDelta: 0.015, |
| 29 |
longitude: -122.4324, |
| 30 |
longitudeDelta: 0.0121, |
| 31 |
}); |
| 32 |
|
| 33 |
const [locationService, setLocationService] = React.useState(false); |
| 34 |
|
| 35 |
const appState = React.useRef(AppState.currentState); |
| 36 |
// const [appStateVisible, setAppStateVisible] = useState(appState.current); |
| 37 |
|
| 38 |
useEffect(() => { |
| Error |
Row 39, Column 52: "Replace `"change",` with `⏎······'change',⏎·····`"
prettier/prettier
|
| Warning |
Row 39, Column 52: "Strings must use singlequote."
quotes
|
| 39 |
const subscription = AppState.addEventListener("change", async nextAppState => { |
| Error |
Row 40, Column 7: "Insert `··`"
prettier/prettier
|
| 40 |
if ( |
| Error |
Row 41, Column 1: "Insert `··`"
prettier/prettier
|
| 41 |
appState.current.match(/inactive|background/) && |
| Error |
Row 42, Column 9: "Replace `nextAppState·===·"active"` with `··nextAppState·===·'active'`"
prettier/prettier
|
| Warning |
Row 42, Column 26: "Strings must use singlequote."
quotes
|
| 42 |
nextAppState === "active" |
| Error |
Row 43, Column 1: "Insert `··`"
prettier/prettier
|
| 43 |
) { |
| Error |
Row 44, Column 1: "Replace `········console.log("App·has·come·to·the·foreground!"` with `··········console.log('App·has·come·to·the·foreground!'`"
prettier/prettier
|
| Warning |
Row 44, Column 21: "Strings must use singlequote."
quotes
|
| 44 |
console.log("App has come to the foreground!"); |
| Error |
Row 45, Column 1: "Replace `········const·providers=await·` with `··········const·providers·=·await`"
prettier/prettier
|
| Warning |
Row 45, Column 24: "Operator '=' must be spaced."
space-infix-ops
|
| 45 |
const providers=await DeviceInfo.getAvailableLocationProviders(); |
| Error |
Row 46, Column 9: "Insert `··`"
prettier/prettier
|
| 46 |
console.log(providers); |
| Error |
Row 47, Column 1: "Replace `········if·(locationService||` with `··········if·(locationService·||·`"
prettier/prettier
|
| Warning |
Row 47, Column 28: "Operator '||' must be spaced."
space-infix-ops
|
| 47 |
if (locationService||Object.keys(providers).length > 0) { |
| Error |
Row 48, Column 1: "Replace `··········const·permissionStatus·=·await·UI_API._checkPermissions(alertRef,·Linking)` with `············const·permissionStatus·=·await·UI_API._checkPermissions(⏎··············alertRef,⏎··············Linking,⏎············);`"
prettier/prettier
|
| Warning |
Row 48, Column 85: "Missing semicolon."
semi
|
| 48 |
const permissionStatus = await UI_API._checkPermissions(alertRef, Linking) |
| Error |
Row 49, Column 1: "Replace `··········setLocationService(permissionStatus·===·'disabled'·?·false·:·permissionStatus` with `············setLocationService(⏎··············permissionStatus·===·'disabled'·?·false·:·permissionStatus,⏎············`"
prettier/prettier
|
| 49 |
setLocationService(permissionStatus === 'disabled' ? false : permissionStatus); |
| Error |
Row 50, Column 1: "Replace `········` with `··········`"
prettier/prettier
|
| 50 |
} |
| Error |
Row 51, Column 1: "Insert `··`"
prettier/prettier
|
| 51 |
} |
| Error |
Row 52, Column 1: "Insert `··`"
prettier/prettier
|
| 52 |
appState.current = nextAppState; |
| Error |
Row 53, Column 5: "Replace `}` with `··},⏎····`"
prettier/prettier
|
| 53 |
}); |
| 54 |
|
| 55 |
return () => { |
| 56 |
subscription.remove(); |
| 57 |
}; |
| Error |
Row 58, Column 6: "React Hook useEffect has a missing dependency: 'locationService'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 58 |
}, []); |
| 59 |
|
| 60 |
React.useEffect(() => { |
| Error |
Row 61, Column 53: "Replace `(providers)` with `providers`"
prettier/prettier
|
| 61 |
DeviceInfo.getAvailableLocationProviders().then((providers) => { |
| 62 |
setLocationService(Object.keys(providers).length > 0); |
| 63 |
}); |
| Error |
Row 64, Column 1: "Replace `⏎··},·[]);⏎⏎` with `··},·[]);`"
prettier/prettier
|
| 64 |
|
| 65 |
}, []); |
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
const changeLocationService = async (is_app_state_changed = false) => { |
| 70 |
console.log('is_app_state_changed::', is_app_state_changed); |
| Error |
Row 71, Column 21: "Insert `;`"
prettier/prettier
|
| Warning |
Row 71, Column 21: "Missing semicolon."
semi
|
| 71 |
let flag = false |
| 72 |
|
| 73 |
try { |
| 74 |
if (is_app_state_changed) { |
| 75 |
flag = await UI_API._getLocPermissionStatus(Linking, alertRef); |
| Warning |
Row 76, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| 76 |
if (flag == true) { |
| 77 |
setLocationService(flag); |
| 78 |
} |
| 79 |
|
| 80 |
if (flag === 'disabled') { |
| 81 |
UI_API.locationSettingAlert(); |
| 82 |
} else { |
| 83 |
setLocationService(flag); |
| 84 |
} |
| 85 |
} else { |
| 86 |
UI_API.locationSettingAlert(); |
| 87 |
} |
| 88 |
} catch (error) { |
| 89 |
alertRef.current.alertWithType( |
| 90 |
'error', |
| 91 |
'Error', |
| 92 |
UI_API._returnError(error), |
| 93 |
); |
| 94 |
} |
| Error |
Row 95, Column 4: "Replace `⏎⏎` with `;`"
prettier/prettier
|
| Warning |
Row 95, Column 4: "Missing semicolon."
semi
|
| 95 |
} |
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
useEffect(() => { |
| 100 |
GetLocation.getCurrentPosition({ |
| 101 |
enableHighAccuracy: true, |
| 102 |
timeout: 15000, |
| 103 |
}) |
| 104 |
.then(location => { |
| 105 |
console.log('location', location); |
| 106 |
setRegion({ |
| 107 |
latitude: location?.latitude, |
| 108 |
latitudeDelta: 0.015, |
| 109 |
longitude: location?.longitude, |
| 110 |
longitudeDelta: 0.0121, |
| 111 |
}); |
| 112 |
ref?.current?.animateToRegion( |
| 113 |
{ |
| 114 |
latitude: location?.latitude, |
| 115 |
latitudeDelta: 0.015, |
| 116 |
longitude: location?.longitude, |
| 117 |
longitudeDelta: 0.0121, |
| 118 |
}, |
| 119 |
1000, |
| 120 |
); |
| 121 |
}) |
| 122 |
.catch(error => { |
| Error |
Row 123, Column 16: "Replace `·code,·message·` with `code,·message`"
prettier/prettier
|
| 123 |
const { code, message } = error; |
| 124 |
console.warn(code, message); |
| 125 |
}); |
| 126 |
}, []); |
| 127 |
|
| 128 |
const getAddress = () => { |
| 129 |
Geocoder.from(region.latitude, region.longitude) |
| 130 |
.then(async json => { |
| 131 |
var addressComponent = UI_API._returnAddress(json); |
| 132 |
const address = { |
| 133 |
...addressComponent, |
| 134 |
latitude: region.latitude, |
| 135 |
longitude: region.longitude, |
| 136 |
}; |
| Warning |
Row 137, Column 37: "Expected '===' and instead saw '=='."
eqeqeq
|
| 137 |
if (props.route.params.type == 'deliveryaddress') { |
| Error |
Row 138, Column 57: "Replace `·region:·region,·address:·address,·type:·props.route.params.type·})` with `⏎············region:·region,⏎············address:·address,⏎············type:·props.route.params.type,⏎··········});`"
prettier/prettier
|
| Warning |
Row 138, Column 124: "Missing semicolon."
semi
|
| 138 |
props.navigation.navigate('deliveryaddress', { region: region, address: address, type: props.route.params.type }) |
| 139 |
} else { |
| 140 |
props.navigation.navigate( |
| Warning |
Row 141, Column 37: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 141, Column 48: "Replace `·?·'selectaddress'` with `⏎··············?·'selectaddress'⏎·············`"
prettier/prettier
|
| 141 |
props.route.params.type == 'pstore' ? 'selectaddress' : 'newaddress', |
| Error |
Row 142, Column 14: "Replace `·region:·region,·address:·address,·type:·props.route.params.type·` with `region:·region,·address:·address,·type:·props.route.params.type`"
prettier/prettier
|
| 142 |
{ region: region, address: address, type: props.route.params.type }, |
| 143 |
); |
| 144 |
} |
| 145 |
}) |
| 146 |
.catch(error => console.warn(error)); |
| 147 |
}; |
| 148 |
|
| 149 |
return ( |
| 150 |
<SafeAreaView style={styles.CONTAINER}> |
| 151 |
<Header |
| Warning |
Row 152, Column 16: "Inline style: { alignItems: 'flex-start' }"
react-native/no-inline-styles
|
| 152 |
style={{ |
| 153 |
height: Platform.OS === 'ios' ? mvs(90) : mvs(131), |
| 154 |
alignItems: 'flex-start', |
| 155 |
paddingTop: Platform.OS === 'ios' ? mvs(0) : mvs(50), |
| 156 |
}} |
| 157 |
{...props} |
| Error |
Row 158, Column 36: "Replace `"Delivery·Location"` with `'Delivery·Location'`"
prettier/prettier
|
| Warning |
Row 158, Column 36: "Strings must use singlequote."
quotes
|
| 158 |
title={heading ? heading : "Delivery Location"} |
| 159 |
allowBackBtn |
| 160 |
userIcon={false} |
| 161 |
/> |
| 162 |
<View style={styles.BODY}> |
| 163 |
<MapView |
| 164 |
provider={PROVIDER_GOOGLE} // remove if not using Google Maps |
| Warning |
Row 165, Column 18: "Inline style: { flex: 1, justifyContent: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 165, Column 19: "Replace `·flex:·1,·justifyContent:·'center'·` with `flex:·1,·justifyContent:·'center'`"
prettier/prettier
|
| 165 |
style={{ flex: 1, justifyContent: 'center' }} |
| 166 |
initialRegion={region} |
| 167 |
ref={ref} |
| 168 |
showsUserLocation={true} |
| 169 |
showsMyLocationButton={false} |
| 170 |
onRegionChangeComplete={ll => { |
| 171 |
setRegion(ll); |
| 172 |
}} |
| 173 |
/> |
| 174 |
<View style={styles.barContainer}> |
| 175 |
<GoogleSearchBar |
| Error |
Row 176, Column 23: "Replace `·=·{{color·` with `={{color`"
prettier/prettier
|
| 176 |
inputStyle = {{color : colors.typeHeader}} |
| 177 |
onPress={(data, details = null) => { |
| 178 |
setRegion({ |
| 179 |
latitude: details?.geometry?.location?.lat, |
| 180 |
latitudeDelta: 0.015, |
| 181 |
longitude: details?.geometry?.location?.lng, |
| 182 |
longitudeDelta: 0.0121, |
| 183 |
}); |
| 184 |
ref?.current?.animateToRegion( |
| 185 |
{ |
| 186 |
latitude: details?.geometry?.location?.lat, |
| 187 |
latitudeDelta: 0.015, |
| 188 |
longitude: details?.geometry?.location?.lng, |
| 189 |
longitudeDelta: 0.0121, |
| 190 |
}, |
| 191 |
1000, |
| 192 |
); |
| 193 |
}} |
| 194 |
/> |
| 195 |
</View> |
| 196 |
|
| 197 |
<View style={styles.pointer}>{/* <Location/> */}</View> |
| 198 |
|
| 199 |
<View |
| Warning |
Row 200, Column 18: "Inline style: { position: 'absolute', width: '100%' }"
react-native/no-inline-styles
|
| 200 |
style={{ |
| 201 |
position: 'absolute', |
| 202 |
bottom: mvs(40), |
| 203 |
paddingHorizontal: mvs(22), |
| 204 |
width: '100%', |
| 205 |
}}> |
| 206 |
<Buttons.ButtonPrimary |
| 207 |
onClick={() => { |
| 208 |
getAddress(); |
| 209 |
}} |
| 210 |
title={'Confirm'} |
| 211 |
/> |
| 212 |
</View> |
| Error |
Row 213, Column 26: "Replace `·onPress={()·=>·changeLocationService(!locationService)}·activeOpacity={0.5}` with `⏎··········onPress={()·=>·changeLocationService(!locationService)}⏎··········activeOpacity={0.5}⏎·········`"
prettier/prettier
|
| Warning |
Row 213, Column 110: "Inline style: {
position: 'absolute',
alignItems: 'center',
justifyContent: 'center'
}"
react-native/no-inline-styles
|
| 213 |
<TouchableOpacity onPress={() => changeLocationService(!locationService)} activeOpacity={0.5} style={{ |
| Error |
Row 214, Column 1: "Insert `··`"
prettier/prettier
|
| 214 |
position: 'absolute', |
| Error |
Row 215, Column 11: "Replace `top:·mvs(200),` with `··top:·mvs(200),⏎···········`"
prettier/prettier
|
| 215 |
top: mvs(200), height: mvs(40), |
| Error |
Row 216, Column 11: "Insert `··`"
prettier/prettier
|
| 216 |
width: mvs(40), |
| Error |
Row 217, Column 1: "Insert `··`"
prettier/prettier
|
| 217 |
...colors.shadow, |
| Error |
Row 218, Column 11: "Replace `borderRadius:·mvs(20),·backgroundColor:·colors.white,·right:·mvs(22),·alignItems:·'center',·justifyContent:·'center'` with `··borderRadius:·mvs(20),⏎············backgroundColor:·colors.white,⏎············right:·mvs(22),⏎············alignItems:·'center',⏎············justifyContent:·'center',`"
prettier/prettier
|
| Warning |
Row 218, Column 127: "Missing trailing comma."
comma-dangle
|
| 218 |
borderRadius: mvs(20), backgroundColor: colors.white, right: mvs(22), alignItems: 'center', justifyContent: 'center' |
| Error |
Row 219, Column 1: "Insert `··`"
prettier/prettier
|
| 219 |
}}> |
| Error |
Row 220, Column 16: "Replace `·style={{·height:·mvs(20),·width:·mvs(20),·borderRadius:·mvs(10),·backgroundColor:·locationService·?·colors.primary·:·colors.label·}}` with `⏎············style={{⏎··············height:·mvs(20),⏎··············width:·mvs(20),⏎··············borderRadius:·mvs(10),⏎··············backgroundColor:·locationService·?·colors.primary·:·colors.label,⏎············}}⏎·········`"
prettier/prettier
|
| 220 |
<View style={{ height: mvs(20), width: mvs(20), borderRadius: mvs(10), backgroundColor: locationService ? colors.primary : colors.label }} /> |
| 221 |
</TouchableOpacity> |
| Error |
Row 222, Column 1: "Replace `······⏎` with `········`"
prettier/prettier
|
| 222 |
<DropdownAlert inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 223 |
|
| 224 |
</View> |
| 225 |
</SafeAreaView> |
| 226 |
); |
| 227 |
}; |
| 228 |
|
| 229 |
const mapStateToProps = state => { |
| 230 |
return { |
| 231 |
selectedMapAddress: state.common.selectedMapAddress, |
| 232 |
}; |
| 233 |
}; |
| 234 |
const mapDispatchToProps = dispatch => ({ |
| 235 |
fetchSelectedAddress: data => |
| 236 |
dispatch(TAKE_TO_ACTIONS.fetchSelectedAddress(data)), |
| 237 |
}); |
| 238 |
|
| 239 |
export default connect(mapStateToProps, mapDispatchToProps)(DeliveryLocation); |
| 240 |
|
| 241 |
const styles = StyleSheet.create({ |
| 242 |
CONTAINER: { |
| 243 |
flex: 1, |
| 244 |
backgroundColor: colors.white, |
| 245 |
}, |
| 246 |
BODY: { |
| 247 |
flex: 1, |
| 248 |
justifyContent: 'center', |
| 249 |
}, |
| 250 |
LABEL: {}, |
| 251 |
LIST_CONTAINER: { |
| 252 |
paddingBottom: mvs(9), |
| 253 |
marginBottom: mvs(15), |
| 254 |
borderColor: colors.price_border, |
| 255 |
}, |
| 256 |
pointer: { |
| 257 |
height: mvs(10), |
| 258 |
width: mvs(10), |
| 259 |
position: 'absolute', |
| 260 |
backgroundColor: colors.primary, |
| 261 |
alignSelf: 'center', |
| 262 |
borderRadius: mvs(10 / 2), |
| 263 |
shadowColor: '#000', |
| 264 |
shadowOffset: { |
| 265 |
width: 0, |
| 266 |
height: 12, |
| 267 |
}, |
| 268 |
shadowOpacity: 0.58, |
| 269 |
shadowRadius: 16.0, |
| 270 |
|
| 271 |
elevation: 24, |
| 272 |
}, |
| 273 |
barContainer: { |
| 274 |
//height : mvs(38), |
| 275 |
width: '100%', |
| 276 |
paddingHorizontal: mvs(22), |
| 277 |
position: 'absolute', |
| 278 |
// backgroundColor : 'red', |
| 279 |
//elevation :10 |
| 280 |
top: Platform.OS === 'ios' ? mvs(-50) : mvs(-50), |
| 281 |
}, |
| 282 |
}); |
| 283 |
|
|
|
|
/src/screens/setting-screens/new-address.js
|
118 problems (76 errors, 42 warnings)
|
| Severity |
Rule |
| Error |
Row 3, Column 16: "Replace `·useEffect·` with `useEffect`"
prettier/prettier
|
| Error |
Row 4, Column 9: "Replace `·Keyboard,·KeyboardAvoidingView,·Platform,·ScrollView,·StyleSheet,·TouchableOpacity,·View·` with `⏎··Keyboard,⏎··KeyboardAvoidingView,⏎··Platform,⏎··ScrollView,⏎··StyleSheet,⏎··TouchableOpacity,⏎··View,⏎`"
prettier/prettier
|
| Error |
Row 7, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Error |
Row 17, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 24, Column 10: "Replace `·route,·saveAddressHandler,·navigation,·fetchDeliveryAddress·` with `route,·saveAddressHandler,·navigation,·fetchDeliveryAddress`"
prettier/prettier
|
| Warning |
Row 25, Column 9: "'Pointer' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 25, Column 24: "["pointer"] is better written in dot notation."
dot-notation
|
| Error |
Row 26, Column 10: "Replace `·type·}·=·route?.params·||·{}` with `type}·=·route?.params·||·{};`"
prettier/prettier
|
| Warning |
Row 26, Column 39: "Missing semicolon."
semi
|
| Error |
Row 28, Column 60: "Insert `;`"
prettier/prettier
|
| Warning |
Row 28, Column 60: "Missing semicolon."
semi
|
| Warning |
Row 30, Column 9: "'phoneInput' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 64, Column 14: "Replace `·...route?.params?.region·` with `...route?.params?.region`"
prettier/prettier
|
| Error |
Row 86, Column 69: "Insert `,`"
prettier/prettier
|
| Warning |
Row 86, Column 69: "Missing trailing comma."
comma-dangle
|
| Error |
Row 102, Column 6: "React Hook useEffect has a missing dependency: 'getCurrentLocation'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 102, Column 15: "Delete `⏎⏎`"
prettier/prettier
|
| Error |
Row 118, Column 24: "Insert `;`"
prettier/prettier
|
| Warning |
Row 118, Column 24: "Missing semicolon."
semi
|
| Error |
Row 122, Column 25: "Insert `;`"
prettier/prettier
|
| Warning |
Row 122, Column 25: "Missing semicolon."
semi
|
| Error |
Row 123, Column 5: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 131, Column 19: "Replace `"SAVEADDRESS::::",·payload)` with `'SAVEADDRESS::::',·payload);`"
prettier/prettier
|
| Warning |
Row 131, Column 19: "Strings must use singlequote."
quotes
|
| Warning |
Row 131, Column 46: "Missing semicolon."
semi
|
| Error |
Row 175, Column 25: "Replace `·item,·index,·iconName·=·'Home'·` with `item,·index,·iconName·=·'Home'`"
prettier/prettier
|
| Warning |
Row 177, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 178, Column 13: "["Home"] is better written in dot notation."
dot-notation
|
| Warning |
Row 180, Column 12: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 182, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 183, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 184, Column 13: "Insert `··`"
prettier/prettier
|
| Error |
Row 185, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 186, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 187, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 188, Column 11: "Insert `··`"
prettier/prettier
|
| Error |
Row 189, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 190, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 191, Column 12: "Replace `·borderWidth:·StyleSheet.hairlineWidth,·borderColor:·colors.doted·` with `borderWidth:·StyleSheet.hairlineWidth,·borderColor:·colors.doted`"
prettier/prettier
|
| Error |
Row 196, Column 23: "Replace `·...payload,·addressType:·item,·addressNickName:·item·` with `...payload,·addressType:·item,·addressNickName:·item`"
prettier/prettier
|
| Warning |
Row 200, Column 24: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 205, Column 15: "Duplicate key 'addressType'."
no-dupe-keys
|
| Warning |
Row 209, Column 23: "Inline style: { marginLeft: 0 }"
react-native/no-inline-styles
|
| Warning |
Row 213, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 216, Column 18: "Inline style: {
flexDirection: 'column',
justifyContent: 'space-between',
alignItems: 'center',
zIndex: 1001
}"
react-native/no-inline-styles
|
| Warning |
Row 235, Column 14: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 235, Column 15: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Error |
Row 240, Column 22: "Replace `·showsVerticalScrollIndicator={false}` with `⏎············showsVerticalScrollIndicator={false}⏎···········`"
prettier/prettier
|
| Warning |
Row 248, Column 22: "Inline style: { overflow: 'hidden', justifyContent: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 262, Column 26: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 262, Column 27: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| Warning |
Row 271, Column 22: "Inline style: {
flexDirection: 'row',
width: '100%',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| Error |
Row 282, Column 18: "Replace `·style={{·flexDirection:·'row',·justifyContent:·'space-between'·` with `⏎··············style={{flexDirection:·'row',·justifyContent:·'space-between'`"
prettier/prettier
|
| Warning |
Row 282, Column 26: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Warning |
Row 286, Column 33: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 286, Column 34: "Replace `·marginBottom:·mvs(13),·width:·'49%'·` with `marginBottom:·mvs(13),·width:·'49%'`"
prettier/prettier
|
| Warning |
Row 287, Column 24: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 287, Column 25: "Replace `·width:·'100%'·` with `width:·'100%'`"
prettier/prettier
|
| Error |
Row 290, Column 31: "Replace `·...payload,·addressNickName:·text·` with `...payload,·addressNickName:·text`"
prettier/prettier
|
| Error |
Row 294, Column 17: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Warning |
Row 299, Column 33: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 299, Column 34: "Replace `·marginBottom:·mvs(13),·width:·'49%'·` with `marginBottom:·mvs(13),·width:·'49%'`"
prettier/prettier
|
| Warning |
Row 300, Column 24: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 300, Column 25: "Replace `·width:·'100%'·` with `width:·'100%'`"
prettier/prettier
|
| Error |
Row 302, Column 51: "Replace `·...payload,·area:·text·` with `...payload,·area:·text`"
prettier/prettier
|
| Error |
Row 305, Column 17: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Error |
Row 311, Column 32: "Replace `·marginBottom:·mvs(13)·` with `marginBottom:·mvs(13)`"
prettier/prettier
|
| Warning |
Row 312, Column 22: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 312, Column 23: "Replace `·width:·'100%'·` with `width:·'100%'`"
prettier/prettier
|
| Error |
Row 314, Column 49: "Replace `·...payload,·street:·text·` with `...payload,·street:·text`"
prettier/prettier
|
| Error |
Row 317, Column 15: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Warning |
Row 322, Column 26: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Error |
Row 322, Column 27: "Replace `·flexDirection:·'row',·justifyContent:·'space-between'` with `⏎····················flexDirection:·'row',⏎····················justifyContent:·'space-between',⏎·················`"
prettier/prettier
|
| Warning |
Row 324, Column 37: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 324, Column 38: "Replace `·marginBottom:·mvs(13),·width:·'49%'·` with `marginBottom:·mvs(13),·width:·'49%'`"
prettier/prettier
|
| Warning |
Row 325, Column 28: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 325, Column 29: "Replace `·width:·'100%'·` with `width:·'100%'`"
prettier/prettier
|
| Error |
Row 328, Column 35: "Replace `·...payload,·building:·text·` with `...payload,·building:·text`"
prettier/prettier
|
| Error |
Row 332, Column 21: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Warning |
Row 336, Column 39: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 336, Column 40: "Replace `·marginBottom:·mvs(13),·width:·'49%'·` with `marginBottom:·mvs(13),·width:·'49%'`"
prettier/prettier
|
| Warning |
Row 337, Column 30: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 337, Column 31: "Replace `·width:·'100%'·` with `width:·'100%'`"
prettier/prettier
|
| Error |
Row 339, Column 44: "Replace `·setPayload({·...payload,·floor:·text·})` with `⏎························setPayload({...payload,·floor:·text})⏎······················`"
prettier/prettier
|
| Error |
Row 342, Column 23: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Warning |
Row 346, Column 39: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 346, Column 40: "Replace `·marginBottom:·mvs(0),·width:·'49%'·` with `marginBottom:·mvs(0),·width:·'49%'`"
prettier/prettier
|
| Warning |
Row 347, Column 30: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 347, Column 31: "Replace `·width:·'100%'·` with `width:·'100%'`"
prettier/prettier
|
| Error |
Row 350, Column 37: "Replace `·...payload,·officeNumber:·text·` with `...payload,·officeNumber:·text`"
prettier/prettier
|
| Error |
Row 354, Column 23: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Error |
Row 360, Column 38: "Replace `·marginBottom:·mvs(0)·` with `marginBottom:·mvs(0)`"
prettier/prettier
|
| Error |
Row 361, Column 29: "Replace `·width:·mvs(161)·` with `width:·mvs(161)`"
prettier/prettier
|
| Error |
Row 364, Column 35: "Replace `·...payload,·appartmentNumber:·text·` with `...payload,·appartmentNumber:·text`"
prettier/prettier
|
| Error |
Row 368, Column 21: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Warning |
Row 374, Column 24: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Error |
Row 374, Column 25: "Replace `·flexDirection:·'row',·justifyContent:·'space-between'·` with `flexDirection:·'row',·justifyContent:·'space-between'`"
prettier/prettier
|
| Warning |
Row 376, Column 35: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 376, Column 36: "Replace `·marginBottom:·mvs(13),·width:·'49%'·` with `marginBottom:·mvs(13),·width:·'49%'`"
prettier/prettier
|
| Warning |
Row 377, Column 26: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 377, Column 27: "Replace `·width:·'100%'·` with `width:·'100%'`"
prettier/prettier
|
| Error |
Row 380, Column 33: "Replace `·...payload,·houseNumber:·text·` with `...payload,·houseNumber:·text`"
prettier/prettier
|
| Error |
Row 384, Column 19: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| Error |
Row 388, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 390, Column 26: "Insert `·(`"
prettier/prettier
|
| Error |
Row 391, Column 49: "Delete `⏎`"
prettier/prettier
|
| Warning |
Row 399, Column 37: "Expected '===' and instead saw '=='."
eqeqeq
|
| Warning |
Row 408, Column 39: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 414, Column 1: "Delete `⏎`"
prettier/prettier
|
| Warning |
Row 415, Column 34: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 419, Column 27: "Replace `·marginTop:·mvs(10)·` with `marginTop:·mvs(10)`"
prettier/prettier
|
| Error |
Row 423, Column 11: "Insert `)`"
prettier/prettier
|
| Warning |
Row 429, Column 28: "'type' is already declared in the upper scope."
no-shadow
|
| Error |
Row 429, Column 48: "Replace `·...payload,·addressType:·type·` with `...payload,·addressType:·type`"
prettier/prettier
|
| Error |
Row 433, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}·inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| Error |
Row 490, Column 4: "Insert `,`"
prettier/prettier
|
| Warning |
Row 490, Column 4: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 2 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| Error |
Row 3, Column 16: "Replace `·useEffect·` with `useEffect`"
prettier/prettier
|
| 3 |
import React, { useEffect } from 'react'; |
| Error |
Row 4, Column 9: "Replace `·Keyboard,·KeyboardAvoidingView,·Platform,·ScrollView,·StyleSheet,·TouchableOpacity,·View·` with `⏎··Keyboard,⏎··KeyboardAvoidingView,⏎··Platform,⏎··ScrollView,⏎··StyleSheet,⏎··TouchableOpacity,⏎··View,⏎`"
prettier/prettier
|
| 4 |
import { Keyboard, KeyboardAvoidingView, Platform, ScrollView, StyleSheet, TouchableOpacity, View } from 'react-native'; |
| 5 |
import Geocoder from 'react-native-geocoding'; |
| 6 |
import MapView from 'react-native-maps'; |
| Error |
Row 7, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 7 |
import { connect } from 'react-redux'; |
| 8 |
import TAKE_TO_CONSTANT from '../../../../common/utils/utils'; |
| 9 |
import * as Icons from '../../../resource/assets/new-address-icons'; |
| Error |
Row 10, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 10 |
import { TAKE_TO_INPUT_FIELD } from '../../components/atoms'; |
| 11 |
import Buttons from '../../components/atoms/Button'; |
| 12 |
import CustomRadio from '../../components/atoms/RadioButton'; |
| 13 |
import Header from '../../components/molecules/header/header-1x'; |
| 14 |
import AddressTypeModal from '../../components/molecules/modals/address-type-modal'; |
| 15 |
import colors from '../../config/colors'; |
| 16 |
import DropdownAlert from 'react-native-dropdownalert'; |
| Error |
Row 17, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 17 |
import { mvs } from '../../config/metrices'; |
| 18 |
import * as SVGS from './../../../resource/assets/order-car-icons'; |
| 19 |
|
| 20 |
Geocoder.init('AIzaSyCHIlIvmsXf-sllfpXK0Q-1dV7uzgyFvfw'); |
| 21 |
|
| 22 |
const NewAddress = props => { |
| 23 |
const alertRef = React.useRef(null); |
| Error |
Row 24, Column 10: "Replace `·route,·saveAddressHandler,·navigation,·fetchDeliveryAddress·` with `route,·saveAddressHandler,·navigation,·fetchDeliveryAddress`"
prettier/prettier
|
| 24 |
const { route, saveAddressHandler, navigation, fetchDeliveryAddress } = props; |
| Warning |
Row 25, Column 9: "'Pointer' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 25, Column 24: "["pointer"] is better written in dot notation."
dot-notation
|
| 25 |
const Pointer = SVGS['pointer']; |
| Error |
Row 26, Column 10: "Replace `·type·}·=·route?.params·||·{}` with `type}·=·route?.params·||·{};`"
prettier/prettier
|
| Warning |
Row 26, Column 39: "Missing semicolon."
semi
|
| 26 |
const { type } = route?.params || {} |
| 27 |
const [loading, setLoading] = React.useState(false); |
| Error |
Row 28, Column 60: "Insert `;`"
prettier/prettier
|
| Warning |
Row 28, Column 60: "Missing semicolon."
semi
|
| 28 |
const [dismissBtn, setDismissBtn] = React.useState(false) |
| 29 |
const [visible, setVisible] = React.useState(false); |
| Warning |
Row 30, Column 9: "'phoneInput' is assigned a value but never used."
no-unused-vars
|
| 30 |
const phoneInput = React.useRef(null); |
| 31 |
const [payload, setPayload] = React.useState({ |
| 32 |
addressNickName: '', |
| 33 |
area: '', |
| 34 |
block: '', |
| 35 |
street: '', |
| 36 |
building: '', |
| 37 |
floor: '', |
| 38 |
otpCode: '', |
| 39 |
addressType: 'House', |
| 40 |
houseNumber: '', |
| 41 |
officeNumber: '', |
| 42 |
appartmentNumber: '', |
| 43 |
verifiedPhone: '', |
| 44 |
city: '', |
| 45 |
country: '', |
| 46 |
fulladdress: '', |
| 47 |
place_id: '', |
| 48 |
region: { |
| 49 |
latitude: 37.78825, |
| 50 |
latitudeDelta: 0.015, |
| 51 |
longitude: -122.4324, |
| 52 |
longitudeDelta: 0.0121, |
| 53 |
}, |
| 54 |
country_short_name: '', |
| 55 |
}); |
| 56 |
const getCurrentLocation = async () => { |
| 57 |
try { |
| 58 |
let location = route?.params?.region |
| 59 |
? {} |
| 60 |
: await UI_API._get_current_location(); |
| 61 |
location = |
| 62 |
Object?.keys(location).length > 0 |
| 63 |
? location |
| Error |
Row 64, Column 14: "Replace `·...route?.params?.region·` with `...route?.params?.region`"
prettier/prettier
|
| 64 |
: { ...route?.params?.region }; |
| 65 |
Geocoder.from(location.latitude, location.longitude) |
| 66 |
.then(json => { |
| 67 |
var addressComponent = UI_API._returnAddress(json); |
| 68 |
setPayload({ |
| 69 |
...payload, |
| 70 |
country: addressComponent?.country, |
| 71 |
city: addressComponent?.city, |
| 72 |
region: location, |
| 73 |
area: addressComponent?.area || '', |
| 74 |
block: '', |
| 75 |
street: addressComponent?.street_number || '', |
| 76 |
building: '', |
| 77 |
floor: '', |
| 78 |
otpCode: '', |
| 79 |
addressType: 'House', |
| 80 |
houseNumber: addressComponent?.street_address || '', |
| 81 |
officeNumber: '', |
| 82 |
appartmentNumber: '', |
| 83 |
verifiedPhone: '', |
| 84 |
fulladdress: addressComponent?.fulladdress, |
| 85 |
place_id: addressComponent?.place_id, |
| Error |
Row 86, Column 69: "Insert `,`"
prettier/prettier
|
| Warning |
Row 86, Column 69: "Missing trailing comma."
comma-dangle
|
| 86 |
country_short_name: addressComponent?.country_short_name |
| 87 |
}); |
| 88 |
}) |
| 89 |
.catch(error => console.warn(error)); |
| 90 |
} catch (error) { |
| 91 |
//alert(UI_API._returnError(error)); |
| 92 |
alertRef.current.alertWithType( |
| 93 |
'error', |
| 94 |
'Error', |
| 95 |
UI_API._returnError(error), |
| 96 |
); |
| 97 |
} |
| 98 |
}; |
| 99 |
|
| 100 |
useEffect(() => { |
| 101 |
getCurrentLocation(); |
| Error |
Row 102, Column 6: "React Hook useEffect has a missing dependency: 'getCurrentLocation'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 102, Column 15: "Delete `⏎⏎`"
prettier/prettier
|
| 102 |
}, [route]); |
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
useEffect(() => { |
| 107 |
Keyboard.addListener('keyboardDidShow', _keyboardDidShow); |
| 108 |
Keyboard.addListener('keyboardDidHide', _keyboardDidHide); |
| 109 |
|
| 110 |
// cleanup function |
| 111 |
return () => { |
| 112 |
Keyboard.removeListener('keyboardDidShow', _keyboardDidShow); |
| 113 |
Keyboard.removeListener('keyboardDidHide', _keyboardDidHide); |
| 114 |
}; |
| 115 |
}, []); |
| 116 |
|
| 117 |
const _keyboardDidShow = () => { |
| Error |
Row 118, Column 24: "Insert `;`"
prettier/prettier
|
| Warning |
Row 118, Column 24: "Missing semicolon."
semi
|
| 118 |
setDismissBtn(true) |
| 119 |
}; |
| 120 |
|
| 121 |
const _keyboardDidHide = () => { |
| Error |
Row 122, Column 25: "Insert `;`"
prettier/prettier
|
| Warning |
Row 122, Column 25: "Missing semicolon."
semi
|
| 122 |
setDismissBtn(false) |
| Error |
Row 123, Column 5: "Delete `⏎`"
prettier/prettier
|
| 123 |
}; |
| 124 |
|
| 125 |
|
| 126 |
// console.log(payload); |
| 127 |
|
| 128 |
const onSaveAddress = async () => { |
| 129 |
try { |
| 130 |
setLoading(true); |
| Error |
Row 131, Column 19: "Replace `"SAVEADDRESS::::",·payload)` with `'SAVEADDRESS::::',·payload);`"
prettier/prettier
|
| Warning |
Row 131, Column 19: "Strings must use singlequote."
quotes
|
| Warning |
Row 131, Column 46: "Missing semicolon."
semi
|
| 131 |
console.log("SAVEADDRESS::::", payload) |
| 132 |
try { |
| 133 |
const response = await TAKE_TO_CONSTANT.newAddressValidation(payload); |
| 134 |
if (response.status) { |
| 135 |
await saveAddressHandler(payload); |
| 136 |
if (route.params.type !== 'deliveryto') { |
| 137 |
navigation.pop(); |
| 138 |
} else { |
| 139 |
fetchDeliveryAddress(''); |
| 140 |
navigation.pop(2); |
| 141 |
} |
| 142 |
setLoading(false); |
| 143 |
} else { |
| 144 |
throw new Error(response.message); |
| 145 |
} |
| 146 |
} catch (error) { |
| 147 |
setLoading(false); |
| 148 |
//alert(UI_API._returnError(error)); |
| 149 |
alertRef.current.alertWithType( |
| 150 |
'error', |
| 151 |
'Error', |
| 152 |
UI_API._returnError(error), |
| 153 |
); |
| 154 |
} |
| 155 |
} catch (error) { |
| 156 |
setLoading(false); |
| 157 |
//alert(UI_API._returnError(error)); |
| 158 |
alertRef.current.alertWithType( |
| 159 |
'error', |
| 160 |
'Error', |
| 161 |
UI_API._returnError(error), |
| 162 |
); |
| 163 |
} |
| 164 |
}; |
| 165 |
|
| 166 |
const onContinue = async () => { |
| 167 |
fetchDeliveryAddress({ |
| 168 |
...payload, |
| 169 |
latitude: payload?.region?.latitude, |
| 170 |
longitude: payload?.region?.longitude, |
| 171 |
}); |
| 172 |
props.navigation.pop(2); |
| 173 |
}; |
| 174 |
|
| Error |
Row 175, Column 25: "Replace `·item,·index,·iconName·=·'Home'·` with `item,·index,·iconName·=·'Home'`"
prettier/prettier
|
| 175 |
const AddressType = ({ item, index, iconName = 'Home' }) => { |
| 176 |
const Icon = |
| Warning |
Row 177, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| 177 |
Icons[item == payload.addressType ? `${item}active` : item] || |
| Warning |
Row 178, Column 13: "["Home"] is better written in dot notation."
dot-notation
|
| 178 |
Icons['Home']; |
| 179 |
const style = |
| Warning |
Row 180, Column 12: "Expected '===' and instead saw '=='."
eqeqeq
|
| 180 |
item == payload.addressType |
| 181 |
? { |
| Error |
Row 182, Column 11: "Insert `··`"
prettier/prettier
|
| 182 |
shadowColor: '#000', |
| Error |
Row 183, Column 1: "Insert `··`"
prettier/prettier
|
| 183 |
shadowOffset: { |
| Error |
Row 184, Column 13: "Insert `··`"
prettier/prettier
|
| 184 |
width: 0, |
| Error |
Row 185, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 185 |
height: 2, |
| Error |
Row 186, Column 11: "Insert `··`"
prettier/prettier
|
| 186 |
}, |
| Error |
Row 187, Column 1: "Insert `··`"
prettier/prettier
|
| 187 |
shadowOpacity: 0.25, |
| Error |
Row 188, Column 11: "Insert `··`"
prettier/prettier
|
| 188 |
shadowRadius: 3.84, |
| Error |
Row 189, Column 1: "Insert `··`"
prettier/prettier
|
| 189 |
elevation: 5, |
| Error |
Row 190, Column 9: "Insert `··`"
prettier/prettier
|
| 190 |
} |
| Error |
Row 191, Column 12: "Replace `·borderWidth:·StyleSheet.hairlineWidth,·borderColor:·colors.doted·` with `borderWidth:·StyleSheet.hairlineWidth,·borderColor:·colors.doted`"
prettier/prettier
|
| 191 |
: { borderWidth: StyleSheet.hairlineWidth, borderColor: colors.doted }; |
| 192 |
|
| 193 |
return ( |
| 194 |
<TouchableOpacity |
| 195 |
onPress={() => |
| Error |
Row 196, Column 23: "Replace `·...payload,·addressType:·item,·addressNickName:·item·` with `...payload,·addressType:·item,·addressNickName:·item`"
prettier/prettier
|
| 196 |
setPayload({ ...payload, addressType: item, addressNickName: item }) |
| 197 |
} |
| 198 |
style={{}}> |
| 199 |
<CustomRadio |
| Warning |
Row 200, Column 24: "Expected '===' and instead saw '=='."
eqeqeq
|
| 200 |
status={item == payload.addressType} |
| 201 |
onChange={v => |
| 202 |
setPayload({ |
| 203 |
...payload, |
| 204 |
addressType: item, |
| Error |
Row 205, Column 15: "Duplicate key 'addressType'."
no-dupe-keys
|
| 205 |
addressType: item, |
| 206 |
addressNickName: item, |
| 207 |
}) |
| 208 |
} |
| Warning |
Row 209, Column 23: "Inline style: { marginLeft: 0 }"
react-native/no-inline-styles
|
| 209 |
labelStyle={{ |
| 210 |
marginLeft: 0, |
| 211 |
fontSize: mvs(14), |
| 212 |
color: |
| Warning |
Row 213, Column 20: "Expected '===' and instead saw '=='."
eqeqeq
|
| 213 |
item == payload.addressType ? colors.primary : colors.typeHeader, |
| 214 |
}} |
| 215 |
label={item} |
| Warning |
Row 216, Column 18: "Inline style: {
flexDirection: 'column',
justifyContent: 'space-between',
alignItems: 'center',
zIndex: 1001
}"
react-native/no-inline-styles
|
| 216 |
style={{ |
| 217 |
flexDirection: 'column', |
| 218 |
justifyContent: 'space-between', |
| 219 |
backgroundColor: colors.white, |
| 220 |
width: mvs(106), |
| 221 |
height: mvs(97), |
| 222 |
alignItems: 'center', |
| 223 |
borderRadius: mvs(10), |
| 224 |
padding: mvs(8), |
| 225 |
zIndex: 1001, |
| 226 |
...style, |
| 227 |
}}> |
| 228 |
<Icon /> |
| 229 |
</CustomRadio> |
| 230 |
</TouchableOpacity> |
| 231 |
); |
| 232 |
}; |
| 233 |
return ( |
| 234 |
<KeyboardAvoidingView |
| Warning |
Row 235, Column 14: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 235, Column 15: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 235 |
style={{ flex: 1, backgroundColor: colors.white }} |
| 236 |
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}> |
| 237 |
<View style={styles.CONTAINER}> |
| 238 |
<Header {...props} title="New Address" allowBackBtn userIcon={false} /> |
| 239 |
<View style={styles.BODY}> |
| Error |
Row 240, Column 22: "Replace `·showsVerticalScrollIndicator={false}` with `⏎············showsVerticalScrollIndicator={false}⏎···········`"
prettier/prettier
|
| 240 |
<ScrollView showsVerticalScrollIndicator={false} contentContainerStyle={styles.SCROLL}> |
| 241 |
<TouchableOpacity |
| 242 |
activeOpacity={0.5} |
| 243 |
onPress={() => |
| 244 |
props.navigation.navigate('deliverylocation', { |
| 245 |
type: 'newaddress', |
| 246 |
}) |
| 247 |
} |
| Warning |
Row 248, Column 22: "Inline style: { overflow: 'hidden', justifyContent: 'center' }"
react-native/no-inline-styles
|
| 248 |
style={{ |
| 249 |
backgroundColor: colors.secondary, |
| 250 |
height: mvs(95), |
| 251 |
borderRadius: mvs(20), |
| 252 |
marginBottom: mvs(20), |
| 253 |
overflow: 'hidden', |
| 254 |
justifyContent: 'center', |
| 255 |
}}> |
| 256 |
{payload?.region && ( |
| 257 |
<MapView |
| 258 |
initialRegion={payload.region} |
| 259 |
//provider='google' |
| 260 |
region={payload?.region} |
| 261 |
scrollEnabled={false} |
| Warning |
Row 262, Column 26: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 262, Column 27: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| 262 |
style={{ flex: 1 }} |
| 263 |
zoomEnabled={false} |
| 264 |
showsMyLocationButton={false} |
| 265 |
/> |
| 266 |
)} |
| 267 |
|
| 268 |
<View style={styles.pointer} /> |
| 269 |
</TouchableOpacity> |
| 270 |
<View |
| Warning |
Row 271, Column 22: "Inline style: {
flexDirection: 'row',
width: '100%',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| 271 |
style={{ |
| 272 |
flexDirection: 'row', |
| 273 |
width: '100%', |
| 274 |
justifyContent: 'space-between', |
| 275 |
paddingHorizontal: mvs(1), |
| 276 |
marginBottom: mvs(18), |
| 277 |
}}> |
| 278 |
{['House', 'Appartment', 'Office'].map((ele, index) => ( |
| 279 |
<AddressType item={ele} key={index} index={index} /> |
| 280 |
))} |
| 281 |
</View> |
| Error |
Row 282, Column 18: "Replace `·style={{·flexDirection:·'row',·justifyContent:·'space-between'·` with `⏎··············style={{flexDirection:·'row',·justifyContent:·'space-between'`"
prettier/prettier
|
| Warning |
Row 282, Column 26: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| 282 |
<View style={{ flexDirection: 'row', justifyContent: 'space-between' }}> |
| 283 |
<TAKE_TO_INPUT_FIELD.InputSecondary |
| 284 |
isRequired={type === 'savedaddress' ? true : false} |
| 285 |
placeholderColor={colors.doted} |
| Warning |
Row 286, Column 33: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 286, Column 34: "Replace `·marginBottom:·mvs(13),·width:·'49%'·` with `marginBottom:·mvs(13),·width:·'49%'`"
prettier/prettier
|
| 286 |
containerStyle={{ marginBottom: mvs(13), width: '49%' }} |
| Warning |
Row 287, Column 24: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 287, Column 25: "Replace `·width:·'100%'·` with `width:·'100%'`"
prettier/prettier
|
| 287 |
style={{ width: '100%' }} |
| 288 |
value={payload.addressNickName} |
| 289 |
onChangeText={text => |
| Error |
Row 290, Column 31: "Replace `·...payload,·addressNickName:·text·` with `...payload,·addressNickName:·text`"
prettier/prettier
|
| 290 |
setPayload({ ...payload, addressNickName: text }) |
| 291 |
} |
| 292 |
label={'Address Nickname'} |
| 293 |
placeholder={'Address title'} |
| Error |
Row 294, Column 17: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 294 |
value={payload.addressNickName} |
| 295 |
/> |
| 296 |
<TAKE_TO_INPUT_FIELD.InputSecondary |
| 297 |
isRequired={type === 'savedaddress' ? true : false} |
| 298 |
placeholderColor={colors.doted} |
| Warning |
Row 299, Column 33: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 299, Column 34: "Replace `·marginBottom:·mvs(13),·width:·'49%'·` with `marginBottom:·mvs(13),·width:·'49%'`"
prettier/prettier
|
| 299 |
containerStyle={{ marginBottom: mvs(13), width: '49%' }} |
| Warning |
Row 300, Column 24: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 300, Column 25: "Replace `·width:·'100%'·` with `width:·'100%'`"
prettier/prettier
|
| 300 |
style={{ width: '100%' }} |
| 301 |
value={payload.area} |
| Error |
Row 302, Column 51: "Replace `·...payload,·area:·text·` with `...payload,·area:·text`"
prettier/prettier
|
| 302 |
onChangeText={text => setPayload({ ...payload, area: text })} |
| 303 |
label={'Area'} |
| 304 |
placeholder={'Area'} |
| Error |
Row 305, Column 17: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 305 |
value={payload.area} |
| 306 |
/> |
| 307 |
</View> |
| 308 |
<TAKE_TO_INPUT_FIELD.InputSecondary |
| 309 |
isRequired={type === 'savedaddress' ? true : false} |
| 310 |
placeholderColor={colors.input_placehoder} |
| Error |
Row 311, Column 32: "Replace `·marginBottom:·mvs(13)·` with `marginBottom:·mvs(13)`"
prettier/prettier
|
| 311 |
containerStyle={{ marginBottom: mvs(13) }} |
| Warning |
Row 312, Column 22: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 312, Column 23: "Replace `·width:·'100%'·` with `width:·'100%'`"
prettier/prettier
|
| 312 |
style={{ width: '100%' }} |
| 313 |
value={payload.street} |
| Error |
Row 314, Column 49: "Replace `·...payload,·street:·text·` with `...payload,·street:·text`"
prettier/prettier
|
| 314 |
onChangeText={text => setPayload({ ...payload, street: text })} |
| 315 |
label={'Street'} |
| 316 |
placeholder={'Street'} |
| Error |
Row 317, Column 15: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 317 |
value={payload.street} |
| 318 |
/> |
| 319 |
{payload.addressType !== 'House' ? ( |
| 320 |
<> |
| 321 |
<View |
| Warning |
Row 322, Column 26: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Error |
Row 322, Column 27: "Replace `·flexDirection:·'row',·justifyContent:·'space-between'` with `⏎····················flexDirection:·'row',⏎····················justifyContent:·'space-between',⏎·················`"
prettier/prettier
|
| 322 |
style={{ flexDirection: 'row', justifyContent: 'space-between' }}> |
| 323 |
<TAKE_TO_INPUT_FIELD.InputSecondary |
| Warning |
Row 324, Column 37: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 324, Column 38: "Replace `·marginBottom:·mvs(13),·width:·'49%'·` with `marginBottom:·mvs(13),·width:·'49%'`"
prettier/prettier
|
| 324 |
containerStyle={{ marginBottom: mvs(13), width: '49%' }} |
| Warning |
Row 325, Column 28: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 325, Column 29: "Replace `·width:·'100%'·` with `width:·'100%'`"
prettier/prettier
|
| 325 |
style={{ width: '100%' }} |
| 326 |
value={payload.building} |
| 327 |
onChangeText={text => |
| Error |
Row 328, Column 35: "Replace `·...payload,·building:·text·` with `...payload,·building:·text`"
prettier/prettier
|
| 328 |
setPayload({ ...payload, building: text }) |
| 329 |
} |
| 330 |
label={'Building'} |
| 331 |
placeholder={'Building name'} |
| Error |
Row 332, Column 21: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 332 |
value={payload.building} |
| 333 |
/> |
| 334 |
{payload.addressType === 'Appartment' ? ( |
| 335 |
<TAKE_TO_INPUT_FIELD.InputSecondary |
| Warning |
Row 336, Column 39: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 336, Column 40: "Replace `·marginBottom:·mvs(13),·width:·'49%'·` with `marginBottom:·mvs(13),·width:·'49%'`"
prettier/prettier
|
| 336 |
containerStyle={{ marginBottom: mvs(13), width: '49%' }} |
| Warning |
Row 337, Column 30: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 337, Column 31: "Replace `·width:·'100%'·` with `width:·'100%'`"
prettier/prettier
|
| 337 |
style={{ width: '100%' }} |
| 338 |
value={payload.floor} |
| Error |
Row 339, Column 44: "Replace `·setPayload({·...payload,·floor:·text·})` with `⏎························setPayload({...payload,·floor:·text})⏎······················`"
prettier/prettier
|
| 339 |
onChangeText={text => setPayload({ ...payload, floor: text })} |
| 340 |
label={'Floor'} |
| 341 |
placeholder={'Floor number'} |
| Error |
Row 342, Column 23: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 342 |
value={payload.floor} |
| 343 |
/> |
| 344 |
) : ( |
| 345 |
<TAKE_TO_INPUT_FIELD.InputSecondary |
| Warning |
Row 346, Column 39: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 346, Column 40: "Replace `·marginBottom:·mvs(0),·width:·'49%'·` with `marginBottom:·mvs(0),·width:·'49%'`"
prettier/prettier
|
| 346 |
containerStyle={{ marginBottom: mvs(0), width: '49%' }} |
| Warning |
Row 347, Column 30: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 347, Column 31: "Replace `·width:·'100%'·` with `width:·'100%'`"
prettier/prettier
|
| 347 |
style={{ width: '100%' }} |
| 348 |
value={payload.officeNumber} |
| 349 |
onChangeText={text => |
| Error |
Row 350, Column 37: "Replace `·...payload,·officeNumber:·text·` with `...payload,·officeNumber:·text`"
prettier/prettier
|
| 350 |
setPayload({ ...payload, officeNumber: text }) |
| 351 |
} |
| 352 |
label={'Office number'} |
| 353 |
placeholder={'Office number'} |
| Error |
Row 354, Column 23: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 354 |
value={payload.officeNumber} |
| 355 |
/> |
| 356 |
)} |
| 357 |
</View> |
| 358 |
{payload.addressType === 'Appartment' && ( |
| 359 |
<TAKE_TO_INPUT_FIELD.InputSecondary |
| Error |
Row 360, Column 38: "Replace `·marginBottom:·mvs(0)·` with `marginBottom:·mvs(0)`"
prettier/prettier
|
| 360 |
containerStyle={{ marginBottom: mvs(0) }} |
| Error |
Row 361, Column 29: "Replace `·width:·mvs(161)·` with `width:·mvs(161)`"
prettier/prettier
|
| 361 |
style={{ width: mvs(161) }} |
| 362 |
value={payload.appartmentNumber} |
| 363 |
onChangeText={text => |
| Error |
Row 364, Column 35: "Replace `·...payload,·appartmentNumber:·text·` with `...payload,·appartmentNumber:·text`"
prettier/prettier
|
| 364 |
setPayload({ ...payload, appartmentNumber: text }) |
| 365 |
} |
| 366 |
label={'Apartment number'} |
| 367 |
placeholder={'Apartment number'} |
| Error |
Row 368, Column 21: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 368 |
value={payload.appartmentNumber} |
| 369 |
/> |
| 370 |
)} |
| 371 |
</> |
| 372 |
) : ( |
| 373 |
<View |
| Warning |
Row 374, Column 24: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Error |
Row 374, Column 25: "Replace `·flexDirection:·'row',·justifyContent:·'space-between'·` with `flexDirection:·'row',·justifyContent:·'space-between'`"
prettier/prettier
|
| 374 |
style={{ flexDirection: 'row', justifyContent: 'space-between' }}> |
| 375 |
<TAKE_TO_INPUT_FIELD.InputSecondary |
| Warning |
Row 376, Column 35: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 376, Column 36: "Replace `·marginBottom:·mvs(13),·width:·'49%'·` with `marginBottom:·mvs(13),·width:·'49%'`"
prettier/prettier
|
| 376 |
containerStyle={{ marginBottom: mvs(13), width: '49%' }} |
| Warning |
Row 377, Column 26: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 377, Column 27: "Replace `·width:·'100%'·` with `width:·'100%'`"
prettier/prettier
|
| 377 |
style={{ width: '100%' }} |
| 378 |
value={payload.houseNumber} |
| 379 |
onChangeText={text => |
| Error |
Row 380, Column 33: "Replace `·...payload,·houseNumber:·text·` with `...payload,·houseNumber:·text`"
prettier/prettier
|
| 380 |
setPayload({ ...payload, houseNumber: text }) |
| 381 |
} |
| 382 |
label={'House'} |
| 383 |
placeholder={'House Number'} |
| Error |
Row 384, Column 19: "No duplicate props allowed"
react/jsx-no-duplicate-props
|
| 384 |
value={payload.houseNumber} |
| 385 |
/> |
| 386 |
</View> |
| 387 |
)} |
| Error |
Row 388, Column 1: "Delete `⏎`"
prettier/prettier
|
| 388 |
|
| 389 |
</ScrollView> |
| Error |
Row 390, Column 26: "Insert `·(`"
prettier/prettier
|
| 390 |
{!dismissBtn && |
| Error |
Row 391, Column 49: "Delete `⏎`"
prettier/prettier
|
| 391 |
<View style={styles.confirm_button}> |
| 392 |
|
| 393 |
<Buttons.ButtonPrimary |
| 394 |
onClick={onSaveAddress} |
| 395 |
loading={loading} |
| 396 |
disabled={loading} |
| 397 |
loaderColor={colors.white} |
| 398 |
title={ |
| Warning |
Row 399, Column 37: "Expected '===' and instead saw '=='."
eqeqeq
|
| 399 |
route.params.type == 'deliveryto' |
| 400 |
? 'Save and continue' |
| 401 |
: 'Save Address' |
| 402 |
} |
| 403 |
style={{ |
| 404 |
// marginTop: mvs(85), |
| 405 |
// marginBottom: |
| 406 |
// route.params.type == 'deliveryto' ? mvs(0) : mvs(40), |
| 407 |
backgroundColor: |
| Warning |
Row 408, Column 39: "Expected '===' and instead saw '=='."
eqeqeq
|
| 408 |
route.params.type == 'deliveryto' |
| 409 |
? colors.green |
| 410 |
: colors.primary, |
| 411 |
}} |
| 412 |
/> |
| 413 |
|
| Error |
Row 414, Column 1: "Delete `⏎`"
prettier/prettier
|
| 414 |
|
| Warning |
Row 415, Column 34: "Expected '===' and instead saw '=='."
eqeqeq
|
| 415 |
{route.params.type == 'deliveryto' && ( |
| 416 |
<Buttons.ButtonPrimary |
| 417 |
onClick={onContinue} |
| 418 |
title={'Continue without save'} |
| Error |
Row 419, Column 27: "Replace `·marginTop:·mvs(10)·` with `marginTop:·mvs(10)`"
prettier/prettier
|
| 419 |
style={{ marginTop: mvs(10) }} |
| 420 |
/> |
| 421 |
)} |
| 422 |
</View> |
| Error |
Row 423, Column 11: "Insert `)`"
prettier/prettier
|
| 423 |
} |
| 424 |
</View> |
| 425 |
{visible && ( |
| 426 |
<AddressTypeModal |
| 427 |
visible={visible} |
| 428 |
onClose={setVisible} |
| Warning |
Row 429, Column 28: "'type' is already declared in the upper scope."
no-shadow
|
| Error |
Row 429, Column 48: "Replace `·...payload,·addressType:·type·` with `...payload,·addressType:·type`"
prettier/prettier
|
| 429 |
onChangeValue={type => setPayload({ ...payload, addressType: type })} |
| 430 |
/> |
| 431 |
)} |
| 432 |
|
| Error |
Row 433, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}·inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| 433 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 434 |
</View> |
| 435 |
</KeyboardAvoidingView> |
| 436 |
); |
| 437 |
}; |
| 438 |
|
| 439 |
const mapDispatchToProps = dispatch => ({ |
| 440 |
saveAddressHandler: payload => |
| 441 |
dispatch(TAKE_TO_ACTIONS.addNewAddress(payload)), |
| 442 |
fetchDeliveryAddress: data => |
| 443 |
dispatch(TAKE_TO_ACTIONS.fetchDeliveryAddress(data)), |
| 444 |
}); |
| 445 |
export default connect(null, mapDispatchToProps)(NewAddress); |
| 446 |
|
| 447 |
const styles = StyleSheet.create({ |
| 448 |
CONTAINER: { |
| 449 |
flex: 1, |
| 450 |
backgroundColor: colors.white, |
| 451 |
}, |
| 452 |
BODY: { |
| 453 |
flex: 1, |
| 454 |
}, |
| 455 |
SCROLL: { |
| 456 |
flexGrow: 1, |
| 457 |
paddingHorizontal: mvs(22), |
| 458 |
paddingBottom: mvs(200), |
| 459 |
}, |
| 460 |
LABEL: {}, |
| 461 |
LIST_CONTAINER: { |
| 462 |
paddingBottom: mvs(9), |
| 463 |
marginBottom: mvs(15), |
| 464 |
borderColor: colors.price_border, |
| 465 |
}, |
| 466 |
pointer: { |
| 467 |
height: mvs(21), |
| 468 |
width: mvs(21), |
| 469 |
backgroundColor: colors.primary, |
| 470 |
borderRadius: mvs(21 / 2), |
| 471 |
position: 'absolute', |
| 472 |
alignSelf: 'center', |
| 473 |
shadowColor: '#000', |
| 474 |
shadowOffset: { |
| 475 |
width: 0, |
| 476 |
height: 12, |
| 477 |
}, |
| 478 |
shadowOpacity: 0.58, |
| 479 |
shadowRadius: 16.0, |
| 480 |
|
| 481 |
elevation: 24, |
| 482 |
}, |
| 483 |
confirm_button: { |
| 484 |
position: 'absolute', |
| 485 |
paddingBottom: mvs(40), |
| 486 |
paddingHorizontal: mvs(22), |
| 487 |
backgroundColor: colors.white, |
| 488 |
bottom: 0, |
| 489 |
width: '100%', |
| Error |
Row 490, Column 4: "Insert `,`"
prettier/prettier
|
| Warning |
Row 490, Column 4: "Missing trailing comma."
comma-dangle
|
| 490 |
} |
| 491 |
}); |
| 492 |
|
|
|
|
/src/screens/setting-screens/saved-address.js
|
21 problems (8 errors, 13 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `⏎··ScrollView,·StyleSheet,·View⏎` with `ScrollView,·StyleSheet,·View`"
prettier/prettier
|
| Warning |
Row 3, Column 31: "Missing trailing comma."
comma-dangle
|
| Error |
Row 5, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 10, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 15, Column 10: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 15, Column 19: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 20, Column 9: "'list' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 21, Column 9: "'Plus' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 21, Column 23: "["plus"] is better written in dot notation."
dot-notation
|
| Error |
Row 23, Column 1: "Replace `⏎··React.useEffect(()=>` with `··React.useEffect(()·=>·`"
prettier/prettier
|
| Error |
Row 25, Column 17: "Replace `"savedAddress:",·addressesList)` with `'savedAddress:',·addressesList);`"
prettier/prettier
|
| Warning |
Row 25, Column 17: "Strings must use singlequote."
quotes
|
| Warning |
Row 25, Column 48: "Missing semicolon."
semi
|
| Error |
Row 26, Column 5: "Replace `[])⏎` with `·[]);`"
prettier/prettier
|
| Error |
Row 26, Column 5: "React Hook React.useEffect has a missing dependency: 'addressesList'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 26, Column 8: "Missing semicolon."
semi
|
| Warning |
Row 63, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 70, Column 20: "Strings must use singlequote."
quotes
|
| Warning |
Row 71, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 76, Column 16: "Inline style: { position: 'absolute', width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 96, Column 57: "Delete `⏎`"
prettier/prettier
|
| Line |
Source |
| 1 |
import React from 'react'; |
| Error |
Row 2, Column 9: "Replace `⏎··ScrollView,·StyleSheet,·View⏎` with `ScrollView,·StyleSheet,·View`"
prettier/prettier
|
| 2 |
import { |
| Warning |
Row 3, Column 31: "Missing trailing comma."
comma-dangle
|
| 3 |
ScrollView, StyleSheet, View |
| 4 |
} from 'react-native'; |
| Error |
Row 5, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 5 |
import { connect } from 'react-redux'; |
| 6 |
import * as Images from '../../../resource/assets/bank-info-icons'; |
| 7 |
import Buttons from '../../components/atoms/Button'; |
| 8 |
import Header from '../../components/molecules/header/header-1x'; |
| 9 |
import colors from '../../config/colors'; |
| Error |
Row 10, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 10 |
import { mvs } from '../../config/metrices'; |
| 11 |
import Regular from '../../presentation/typography/regular-text'; |
| 12 |
|
| 13 |
const SavedAddress = props => { |
| 14 |
const {addressesList} = props; |
| Warning |
Row 15, Column 10: "'payload' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 15, Column 19: "'setPayload' is assigned a value but never used."
no-unused-vars
|
| 15 |
const [payload, setPayload] = React.useState({ |
| 16 |
isPromotionEmail: true, |
| 17 |
isOrderEmail: true, |
| 18 |
isSms: false, |
| 19 |
}); |
| Warning |
Row 20, Column 9: "'list' is assigned a value but never used."
no-unused-vars
|
| 20 |
const list = [0, 1, 2]; |
| Warning |
Row 21, Column 9: "'Plus' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 21, Column 23: "["plus"] is better written in dot notation."
dot-notation
|
| 21 |
const Plus = Images['plus']; |
| 22 |
|
| Error |
Row 23, Column 1: "Replace `⏎··React.useEffect(()=>` with `··React.useEffect(()·=>·`"
prettier/prettier
|
| 23 |
|
| 24 |
React.useEffect(()=>{ |
| Error |
Row 25, Column 17: "Replace `"savedAddress:",·addressesList)` with `'savedAddress:',·addressesList);`"
prettier/prettier
|
| Warning |
Row 25, Column 17: "Strings must use singlequote."
quotes
|
| Warning |
Row 25, Column 48: "Missing semicolon."
semi
|
| 25 |
console.log("savedAddress:", addressesList) |
| Error |
Row 26, Column 5: "Replace `[])⏎` with `·[]);`"
prettier/prettier
|
| Error |
Row 26, Column 5: "React Hook React.useEffect has a missing dependency: 'addressesList'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 26, Column 8: "Missing semicolon."
semi
|
| 26 |
},[]) |
| 27 |
|
| 28 |
|
| 29 |
return ( |
| 30 |
<View style={styles.CONTAINER}> |
| 31 |
<Header |
| 32 |
{...props} |
| 33 |
title="Saved Addresses" |
| 34 |
allowBackBtn |
| 35 |
userIcon={false} |
| 36 |
/> |
| 37 |
{addressesList?.length > 0 ? ( |
| 38 |
<> |
| 39 |
<ScrollView contentContainerStyle={styles.SCROLL}> |
| 40 |
<View style={styles.BODY}> |
| 41 |
{addressesList.map((ele, index) => ( |
| 42 |
<View |
| 43 |
key={index} |
| 44 |
style={{ |
| 45 |
...styles.LIST_CONTAINER, |
| 46 |
}}> |
| 47 |
<Regular |
| 48 |
label={`${ele?.name} (${ele.type})`} |
| 49 |
style={{...styles.LABEL, color: colors.primary}} |
| 50 |
/> |
| 51 |
<Regular label={ele?.address} style={styles.LABEL} /> |
| 52 |
{/* <Regular |
| 53 |
label={`Mobile Number +961 3701816`} |
| 54 |
style={styles.LABEL} |
| 55 |
/> */} |
| 56 |
</View> |
| 57 |
))} |
| 58 |
</View> |
| 59 |
</ScrollView> |
| 60 |
</> |
| 61 |
) : ( |
| 62 |
<View |
| Warning |
Row 63, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 63 |
style={{ |
| 64 |
flex: 1, |
| 65 |
justifyContent: 'center', |
| 66 |
alignItems: 'center', |
| 67 |
padding: mvs(20), |
| 68 |
}}> |
| 69 |
<Regular |
| Warning |
Row 70, Column 20: "Strings must use singlequote."
quotes
|
| 70 |
label={`You don't have any saved address please add your address.`} |
| Warning |
Row 71, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 71 |
style={{textAlign: 'center'}} |
| 72 |
/> |
| 73 |
</View> |
| 74 |
)} |
| 75 |
<View |
| Warning |
Row 76, Column 16: "Inline style: { position: 'absolute', width: '100%' }"
react-native/no-inline-styles
|
| 76 |
style={{ |
| 77 |
position: 'absolute', |
| 78 |
bottom: mvs(0), |
| 79 |
paddingHorizontal: mvs(22), |
| 80 |
paddingBottom: mvs(40), |
| 81 |
width: '100%', |
| 82 |
backgroundColor: colors.white, |
| 83 |
}}> |
| 84 |
<Buttons.ButtonPrimary |
| 85 |
title={'Add Address'} |
| 86 |
onClick={() => |
| 87 |
props.navigation.navigate('newaddress', {type: 'savedaddress'}) |
| 88 |
} |
| 89 |
/> |
| 90 |
</View> |
| 91 |
</View> |
| 92 |
); |
| 93 |
}; |
| 94 |
const mapStateToProps = state => { |
| 95 |
return { |
| Error |
Row 96, Column 57: "Delete `⏎`"
prettier/prettier
|
| 96 |
addressesList: state.auth.userInfo?.addresses || [], |
| 97 |
|
| 98 |
}; |
| 99 |
}; |
| 100 |
|
| 101 |
export default connect(mapStateToProps, {})(SavedAddress); |
| 102 |
const styles = StyleSheet.create({ |
| 103 |
CONTAINER: { |
| 104 |
flex: 1, |
| 105 |
backgroundColor: colors.white, |
| 106 |
}, |
| 107 |
BODY: { |
| 108 |
flex: 1, |
| 109 |
}, |
| 110 |
SCROLL: { |
| 111 |
flexGrow: 1, |
| 112 |
paddingTop: mvs(6), |
| 113 |
paddingHorizontal: mvs(22), |
| 114 |
paddingBottom: mvs(90), |
| 115 |
}, |
| 116 |
LABEL: {}, |
| 117 |
LIST_CONTAINER: { |
| 118 |
paddingBottom: mvs(9), |
| 119 |
marginBottom: mvs(15), |
| 120 |
borderColor: colors.price_border, |
| 121 |
backgroundColor: colors.secondary, |
| 122 |
padding: mvs(10), |
| 123 |
borderRadius: mvs(10), |
| 124 |
}, |
| 125 |
PLUS: { |
| 126 |
position: 'absolute', |
| 127 |
bottom: mvs(40), |
| 128 |
alignSelf: 'center', |
| 129 |
}, |
| 130 |
}); |
| 131 |
|
|
|
|
/src/screens/setting-screens/select-address.js
|
74 problems (48 errors, 26 warnings)
|
| Severity |
Rule |
| Error |
Row 3, Column 9: "Replace `·Keyboard,·ScrollView,·StyleSheet,·TouchableOpacity,·View·` with `⏎··Keyboard,⏎··ScrollView,⏎··StyleSheet,⏎··TouchableOpacity,⏎··View,⏎`"
prettier/prettier
|
| Error |
Row 5, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 8, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| Error |
Row 13, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 17, Column 10: "'visible' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 17, Column 19: "'setVisible' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 18, Column 10: "Replace `·fetchShopAddress·` with `fetchShopAddress`"
prettier/prettier
|
| Error |
Row 19, Column 60: "Insert `;`"
prettier/prettier
|
| Warning |
Row 19, Column 60: "Missing semicolon."
semi
|
| Warning |
Row 21, Column 18: "'setRegion' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 21, Column 46: "Replace `props.route.params.region||{·⏎` with `⏎····props.route.params.region·||·{⏎·`"
prettier/prettier
|
| Warning |
Row 21, Column 71: "Operator '||' must be spaced."
space-infix-ops
|
| Warning |
Row 21, Column 74: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 23, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 24, Column 5: "Insert `··`"
prettier/prettier
|
| Error |
Row 25, Column 1: "Replace `····longitudeDelta:·0.0121,}` with `······longitudeDelta:·0.0121,⏎····},⏎··`"
prettier/prettier
|
| Warning |
Row 25, Column 27: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 51, Column 58: "Insert `,`"
prettier/prettier
|
| Warning |
Row 51, Column 58: "Missing trailing comma."
comma-dangle
|
| Error |
Row 64, Column 6: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 80, Column 24: "Insert `;`"
prettier/prettier
|
| Warning |
Row 80, Column 24: "Missing semicolon."
semi
|
| Error |
Row 84, Column 25: "Insert `;`"
prettier/prettier
|
| Warning |
Row 84, Column 25: "Missing semicolon."
semi
|
| Error |
Row 91, Column 20: "Replace `·showsVerticalScrollIndicator={false}` with `⏎··········showsVerticalScrollIndicator={false}⏎·········`"
prettier/prettier
|
| Error |
Row 93, Column 11: "Replace `onPress={()=>` with `··onPress={()·=>·`"
prettier/prettier
|
| Warning |
Row 96, Column 20: "Inline style: { overflow: 'hidden', justifyContent: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 107, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 107, Column 23: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| Warning |
Row 117, Column 29: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 117, Column 30: "Replace `·marginBottom:·mvs(13),·width:·'100%'·` with `marginBottom:·mvs(13),·width:·'100%'`"
prettier/prettier
|
| Warning |
Row 118, Column 20: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 118, Column 21: "Replace `·width:·'100%'·` with `width:·'100%'`"
prettier/prettier
|
| Error |
Row 120, Column 27: "Replace `·...payload,·street_address:·text·` with `...payload,·street_address:·text`"
prettier/prettier
|
| Warning |
Row 126, Column 24: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Error |
Row 126, Column 25: "Replace `·flexDirection:·'row',·justifyContent:·'space-between'·` with `flexDirection:·'row',·justifyContent:·'space-between'`"
prettier/prettier
|
| Error |
Row 128, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Warning |
Row 130, Column 31: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 130, Column 32: "Replace `·marginBottom:·mvs(13),·width:·'49%'·` with `marginBottom:·mvs(13),·width:·'49%'`"
prettier/prettier
|
| Warning |
Row 131, Column 22: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 131, Column 23: "Replace `·width:·'100%'·` with `width:·'100%'`"
prettier/prettier
|
| Error |
Row 134, Column 29: "Replace `·...payload,·street_number:·text·` with `...payload,·street_number:·text`"
prettier/prettier
|
| Error |
Row 140, Column 13: "Insert `··`"
prettier/prettier
|
| Warning |
Row 142, Column 31: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 142, Column 32: "Replace `·marginBottom:·mvs(13),·width:·'49%'·` with `marginBottom:·mvs(13),·width:·'49%'`"
prettier/prettier
|
| Warning |
Row 143, Column 22: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 143, Column 23: "Replace `·width:·'100%'·` with `width:·'100%'`"
prettier/prettier
|
| Error |
Row 145, Column 49: "Replace `·...payload,·area:·text·` with `...payload,·area:·text`"
prettier/prettier
|
| Warning |
Row 151, Column 24: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Error |
Row 151, Column 25: "Replace `·flexDirection:·'row',·justifyContent:·'space-between'·` with `flexDirection:·'row',·justifyContent:·'space-between'`"
prettier/prettier
|
| Error |
Row 153, Column 1: "Insert `··`"
prettier/prettier
|
| Warning |
Row 154, Column 31: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 154, Column 32: "Replace `·marginBottom:·mvs(13),·width:·'49%'·` with `marginBottom:·mvs(13),·width:·'49%'`"
prettier/prettier
|
| Warning |
Row 155, Column 22: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 155, Column 23: "Replace `·width:·'100%'·` with `width:·'100%'`"
prettier/prettier
|
| Error |
Row 156, Column 49: "Replace `·...payload,·city:·text·` with `...payload,·city:·text`"
prettier/prettier
|
| Error |
Row 163, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Warning |
Row 164, Column 31: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 164, Column 32: "Replace `·marginBottom:·mvs(13),·width:·'49%'·` with `marginBottom:·mvs(13),·width:·'49%'`"
prettier/prettier
|
| Warning |
Row 165, Column 22: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 165, Column 23: "Replace `·width:·'100%'·` with `width:·'100%'`"
prettier/prettier
|
| Error |
Row 166, Column 49: "Replace `·...payload,·houseNumber:·text·` with `...payload,·houseNumber:·text`"
prettier/prettier
|
| Error |
Row 174, Column 1: "Delete `⏎⏎`"
prettier/prettier
|
| Error |
Row 178, Column 1: "Replace `{!dismissBtn&&` with `··········{!dismissBtn·&&·(`"
prettier/prettier
|
| Warning |
Row 178, Column 13: "Operator '&&' must be spaced."
space-infix-ops
|
| Error |
Row 179, Column 1: "Replace `········`"
prettier/prettier
|
| Error |
Row 182, Column 9: "Replace `/>⏎` with `··)`"
prettier/prettier
|
| Error |
Row 186, Column 21: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎········translucent⏎········activeStatusBarStyle={'light-content'}⏎········inactiveStatusBarBackgroundColor={colors.primary}⏎········ref={alertRef}⏎·····`"
prettier/prettier
|
| Error |
Row 213, Column 29: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 242, Column 23: "Insert `·`"
prettier/prettier
|
| Error |
Row 243, Column 12: "Insert `·`"
prettier/prettier
|
| Error |
Row 244, Column 11: "Insert `·`"
prettier/prettier
|
| Error |
Row 245, Column 4: "Insert `,`"
prettier/prettier
|
| Warning |
Row 245, Column 4: "Missing trailing comma."
comma-dangle
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 2 |
import React from 'react'; |
| Error |
Row 3, Column 9: "Replace `·Keyboard,·ScrollView,·StyleSheet,·TouchableOpacity,·View·` with `⏎··Keyboard,⏎··ScrollView,⏎··StyleSheet,⏎··TouchableOpacity,⏎··View,⏎`"
prettier/prettier
|
| 3 |
import { Keyboard, ScrollView, StyleSheet, TouchableOpacity, View } from 'react-native'; |
| 4 |
import MapView from 'react-native-maps'; |
| Error |
Row 5, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 5 |
import { connect } from 'react-redux'; |
| 6 |
import UI_API from '../../../../common/store/services'; |
| 7 |
import TAKE_TO_CONSTANT from '../../../../common/utils/utils'; |
| Error |
Row 8, Column 9: "Replace `·TAKE_TO_INPUT_FIELD·` with `TAKE_TO_INPUT_FIELD`"
prettier/prettier
|
| 8 |
import { TAKE_TO_INPUT_FIELD } from '../../components/atoms'; |
| 9 |
import Buttons from '../../components/atoms/Button'; |
| 10 |
import Header from '../../components/molecules/header/header-1x'; |
| 11 |
import colors from '../../config/colors'; |
| 12 |
import DropdownAlert from 'react-native-dropdownalert'; |
| Error |
Row 13, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 13 |
import { mvs } from '../../config/metrices'; |
| 14 |
|
| 15 |
const SelectAddress = props => { |
| 16 |
const alertRef = React.useRef(null); |
| Warning |
Row 17, Column 10: "'visible' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 17, Column 19: "'setVisible' is assigned a value but never used."
no-unused-vars
|
| 17 |
const [visible, setVisible] = React.useState(false); |
| Error |
Row 18, Column 10: "Replace `·fetchShopAddress·` with `fetchShopAddress`"
prettier/prettier
|
| 18 |
const { fetchShopAddress } = props; |
| Error |
Row 19, Column 60: "Insert `;`"
prettier/prettier
|
| Warning |
Row 19, Column 60: "Missing semicolon."
semi
|
| 19 |
const [dismissBtn, setDismissBtn] = React.useState(false) |
| 20 |
|
| Warning |
Row 21, Column 18: "'setRegion' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 21, Column 46: "Replace `props.route.params.region||{·⏎` with `⏎····props.route.params.region·||·{⏎·`"
prettier/prettier
|
| Warning |
Row 21, Column 71: "Operator '||' must be spaced."
space-infix-ops
|
| Warning |
Row 21, Column 74: "Trailing spaces not allowed."
no-trailing-spaces
|
| 21 |
const [region, setRegion] = React.useState(props.route.params.region||{ |
| 22 |
latitude: 37.78825, |
| Error |
Row 23, Column 1: "Insert `··`"
prettier/prettier
|
| 23 |
latitudeDelta: 0.015, |
| Error |
Row 24, Column 5: "Insert `··`"
prettier/prettier
|
| 24 |
longitude: -122.4324, |
| Error |
Row 25, Column 1: "Replace `····longitudeDelta:·0.0121,}` with `······longitudeDelta:·0.0121,⏎····},⏎··`"
prettier/prettier
|
| Warning |
Row 25, Column 27: "Unexpected trailing comma."
comma-dangle
|
| 25 |
longitudeDelta: 0.0121,}); |
| 26 |
|
| 27 |
const [payload, setPayload] = React.useState({ |
| 28 |
...props.route.params.address, |
| 29 |
street_address: '', |
| 30 |
}); |
| 31 |
|
| 32 |
// React.useEffect(() => { |
| 33 |
// console.log("selectedAddress:", payload) |
| 34 |
// }, []) |
| 35 |
|
| 36 |
const onConfirm = async () => { |
| 37 |
// console.log('payload:', payload); |
| 38 |
try { |
| 39 |
const response = await TAKE_TO_CONSTANT.shopAddressValidation(payload); |
| 40 |
if (response.status) { |
| 41 |
fetchShopAddress({ |
| 42 |
street_address: payload?.street_address, |
| 43 |
street: payload?.street_number, |
| 44 |
block: payload?.area, |
| 45 |
city: payload?.city, |
| 46 |
country: payload?.country, |
| 47 |
latitude: region?.latitude, |
| 48 |
longitude: region?.longitude, |
| 49 |
place_id: payload?.place_id, |
| 50 |
fulladdress: payload?.fulladdress, |
| Error |
Row 51, Column 58: "Insert `,`"
prettier/prettier
|
| Warning |
Row 51, Column 58: "Missing trailing comma."
comma-dangle
|
| 51 |
country_short_name: payload?.country_short_name |
| 52 |
}); |
| 53 |
props.navigation.pop(2); |
| 54 |
} else { |
| 55 |
throw new Error(response.message); |
| 56 |
} |
| 57 |
} catch (error) { |
| 58 |
//alert(UI_API._returnError(error)); |
| 59 |
alertRef.current.alertWithType( |
| 60 |
'error', |
| 61 |
'Error', |
| 62 |
UI_API._returnError(error), |
| 63 |
); |
| Error |
Row 64, Column 6: "Delete `⏎`"
prettier/prettier
|
| 64 |
} |
| 65 |
|
| 66 |
}; |
| 67 |
|
| 68 |
React.useEffect(() => { |
| 69 |
Keyboard.addListener('keyboardDidShow', _keyboardDidShow); |
| 70 |
Keyboard.addListener('keyboardDidHide', _keyboardDidHide); |
| 71 |
|
| 72 |
// cleanup function |
| 73 |
return () => { |
| 74 |
Keyboard.removeListener('keyboardDidShow', _keyboardDidShow); |
| 75 |
Keyboard.removeListener('keyboardDidHide', _keyboardDidHide); |
| 76 |
}; |
| 77 |
}, []); |
| 78 |
|
| 79 |
const _keyboardDidShow = () => { |
| Error |
Row 80, Column 24: "Insert `;`"
prettier/prettier
|
| Warning |
Row 80, Column 24: "Missing semicolon."
semi
|
| 80 |
setDismissBtn(true) |
| 81 |
}; |
| 82 |
|
| 83 |
const _keyboardDidHide = () => { |
| Error |
Row 84, Column 25: "Insert `;`"
prettier/prettier
|
| Warning |
Row 84, Column 25: "Missing semicolon."
semi
|
| 84 |
setDismissBtn(false) |
| 85 |
}; |
| 86 |
|
| 87 |
return ( |
| 88 |
<View style={styles.CONTAINER}> |
| 89 |
<Header {...props} title="Shop Address" allowBackBtn userIcon={false} /> |
| 90 |
<View style={styles.BODY}> |
| Error |
Row 91, Column 20: "Replace `·showsVerticalScrollIndicator={false}` with `⏎··········showsVerticalScrollIndicator={false}⏎·········`"
prettier/prettier
|
| 91 |
<ScrollView showsVerticalScrollIndicator={false} contentContainerStyle={styles.SCROLL}> |
| 92 |
<TouchableOpacity |
| Error |
Row 93, Column 11: "Replace `onPress={()=>` with `··onPress={()·=>·`"
prettier/prettier
|
| 93 |
onPress={()=>props.navigation.pop()} |
| 94 |
activeOpacity={0.5} |
| 95 |
//onPress={() => props.navigation.navigate('deliverylocation')} |
| Warning |
Row 96, Column 20: "Inline style: { overflow: 'hidden', justifyContent: 'center' }"
react-native/no-inline-styles
|
| 96 |
style={{ |
| 97 |
backgroundColor: colors.secondary, |
| 98 |
height: mvs(95), |
| 99 |
borderRadius: mvs(20), |
| 100 |
marginBottom: mvs(20), |
| 101 |
overflow: 'hidden', |
| 102 |
justifyContent: 'center', |
| 103 |
}}> |
| 104 |
<MapView |
| 105 |
initialRegion={region} |
| 106 |
scrollEnabled={false} |
| Warning |
Row 107, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 107, Column 23: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| 107 |
style={{ flex: 1 }} |
| 108 |
zoomEnabled={false} |
| 109 |
showsMyLocationButton={false} |
| 110 |
/> |
| 111 |
|
| 112 |
<View style={styles.pointer} /> |
| 113 |
</TouchableOpacity> |
| 114 |
|
| 115 |
<TAKE_TO_INPUT_FIELD.InputSecondary |
| 116 |
placeholderColor={colors.doted} |
| Warning |
Row 117, Column 29: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 117, Column 30: "Replace `·marginBottom:·mvs(13),·width:·'100%'·` with `marginBottom:·mvs(13),·width:·'100%'`"
prettier/prettier
|
| 117 |
containerStyle={{ marginBottom: mvs(13), width: '100%' }} |
| Warning |
Row 118, Column 20: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 118, Column 21: "Replace `·width:·'100%'·` with `width:·'100%'`"
prettier/prettier
|
| 118 |
style={{ width: '100%' }} |
| 119 |
onChangeText={text => |
| Error |
Row 120, Column 27: "Replace `·...payload,·street_address:·text·` with `...payload,·street_address:·text`"
prettier/prettier
|
| 120 |
setPayload({ ...payload, street_address: text }) |
| 121 |
} |
| 122 |
label={'Address'} |
| 123 |
placeholder={'Floor/Building/Appartment etc...'} |
| 124 |
value={payload.street_address} |
| 125 |
/> |
| Warning |
Row 126, Column 24: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Error |
Row 126, Column 25: "Replace `·flexDirection:·'row',·justifyContent:·'space-between'·` with `flexDirection:·'row',·justifyContent:·'space-between'`"
prettier/prettier
|
| 126 |
<View style={{ flexDirection: 'row', justifyContent: 'space-between' }}> |
| 127 |
<TAKE_TO_INPUT_FIELD.InputSecondary |
| Error |
Row 128, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 128 |
isRequired |
| 129 |
placeholderColor={colors.doted} |
| Warning |
Row 130, Column 31: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 130, Column 32: "Replace `·marginBottom:·mvs(13),·width:·'49%'·` with `marginBottom:·mvs(13),·width:·'49%'`"
prettier/prettier
|
| 130 |
containerStyle={{ marginBottom: mvs(13), width: '49%' }} |
| Warning |
Row 131, Column 22: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 131, Column 23: "Replace `·width:·'100%'·` with `width:·'100%'`"
prettier/prettier
|
| 131 |
style={{ width: '100%' }} |
| 132 |
value={payload.street_number} |
| 133 |
onChangeText={text => |
| Error |
Row 134, Column 29: "Replace `·...payload,·street_number:·text·` with `...payload,·street_number:·text`"
prettier/prettier
|
| 134 |
setPayload({ ...payload, street_number: text }) |
| 135 |
} |
| 136 |
label={'Street'} |
| 137 |
placeholder={'Street/Road'} |
| 138 |
/> |
| 139 |
<TAKE_TO_INPUT_FIELD.InputSecondary |
| Error |
Row 140, Column 13: "Insert `··`"
prettier/prettier
|
| 140 |
isRequired |
| 141 |
placeholderColor={colors.doted} |
| Warning |
Row 142, Column 31: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 142, Column 32: "Replace `·marginBottom:·mvs(13),·width:·'49%'·` with `marginBottom:·mvs(13),·width:·'49%'`"
prettier/prettier
|
| 142 |
containerStyle={{ marginBottom: mvs(13), width: '49%' }} |
| Warning |
Row 143, Column 22: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 143, Column 23: "Replace `·width:·'100%'·` with `width:·'100%'`"
prettier/prettier
|
| 143 |
style={{ width: '100%' }} |
| 144 |
value={payload.area} |
| Error |
Row 145, Column 49: "Replace `·...payload,·area:·text·` with `...payload,·area:·text`"
prettier/prettier
|
| 145 |
onChangeText={text => setPayload({ ...payload, area: text })} |
| 146 |
label={'Area'} |
| 147 |
placeholder={'Area/Block'} |
| 148 |
/> |
| 149 |
</View> |
| 150 |
|
| Warning |
Row 151, Column 24: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Error |
Row 151, Column 25: "Replace `·flexDirection:·'row',·justifyContent:·'space-between'·` with `flexDirection:·'row',·justifyContent:·'space-between'`"
prettier/prettier
|
| 151 |
<View style={{ flexDirection: 'row', justifyContent: 'space-between' }}> |
| 152 |
<TAKE_TO_INPUT_FIELD.InputSecondary |
| Error |
Row 153, Column 1: "Insert `··`"
prettier/prettier
|
| 153 |
isRequired |
| Warning |
Row 154, Column 31: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 154, Column 32: "Replace `·marginBottom:·mvs(13),·width:·'49%'·` with `marginBottom:·mvs(13),·width:·'49%'`"
prettier/prettier
|
| 154 |
containerStyle={{ marginBottom: mvs(13), width: '49%' }} |
| Warning |
Row 155, Column 22: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 155, Column 23: "Replace `·width:·'100%'·` with `width:·'100%'`"
prettier/prettier
|
| 155 |
style={{ width: '100%' }} |
| Error |
Row 156, Column 49: "Replace `·...payload,·city:·text·` with `...payload,·city:·text`"
prettier/prettier
|
| 156 |
onChangeText={text => setPayload({ ...payload, city: text })} |
| 157 |
label={'City'} |
| 158 |
placeholder={'City'} |
| 159 |
placeholderColor={colors.doted} |
| 160 |
value={payload.city} |
| 161 |
/> |
| 162 |
<TAKE_TO_INPUT_FIELD.InputSecondary |
| Error |
Row 163, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 163 |
isRequired |
| Warning |
Row 164, Column 31: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 164, Column 32: "Replace `·marginBottom:·mvs(13),·width:·'49%'·` with `marginBottom:·mvs(13),·width:·'49%'`"
prettier/prettier
|
| 164 |
containerStyle={{ marginBottom: mvs(13), width: '49%' }} |
| Warning |
Row 165, Column 22: "Inline style: { width: '100%' }"
react-native/no-inline-styles
|
| Error |
Row 165, Column 23: "Replace `·width:·'100%'·` with `width:·'100%'`"
prettier/prettier
|
| 165 |
style={{ width: '100%' }} |
| Error |
Row 166, Column 49: "Replace `·...payload,·houseNumber:·text·` with `...payload,·houseNumber:·text`"
prettier/prettier
|
| 166 |
onChangeText={text => setPayload({ ...payload, houseNumber: text })} |
| 167 |
label={'Country'} |
| 168 |
placeholder={'Country'} |
| 169 |
placeholderColor={colors.doted} |
| 170 |
value={payload.country} |
| 171 |
editable={false} |
| 172 |
/> |
| 173 |
</View> |
| Error |
Row 174, Column 1: "Delete `⏎⏎`"
prettier/prettier
|
| 174 |
|
| 175 |
|
| 176 |
</ScrollView> |
| 177 |
<View style={styles.confirm_button}> |
| Error |
Row 178, Column 1: "Replace `{!dismissBtn&&` with `··········{!dismissBtn·&&·(`"
prettier/prettier
|
| Warning |
Row 178, Column 13: "Operator '&&' must be spaced."
space-infix-ops
|
| 178 |
{!dismissBtn&& |
| Error |
Row 179, Column 1: "Replace `········`"
prettier/prettier
|
| 179 |
<Buttons.ButtonPrimary |
| 180 |
onClick={onConfirm} |
| 181 |
title={'Confirm'} |
| Error |
Row 182, Column 9: "Replace `/>⏎` with `··)`"
prettier/prettier
|
| 182 |
/> |
| 183 |
} |
| 184 |
</View> |
| 185 |
</View> |
| Error |
Row 186, Column 21: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎········translucent⏎········activeStatusBarStyle={'light-content'}⏎········inactiveStatusBarBackgroundColor={colors.primary}⏎········ref={alertRef}⏎·····`"
prettier/prettier
|
| 186 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 187 |
</View> |
| 188 |
); |
| 189 |
}; |
| 190 |
|
| 191 |
const mapStateToProps = state => { |
| 192 |
return { |
| 193 |
selectedShopAddress: state.common.selectedShopAddress, |
| 194 |
}; |
| 195 |
}; |
| 196 |
const mapDispatchToProps = dispatch => ({ |
| 197 |
fetchShopAddress: data => dispatch(TAKE_TO_ACTIONS.fetchShopAddress(data)), |
| 198 |
}); |
| 199 |
|
| 200 |
export default connect(mapStateToProps, mapDispatchToProps)(SelectAddress); |
| 201 |
|
| 202 |
const styles = StyleSheet.create({ |
| 203 |
CONTAINER: { |
| 204 |
flex: 1, |
| 205 |
backgroundColor: colors.white, |
| 206 |
}, |
| 207 |
BODY: { |
| 208 |
flex: 1, |
| 209 |
}, |
| 210 |
SCROLL: { |
| 211 |
flexGrow: 1, |
| 212 |
paddingHorizontal: mvs(22), |
| Error |
Row 213, Column 29: "Delete `⏎`"
prettier/prettier
|
| 213 |
paddingBottom: mvs(120), |
| 214 |
|
| 215 |
}, |
| 216 |
LABEL: {}, |
| 217 |
LIST_CONTAINER: { |
| 218 |
paddingBottom: mvs(9), |
| 219 |
marginBottom: mvs(15), |
| 220 |
borderColor: colors.price_border, |
| 221 |
}, |
| 222 |
pointer: { |
| 223 |
height: mvs(21), |
| 224 |
width: mvs(21), |
| 225 |
backgroundColor: colors.primary, |
| 226 |
borderRadius: mvs(21 / 2), |
| 227 |
position: 'absolute', |
| 228 |
alignSelf: 'center', |
| 229 |
shadowColor: '#000', |
| 230 |
shadowOffset: { |
| 231 |
width: 0, |
| 232 |
height: 12, |
| 233 |
}, |
| 234 |
shadowOpacity: 0.58, |
| 235 |
shadowRadius: 16.0, |
| 236 |
|
| 237 |
elevation: 24, |
| 238 |
}, |
| 239 |
confirm_button: { |
| 240 |
position: 'absolute', |
| 241 |
paddingBottom: mvs(40), |
| Error |
Row 242, Column 23: "Insert `·`"
prettier/prettier
|
| 242 |
paddingHorizontal:mvs(22), |
| Error |
Row 243, Column 12: "Insert `·`"
prettier/prettier
|
| 243 |
bottom:0, |
| Error |
Row 244, Column 11: "Insert `·`"
prettier/prettier
|
| 244 |
width:'100%', |
| Error |
Row 245, Column 4: "Insert `,`"
prettier/prettier
|
| Warning |
Row 245, Column 4: "Missing trailing comma."
comma-dangle
|
| 245 |
} |
| 246 |
}); |
| 247 |
|
|
|
|
/src/screens/setting-screens/settings.js
|
81 problems (58 errors, 23 warnings)
|
| Severity |
Rule |
| Warning |
Row 3, Column 8: "'AsyncStorage' is defined but never used."
no-unused-vars
|
| Warning |
Row 4, Column 8: "'GPSState' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 46: "Insert `;`"
prettier/prettier
|
| Warning |
Row 4, Column 46: "Missing semicolon."
semi
|
| Error |
Row 5, Column 16: "Replace `·useState,·useEffect·` with `useState,·useEffect`"
prettier/prettier
|
| Error |
Row 6, Column 9: "Replace `·Alert,·AppState,·Linking,·PermissionsAndroid,·ScrollView,·StyleSheet,·View·` with `⏎··Alert,⏎··AppState,⏎··Linking,⏎··PermissionsAndroid,⏎··ScrollView,⏎··StyleSheet,⏎··View,⏎`"
prettier/prettier
|
| Warning |
Row 6, Column 10: "'Alert' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 36: "'PermissionsAndroid' is defined but never used."
no-unused-vars
|
| Error |
Row 8, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 15, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 19, Column 10: "Replace `·notifications,·navigation,·updateUserProfile,·profileData·` with `notifications,·navigation,·updateUserProfile,·profileData`"
prettier/prettier
|
| Warning |
Row 19, Column 26: "'navigation' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 20, Column 34: "Insert `·`"
prettier/prettier
|
| Error |
Row 29, Column 26: "Replace `setLocationService]=` with `·setLocationService]·=·`"
prettier/prettier
|
| Warning |
Row 29, Column 26: "'setLocationService' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 29, Column 45: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 38, Column 32: "Replace `·[key]:·value·?·1·:·0·` with `[key]:·value·?·1·:·0`"
prettier/prettier
|
| Error |
Row 39, Column 24: "Insert `;`"
prettier/prettier
|
| Warning |
Row 39, Column 24: "Missing semicolon."
semi
|
| Error |
Row 97, Column 42: "Insert `·`"
prettier/prettier
|
| Error |
Row 98, Column 21: "Insert `;`"
prettier/prettier
|
| Warning |
Row 98, Column 21: "Missing semicolon."
semi
|
| Warning |
Row 103, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 106, Column 11: "Replace `·setPayload({·...payload,·location_service:·flag·` with `setPayload({...payload,·location_service:·flag`"
prettier/prettier
|
| Error |
Row 112, Column 1: "Insert `·`"
prettier/prettier
|
| Error |
Row 113, Column 10: "Replace `setPayload({·...payload,·location_service:·flag·` with `·setPayload({...payload,·location_service:·flag`"
prettier/prettier
|
| Error |
Row 124, Column 6: "Delete `⏎⏎`"
prettier/prettier
|
| Error |
Row 127, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 127, Column 4: "Missing semicolon."
semi
|
| Warning |
Row 130, Column 10: "'appStateVisible' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 133, Column 52: "Replace `"change",` with `⏎······'change',⏎·····`"
prettier/prettier
|
| Warning |
Row 133, Column 52: "Strings must use singlequote."
quotes
|
| Error |
Row 134, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 135, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 136, Column 1: "Replace `········nextAppState·===·"active"` with `··········nextAppState·===·'active'`"
prettier/prettier
|
| Warning |
Row 136, Column 26: "Strings must use singlequote."
quotes
|
| Error |
Row 137, Column 1: "Replace `······` with `········`"
prettier/prettier
|
| Error |
Row 138, Column 1: "Replace `········const·providers=await·` with `··········const·providers·=·await`"
prettier/prettier
|
| Warning |
Row 138, Column 24: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 139, Column 9: "Insert `··`"
prettier/prettier
|
| Error |
Row 140, Column 1: "Replace `········console.log("App·has·come·to·the·foreground!"` with `··········console.log('App·has·come·to·the·foreground!'`"
prettier/prettier
|
| Warning |
Row 140, Column 21: "Strings must use singlequote."
quotes
|
| Error |
Row 141, Column 9: "Replace `if·(locationService||` with `··if·(locationService·||·`"
prettier/prettier
|
| Warning |
Row 141, Column 28: "Operator '||' must be spaced."
space-infix-ops
|
| Error |
Row 142, Column 1: "Replace `··········const·permissionStatus·=·await·UI_API._checkPermissions(alertRef,·Linking)` with `············const·permissionStatus·=·await·UI_API._checkPermissions(⏎··············alertRef,⏎··············Linking,⏎············);`"
prettier/prettier
|
| Warning |
Row 142, Column 85: "Missing semicolon."
semi
|
| Error |
Row 143, Column 1: "Replace `·········setPayload({·...payload,·location_service:·permissionStatus·===·'disabled'·?·false·:·permissionStatus` with `············setPayload({⏎··············...payload,⏎··············location_service:⏎················permissionStatus·===·'disabled'·?·false·:·permissionStatus,⏎···········`"
prettier/prettier
|
| Error |
Row 144, Column 1: "Insert `····`"
prettier/prettier
|
| Error |
Row 145, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 146, Column 7: "Insert `··`"
prettier/prettier
|
| Error |
Row 148, Column 1: "Insert `··`"
prettier/prettier
|
| Error |
Row 149, Column 1: "Replace `······` with `········`"
prettier/prettier
|
| Error |
Row 150, Column 7: "Replace `console.log("AppState"` with `··console.log('AppState'`"
prettier/prettier
|
| Warning |
Row 150, Column 19: "Strings must use singlequote."
quotes
|
| Error |
Row 151, Column 5: "Replace `}` with `··},⏎····`"
prettier/prettier
|
| Error |
Row 156, Column 6: "React Hook useEffect has missing dependencies: 'locationService' and 'payload'. Either include them or remove the dependency array. You can also do a functional update 'setPayload(p => ...)' if you only need 'payload' in the 'setPayload' call."
react-hooks/exhaustive-deps
|
| Error |
Row 167, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 172, Column 53: "Replace `(providers)` with `providers`"
prettier/prettier
|
| Error |
Row 173, Column 29: "Insert `;`"
prettier/prettier
|
| Warning |
Row 173, Column 29: "Missing semicolon."
semi
|
| Warning |
Row 176, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 176, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 177, Column 61: "Insert `·`"
prettier/prettier
|
| Warning |
Row 178, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 178, Column 7: "Delete `·⏎······`"
prettier/prettier
|
| Error |
Row 182, Column 1: "Replace `⏎··},·[profileData]);⏎⏎` with `··},·[profileData]);`"
prettier/prettier
|
| Error |
Row 183, Column 6: "React Hook React.useEffect has a missing dependency: 'payload'. Either include it or remove the dependency array. You can also do a functional update 'setPayload(p => ...)' if you only need 'payload' in the 'setPayload' call."
react-hooks/exhaustive-deps
|
| Error |
Row 218, Column 21: "Replace `·marginBottom:·mvs(8),·marginTop:·mvs(45)·` with `marginBottom:·mvs(8),·marginTop:·mvs(45)`"
prettier/prettier
|
| Error |
Row 226, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| Error |
Row 232, Column 27: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Error |
Row 237, Column 23: "Replace `·marginTop:·mvs(28)·` with `marginTop:·mvs(28)`"
prettier/prettier
|
| Error |
Row 238, Column 22: "Delete `·`"
prettier/prettier
|
| Error |
Row 240, Column 27: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Error |
Row 244, Column 25: "Replace `·...styles.CARD·` with `...styles.CARD`"
prettier/prettier
|
| Error |
Row 247, Column 23: "Replace `·marginTop:·mvs(0)·` with `marginTop:·mvs(0)`"
prettier/prettier
|
| Error |
Row 250, Column 25: "Replace `(val)` with `val`"
prettier/prettier
|
| Error |
Row 254, Column 21: "Replace `·marginTop:·mvs(20)·` with `marginTop:·mvs(20)`"
prettier/prettier
|
| Error |
Row 269, Column 27: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Error |
Row 275, Column 7: "Replace `·prettier/prettier
|
| Error |
Row 320, Column 18: "Replace `·marginBottom:·mvs(8),·color:·colors.input_label·` with `marginBottom:·mvs(8),·color:·colors.input_label`"
prettier/prettier
|
| Error |
Row 327, Column 19: "Replace `·color:·colors.primary,·fontSize:·mvs(12)·` with `color:·colors.primary,·fontSize:·mvs(12)`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 2 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| Warning |
Row 3, Column 8: "'AsyncStorage' is defined but never used."
no-unused-vars
|
| 3 |
import AsyncStorage from '@react-native-async-storage/async-storage'; |
| Warning |
Row 4, Column 8: "'GPSState' is defined but never used."
no-unused-vars
|
| Error |
Row 4, Column 46: "Insert `;`"
prettier/prettier
|
| Warning |
Row 4, Column 46: "Missing semicolon."
semi
|
| 4 |
import GPSState from 'react-native-gps-state' |
| Error |
Row 5, Column 16: "Replace `·useState,·useEffect·` with `useState,·useEffect`"
prettier/prettier
|
| 5 |
import React, { useState, useEffect } from 'react'; |
| Error |
Row 6, Column 9: "Replace `·Alert,·AppState,·Linking,·PermissionsAndroid,·ScrollView,·StyleSheet,·View·` with `⏎··Alert,⏎··AppState,⏎··Linking,⏎··PermissionsAndroid,⏎··ScrollView,⏎··StyleSheet,⏎··View,⏎`"
prettier/prettier
|
| Warning |
Row 6, Column 10: "'Alert' is defined but never used."
no-unused-vars
|
| Warning |
Row 6, Column 36: "'PermissionsAndroid' is defined but never used."
no-unused-vars
|
| 6 |
import { Alert, AppState, Linking, PermissionsAndroid, ScrollView, StyleSheet, View } from 'react-native'; |
| 7 |
import DropdownAlert from 'react-native-dropdownalert'; |
| Error |
Row 8, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 8 |
import { connect } from 'react-redux'; |
| 9 |
import CustomSwitch from '../../components/atoms/Switch'; |
| 10 |
import DualText from '../../components/molecules/dual-text/dual-text'; |
| 11 |
import Header from '../../components/molecules/header/header-1x'; |
| 12 |
import SettingCard from '../../components/molecules/setting_card/setting-card'; |
| 13 |
import colors from '../../config/colors'; |
| 14 |
import fonts from '../../config/fonts'; |
| Error |
Row 15, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 15 |
import { mvs } from '../../config/metrices'; |
| 16 |
import Regular from '../../presentation/typography/regular-text'; |
| 17 |
import DeviceInfo from 'react-native-device-info'; |
| 18 |
const Settings = props => { |
| Error |
Row 19, Column 10: "Replace `·notifications,·navigation,·updateUserProfile,·profileData·` with `notifications,·navigation,·updateUserProfile,·profileData`"
prettier/prettier
|
| Warning |
Row 19, Column 26: "'navigation' is assigned a value but never used."
no-unused-vars
|
| 19 |
const { notifications, navigation, updateUserProfile, profileData } = props; |
| Error |
Row 20, Column 34: "Insert `·`"
prettier/prettier
|
| 20 |
console.log('notifications:::',notifications); |
| 21 |
const [payload, setPayload] = React.useState({ |
| 22 |
// sale_notify_email: false, |
| 23 |
location_service: false, |
| 24 |
// email_notify: false, |
| 25 |
// mobile_notify: false, |
| 26 |
}); |
| 27 |
const [loading, setLoading] = React.useState(false); |
| 28 |
const alertRef = React.useRef(); |
| Error |
Row 29, Column 26: "Replace `setLocationService]=` with `·setLocationService]·=·`"
prettier/prettier
|
| Warning |
Row 29, Column 26: "'setLocationService' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 29, Column 45: "Operator '=' must be spaced."
space-infix-ops
|
| 29 |
const [locationService,setLocationService]=React.useState(false); |
| 30 |
const toggleHandler = (key, value) => { |
| 31 |
updateNotificationPayload(key, value); |
| 32 |
// setPayload({ ...payload, [key]: value ? 1 : 0 }); |
| 33 |
}; |
| 34 |
|
| 35 |
const updateNotificationPayload = async (key, value) => { |
| 36 |
try { |
| 37 |
setLoading(true); |
| Error |
Row 38, Column 32: "Replace `·[key]:·value·?·1·:·0·` with `[key]:·value·?·1·:·0`"
prettier/prettier
|
| 38 |
await updateUserProfile({ [key]: value ? 1 : 0 }); |
| Error |
Row 39, Column 24: "Insert `;`"
prettier/prettier
|
| Warning |
Row 39, Column 24: "Missing semicolon."
semi
|
| 39 |
setLoading(false) |
| 40 |
} catch (error) { |
| 41 |
setLoading(false); |
| 42 |
alertRef.current.alertWithType( |
| 43 |
'error', |
| 44 |
'Error', |
| 45 |
UI_API._returnError(error), |
| 46 |
); |
| 47 |
} |
| 48 |
}; |
| 49 |
|
| 50 |
// const getCurrentLocation = async () => { |
| 51 |
// try { |
| 52 |
// const request = await UI_API._get_current_location(); |
| 53 |
// if (request) { |
| 54 |
// await AsyncStorage.setItem('@location', UI_API._returnStringify(request)); |
| 55 |
// toggleHandler('location_service', 1) |
| 56 |
// } else { |
| 57 |
// toggleHandler('location_service', 0) |
| 58 |
// } |
| 59 |
// } catch (error) { |
| 60 |
// let keys = ['@location']; |
| 61 |
// AsyncStorage.multiRemove(keys, err => { |
| 62 |
// // keys k1 & k2 removed, if they existed |
| 63 |
// // do most stuff after removal (if you want) |
| 64 |
// }); |
| 65 |
// alertRef.current.alertWithType( |
| 66 |
// 'error', |
| 67 |
// 'Error', |
| 68 |
// UI_API._returnError(error), |
| 69 |
// ); |
| 70 |
// } |
| 71 |
// }; |
| 72 |
|
| 73 |
// const locationSettingAlert = () => { |
| 74 |
// Alert.alert( |
| 75 |
// 'Location', |
| 76 |
// 'Do you want to change Location Permission from mobile Settings', |
| 77 |
// [ |
| 78 |
// { |
| 79 |
// text: 'Cancel', |
| 80 |
// onPress: () => console.log('Cancel Pressed'), |
| 81 |
// style: 'cancel' |
| 82 |
// }, |
| 83 |
// { text: 'OK', onPress: () => Platform.OS === 'android' ? GPSState.openAppDetails() : Linking.openURL("app-settings:") } |
| 84 |
// ] |
| 85 |
// ); |
| 86 |
// } |
| 87 |
|
| 88 |
// const changeLocationService=async(is_app_state_changed=false)=>{ |
| 89 |
// const falg=await UI_API._getLocPermissionStatus(Linking, alertRef); |
| 90 |
// if (!is_app_state_changed) { |
| 91 |
// locationSettingAlert(); |
| 92 |
// } |
| 93 |
// setPayload({...payload,location_service:falg}) |
| 94 |
// } |
| 95 |
|
| 96 |
const changeLocationService = async (is_app_state_changed = false) => { |
| Error |
Row 97, Column 42: "Insert `·`"
prettier/prettier
|
| 97 |
console.log('is_app_state_changed::',is_app_state_changed); |
| Error |
Row 98, Column 21: "Insert `;`"
prettier/prettier
|
| Warning |
Row 98, Column 21: "Missing semicolon."
semi
|
| 98 |
let flag = false |
| 99 |
|
| 100 |
try { |
| 101 |
if (is_app_state_changed) { |
| 102 |
flag = await UI_API._getLocPermissionStatus(Linking, alertRef); |
| Warning |
Row 103, Column 18: "Expected '===' and instead saw '=='."
eqeqeq
|
| 103 |
if (flag == true) { |
| 104 |
// await getCurrentLocation(); |
| 105 |
//setLocationService(flag); |
| Error |
Row 106, Column 11: "Replace `·setPayload({·...payload,·location_service:·flag·` with `setPayload({...payload,·location_service:·flag`"
prettier/prettier
|
| 106 |
setPayload({ ...payload, location_service: flag }); |
| 107 |
} |
| 108 |
|
| 109 |
if (flag === 'disabled') { |
| 110 |
UI_API.locationSettingAlert(); |
| 111 |
} else { |
| Error |
Row 112, Column 1: "Insert `·`"
prettier/prettier
|
| 112 |
// setLocationService(flag); |
| Error |
Row 113, Column 10: "Replace `setPayload({·...payload,·location_service:·flag·` with `·setPayload({...payload,·location_service:·flag`"
prettier/prettier
|
| 113 |
setPayload({ ...payload, location_service: flag }); |
| 114 |
} |
| 115 |
} else { |
| 116 |
UI_API.locationSettingAlert(); |
| 117 |
} |
| 118 |
} catch (error) { |
| 119 |
alertRef.current.alertWithType( |
| 120 |
'error', |
| 121 |
'Error', |
| 122 |
UI_API._returnError(error), |
| 123 |
); |
| Error |
Row 124, Column 6: "Delete `⏎⏎`"
prettier/prettier
|
| 124 |
} |
| 125 |
|
| 126 |
|
| Error |
Row 127, Column 4: "Insert `;`"
prettier/prettier
|
| Warning |
Row 127, Column 4: "Missing semicolon."
semi
|
| 127 |
} |
| 128 |
|
| 129 |
const appState = React.useRef(AppState.currentState); |
| Warning |
Row 130, Column 10: "'appStateVisible' is assigned a value but never used."
no-unused-vars
|
| 130 |
const [appStateVisible, setAppStateVisible] = useState(appState.current); |
| 131 |
|
| 132 |
useEffect(() => { |
| Error |
Row 133, Column 52: "Replace `"change",` with `⏎······'change',⏎·····`"
prettier/prettier
|
| Warning |
Row 133, Column 52: "Strings must use singlequote."
quotes
|
| 133 |
const subscription = AppState.addEventListener("change", async nextAppState => { |
| Error |
Row 134, Column 7: "Insert `··`"
prettier/prettier
|
| 134 |
if ( |
| Error |
Row 135, Column 1: "Insert `··`"
prettier/prettier
|
| 135 |
appState.current.match(/inactive|background/) && |
| Error |
Row 136, Column 1: "Replace `········nextAppState·===·"active"` with `··········nextAppState·===·'active'`"
prettier/prettier
|
| Warning |
Row 136, Column 26: "Strings must use singlequote."
quotes
|
| 136 |
nextAppState === "active" |
| Error |
Row 137, Column 1: "Replace `······` with `········`"
prettier/prettier
|
| 137 |
) { |
| Error |
Row 138, Column 1: "Replace `········const·providers=await·` with `··········const·providers·=·await`"
prettier/prettier
|
| Warning |
Row 138, Column 24: "Operator '=' must be spaced."
space-infix-ops
|
| 138 |
const providers=await DeviceInfo.getAvailableLocationProviders(); |
| Error |
Row 139, Column 9: "Insert `··`"
prettier/prettier
|
| 139 |
console.log(providers); |
| Error |
Row 140, Column 1: "Replace `········console.log("App·has·come·to·the·foreground!"` with `··········console.log('App·has·come·to·the·foreground!'`"
prettier/prettier
|
| Warning |
Row 140, Column 21: "Strings must use singlequote."
quotes
|
| 140 |
console.log("App has come to the foreground!"); |
| Error |
Row 141, Column 9: "Replace `if·(locationService||` with `··if·(locationService·||·`"
prettier/prettier
|
| Warning |
Row 141, Column 28: "Operator '||' must be spaced."
space-infix-ops
|
| 141 |
if (locationService||Object.keys(providers).length > 0) { |
| Error |
Row 142, Column 1: "Replace `··········const·permissionStatus·=·await·UI_API._checkPermissions(alertRef,·Linking)` with `············const·permissionStatus·=·await·UI_API._checkPermissions(⏎··············alertRef,⏎··············Linking,⏎············);`"
prettier/prettier
|
| Warning |
Row 142, Column 85: "Missing semicolon."
semi
|
| 142 |
const permissionStatus = await UI_API._checkPermissions(alertRef, Linking) |
| Error |
Row 143, Column 1: "Replace `·········setPayload({·...payload,·location_service:·permissionStatus·===·'disabled'·?·false·:·permissionStatus` with `············setPayload({⏎··············...payload,⏎··············location_service:⏎················permissionStatus·===·'disabled'·?·false·:·permissionStatus,⏎···········`"
prettier/prettier
|
| 143 |
setPayload({ ...payload, location_service: permissionStatus === 'disabled' ? false : permissionStatus }); |
| Error |
Row 144, Column 1: "Insert `····`"
prettier/prettier
|
| 144 |
// setLocationService(permissionStatus === 'disabled' ? false : permissionStatus); |
| Error |
Row 145, Column 1: "Insert `··`"
prettier/prettier
|
| 145 |
} |
| Error |
Row 146, Column 7: "Insert `··`"
prettier/prettier
|
| 146 |
} |
| 147 |
|
| Error |
Row 148, Column 1: "Insert `··`"
prettier/prettier
|
| 148 |
appState.current = nextAppState; |
| Error |
Row 149, Column 1: "Replace `······` with `········`"
prettier/prettier
|
| 149 |
setAppStateVisible(appState.current); |
| Error |
Row 150, Column 7: "Replace `console.log("AppState"` with `··console.log('AppState'`"
prettier/prettier
|
| Warning |
Row 150, Column 19: "Strings must use singlequote."
quotes
|
| 150 |
console.log("AppState", appState.current); |
| Error |
Row 151, Column 5: "Replace `}` with `··},⏎····`"
prettier/prettier
|
| 151 |
}); |
| 152 |
|
| 153 |
return () => { |
| 154 |
subscription.remove(); |
| 155 |
}; |
| Error |
Row 156, Column 6: "React Hook useEffect has missing dependencies: 'locationService' and 'payload'. Either include them or remove the dependency array. You can also do a functional update 'setPayload(p => ...)' if you only need 'payload' in the 'setPayload' call."
react-hooks/exhaustive-deps
|
| 156 |
}, []); |
| 157 |
|
| 158 |
// React.useEffect(() => { |
| 159 |
|
| 160 |
// setPayload({ |
| 161 |
// ...payload, |
| 162 |
// sale_notify_email: notifications?.sale_notify_email * 1, |
| 163 |
// email_notify: notifications?.email_notify * 1, |
| 164 |
// mobile_notify: notifications?.mobile_notify * 1, |
| 165 |
// }); |
| 166 |
|
| Error |
Row 167, Column 1: "Delete `⏎`"
prettier/prettier
|
| 167 |
|
| 168 |
// }, [profileData]); |
| 169 |
|
| 170 |
React.useEffect(() => { |
| 171 |
// console.log(GPSState.isNotDetermined()) |
| Error |
Row 172, Column 53: "Replace `(providers)` with `providers`"
prettier/prettier
|
| 172 |
DeviceInfo.getAvailableLocationProviders().then((providers) => { |
| Error |
Row 173, Column 29: "Insert `;`"
prettier/prettier
|
| Warning |
Row 173, Column 29: "Missing semicolon."
semi
|
| 173 |
console.log(providers) |
| 174 |
setPayload({ |
| 175 |
...payload, |
| Warning |
Row 176, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 176, Column 1: "Delete `······`"
prettier/prettier
|
| 176 |
|
| Error |
Row 177, Column 61: "Insert `·`"
prettier/prettier
|
| 177 |
location_service: Object.keys(providers).length > 0,// permissionStatus === 'disabled' ? false : permissionStatus, |
| Warning |
Row 178, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 178, Column 7: "Delete `·⏎······`"
prettier/prettier
|
| 178 |
|
| 179 |
}); |
| 180 |
// console.log(providers) |
| 181 |
}); |
| Error |
Row 182, Column 1: "Replace `⏎··},·[profileData]);⏎⏎` with `··},·[profileData]);`"
prettier/prettier
|
| 182 |
|
| Error |
Row 183, Column 6: "React Hook React.useEffect has a missing dependency: 'payload'. Either include it or remove the dependency array. You can also do a functional update 'setPayload(p => ...)' if you only need 'payload' in the 'setPayload' call."
react-hooks/exhaustive-deps
|
| 183 |
}, [profileData]); |
| 184 |
|
| 185 |
|
| 186 |
|
| 187 |
return ( |
| 188 |
<View style={styles.CONTAINER}> |
| 189 |
<Header {...props} title="Settings" allowBackBtn userIcon={false} /> |
| 190 |
<View style={styles.BODY}> |
| 191 |
<ScrollView |
| 192 |
showsVerticalScrollIndicator={false} |
| 193 |
contentContainerStyle={styles.SCROLL}> |
| 194 |
<Regular |
| 195 |
onPress={() => props.navigation.navigate('savedaddress')} |
| 196 |
label={'Saved Addresses'} |
| 197 |
style={styles.LIST_LABEL} |
| 198 |
/> |
| 199 |
{/* {profileData?.is_email_verified === 0 && */} |
| 200 |
<Regular |
| 201 |
onPress={() => props.navigation.navigate('changeemail')} |
| 202 |
label={'Change Email'} |
| 203 |
style={styles.LIST_LABEL} |
| 204 |
/> |
| 205 |
{/* } */} |
| 206 |
<Regular |
| 207 |
onPress={() => props.navigation.navigate('changepassword')} |
| 208 |
label={'Change Password'} |
| 209 |
style={styles.LIST_LABEL} |
| 210 |
/> |
| 211 |
<Regular |
| 212 |
onPress={() => props.navigation.navigate('changephonenumber')} |
| 213 |
label={'Change Phone Number'} |
| 214 |
style={styles.LIST_LABEL} |
| 215 |
/> |
| 216 |
<Regular |
| 217 |
label={'Notifications'} |
| Error |
Row 218, Column 21: "Replace `·marginBottom:·mvs(8),·marginTop:·mvs(45)·` with `marginBottom:·mvs(8),·marginTop:·mvs(45)`"
prettier/prettier
|
| 218 |
style={{ marginBottom: mvs(8), marginTop: mvs(45) }} |
| 219 |
/> |
| 220 |
<SettingCard heading={'Status Updates on Orders'}> |
| 221 |
<DualText |
| 222 |
// onPress={()=>alert('sdsd')} |
| 223 |
content={ |
| 224 |
'Different types of notifications regarding your activity.' |
| 225 |
} |
| Error |
Row 226, Column 1: "Replace `············` with `··············`"
prettier/prettier
|
| 226 |
// highlightText={' Taketo.'} |
| 227 |
/> |
| 228 |
<CustomSwitch |
| 229 |
disabled={loading} |
| 230 |
value={notifications?.email_notify * 1} |
| 231 |
label={'Email'} |
| Error |
Row 232, Column 27: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 232 |
textStyle={{ color: colors.primary }} |
| 233 |
onChange={v => toggleHandler('email_notify', v)} |
| 234 |
/> |
| 235 |
<CustomSwitch |
| 236 |
disabled={loading} |
| Error |
Row 237, Column 23: "Replace `·marginTop:·mvs(28)·` with `marginTop:·mvs(28)`"
prettier/prettier
|
| 237 |
style={{ marginTop: mvs(28) }} |
| Error |
Row 238, Column 22: "Delete `·`"
prettier/prettier
|
| 238 |
value={ notifications?.mobile_notify * 1} |
| 239 |
label={'SMS'} |
| Error |
Row 240, Column 27: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 240 |
textStyle={{ color: colors.primary }} |
| 241 |
onChange={v => toggleHandler('mobile_notify', v)} |
| 242 |
/> |
| 243 |
</SettingCard> |
| Error |
Row 244, Column 25: "Replace `·...styles.CARD·` with `...styles.CARD`"
prettier/prettier
|
| 244 |
<View style={{ ...styles.CARD }}> |
| 245 |
<CustomSwitch |
| 246 |
disabled={loading} |
| Error |
Row 247, Column 23: "Replace `·marginTop:·mvs(0)·` with `marginTop:·mvs(0)`"
prettier/prettier
|
| 247 |
style={{ marginTop: mvs(0) }} |
| 248 |
value={payload?.location_service} |
| 249 |
label={'Location Services'} |
| Error |
Row 250, Column 25: "Replace `(val)` with `val`"
prettier/prettier
|
| 250 |
onChange={(val) => changeLocationService(val)} |
| 251 |
/> |
| 252 |
</View> |
| 253 |
<SettingCard |
| Error |
Row 254, Column 21: "Replace `·marginTop:·mvs(20)·` with `marginTop:·mvs(20)`"
prettier/prettier
|
| 254 |
style={{ marginTop: mvs(20) }} |
| 255 |
heading={'Sales & Promotions'}> |
| 256 |
<DualText |
| 257 |
// onPress={()=>alert('sdsd')} |
| 258 |
content={ |
| 259 |
'Receive coupons, promotions, surveys, product updates from' |
| 260 |
} |
| 261 |
highlightText={' Taketo '}> |
| 262 |
<Regular style={styles.CARD_LABEL} label={'and partners.'} /> |
| 263 |
</DualText> |
| 264 |
|
| 265 |
<CustomSwitch |
| 266 |
disabled={loading} |
| 267 |
value={notifications?.sale_notify_email * 1} |
| 268 |
label={'Email'} |
| Error |
Row 269, Column 27: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 269 |
textStyle={{ color: colors.primary }} |
| 270 |
onChange={v => toggleHandler('sale_notify_email', v)} |
| 271 |
/> |
| 272 |
</SettingCard> |
| 273 |
</ScrollView> |
| 274 |
</View> |
| Error |
Row 275, Column 7: "Replace `·prettier/prettier
|
| 275 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 276 |
</View> |
| 277 |
); |
| 278 |
}; |
| 279 |
const mapStateToProps = state => { |
| 280 |
return { |
| 281 |
notifications: state.auth.userInfo?.notifications || {}, |
| 282 |
profileData: state.auth.userInfo?.profile, |
| 283 |
}; |
| 284 |
}; |
| 285 |
const mapDispatchToProps = dispatch => ({ |
| 286 |
updateUserProfile: data => dispatch(TAKE_TO_ACTIONS.updateUserProfile(data)), |
| 287 |
}); |
| 288 |
export default connect(mapStateToProps, mapDispatchToProps)(Settings); |
| 289 |
const styles = StyleSheet.create({ |
| 290 |
CONTAINER: { |
| 291 |
flex: 1, |
| 292 |
backgroundColor: colors.white, |
| 293 |
}, |
| 294 |
BODY: { |
| 295 |
flex: 1, |
| 296 |
}, |
| 297 |
SCROLL: { |
| 298 |
// paddingTop: mvs(28), |
| 299 |
paddingHorizontal: mvs(22), |
| 300 |
paddingBottom: mvs(10), |
| 301 |
}, |
| 302 |
LIST_LABEL: { |
| 303 |
// borderBottomWidth: StyleSheet.hairlineWidth, |
| 304 |
backgroundColor: colors.secondary, |
| 305 |
borderColor: colors.price_border, |
| 306 |
marginBottom: mvs(10), |
| 307 |
paddingHorizontal: mvs(10), |
| 308 |
paddingVertical: mvs(8), |
| 309 |
borderRadius: mvs(10), |
| 310 |
color: colors.primary, |
| 311 |
}, |
| 312 |
CARD: { |
| 313 |
marginTop: mvs(20), |
| 314 |
paddingTop: mvs(20), |
| 315 |
paddingBottom: mvs(17), |
| 316 |
backgroundColor: colors.secondary, |
| 317 |
paddingHorizontal: mvs(20), |
| 318 |
borderRadius: mvs(10), |
| 319 |
}, |
| Error |
Row 320, Column 18: "Replace `·marginBottom:·mvs(8),·color:·colors.input_label·` with `marginBottom:·mvs(8),·color:·colors.input_label`"
prettier/prettier
|
| 320 |
CARD_HEADING: { marginBottom: mvs(8), color: colors.input_label }, |
| 321 |
CARD_LABEL: { |
| 322 |
color: colors.label, |
| 323 |
fontSize: mvs(12), |
| 324 |
fontFamily: fonts.carosSoftRegular, |
| 325 |
}, |
| 326 |
|
| Error |
Row 327, Column 19: "Replace `·color:·colors.primary,·fontSize:·mvs(12)·` with `color:·colors.primary,·fontSize:·mvs(12)`"
prettier/prettier
|
| 327 |
TAKE_TO_LABEL: { color: colors.primary, fontSize: mvs(12) }, |
| 328 |
}); |
| 329 |
|
|
|
|
/src/screens/tab-screens/tab-deliver.js
|
12 problems (7 errors, 5 warnings)
|
| Severity |
Rule |
| Error |
Row 1, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| Error |
Row 2, Column 9: "Replace `⏎··ScrollView,·StyleSheet,·View⏎` with `ScrollView,·StyleSheet,·View`"
prettier/prettier
|
| Warning |
Row 3, Column 31: "Missing trailing comma."
comma-dangle
|
| Error |
Row 5, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 12, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 16, Column 10: "'inst' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 16, Column 16: "'setInst' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 70, Column 65: "Replace `{isFilter:false,isOnline:false` with `·{⏎····················isFilter:·false,⏎····················isOnline:·false,⏎··················`"
prettier/prettier
|
| Warning |
Row 73, Column 20: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 81, Column 57: "Replace `{isFilter:false,isOnline:false` with `·{⏎····················isFilter:·false,⏎····················isOnline:·false,⏎··················`"
prettier/prettier
|
| Warning |
Row 84, Column 20: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 132, Column 36: "'TAKE_TO_ACTIONS' is not defined."
no-undef
|
| Line |
Source |
| Error |
Row 1, Column 16: "Replace `·useState·` with `useState`"
prettier/prettier
|
| 1 |
import React, { useState } from 'react'; |
| Error |
Row 2, Column 9: "Replace `⏎··ScrollView,·StyleSheet,·View⏎` with `ScrollView,·StyleSheet,·View`"
prettier/prettier
|
| 2 |
import { |
| Warning |
Row 3, Column 31: "Missing trailing comma."
comma-dangle
|
| 3 |
ScrollView, StyleSheet, View |
| 4 |
} from 'react-native'; |
| Error |
Row 5, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 5 |
import { connect } from 'react-redux'; |
| 6 |
import Buttons from '../../components/atoms/Button'; |
| 7 |
import Header from '../../components/molecules/header/header-1x'; |
| 8 |
import InstractionCard from '../../components/molecules/instraction-card-doted'; |
| 9 |
import InternationalOrderDateFilterModal from '../../components/molecules/modals/international-order-date-filter-modal'; |
| 10 |
import LocalOrderFilterModal from '../../components/molecules/modals/local-order-filter-modal'; |
| 11 |
import colors from '../../config/colors'; |
| Error |
Row 12, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 12 |
import { mvs } from '../../config/metrices'; |
| 13 |
|
| 14 |
const DeliveryTab = props => { |
| 15 |
const {isGuest} = props; |
| Warning |
Row 16, Column 10: "'inst' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 16, Column 16: "'setInst' is assigned a value but never used."
no-unused-vars
|
| 16 |
const [inst, setInst] = useState(true); |
| 17 |
const [openFilter, setOpenFilter] = React.useState({ |
| 18 |
local: false, |
| 19 |
international: false, |
| 20 |
}); |
| 21 |
const [makeMoney] = React.useState([ |
| 22 |
{ |
| 23 |
title: 'Add trip', |
| 24 |
description: |
| 25 |
'Start by adding your trip to see requested orders along your route.', |
| 26 |
}, |
| 27 |
{ |
| 28 |
title: 'Make Offers', |
| 29 |
description: |
| 30 |
'You choose the orders you’d like to deliver and arrange the details with your shoppers.', |
| 31 |
}, |
| 32 |
{ |
| 33 |
title: 'Buy the Product', |
| 34 |
description: |
| 35 |
'Once shoppers accept your offer, they pay. We hold payment. Then, you buy the item with your money.', |
| 36 |
}, |
| 37 |
{ |
| 38 |
title: 'Deliver & Get Paid', |
| 39 |
description: |
| 40 |
'Meet in person, deliver the product, get paid automatically by Taketo.', |
| 41 |
}, |
| 42 |
]); |
| 43 |
|
| 44 |
return ( |
| 45 |
<View style={styles.mainContainer}> |
| 46 |
<Header {...props} title="How to Deliver" spacebetween bellIcon /> |
| 47 |
<ScrollView> |
| 48 |
<View style={styles.container}> |
| 49 |
<View |
| 50 |
style={{ |
| 51 |
// marginHorizontal: mvs(22), |
| 52 |
paddingLeft: mvs(10), |
| 53 |
}}> |
| 54 |
{makeMoney.map((abroad, index) => ( |
| 55 |
<View style={{}} key={index}> |
| 56 |
<InstractionCard |
| 57 |
title={abroad.title} |
| 58 |
detail={abroad.description} |
| 59 |
border={makeMoney.length - 1 !== index} |
| 60 |
/> |
| 61 |
</View> |
| 62 |
))} |
| 63 |
</View> |
| 64 |
|
| 65 |
<Buttons.ButtonRTL |
| 66 |
iconName="aeroplanewhite" |
| 67 |
onClick={() => { |
| 68 |
isGuest |
| 69 |
? props.navigation.navigate('login') |
| Error |
Row 70, Column 65: "Replace `{isFilter:false,isOnline:false` with `·{⏎····················isFilter:·false,⏎····················isOnline:·false,⏎··················`"
prettier/prettier
|
| 70 |
: props.navigation.navigate('internationaltrip',{isFilter:false,isOnline:false}); |
| 71 |
}} |
| 72 |
title="Add International Trip" |
| Warning |
Row 73, Column 20: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| 73 |
style={{justifyContent: 'center'}} |
| 74 |
textStyle={{marginLeft: mvs(18), color: colors.white}} |
| 75 |
/> |
| 76 |
<Buttons.ButtonRTL |
| 77 |
iconName="carwhite" |
| 78 |
onClick={() => { |
| 79 |
isGuest |
| 80 |
? props.navigation.navigate('login') |
| Error |
Row 81, Column 57: "Replace `{isFilter:false,isOnline:false` with `·{⏎····················isFilter:·false,⏎····················isOnline:·false,⏎··················`"
prettier/prettier
|
| 81 |
: props.navigation.navigate('localtrip',{isFilter:false,isOnline:false}); |
| 82 |
}} |
| 83 |
title="Add Local Trip" |
| Warning |
Row 84, Column 20: "Inline style: { justifyContent: 'center' }"
react-native/no-inline-styles
|
| 84 |
style={{justifyContent: 'center', marginTop: mvs(10)}} |
| 85 |
textStyle={{marginLeft: mvs(18), color: colors.white}} |
| 86 |
/> |
| 87 |
<Buttons.ButtonSecondaryOutline |
| 88 |
onClick={() => { |
| 89 |
isGuest |
| 90 |
? props.navigation.navigate('login') |
| 91 |
: props.navigation.navigate('deliveryhistory'); |
| 92 |
}} |
| 93 |
title="My Delivery History" |
| 94 |
style={{marginTop: mvs(10)}} |
| 95 |
/> |
| 96 |
</View> |
| 97 |
</ScrollView> |
| 98 |
<InternationalOrderDateFilterModal |
| 99 |
onApply={() => { |
| 100 |
setOpenFilter({...openFilter, international: false}); |
| 101 |
props.navigation.navigate('internationaldelivery', { |
| 102 |
isLocalOrder: false, |
| 103 |
}); |
| 104 |
}} |
| 105 |
visible={openFilter.international} |
| 106 |
onClose={() => setOpenFilter({...openFilter, international: false})} |
| 107 |
{...props} |
| 108 |
/> |
| 109 |
<LocalOrderFilterModal |
| 110 |
onApply={() => { |
| 111 |
setOpenFilter({...openFilter, local: false}); |
| 112 |
props.navigation.navigate('internationaldelivery', { |
| 113 |
isLocalOrder: true, |
| 114 |
}); |
| 115 |
}} |
| 116 |
onSearchMap={() => props.navigation.navigate('searchmap')} |
| 117 |
visible={openFilter.local} |
| 118 |
onClose={() => setOpenFilter({...openFilter, local: false})} |
| 119 |
/> |
| 120 |
</View> |
| 121 |
); |
| 122 |
}; |
| 123 |
|
| 124 |
//export default DeliveryTab; |
| 125 |
const mapStateToProps = state => { |
| 126 |
return { |
| 127 |
isGuest: state.auth.isGuest, |
| 128 |
}; |
| 129 |
}; |
| 130 |
|
| 131 |
const mapDispatchToProps = dispatch => ({ |
| Error |
Row 132, Column 36: "'TAKE_TO_ACTIONS' is not defined."
no-undef
|
| 132 |
postSigninData: data => dispatch(TAKE_TO_ACTIONS.postSigninData(data)), |
| 133 |
}); |
| 134 |
export default connect(mapStateToProps, mapDispatchToProps)(DeliveryTab); |
| 135 |
|
| 136 |
const styles = StyleSheet.create({ |
| 137 |
mainContainer: { |
| 138 |
flex: 1, |
| 139 |
backgroundColor: colors.white, |
| 140 |
}, |
| 141 |
container: { |
| 142 |
flex: 1, |
| 143 |
paddingHorizontal: mvs(22), |
| 144 |
paddingLeft: mvs(22 + 5.5), |
| 145 |
paddingTop: mvs(25), |
| 146 |
}, |
| 147 |
optionsContainer: { |
| 148 |
// height: mvs(270), |
| 149 |
width: '100%', |
| 150 |
borderBottomEndRadius: mvs(20), |
| 151 |
borderBottomStartRadius: mvs(20), |
| 152 |
backgroundColor: colors.white, |
| 153 |
paddingBottom: mvs(20), |
| 154 |
}, |
| 155 |
optionsMainContainer: { |
| 156 |
flex: 1, |
| 157 |
paddingHorizontal: mvs(22), |
| 158 |
}, |
| 159 |
option1: { |
| 160 |
//height : mvs(56), |
| 161 |
width: '100%', |
| 162 |
alignSelf: 'center', |
| 163 |
marginTop: mvs(30), |
| 164 |
borderWidth: 1, |
| 165 |
borderColor: colors.primary, |
| 166 |
borderRadius: mvs(10), |
| 167 |
paddingHorizontal: mvs(10), |
| 168 |
paddingTop: mvs(12), |
| 169 |
paddingBottom: mvs(13), |
| 170 |
}, |
| 171 |
option2: { |
| 172 |
//height : mvs(71), |
| 173 |
width: '100%', |
| 174 |
alignSelf: 'center', |
| 175 |
marginTop: mvs(12), |
| 176 |
borderWidth: 1, |
| 177 |
borderColor: colors.primary, |
| 178 |
borderRadius: mvs(10), |
| 179 |
paddingHorizontal: mvs(10), |
| 180 |
paddingTop: mvs(12), |
| 181 |
paddingBottom: mvs(13), |
| 182 |
}, |
| 183 |
optionTitle: { |
| 184 |
fontSize: mvs(15), |
| 185 |
color: colors.primary, |
| 186 |
}, |
| 187 |
optionDetail: { |
| 188 |
fontSize: mvs(12), |
| 189 |
color: colors.headerTitle, |
| 190 |
marginTop: mvs(4), |
| 191 |
}, |
| 192 |
buttonContainer: { |
| 193 |
marginVertical: mvs(18), |
| 194 |
paddingHorizontal: mvs(22), |
| 195 |
}, |
| 196 |
}); |
| 197 |
|
|
|
|
/src/screens/tab-screens/tab-home.js
|
62 problems (43 errors, 19 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 16: "Replace `·useEffect·` with `useEffect`"
prettier/prettier
|
| Warning |
Row 6, Column 3: "'Linking' is defined but never used."
no-unused-vars
|
| Error |
Row 12, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 14, Column 9: "Replace `·Pagination·` with `Pagination`"
prettier/prettier
|
| Error |
Row 22, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| Warning |
Row 23, Column 8: "'AsyncStorage' is defined but never used."
no-unused-vars
|
| Error |
Row 24, Column 9: "Replace `·useContext·` with `useContext`"
prettier/prettier
|
| Warning |
Row 24, Column 10: "'useContext' is defined but never used."
no-unused-vars
|
| Warning |
Row 25, Column 8: "'LocalizationContext' is defined but never used."
no-unused-vars
|
| Error |
Row 27, Column 9: "Replace `·connectEcho·` with `connectEcho`"
prettier/prettier
|
| Error |
Row 29, Column 10: "Replace `·navigation,·route,·fetchHomeOrders,·home_orders,·profileData,·history_orders,·isGuest,·fetchEcho` with `⏎····navigation,⏎····route,⏎····fetchHomeOrders,⏎····home_orders,⏎····profileData,⏎····history_orders,⏎····isGuest,⏎····fetchEcho,⏎·`"
prettier/prettier
|
| Warning |
Row 29, Column 23: "'route' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 50, Column 10: "Replace `·width·` with `width`"
prettier/prettier
|
| Warning |
Row 50, Column 11: "'width' is already declared in the upper scope."
no-shadow
|
| Error |
Row 53, Column 1: "Delete `⏎⏎`"
prettier/prettier
|
| Warning |
Row 56, Column 5: "Expected space(s) after "if"."
keyword-spacing
|
| Error |
Row 56, Column 7: "Replace `(!isGuest)` with `·(!isGuest)·`"
prettier/prettier
|
| Error |
Row 57, Column 35: "Replace `⏎······.then((res)` with `.then(res`"
prettier/prettier
|
| Error |
Row 59, Column 1: "Insert `·`"
prettier/prettier
|
| Error |
Row 61, Column 23: "Insert `;`"
prettier/prettier
|
| Warning |
Row 61, Column 23: "Missing semicolon."
semi
|
| Error |
Row 62, Column 9: "Insert `;`"
prettier/prettier
|
| Warning |
Row 62, Column 9: "Missing semicolon."
semi
|
| Error |
Row 64, Column 5: "Replace `[])⏎·` with `·[]);`"
prettier/prettier
|
| Error |
Row 64, Column 5: "React Hook useEffect has missing dependencies: 'fetchEcho', 'isGuest', and 'profileData?.id'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 64, Column 8: "Missing semicolon."
semi
|
| Warning |
Row 65, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 85, Column 19: "Replace `·isActive·=·false` with `⏎······isActive·=·false;⏎···`"
prettier/prettier
|
| Warning |
Row 85, Column 20: "'isActive' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 85, Column 36: "Missing semicolon."
semi
|
| Error |
Row 86, Column 6: "React Hook React.useEffect has a missing dependency: 'getHomeOrdersHanlder'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 86, Column 29: "Insert `·`"
prettier/prettier
|
| Error |
Row 93, Column 29: "Replace `·x:·scroll·` with `x:·scroll`"
prettier/prettier
|
| Error |
Row 108, Column 20: "Replace `·backgroundColor:·colors.price_border·` with `backgroundColor:·colors.price_border`"
prettier/prettier
|
| Error |
Row 118, Column 30: "Replace `·item·` with `item`"
prettier/prettier
|
| Error |
Row 119, Column 19: "Replace `·paddingHorizontal:·mvs(22)·` with `paddingHorizontal:·mvs(22)`"
prettier/prettier
|
| Error |
Row 131, Column 32: "Replace `·item·` with `item`"
prettier/prettier
|
| Error |
Row 132, Column 19: "Replace `·paddingHorizontal:·mvs(22)·` with `paddingHorizontal:·mvs(22)`"
prettier/prettier
|
| Error |
Row 144, Column 33: "Replace `·item·` with `item`"
prettier/prettier
|
| Error |
Row 145, Column 19: "Replace `·paddingHorizontal:·mvs(22),·paddingBottom:·mvs(2)·` with `paddingHorizontal:·mvs(22),·paddingBottom:·mvs(2)`"
prettier/prettier
|
| Error |
Row 161, Column 34: "Replace `·item·` with `item`"
prettier/prettier
|
| Error |
Row 162, Column 19: "Replace `·paddingHorizontal:·mvs(22),·width:·width·` with `paddingHorizontal:·mvs(22),·width:·width`"
prettier/prettier
|
| Warning |
Row 181, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 181, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 183, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 183, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| Warning |
Row 188, Column 5: "Expected { after 'else'."
curly
|
| Warning |
Row 190, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 190, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| Warning |
Row 192, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 192, Column 23: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| Error |
Row 198, Column 23: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| Error |
Row 208, Column 27: "Replace `·...styles.RELEVENT_ORDER·` with `...styles.RELEVENT_ORDER`"
prettier/prettier
|
| Error |
Row 228, Column 26: "Insert `·`"
prettier/prettier
|
| Error |
Row 231, Column 23: "Replace `·...styles.RELEVENT_ORDER,·backgroundColor:·colors.white·` with `...styles.RELEVENT_ORDER,·backgroundColor:·colors.white`"
prettier/prettier
|
| Error |
Row 253, Column 31: "Replace `·...styles.RELEVENT_ORDER,·paddingBottom:·mvs(2)·` with `...styles.RELEVENT_ORDER,·paddingBottom:·mvs(2)`"
prettier/prettier
|
| Error |
Row 256, Column 45: "Replace `·paddingBottom:·mvs(20)·` with `paddingBottom:·mvs(20)`"
prettier/prettier
|
| Warning |
Row 273, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 273, Column 1: "Delete `············`"
prettier/prettier
|
| Error |
Row 280, Column 31: "Replace `·...styles.RELEVENT_ORDER,·paddingBottom:·mvs(0)·` with `...styles.RELEVENT_ORDER,·paddingBottom:·mvs(0)`"
prettier/prettier
|
| Error |
Row 283, Column 45: "Replace `·paddingBottom:·mvs(20)·` with `paddingBottom:·mvs(20)`"
prettier/prettier
|
| Error |
Row 302, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| Error |
Row 2, Column 16: "Replace `·useEffect·` with `useEffect`"
prettier/prettier
|
| 2 |
import React, { useEffect } from 'react'; |
| 3 |
import { |
| 4 |
ActivityIndicator, |
| 5 |
Animated, |
| Warning |
Row 6, Column 3: "'Linking' is defined but never used."
no-unused-vars
|
| 6 |
Linking, |
| 7 |
ScrollView, |
| 8 |
StyleSheet, |
| 9 |
useWindowDimensions, |
| 10 |
View, |
| 11 |
} from 'react-native'; |
| Error |
Row 12, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 12 |
import { connect } from 'react-redux'; |
| 13 |
import UI_API from '../../../../common/store/services'; |
| Error |
Row 14, Column 9: "Replace `·Pagination·` with `Pagination`"
prettier/prettier
|
| 14 |
import { Pagination } from '../../components/atoms/pagination'; |
| 15 |
import SkeletonView from '../../components/atoms/SkeletonView'; |
| 16 |
import Header from '../../components/molecules/header/header-1x'; |
| 17 |
import DeliveredOrderCard from '../../components/molecules/order_card/delivery-history-card'; |
| 18 |
import MakeOfferOrderCard from '../../components/molecules/order_card/make-offer-card'; |
| 19 |
import OrderTypeHeader from '../../components/molecules/order_card/order-type-header'; |
| 20 |
import ProcessingOrderCard from '../../components/molecules/order_card/processed-offer-card'; |
| 21 |
import colors from '../../config/colors'; |
| Error |
Row 22, Column 9: "Replace `·mvs,·width·` with `mvs,·width`"
prettier/prettier
|
| 22 |
import { mvs, width } from '../../config/metrices'; |
| Warning |
Row 23, Column 8: "'AsyncStorage' is defined but never used."
no-unused-vars
|
| 23 |
import AsyncStorage from '@react-native-async-storage/async-storage'; |
| Error |
Row 24, Column 9: "Replace `·useContext·` with `useContext`"
prettier/prettier
|
| Warning |
Row 24, Column 10: "'useContext' is defined but never used."
no-unused-vars
|
| 24 |
import { useContext } from 'react'; |
| Warning |
Row 25, Column 8: "'LocalizationContext' is defined but never used."
no-unused-vars
|
| 25 |
import LocalizationContext from '../../../LocalizationContext'; |
| 26 |
import DropdownAlert from 'react-native-dropdownalert'; |
| Error |
Row 27, Column 9: "Replace `·connectEcho·` with `connectEcho`"
prettier/prettier
|
| 27 |
import { connectEcho } from '../../config/sockets'; |
| 28 |
const HomeTab = props => { |
| Error |
Row 29, Column 10: "Replace `·navigation,·route,·fetchHomeOrders,·home_orders,·profileData,·history_orders,·isGuest,·fetchEcho` with `⏎····navigation,⏎····route,⏎····fetchHomeOrders,⏎····home_orders,⏎····profileData,⏎····history_orders,⏎····isGuest,⏎····fetchEcho,⏎·`"
prettier/prettier
|
| Warning |
Row 29, Column 23: "'route' is assigned a value but never used."
no-unused-vars
|
| 29 |
const { navigation, route, fetchHomeOrders, home_orders, profileData, history_orders, isGuest, fetchEcho } = props; |
| 30 |
|
| 31 |
const alertRef = React.useRef(); |
| 32 |
const scrollX = React.useRef(new Animated.Value(0)).current; |
| 33 |
const scrollX2 = React.useRef(new Animated.Value(0)).current; |
| 34 |
const scrollX3 = React.useRef(new Animated.Value(0)).current; |
| 35 |
const scrollX4 = React.useRef(new Animated.Value(0)).current; |
| 36 |
|
| 37 |
// const {onLayout, width} = useLayout(); |
| 38 |
// let lastWidth = NaN; |
| 39 |
// React.useEffect(() => { |
| 40 |
// if (width != null && width !== lastWidth) { |
| 41 |
// lastWidth = width; |
| 42 |
// // alert(width - mvs(22) * 2); |
| 43 |
// } |
| 44 |
// }, [width]); |
| 45 |
|
| 46 |
// const isLarge = width >= 500; |
| 47 |
// console.log(width); |
| 48 |
// lastWidth = width - mvs(22) * 2; |
| 49 |
const itemHeight = mvs(240); |
| Error |
Row 50, Column 10: "Replace `·width·` with `width`"
prettier/prettier
|
| Warning |
Row 50, Column 11: "'width' is already declared in the upper scope."
no-shadow
|
| 50 |
const { width } = useWindowDimensions(); |
| 51 |
const [loading, setLoading] = React.useState(true); |
| 52 |
|
| Error |
Row 53, Column 1: "Delete `⏎⏎`"
prettier/prettier
|
| 53 |
|
| 54 |
|
| 55 |
useEffect(() => { |
| Warning |
Row 56, Column 5: "Expected space(s) after "if"."
keyword-spacing
|
| Error |
Row 56, Column 7: "Replace `(!isGuest)` with `·(!isGuest)·`"
prettier/prettier
|
| 56 |
if(!isGuest){ |
| Error |
Row 57, Column 35: "Replace `⏎······.then((res)` with `.then(res`"
prettier/prettier
|
| 57 |
connectEcho(profileData?.id) |
| 58 |
.then((res) => { |
| Error |
Row 59, Column 1: "Insert `·`"
prettier/prettier
|
| 59 |
// alert("ECO COMPLETE") |
| 60 |
//console.log("ECHO OBJ :: ",res) |
| Error |
Row 61, Column 23: "Insert `;`"
prettier/prettier
|
| Warning |
Row 61, Column 23: "Missing semicolon."
semi
|
| 61 |
fetchEcho(res) |
| Error |
Row 62, Column 9: "Insert `;`"
prettier/prettier
|
| Warning |
Row 62, Column 9: "Missing semicolon."
semi
|
| 62 |
}) |
| 63 |
} |
| Error |
Row 64, Column 5: "Replace `[])⏎·` with `·[]);`"
prettier/prettier
|
| Error |
Row 64, Column 5: "React Hook useEffect has missing dependencies: 'fetchEcho', 'isGuest', and 'profileData?.id'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 64, Column 8: "Missing semicolon."
semi
|
| 64 |
},[]) |
| Warning |
Row 65, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| 65 |
|
| 66 |
|
| 67 |
const getHomeOrdersHanlder = async () => { |
| 68 |
try { |
| 69 |
setLoading(true); |
| 70 |
await fetchHomeOrders(); |
| 71 |
setLoading(false); |
| 72 |
} catch (error) { |
| 73 |
setLoading(false); |
| 74 |
alertRef.current.alertWithType( |
| 75 |
'error', |
| 76 |
'Error', |
| 77 |
UI_API._returnError(error), |
| 78 |
); |
| 79 |
} |
| 80 |
}; |
| 81 |
|
| 82 |
React.useEffect(() => { |
| 83 |
let isActive = true; |
| 84 |
getHomeOrdersHanlder(); |
| Error |
Row 85, Column 19: "Replace `·isActive·=·false` with `⏎······isActive·=·false;⏎···`"
prettier/prettier
|
| Warning |
Row 85, Column 20: "'isActive' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 85, Column 36: "Missing semicolon."
semi
|
| 85 |
return () => { isActive = false }; |
| Error |
Row 86, Column 6: "React Hook React.useEffect has a missing dependency: 'getHomeOrdersHanlder'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 86, Column 29: "Insert `·`"
prettier/prettier
|
| 86 |
}, [profileData?.currency,history_orders]); |
| 87 |
|
| 88 |
const onScrollEvent = scroll => { |
| 89 |
return Animated.event( |
| 90 |
[ |
| 91 |
{ |
| 92 |
nativeEvent: { |
| Error |
Row 93, Column 29: "Replace `·x:·scroll·` with `x:·scroll`"
prettier/prettier
|
| 93 |
contentOffset: { x: scroll }, |
| 94 |
}, |
| 95 |
}, |
| 96 |
], |
| 97 |
{ |
| 98 |
useNativeDriver: true, |
| 99 |
}, |
| 100 |
); |
| 101 |
}; |
| 102 |
const pagination = (list, scrollType) => { |
| 103 |
return ( |
| 104 |
<Pagination |
| 105 |
list={list} |
| 106 |
scrollX={scrollType} |
| 107 |
style={styles.PAGINATION} |
| Error |
Row 108, Column 20: "Replace `·backgroundColor:·colors.price_border·` with `backgroundColor:·colors.price_border`"
prettier/prettier
|
| 108 |
dotStyle={{ backgroundColor: colors.price_border }} |
| 109 |
/> |
| 110 |
); |
| 111 |
}; |
| 112 |
|
| 113 |
const getItemLayout = (data, index) => ({ |
| 114 |
length: itemHeight, |
| 115 |
offset: itemHeight * index, |
| 116 |
index, |
| 117 |
}); |
| Error |
Row 118, Column 30: "Replace `·item·` with `item`"
prettier/prettier
|
| 118 |
const renderPostedCard = ({ item }) => ( |
| Error |
Row 119, Column 19: "Replace `·paddingHorizontal:·mvs(22)·` with `paddingHorizontal:·mvs(22)`"
prettier/prettier
|
| 119 |
<View style={{ paddingHorizontal: mvs(22) }}> |
| 120 |
<MakeOfferOrderCard |
| 121 |
{...props} |
| 122 |
{...item} |
| 123 |
{...UI_API._returnOrderProps(item)} |
| 124 |
order_data={item} |
| 125 |
style={{ |
| 126 |
width: width - mvs(22) * 2, |
| 127 |
}} |
| 128 |
/> |
| 129 |
</View> |
| 130 |
); |
| Error |
Row 131, Column 32: "Replace `·item·` with `item`"
prettier/prettier
|
| 131 |
const renderRelevantCard = ({ item }) => ( |
| Error |
Row 132, Column 19: "Replace `·paddingHorizontal:·mvs(22)·` with `paddingHorizontal:·mvs(22)`"
prettier/prettier
|
| 132 |
<View style={{ paddingHorizontal: mvs(22) }}> |
| 133 |
<MakeOfferOrderCard |
| 134 |
{...props} |
| 135 |
{...item} |
| 136 |
{...UI_API._returnOrderProps(item)} |
| 137 |
order_data={item} |
| 138 |
style={{ |
| 139 |
width: width - mvs(22) * 2, |
| 140 |
}} |
| 141 |
/> |
| 142 |
</View> |
| 143 |
); |
| Error |
Row 144, Column 33: "Replace `·item·` with `item`"
prettier/prettier
|
| 144 |
const renderDeliveredCard = ({ item }) => ( |
| Error |
Row 145, Column 19: "Replace `·paddingHorizontal:·mvs(22),·paddingBottom:·mvs(2)·` with `paddingHorizontal:·mvs(22),·paddingBottom:·mvs(2)`"
prettier/prettier
|
| 145 |
<View style={{ paddingHorizontal: mvs(22), paddingBottom: mvs(2) }}> |
| 146 |
<DeliveredOrderCard |
| 147 |
detinationWidth={mvs(90)} |
| 148 |
{...props} |
| 149 |
{...item} |
| 150 |
{...UI_API._returnOrderProps(item)} |
| 151 |
order_id={item?.order_id} |
| 152 |
order_data={item} |
| 153 |
offer_by={item.offer_by} |
| 154 |
// local = {item?.is_international} |
| 155 |
style={{ |
| 156 |
width: width - mvs(22) * 2, |
| 157 |
}} |
| 158 |
/> |
| 159 |
</View> |
| 160 |
); |
| Error |
Row 161, Column 34: "Replace `·item·` with `item`"
prettier/prettier
|
| 161 |
const renderProcessingCard = ({ item }) => ( |
| Error |
Row 162, Column 19: "Replace `·paddingHorizontal:·mvs(22),·width:·width·` with `paddingHorizontal:·mvs(22),·width:·width`"
prettier/prettier
|
| 162 |
<View style={{ paddingHorizontal: mvs(22), width: width }}> |
| 163 |
<ProcessingOrderCard |
| 164 |
detinationWidth={mvs(45)} |
| 165 |
{...props} |
| 166 |
{...item} |
| 167 |
{...UI_API._returnOrderProps(item)} |
| 168 |
order_id={item?.order_id} |
| 169 |
order_data={item} |
| 170 |
offer_by={item?.offer_by} |
| 171 |
style={{ |
| 172 |
width: width - mvs(22) * 2, |
| 173 |
}} |
| 174 |
/> |
| 175 |
</View> |
| 176 |
); |
| 177 |
const keyExtractor = (item, index) => index.toString(); |
| 178 |
|
| 179 |
if (loading) { |
| 180 |
return ( |
| Warning |
Row 181, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 181, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 181 |
<View style={{ flex: 1, backgroundColor: colors.white }}> |
| 182 |
<Header {...props} title="logo" headerLog bellIcon /> |
| Warning |
Row 183, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Error |
Row 183, Column 23: "Replace `·flex:·1,·justifyContent:·'center',·alignItems:·'center'·` with `flex:·1,·justifyContent:·'center',·alignItems:·'center'`"
prettier/prettier
|
| 183 |
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> |
| 184 |
<ActivityIndicator size="small" color={colors.primary} /> |
| 185 |
</View> |
| 186 |
</View> |
| 187 |
); |
| Warning |
Row 188, Column 5: "Expected { after 'else'."
curly
|
| 188 |
} else |
| 189 |
return ( |
| Warning |
Row 190, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 190, Column 21: "Replace `·flex:·1,·backgroundColor:·colors.white·` with `flex:·1,·backgroundColor:·colors.white`"
prettier/prettier
|
| 190 |
<View style={{ flex: 1, backgroundColor: colors.white }}> |
| 191 |
<Header {...props} title="logo" headerLog bellIcon /> |
| Warning |
Row 192, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 192, Column 23: "Replace `·flex:·1·` with `flex:·1`"
prettier/prettier
|
| 192 |
<View style={{ flex: 1 }}> |
| 193 |
<ScrollView |
| 194 |
showsVerticalScrollIndicator={false} |
| 195 |
nestedScrollEnabled |
| 196 |
contentContainerStyle={styles.SCROLL_CONTAINER}> |
| 197 |
<OrderTypeHeader |
| Error |
Row 198, Column 23: "Replace `·color:·colors.primary·` with `color:·colors.primary`"
prettier/prettier
|
| 198 |
style={{ color: colors.primary }} |
| 199 |
seeMore={false} |
| 200 |
title="Relevant for you" |
| 201 |
onPress={() => |
| 202 |
navigation.navigate('localorders', { |
| 203 |
isLocalOrders: true, |
| 204 |
isRelavent: true, |
| 205 |
}) |
| 206 |
} |
| 207 |
/> |
| Error |
Row 208, Column 27: "Replace `·...styles.RELEVENT_ORDER·` with `...styles.RELEVENT_ORDER`"
prettier/prettier
|
| 208 |
<View style={{ ...styles.RELEVENT_ORDER }}> |
| 209 |
<Animated.FlatList |
| 210 |
ListEmptyComponent={<SkeletonView />} |
| 211 |
getItemLayout={getItemLayout} |
| 212 |
maxToRenderPerBatch={5} |
| 213 |
showsHorizontalScrollIndicator={false} |
| 214 |
pagingEnabled |
| 215 |
windowSize={8} |
| 216 |
onScroll={onScrollEvent(scrollX)} |
| 217 |
horizontal |
| 218 |
keyExtractor={keyExtractor} |
| 219 |
contentContainerStyle={{}} |
| 220 |
data={home_orders?.relevant_orders} |
| 221 |
renderItem={renderRelevantCard} |
| 222 |
/> |
| 223 |
{pagination(home_orders?.relevant_orders, scrollX)} |
| 224 |
</View> |
| 225 |
|
| 226 |
<OrderTypeHeader |
| 227 |
title="Posted Orders" |
| Error |
Row 228, Column 26: "Insert `·`"
prettier/prettier
|
| 228 |
onPress={()=> navigation.navigate('postedorders')} |
| 229 |
/> |
| 230 |
<View |
| Error |
Row 231, Column 23: "Replace `·...styles.RELEVENT_ORDER,·backgroundColor:·colors.white·` with `...styles.RELEVENT_ORDER,·backgroundColor:·colors.white`"
prettier/prettier
|
| 231 |
style={{ ...styles.RELEVENT_ORDER, backgroundColor: colors.white }}> |
| 232 |
<Animated.FlatList |
| 233 |
ListEmptyComponent={<SkeletonView />} |
| 234 |
getItemLayout={getItemLayout} |
| 235 |
maxToRenderPerBatch={5} |
| 236 |
showsHorizontalScrollIndicator={false} |
| 237 |
pagingEnabled |
| 238 |
horizontal |
| 239 |
contentContainerStyle={{}} |
| 240 |
onScroll={onScrollEvent(scrollX2)} |
| 241 |
data={home_orders?.posted_orders} |
| 242 |
renderItem={renderPostedCard} |
| 243 |
keyExtractor={keyExtractor} |
| 244 |
/> |
| 245 |
{pagination(home_orders?.posted_orders, scrollX2)} |
| 246 |
</View> |
| 247 |
{home_orders?.processing_orders?.length > 0 && ( |
| 248 |
<> |
| 249 |
<OrderTypeHeader |
| 250 |
title="Processing Orders" |
| 251 |
onPress={() => navigation.navigate('processingorders')} |
| 252 |
/> |
| Error |
Row 253, Column 31: "Replace `·...styles.RELEVENT_ORDER,·paddingBottom:·mvs(2)·` with `...styles.RELEVENT_ORDER,·paddingBottom:·mvs(2)`"
prettier/prettier
|
| 253 |
<View style={{ ...styles.RELEVENT_ORDER, paddingBottom: mvs(2) }}> |
| 254 |
<Animated.FlatList |
| 255 |
ListEmptyComponent={ |
| Error |
Row 256, Column 45: "Replace `·paddingBottom:·mvs(20)·` with `paddingBottom:·mvs(20)`"
prettier/prettier
|
| 256 |
<SkeletonView style={{ paddingBottom: mvs(20) }} /> |
| 257 |
} |
| 258 |
getItemLayout={getItemLayout} |
| 259 |
maxToRenderPerBatch={5} |
| 260 |
showsHorizontalScrollIndicator={false} |
| 261 |
pagingEnabled |
| 262 |
horizontal |
| 263 |
contentContainerStyle={{}} |
| 264 |
onScroll={onScrollEvent(scrollX3)} |
| 265 |
data={home_orders?.processing_orders} |
| 266 |
renderItem={renderProcessingCard} |
| 267 |
keyExtractor={keyExtractor} |
| 268 |
/> |
| 269 |
{pagination(home_orders?.processing_orders, scrollX3)} |
| 270 |
</View> |
| 271 |
</> |
| 272 |
)} |
| Warning |
Row 273, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 273, Column 1: "Delete `············`"
prettier/prettier
|
| 273 |
|
| 274 |
{home_orders?.delivered_orders?.length > 0 && ( |
| 275 |
<> |
| 276 |
<OrderTypeHeader |
| 277 |
title="Delivered Orders" |
| 278 |
onPress={() => navigation.navigate('deliveredOrders')} |
| 279 |
/> |
| Error |
Row 280, Column 31: "Replace `·...styles.RELEVENT_ORDER,·paddingBottom:·mvs(0)·` with `...styles.RELEVENT_ORDER,·paddingBottom:·mvs(0)`"
prettier/prettier
|
| 280 |
<View style={{ ...styles.RELEVENT_ORDER, paddingBottom: mvs(0) }}> |
| 281 |
<Animated.FlatList |
| 282 |
ListEmptyComponent={ |
| Error |
Row 283, Column 45: "Replace `·paddingBottom:·mvs(20)·` with `paddingBottom:·mvs(20)`"
prettier/prettier
|
| 283 |
<SkeletonView style={{ paddingBottom: mvs(20) }} /> |
| 284 |
} |
| 285 |
getItemLayout={getItemLayout} |
| 286 |
maxToRenderPerBatch={5} |
| 287 |
showsHorizontalScrollIndicator={false} |
| 288 |
pagingEnabled |
| 289 |
horizontal |
| 290 |
contentContainerStyle={{}} |
| 291 |
onScroll={onScrollEvent(scrollX4)} |
| 292 |
data={home_orders?.delivered_orders} |
| 293 |
renderItem={renderDeliveredCard} |
| 294 |
keyExtractor={keyExtractor} |
| 295 |
/> |
| 296 |
{pagination(home_orders?.delivered_orders, scrollX4)} |
| 297 |
</View> |
| 298 |
</> |
| 299 |
)} |
| 300 |
</ScrollView> |
| 301 |
</View> |
| Error |
Row 302, Column 23: "Replace `·translucent·activeStatusBarStyle={'light-content'}··inactiveStatusBarBackgroundColor={colors.primary}·ref={alertRef}` with `⏎··········translucent⏎··········activeStatusBarStyle={'light-content'}⏎··········inactiveStatusBarBackgroundColor={colors.primary}⏎··········ref={alertRef}⏎·······`"
prettier/prettier
|
| 302 |
<DropdownAlert translucent activeStatusBarStyle={'light-content'} inactiveStatusBarBackgroundColor={colors.primary} ref={alertRef} /> |
| 303 |
</View> |
| 304 |
); |
| 305 |
}; |
| 306 |
|
| 307 |
const mapStateToProps = state => ({ |
| 308 |
home_orders: state.home?.home_orders, |
| 309 |
profileData: state.auth.userInfo?.profile || {}, |
| 310 |
history_orders: state.menu_orders?.history_orders, |
| 311 |
isGuest: state.auth.isGuest, |
| 312 |
}); |
| 313 |
|
| 314 |
const mapDispatchToProps = { |
| 315 |
fetchHomeOrders: () => TAKE_TO_ACTIONS.fetchHomeOrders(), |
| 316 |
fetchEcho: echo => TAKE_TO_ACTIONS?.fetchEcho(echo), |
| 317 |
}; |
| 318 |
export default connect(mapStateToProps, mapDispatchToProps)(HomeTab); |
| 319 |
|
| 320 |
const styles = StyleSheet.create({ |
| 321 |
SCROLL_CONTAINER: { |
| 322 |
paddingHorizontal: mvs(22), |
| 323 |
// paddingBottom: mvs(15), |
| 324 |
}, |
| 325 |
PAGINATION: { |
| 326 |
bottom: mvs(0), |
| 327 |
}, |
| 328 |
RELEVENT_ORDER: { |
| 329 |
// height: mvs(260), |
| 330 |
paddingBottom: mvs(22), |
| 331 |
// backgroundColor: colors.black, |
| 332 |
marginBottom: mvs(25), |
| 333 |
width: width, |
| 334 |
alignSelf: 'center', |
| 335 |
}, |
| 336 |
}); |
| 337 |
|
|
|
|
/src/screens/tab-screens/tab-inbox.js
|
37 problems (17 errors, 20 warnings)
|
| Severity |
Rule |
| Error |
Row 2, Column 9: "Replace `·useIsFocused·` with `useIsFocused`"
prettier/prettier
|
| Error |
Row 4, Column 9: "Replace `⏎··ActivityIndicator,⏎··FlatList,⏎··StyleSheet,⏎··View⏎` with `ActivityIndicator,·FlatList,·StyleSheet,·View`"
prettier/prettier
|
| Warning |
Row 8, Column 7: "Missing trailing comma."
comma-dangle
|
| Error |
Row 11, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Error |
Row 15, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Warning |
Row 19, Column 7: "'isFocus' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 19, Column 31: "Insert `;`"
prettier/prettier
|
| Warning |
Row 19, Column 31: "Missing semicolon."
semi
|
| Error |
Row 20, Column 10: "Replace `inboxList,·fetchInboxList,·profileData,·updateInboxList,·fetchEcho,·anotherEcho}·=` with `⏎····inboxList,⏎····fetchInboxList,⏎····profileData,⏎····updateInboxList,⏎····fetchEcho,⏎····anotherEcho,`"
prettier/prettier
|
| Warning |
Row 20, Column 67: "'fetchEcho' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 21, Column 3: "Replace `·` with `}·=`"
prettier/prettier
|
| Warning |
Row 24, Column 9: "'scrollRef' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 26, Column 10: "'echo' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 26, Column 16: "'setEcho' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 27, Column 10: "'msgs' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 27, Column 16: "'setMsgs' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 28, Column 10: "'channel' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 28, Column 19: "'setChannel' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 28, Column 52: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 42, Column 9: "'UI_API' is not defined."
no-undef
|
| Error |
Row 49, Column 6: "React Hook React.useEffect has a missing dependency: 'fetchInboxListHandler'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| Error |
Row 51, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 53, Column 65: "Insert `;`"
prettier/prettier
|
| Warning |
Row 53, Column 65: "Missing semicolon."
semi
|
| Error |
Row 55, Column 44: "Delete `·`"
prettier/prettier
|
| Warning |
Row 57, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 57, Column 3: "Replace `··⏎··},[])⏎⏎⏎` with `},·[]);`"
prettier/prettier
|
| Error |
Row 58, Column 5: "React Hook React.useEffect has missing dependencies: 'anotherEcho?.newChannel', 'profileData?.id', and 'updateInboxList'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 58, Column 8: "Missing semicolon."
semi
|
| Warning |
Row 67, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 80, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 87, Column 20: "Strings must use singlequote."
quotes
|
| Warning |
Row 88, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| Warning |
Row 93, Column 5: "Expected { after 'else'."
curly
|
| Warning |
Row 97, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 141, Column 16: "Delete `·`"
prettier/prettier
|
| Error |
Row 146, Column 46: "Replace `·dispatch(TAKE_TO_ACTIONS?.updateInboxList(·list·` with `⏎····dispatch(TAKE_TO_ACTIONS?.updateInboxList(list`"
prettier/prettier
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| Error |
Row 2, Column 9: "Replace `·useIsFocused·` with `useIsFocused`"
prettier/prettier
|
| 2 |
import { useIsFocused } from '@react-navigation/core'; |
| 3 |
import React from 'react'; |
| Error |
Row 4, Column 9: "Replace `⏎··ActivityIndicator,⏎··FlatList,⏎··StyleSheet,⏎··View⏎` with `ActivityIndicator,·FlatList,·StyleSheet,·View`"
prettier/prettier
|
| 4 |
import { |
| 5 |
ActivityIndicator, |
| 6 |
FlatList, |
| 7 |
StyleSheet, |
| Warning |
Row 8, Column 7: "Missing trailing comma."
comma-dangle
|
| 8 |
View |
| 9 |
} from 'react-native'; |
| 10 |
import DropdownAlert from 'react-native-dropdownalert'; |
| Error |
Row 11, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 11 |
import { connect } from 'react-redux'; |
| 12 |
import Conversation from '../../components/molecules/chat_card/conversation-card'; |
| 13 |
import Header from '../../components/molecules/header/header-1x'; |
| 14 |
import colors from '../../config/colors'; |
| Error |
Row 15, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 15 |
import { mvs } from '../../config/metrices'; |
| 16 |
import Regular from '../../presentation/typography/regular-text'; |
| 17 |
|
| 18 |
const InboxTab = props => { |
| Warning |
Row 19, Column 7: "'isFocus' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 19, Column 31: "Insert `;`"
prettier/prettier
|
| Warning |
Row 19, Column 31: "Missing semicolon."
semi
|
| 19 |
let isFocus = useIsFocused() |
| Error |
Row 20, Column 10: "Replace `inboxList,·fetchInboxList,·profileData,·updateInboxList,·fetchEcho,·anotherEcho}·=` with `⏎····inboxList,⏎····fetchInboxList,⏎····profileData,⏎····updateInboxList,⏎····fetchEcho,⏎····anotherEcho,`"
prettier/prettier
|
| Warning |
Row 20, Column 67: "'fetchEcho' is assigned a value but never used."
no-unused-vars
|
| 20 |
const {inboxList, fetchInboxList, profileData, updateInboxList, fetchEcho, anotherEcho} = |
| Error |
Row 21, Column 3: "Replace `·` with `}·=`"
prettier/prettier
|
| 21 |
props; |
| 22 |
const [loading, setLoading] = React.useState(true); |
| 23 |
const alertRef = React.useRef(); |
| Warning |
Row 24, Column 9: "'scrollRef' is assigned a value but never used."
no-unused-vars
|
| 24 |
const scrollRef = React.useRef(); |
| 25 |
|
| Warning |
Row 26, Column 10: "'echo' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 26, Column 16: "'setEcho' is assigned a value but never used."
no-unused-vars
|
| 26 |
const [echo, setEcho] = React.useState({}); |
| Warning |
Row 27, Column 10: "'msgs' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 27, Column 16: "'setMsgs' is assigned a value but never used."
no-unused-vars
|
| 27 |
const [msgs, setMsgs] = React.useState([]); |
| Warning |
Row 28, Column 10: "'channel' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 28, Column 19: "'setChannel' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 28, Column 52: "Delete `⏎`"
prettier/prettier
|
| 28 |
const [channel, setChannel] = React.useState({}); |
| 29 |
|
| 30 |
|
| 31 |
const fetchInboxListHandler = async () => { |
| 32 |
try { |
| 33 |
setLoading(true); |
| 34 |
await fetchInboxList(); |
| 35 |
setLoading(false); |
| 36 |
} catch (error) { |
| 37 |
setLoading(false); |
| 38 |
// scrollRef.current.scrollTo({x: 0, y: 0, animated: true}); |
| 39 |
alertRef.current.alertWithType( |
| 40 |
'error', |
| 41 |
'Error', |
| Error |
Row 42, Column 9: "'UI_API' is not defined."
no-undef
|
| 42 |
UI_API._returnError(error), |
| 43 |
); |
| 44 |
} |
| 45 |
}; |
| 46 |
|
| 47 |
React.useEffect(() => { |
| 48 |
fetchInboxListHandler(); |
| Error |
Row 49, Column 6: "React Hook React.useEffect has a missing dependency: 'fetchInboxListHandler'. Either include it or remove the dependency array."
react-hooks/exhaustive-deps
|
| 49 |
}, []); |
| 50 |
|
| Error |
Row 51, Column 1: "Delete `⏎`"
prettier/prettier
|
| 51 |
|
| 52 |
React.useEffect(() => { |
| Error |
Row 53, Column 65: "Insert `;`"
prettier/prettier
|
| Warning |
Row 53, Column 65: "Missing semicolon."
semi
|
| 53 |
anotherEcho?.newChannel?.stopListening('.new.message', null) |
| 54 |
anotherEcho?.newChannel?.listen('.new.message', function (data) { |
| Error |
Row 55, Column 44: "Delete `·`"
prettier/prettier
|
| 55 |
updateInboxList(data, profileData?.id , false); |
| 56 |
}); |
| Warning |
Row 57, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 57, Column 3: "Replace `··⏎··},[])⏎⏎⏎` with `},·[]);`"
prettier/prettier
|
| 57 |
|
| Error |
Row 58, Column 5: "React Hook React.useEffect has missing dependencies: 'anotherEcho?.newChannel', 'profileData?.id', and 'updateInboxList'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 58, Column 8: "Missing semicolon."
semi
|
| 58 |
},[]) |
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
if (loading) { |
| 64 |
return ( |
| 65 |
<View style={styles.mainContainer}> |
| 66 |
<Header {...props} title="Inbox" spacebetween userIcon bellIcon /> |
| Warning |
Row 67, Column 22: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 67 |
<View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}> |
| 68 |
<ActivityIndicator size="small" color={colors.primary} /> |
| 69 |
</View> |
| 70 |
</View> |
| 71 |
); |
| 72 |
} else if ( |
| 73 |
(!loading && Object?.keys(inboxList)?.length <= 0) || |
| 74 |
inboxList?.data?.length <= 0 |
| 75 |
) { |
| 76 |
return ( |
| 77 |
<View style={styles.mainContainer}> |
| 78 |
<Header {...props} title="Inbox" spacebetween userIcon bellIcon /> |
| 79 |
<View |
| Warning |
Row 80, Column 18: "Inline style: { flex: 1, justifyContent: 'center', alignItems: 'center' }"
react-native/no-inline-styles
|
| 80 |
style={{ |
| 81 |
flex: 1, |
| 82 |
justifyContent: 'center', |
| 83 |
alignItems: 'center', |
| 84 |
paddingHorizontal: mvs(20), |
| 85 |
}}> |
| 86 |
<Regular |
| Warning |
Row 87, Column 20: "Strings must use singlequote."
quotes
|
| 87 |
label={`No Record Found.`} |
| Warning |
Row 88, Column 20: "Inline style: { textAlign: 'center' }"
react-native/no-inline-styles
|
| 88 |
style={{textAlign: 'center', color: colors.primary}} |
| 89 |
/> |
| 90 |
</View> |
| 91 |
</View> |
| 92 |
); |
| Warning |
Row 93, Column 5: "Expected { after 'else'."
curly
|
| 93 |
} else |
| 94 |
return ( |
| 95 |
<View style={styles.mainContainer}> |
| 96 |
<Header {...props} title="Inbox" spacebetween userIcon bellIcon /> |
| Warning |
Row 97, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 97 |
<View style={{flex: 1}}> |
| 98 |
<FlatList |
| 99 |
data={inboxList?.data} |
| 100 |
renderItem={({item, index}) => ( |
| 101 |
<Conversation |
| 102 |
lastMessage={item?.resources?.latest_message?.type_verbose} |
| 103 |
isMessageTab |
| 104 |
type={'asd'} |
| 105 |
onPress={() => { |
| 106 |
props.navigation.navigate('chat', { |
| 107 |
thread_id: item?.id, |
| 108 |
participant_name: item?.name, |
| 109 |
//anotherEcho: echo, |
| 110 |
}); |
| 111 |
}} |
| 112 |
{...props} |
| 113 |
thread_id={item?.id} |
| 114 |
order_id={item?.order_id} |
| 115 |
user_name={item?.name} |
| 116 |
time={item?.updated_at || ''} |
| 117 |
counter={item?.unread_count || 0} |
| 118 |
message={item?.resources?.latest_message?.body || ''} |
| 119 |
user_img={`${item?.avatar?.sm}`} |
| 120 |
/> |
| 121 |
)} |
| 122 |
keyExtractor={item => item?.thread_id?.toString()} |
| 123 |
style={styles.conversationsContainer} |
| 124 |
contentContainerStyle={{paddingBottom: mvs(46)}} |
| 125 |
/> |
| 126 |
</View> |
| 127 |
<DropdownAlert |
| 128 |
translucent |
| 129 |
activeStatusBarStyle={'light-content'} |
| 130 |
inactiveStatusBarBackgroundColor={colors.primary} |
| 131 |
ref={alertRef} |
| 132 |
/> |
| 133 |
</View> |
| 134 |
); |
| 135 |
}; |
| 136 |
|
| 137 |
const mapStateToProps = state => { |
| 138 |
return { |
| 139 |
inboxList: state.inbox.inboxList || {}, |
| 140 |
profileData: state.auth.userInfo?.profile || {}, |
| Error |
Row 141, Column 16: "Delete `·`"
prettier/prettier
|
| 141 |
anotherEcho : state.common?.anotherEcho || {}, |
| 142 |
}; |
| 143 |
}; |
| 144 |
const mapDispatchToProps = dispatch => ({ |
| 145 |
fetchInboxList: () => dispatch(TAKE_TO_ACTIONS?.fetchInboxList()), |
| Error |
Row 146, Column 46: "Replace `·dispatch(TAKE_TO_ACTIONS?.updateInboxList(·list·` with `⏎····dispatch(TAKE_TO_ACTIONS?.updateInboxList(list`"
prettier/prettier
|
| 146 |
updateInboxList: (list, id, counterOnly) => dispatch(TAKE_TO_ACTIONS?.updateInboxList( list , id, counterOnly)), |
| 147 |
fetchEcho: echo => dispatch(TAKE_TO_ACTIONS?.fetchEcho(echo)), |
| 148 |
newMessageArrived: msg => dispatch(TAKE_TO_ACTIONS.newMessageArrived(msg)), |
| 149 |
}); |
| 150 |
export default connect(mapStateToProps, mapDispatchToProps)(InboxTab); |
| 151 |
|
| 152 |
const styles = StyleSheet.create({ |
| 153 |
mainContainer: { |
| 154 |
flex: 1, |
| 155 |
backgroundColor: colors.white, |
| 156 |
}, |
| 157 |
conversationsContainer: { |
| 158 |
flex: 1, |
| 159 |
paddingHorizontal: mvs(22), |
| 160 |
}, |
| 161 |
}); |
| 162 |
|
|
|
|
/src/screens/tab-screens/tab-order.js
|
4 problems (1 error, 3 warnings)
|
| Severity |
Rule |
| Warning |
Row 17, Column 5: "'countryList' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 18, Column 5: "'activeCountryList' is assigned a value but never used."
no-unused-vars
|
| Error |
Row 54, Column 6: "React Hook React.useEffect has missing dependencies: 'fetchDeliveryAddress', 'fetchShopAddress', and 'navigation'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| Warning |
Row 61, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Line |
Source |
| 1 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 2 |
import React, {useState} from 'react'; |
| 3 |
import {ScrollView, StyleSheet, TouchableOpacity, View} from 'react-native'; |
| 4 |
import {connect} from 'react-redux'; |
| 5 |
import Buttons from '../../components/atoms/Button'; |
| 6 |
import OrderPolicy from '../../components/molecules/create_order_policy/order-policy'; |
| 7 |
import Header from '../../components/molecules/header/header-1x'; |
| 8 |
import InstractionCard from '../../components/molecules/instraction-card-doted'; |
| 9 |
import colors from '../../config/colors'; |
| 10 |
import {mvs} from '../../config/metrices'; |
| 11 |
import Regular from '../../presentation/typography/regular-text'; |
| 12 |
|
| 13 |
const OrderTab = props => { |
| 14 |
const { |
| 15 |
fetchShopAddress, |
| 16 |
fetchDeliveryAddress, |
| Warning |
Row 17, Column 5: "'countryList' is assigned a value but never used."
no-unused-vars
|
| 17 |
countryList, |
| Warning |
Row 18, Column 5: "'activeCountryList' is assigned a value but never used."
no-unused-vars
|
| 18 |
activeCountryList, |
| 19 |
navigation, |
| 20 |
} = props; |
| 21 |
|
| 22 |
const {isGuest} = props; |
| 23 |
const [inst, setInst] = useState(true); |
| 24 |
const [makeMoney] = React.useState([ |
| 25 |
{ |
| 26 |
title: 'Create your order', |
| 27 |
description: |
| 28 |
'Search for a product you want, from abroad or in your country, whether from an online store or physical shop.', |
| 29 |
}, |
| 30 |
{ |
| 31 |
title: 'Receive offers from verified travelers going to your city', |
| 32 |
description: |
| 33 |
'Taketo travelers going to your city will make offers to deliver your item. Select & accept the offer you like.', |
| 34 |
}, |
| 35 |
{ |
| 36 |
title: 'Pay securely for your order', |
| 37 |
description: |
| 38 |
'Choose any offer you like and pay for the delivery using Taketo secure payment. Your payment is protected and guaranteed until you confirm receiving your order.', |
| 39 |
}, |
| 40 |
{ |
| 41 |
title: 'Receive your order', |
| 42 |
description: 'Meet with your traveler & receive your order.', |
| 43 |
}, |
| 44 |
]); |
| 45 |
|
| 46 |
React.useEffect(() => { |
| 47 |
const unsubscribe = navigation.addListener('focus', () => { |
| 48 |
fetchShopAddress(''); |
| 49 |
fetchDeliveryAddress(''); |
| 50 |
// const newList = countryList?.map(el => ({...el, isActive: false})); |
| 51 |
// activeCountryList(newList); |
| 52 |
}); |
| 53 |
return unsubscribe; |
| Error |
Row 54, Column 6: "React Hook React.useEffect has missing dependencies: 'fetchDeliveryAddress', 'fetchShopAddress', and 'navigation'. Either include them or remove the dependency array."
react-hooks/exhaustive-deps
|
| 54 |
}, []); |
| 55 |
|
| 56 |
return !inst ? ( |
| 57 |
<View style={styles.mainContainer}> |
| 58 |
<View style={{backgroundColor: colors.white}}> |
| 59 |
<Header {...props} title="create order" spacebetween bellIcon /> |
| 60 |
</View> |
| Warning |
Row 61, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 61 |
<View style={{flex: 1}}> |
| 62 |
<ScrollView |
| 63 |
contentContainerStyle={{backgroundColor: colors.white}} |
| 64 |
showsVerticalScrollIndicator={false}> |
| 65 |
<View style={styles.optionsContainer}> |
| 66 |
<View style={styles.optionsMainContainer}> |
| 67 |
<TouchableOpacity |
| 68 |
onPress={() => { |
| 69 |
props.navigation.navigate('stores'); |
| 70 |
}} |
| 71 |
style={styles.option1}> |
| 72 |
<Regular |
| 73 |
label="Show me popular stores" |
| 74 |
style={styles.optionTitle} |
| 75 |
/> |
| 76 |
<Regular |
| 77 |
label="I want to choose a product from popular stores." |
| 78 |
style={styles.optionDetail} |
| 79 |
/> |
| 80 |
</TouchableOpacity> |
| 81 |
<TouchableOpacity |
| 82 |
onPress={() => |
| 83 |
props.navigation.navigate('createorderestore', { |
| 84 |
re_order_object: null, |
| 85 |
}) |
| 86 |
} |
| 87 |
style={styles.option2}> |
| 88 |
<Regular |
| 89 |
label="From E-commerce website" |
| 90 |
style={styles.optionTitle} |
| 91 |
/> |
| 92 |
<Regular |
| 93 |
label="The product I want is online. I would like to enter the product link." |
| 94 |
style={styles.optionDetail} |
| 95 |
/> |
| 96 |
</TouchableOpacity> |
| 97 |
<TouchableOpacity |
| 98 |
onPress={() => { |
| 99 |
props.navigation.navigate('createorderpstore', { |
| 100 |
re_order_object: null, |
| 101 |
}); |
| 102 |
}} |
| 103 |
style={styles.option2}> |
| 104 |
<Regular |
| 105 |
label="From a physical shop" |
| 106 |
style={styles.optionTitle} |
| 107 |
/> |
| 108 |
<Regular |
| 109 |
label="The product I want is not online. I would like to enter the details manually." |
| 110 |
style={styles.optionDetail} |
| 111 |
/> |
| 112 |
</TouchableOpacity> |
| 113 |
</View> |
| 114 |
</View> |
| 115 |
|
| 116 |
{/* <View style = {styles.buttonContainer}> |
| 117 |
<Buttons.ButtonPrimaryLight onClick = {() => props.navigation.navigate('orderhistory')} title={'My orders history'}/> |
| 118 |
</View> */} |
| 119 |
|
| 120 |
<OrderPolicy /> |
| 121 |
</ScrollView> |
| 122 |
</View> |
| 123 |
</View> |
| 124 |
) : ( |
| 125 |
<View style={styles.mainContainer}> |
| 126 |
<Header {...props} title="How to order" spacebetween bellIcon /> |
| 127 |
<View style={styles.container}> |
| 128 |
<View |
| 129 |
style={{ |
| 130 |
paddingLeft: mvs(5.5), |
| 131 |
}}> |
| 132 |
{makeMoney.map((abroad, index) => ( |
| 133 |
<View style={{}} key={index}> |
| 134 |
<InstractionCard |
| 135 |
title={abroad.title} |
| 136 |
detail={abroad.description} |
| 137 |
border={makeMoney.length - 1 !== index} |
| 138 |
/> |
| 139 |
</View> |
| 140 |
))} |
| 141 |
</View> |
| 142 |
</View> |
| 143 |
|
| 144 |
<View style={{paddingHorizontal: mvs(22)}}> |
| 145 |
<Buttons.ButtonPrimary |
| 146 |
onClick={() => { |
| 147 |
isGuest ? props.navigation.navigate('login') : setInst(false); |
| 148 |
}} |
| 149 |
title="Create Your Order" |
| 150 |
/> |
| 151 |
</View> |
| 152 |
|
| 153 |
<View style={{paddingHorizontal: mvs(22), marginTop: mvs(10)}}> |
| 154 |
<Buttons.ButtonSecondaryOutline |
| 155 |
onClick={() => { |
| 156 |
isGuest |
| 157 |
? props.navigation.navigate('login') |
| 158 |
: props.navigation.navigate('orderhistory'); |
| 159 |
}} |
| 160 |
title="My Orders History" |
| 161 |
/> |
| 162 |
</View> |
| 163 |
</View> |
| 164 |
); |
| 165 |
}; |
| 166 |
|
| 167 |
const mapStateToProps = state => { |
| 168 |
return { |
| 169 |
isGuest: state.auth.isGuest, |
| 170 |
countryList: state.common.countriesList || [], |
| 171 |
}; |
| 172 |
}; |
| 173 |
const mapDispatchToProps = dispatch => ({ |
| 174 |
fetchShopAddress: data => dispatch(TAKE_TO_ACTIONS.fetchShopAddress(data)), |
| 175 |
fetchDeliveryAddress: data => |
| 176 |
dispatch(TAKE_TO_ACTIONS.fetchDeliveryAddress(data)), |
| 177 |
activeCountryList: countryList => |
| 178 |
dispatch(TAKE_TO_ACTIONS.activeCountryList(countryList)), |
| 179 |
}); |
| 180 |
export default connect(mapStateToProps, mapDispatchToProps)(OrderTab); |
| 181 |
|
| 182 |
const styles = StyleSheet.create({ |
| 183 |
mainContainer: { |
| 184 |
flex: 1, |
| 185 |
backgroundColor: colors.white, |
| 186 |
//borderWidth:1 |
| 187 |
}, |
| 188 |
container: { |
| 189 |
//flex : 1, |
| 190 |
paddingHorizontal: mvs(22), |
| 191 |
//paddingLeft : mvs(26+5.5), |
| 192 |
paddingTop: mvs(25), |
| 193 |
//borderWidth : 1, |
| 194 |
//backgroundColor : colors.white |
| 195 |
}, |
| 196 |
optionsContainer: { |
| 197 |
// height: mvs(270), |
| 198 |
width: '100%', |
| 199 |
borderBottomEndRadius: mvs(20), |
| 200 |
borderBottomStartRadius: mvs(20), |
| 201 |
backgroundColor: colors.white, |
| 202 |
paddingBottom: mvs(12), |
| 203 |
//borderWidth:1 |
| 204 |
}, |
| 205 |
optionsMainContainer: { |
| 206 |
flex: 1, |
| 207 |
paddingHorizontal: mvs(22), |
| 208 |
}, |
| 209 |
option1: { |
| 210 |
//height : mvs(56), |
| 211 |
width: '100%', |
| 212 |
alignSelf: 'center', |
| 213 |
marginTop: mvs(1), |
| 214 |
borderWidth: 1, |
| 215 |
borderColor: colors.primary, |
| 216 |
borderRadius: mvs(10), |
| 217 |
paddingHorizontal: mvs(10), |
| 218 |
paddingTop: mvs(12), |
| 219 |
paddingBottom: mvs(13), |
| 220 |
}, |
| 221 |
option2: { |
| 222 |
//height : mvs(71), |
| 223 |
width: '100%', |
| 224 |
alignSelf: 'center', |
| 225 |
marginTop: mvs(7), |
| 226 |
borderWidth: 1, |
| 227 |
borderColor: colors.primary, |
| 228 |
borderRadius: mvs(10), |
| 229 |
paddingHorizontal: mvs(10), |
| 230 |
paddingTop: mvs(12), |
| 231 |
paddingBottom: mvs(13), |
| 232 |
}, |
| 233 |
optionTitle: { |
| 234 |
fontSize: mvs(15), |
| 235 |
color: colors.primary, |
| 236 |
}, |
| 237 |
optionDetail: { |
| 238 |
fontSize: mvs(12), |
| 239 |
color: colors.headerTitle, |
| 240 |
marginTop: mvs(4), |
| 241 |
}, |
| 242 |
buttonContainer: { |
| 243 |
marginTop: mvs(18), |
| 244 |
paddingHorizontal: mvs(22), |
| 245 |
}, |
| 246 |
}); |
| 247 |
|
|
|
|
/src/screens/trip/international-trip/international-trip.js
|
43 problems (9 errors, 34 warnings)
|
| Severity |
Rule |
| Warning |
Row 33, Column 10: "'sliderValue' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 33, Column 23: "'setSliderValue' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 34, Column 10: "'selectedIndex' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 34, Column 25: "'setSelectedIndex' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 35, Column 10: "'deliveryBefore' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 35, Column 26: "'setDeliveryBefore' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 36, Column 10: "'nextModal' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 36, Column 21: "'setNextModal' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 47, Column 9: "'defaltPaylod' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 206, Column 7: "Unexpected alert."
no-alert
|
| Warning |
Row 240, Column 18: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Warning |
Row 248, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Warning |
Row 250, Column 34: "Inline style: { flexGrow: 1 }"
react-native/no-inline-styles
|
| Warning |
Row 257, Column 22: "Inline style: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| Warning |
Row 283, Column 24: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Warning |
Row 291, Column 24: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| Warning |
Row 335, Column 26: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Warning |
Row 355, Column 26: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Warning |
Row 360, Column 24: "Inline style: { justifyContent: 'flex-end' }"
react-native/no-inline-styles
|
| Warning |
Row 382, Column 26: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 398, Column 26: "Replace `"LOC:"` with `'LOC:'`"
prettier/prettier
|
| Warning |
Row 398, Column 26: "Strings must use singlequote."
quotes
|
| Warning |
Row 401, Column 26: "Inline style: { textAlign: 'left' }"
react-native/no-inline-styles
|
| Error |
Row 401, Column 59: "Delete `·`"
prettier/prettier
|
| Error |
Row 409, Column 22: "Replace `internationalFilter.full_address_from?.trim()·||·'Location'}` with `⏎················internationalFilter.full_address_from?.trim()·||·'Location'`"
prettier/prettier
|
| Warning |
Row 410, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 410, Column 13: "Insert `··}`"
prettier/prettier
|
| Warning |
Row 433, Column 22: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Warning |
Row 454, Column 26: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Warning |
Row 488, Column 26: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Warning |
Row 541, Column 24: "Inline style: { alignSelf: 'flex-end' }"
react-native/no-inline-styles
|
| Warning |
Row 553, Column 26: "Inline style: { width: '55%' }"
react-native/no-inline-styles
|
| Error |
Row 563, Column 17: "Insert `··`"
prettier/prettier
|
| Warning |
Row 565, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 565, Column 1: "Delete `····················`"
prettier/prettier
|
| Warning |
Row 572, Column 24: "Inline style: { alignSelf: 'flex-end' }"
react-native/no-inline-styles
|
| Warning |
Row 581, Column 26: "Inline style: { width: '55%' }"
react-native/no-inline-styles
|
| Warning |
Row 602, Column 22: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Warning |
Row 607, Column 22: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Warning |
Row 665, Column 58: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 737, Column 3: "Duplicate key 'DESTINATION_CONTAINER'."
no-dupe-keys
|
| Error |
Row 806, Column 3: "Duplicate key 'BUTTON_CONTAINER'."
no-dupe-keys
|
| Error |
Row 811, Column 3: "Duplicate key 'BUTTON'."
no-dupe-keys
|
| Line |
Source |
| 1 |
import React from 'react'; |
| 2 |
import moment from 'moment'; |
| 3 |
import Slider from '@react-native-community/slider'; |
| 4 |
import {ScrollView, StyleSheet, View} from 'react-native'; |
| 5 |
import colors from '../../../config/colors'; |
| 6 |
import {mvs} from '../../../config/metrices'; |
| 7 |
import Regular from '../../../presentation/typography/regular-text'; |
| 8 |
import CustomRadio from '../../../components/atoms/RadioButton'; |
| 9 |
import Buttons from '../../../components/atoms/Button'; |
| 10 |
import CustomSwitch from '../../../components/atoms/Switch'; |
| 11 |
import DatePickerModal from '../../../components/molecules/modals/date-picker-modal'; |
| 12 |
import Header from '../../../components/molecules/header/header-1x'; |
| 13 |
import SearchLocationModal from '../../../components/molecules/modals/search-location-modal/searchlocation-modal'; |
| 14 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| 15 |
import AsyncStorage from '@react-native-async-storage/async-storage'; |
| 16 |
|
| 17 |
import {connect} from 'react-redux'; |
| 18 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 19 |
import services from '@khan_ahmad786/common/api/services'; |
| 20 |
import CountryPicker from 'react-native-country-picker-modal'; |
| 21 |
const InternationalTrip = props => { |
| 22 |
const { |
| 23 |
route, |
| 24 |
navigation, |
| 25 |
internationalFilter, |
| 26 |
setOrResetInternationalFilter, |
| 27 |
countriesList, |
| 28 |
profileData, |
| 29 |
clearFilterOrders, |
| 30 |
} = props; |
| 31 |
const {isFilter, isOnline} = route.params; |
| 32 |
|
| Warning |
Row 33, Column 10: "'sliderValue' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 33, Column 23: "'setSliderValue' is assigned a value but never used."
no-unused-vars
|
| 33 |
const [sliderValue, setSliderValue] = React.useState(10); |
| Warning |
Row 34, Column 10: "'selectedIndex' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 34, Column 25: "'setSelectedIndex' is assigned a value but never used."
no-unused-vars
|
| 34 |
const [selectedIndex, setSelectedIndex] = React.useState(0); |
| Warning |
Row 35, Column 10: "'deliveryBefore' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 35, Column 26: "'setDeliveryBefore' is assigned a value but never used."
no-unused-vars
|
| 35 |
const [deliveryBefore, setDeliveryBefore] = React.useState(''); |
| Warning |
Row 36, Column 10: "'nextModal' is assigned a value but never used."
no-unused-vars
|
| Warning |
Row 36, Column 21: "'setNextModal' is assigned a value but never used."
no-unused-vars
|
| 36 |
const [nextModal, setNextModal] = React.useState(false); |
| 37 |
const radioLabels = { |
| 38 |
label1Way: 'One Way', |
| 39 |
label2Way: 'Round Trip', |
| 40 |
label30Days: 'Up to 30 days', |
| 41 |
label3Weeks: 'Up to 3 weeks', |
| 42 |
label2Weeks: 'Up to 2 weeks', |
| 43 |
label90Days: 'Up to 90 days', |
| 44 |
labelUrgent: 'Urgent Deliveries', |
| 45 |
labelDeliveryBefore: 'Delivery Before', |
| 46 |
}; |
| Warning |
Row 47, Column 9: "'defaltPaylod' is assigned a value but never used."
no-unused-vars
|
| 47 |
const defaltPaylod = { |
| 48 |
to_latitude: '', |
| 49 |
to_longitude: '', |
| 50 |
departure_date: '', |
| 51 |
returning_date: '', |
| 52 |
trip_type: 0, |
| 53 |
no_delivery: true, |
| 54 |
max_price: 0, |
| 55 |
reward: 0, |
| 56 |
is_urgent: false, |
| 57 |
delivery_date: moment().add(30, 'days').format('YYYY-MM-DD'), |
| 58 |
radius: 0, |
| 59 |
country_from: '', |
| 60 |
country_to: '', |
| 61 |
city_from: '', |
| 62 |
city_to: '', |
| 63 |
is_save: false, |
| 64 |
full_address_from: '', |
| 65 |
full_address_to: '', |
| 66 |
}; |
| 67 |
// const [internationalFilter, setOrResetInternationalFilter] = React.useState(defaltPaylod); |
| 68 |
const [dateOption, setDateOption] = React.useState(''); |
| 69 |
const [isDatePickerVisible, setDatePickerVisibility] = React.useState(false); |
| 70 |
const [loading, setLoading] = React.useState(false); |
| 71 |
const hideDatePicker = date => { |
| 72 |
console.log(date); |
| 73 |
setOrResetInternationalFilter({ |
| 74 |
...internationalFilter, |
| 75 |
[dateOption]: `${date?.day} / ${date?.month + 1} / ${date?.year}`, |
| 76 |
}); |
| 77 |
setDatePickerVisibility(false); |
| 78 |
}; |
| 79 |
const showDatePicker = option => { |
| 80 |
console.log('option:', option); |
| 81 |
// if (!internationalFilter[option]) { |
| 82 |
// setOrResetInternationalFilter({ |
| 83 |
// ...internationalFilter, |
| 84 |
// [option]: `${new Date().getDate()} / ${new Date().getMonth()} / ${new Date().getFullYear()}`, |
| 85 |
// }); |
| 86 |
// } |
| 87 |
setDateOption(option); |
| 88 |
setDatePickerVisibility(true); |
| 89 |
}; |
| 90 |
|
| 91 |
const [visible, setVisble] = React.useState(false); |
| 92 |
const [countryModal, setCountryModal] = React.useState(false); |
| 93 |
|
| 94 |
const [locationOption, setLocationOption] = React.useState('country_from'); //country_from or country_to |
| 95 |
|
| 96 |
const onSetLocation = addressComponent => { |
| 97 |
if (locationOption === 'country_from') { |
| 98 |
setOrResetInternationalFilter({ |
| 99 |
...internationalFilter, |
| 100 |
full_address_from: addressComponent?.fulladdress, |
| 101 |
country_from: addressComponent?.country, |
| 102 |
city_from: addressComponent?.city, |
| 103 |
from_country_short_name: |
| 104 |
addressComponent?.country_short_name?.toLowerCase(), |
| 105 |
to_latitude: addressComponent?.geoCode?.lat, |
| 106 |
to_longitude: addressComponent?.geoCode?.lng, |
| 107 |
from_flag: UI_API._returnFlag(addressComponent?.country_short_name), |
| 108 |
}); |
| 109 |
} else { |
| 110 |
setOrResetInternationalFilter({ |
| 111 |
...internationalFilter, |
| 112 |
full_address_to: addressComponent?.fulladdress, |
| 113 |
country_to: addressComponent?.country, |
| 114 |
city_to: addressComponent?.city, |
| 115 |
to_country_short_name: |
| 116 |
addressComponent?.country_short_name?.toLowerCase(), |
| 117 |
to_flag: UI_API._returnFlag(addressComponent?.country_short_name), |
| 118 |
}); |
| 119 |
} |
| 120 |
}; |
| 121 |
const onPicLocDestination = option => { |
| 122 |
setLocationOption(option); |
| 123 |
setVisble(true); |
| 124 |
}; |
| 125 |
|
| 126 |
const returnSelectedDays = () => { |
| 127 |
switch (internationalFilter?.delivery_date) { |
| 128 |
case radioLabels.label30Days: |
| 129 |
return 30; |
| 130 |
case radioLabels.label3Weeks: |
| 131 |
return 21; |
| 132 |
case radioLabels.label2Weeks: |
| 133 |
return 14; |
| 134 |
case radioLabels.label90Days: |
| 135 |
return 90; |
| 136 |
case radioLabels.labelUrgent: |
| 137 |
return 0; |
| 138 |
default: |
| 139 |
return 30; |
| 140 |
} |
| 141 |
}; |
| 142 |
const onSaveTrip = async () => { |
| 143 |
try { |
| 144 |
setLoading(true); |
| 145 |
clearFilterOrders(); |
| 146 |
const dateObj = {}; |
| 147 |
if (internationalFilter.trip_type === 2) { |
| 148 |
dateObj.returning_date = UI_API._replaceAllSlash( |
| 149 |
internationalFilter.returning_date, |
| 150 |
); |
| 151 |
} else { |
| 152 |
delete internationalFilter.returning_date; |
| 153 |
} |
| 154 |
let obj = { |
| 155 |
...internationalFilter, |
| 156 |
...dateObj, |
| 157 |
delivery_date: ifRadio(radioLabels.labelDeliveryBefore) |
| 158 |
? UI_API._replaceAllSlash(internationalFilter.delivery_date) |
| 159 |
: moment().add(returnSelectedDays(), 'days').format('YYYY-MM-DD'), |
| 160 |
departure_date: UI_API._replaceAllSlash( |
| 161 |
internationalFilter.departure_date, |
| 162 |
), |
| 163 |
no_delivery: internationalFilter.no_delivery ? 1 : 0, |
| 164 |
is_save: isFilter ? 0 : 1, |
| 165 |
}; |
| 166 |
|
| 167 |
//delete short names |
| 168 |
// delete obj?.from_country_short_name; |
| 169 |
// delete obj?.to_country_short_name; |
| 170 |
delete obj?.full_address_from; |
| 171 |
delete obj?.full_address_to; |
| 172 |
delete obj?.city_from; |
| 173 |
delete obj?.city_to; |
| 174 |
|
| 175 |
delete obj?.to_longitude; |
| 176 |
delete obj?.to_latitude; |
| 177 |
|
| 178 |
delete obj?.from_flag; |
| 179 |
delete obj?.to_flag; |
| 180 |
|
| 181 |
console.log('UI_API._removeEmptyKeys(obj)', UI_API._removeEmptyKeys(obj)); |
| 182 |
|
| 183 |
let location = await AsyncStorage.getItem('@location'); |
| 184 |
|
| 185 |
if (location) { |
| 186 |
location = JSON.parse(location); |
| 187 |
obj = { |
| 188 |
...obj, |
| 189 |
latitude: location?.latitude, |
| 190 |
longitude: location?.longitude, |
| 191 |
}; |
| 192 |
} |
| 193 |
|
| 194 |
setLoading(false); |
| 195 |
|
| 196 |
navigation.replace('internationaldelivery', { |
| 197 |
isFilter, |
| 198 |
isLocalOrder: false, |
| 199 |
filterPayload: UI_API._removeEmptyKeys(obj), |
| 200 |
flags: { |
| 201 |
from: internationalFilter?.from_flag, |
| 202 |
to: internationalFilter?.to_flag, |
| 203 |
}, |
| 204 |
}); |
| 205 |
} catch (error) { |
| Warning |
Row 206, Column 7: "Unexpected alert."
no-alert
|
| 206 |
alert(UI_API._returnError(error)); |
| 207 |
setLoading(false); |
| 208 |
} |
| 209 |
}; |
| 210 |
|
| 211 |
const clear = () => { |
| 212 |
setOrResetInternationalFilter(undefined, false); |
| 213 |
}; |
| 214 |
|
| 215 |
const ifRadio = key => { |
| 216 |
switch (key) { |
| 217 |
case radioLabels.label1Way: |
| 218 |
return internationalFilter.trip_type === 1; |
| 219 |
case radioLabels.label2Way: |
| 220 |
return internationalFilter.trip_type === 2; |
| 221 |
case radioLabels.label30Days: |
| 222 |
return internationalFilter?.delivery_date === radioLabels.label30Days; |
| 223 |
case radioLabels.label3Weeks: |
| 224 |
return internationalFilter?.delivery_date === radioLabels.label3Weeks; |
| 225 |
case radioLabels.label2Weeks: |
| 226 |
return internationalFilter?.delivery_date === radioLabels.label2Weeks; |
| 227 |
case radioLabels.label90Days: |
| 228 |
return internationalFilter?.delivery_date === radioLabels.label90Days; |
| 229 |
case radioLabels.labelUrgent: |
| 230 |
return internationalFilter?.delivery_date === radioLabels.labelUrgent; |
| 231 |
case radioLabels.labelDeliveryBefore: |
| 232 |
return internationalFilter?.delivery_date?.includes('/'); |
| 233 |
|
| 234 |
default: |
| 235 |
return false; |
| 236 |
} |
| 237 |
}; |
| 238 |
|
| 239 |
return ( |
| Warning |
Row 240, Column 18: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 240 |
<View style={{flex: 1, backgroundColor: colors.white}}> |
| 241 |
<Header |
| 242 |
{...props} |
| 243 |
title={isFilter ? 'filters' : 'Add Trip'} |
| 244 |
allowBackBtn |
| 245 |
bellIcon |
| 246 |
/> |
| 247 |
|
| Warning |
Row 248, Column 20: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 248 |
<View style={{flex: 1}}> |
| 249 |
<ScrollView |
| Warning |
Row 250, Column 34: "Inline style: { flexGrow: 1 }"
react-native/no-inline-styles
|
| 250 |
contentContainerStyle={{ |
| 251 |
flexGrow: 1, |
| 252 |
paddingBottom: mvs(40), |
| 253 |
paddingHorizontal: mvs(22), |
| 254 |
}}> |
| 255 |
{isFilter && ( |
| 256 |
<View |
| Warning |
Row 257, Column 22: "Inline style: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| 257 |
style={{ |
| 258 |
flexDirection: 'row', |
| 259 |
alignItems: 'center', |
| 260 |
justifyContent: 'space-between', |
| 261 |
}}> |
| 262 |
<Regular label={'Deliver Before'} /> |
| 263 |
<Buttons.ButtonRTL |
| 264 |
textStyle={{ |
| 265 |
color: ifRadio(radioLabels.labelDeliveryBefore) |
| 266 |
? colors.primary |
| 267 |
: colors.lightgrey2, |
| 268 |
}} |
| 269 |
// disabled={ifRadio(radioLabels.label2Way)} |
| 270 |
onClick={() => { |
| 271 |
showDatePicker('delivery_date'); |
| 272 |
// setOrResetInternationalFilter({ |
| 273 |
// ...internationalFilter, |
| 274 |
|
| 275 |
// }); |
| 276 |
}} |
| 277 |
iconName={'date'} |
| 278 |
title={ |
| 279 |
ifRadio(radioLabels.labelDeliveryBefore) |
| 280 |
? internationalFilter.delivery_date |
| 281 |
: 'Date' |
| 282 |
} |
| Warning |
Row 283, Column 24: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 283 |
style={{...styles.FLAG_BUTTON, width: '49%'}} |
| 284 |
iconStyle={styles.RTL_ICON} |
| 285 |
/> |
| 286 |
</View> |
| 287 |
)} |
| 288 |
{!isFilter && ( |
| 289 |
<> |
| 290 |
<View |
| Warning |
Row 291, Column 24: "Inline style: { flexDirection: 'row', justifyContent: 'space-between' }"
react-native/no-inline-styles
|
| 291 |
style={{flexDirection: 'row', justifyContent: 'space-between'}}> |
| 292 |
<CustomRadio |
| 293 |
style={styles.TRIP_TYPE_RADIO} |
| 294 |
status={ifRadio(radioLabels.label1Way)} |
| 295 |
label={radioLabels.label1Way} |
| 296 |
onChange={value => { |
| 297 |
setOrResetInternationalFilter({ |
| 298 |
...internationalFilter, |
| 299 |
trip_type: 1, |
| 300 |
}); |
| 301 |
}} |
| 302 |
/> |
| 303 |
<CustomRadio |
| 304 |
style={styles.TRIP_TYPE_RADIO} |
| 305 |
status={ifRadio(radioLabels.label2Way)} |
| 306 |
label={radioLabels.label2Way} |
| 307 |
onChange={value => |
| 308 |
setOrResetInternationalFilter({ |
| 309 |
...internationalFilter, |
| 310 |
trip_type: 2, |
| 311 |
}) |
| 312 |
} |
| 313 |
/> |
| 314 |
</View> |
| 315 |
|
| 316 |
<View |
| 317 |
style={{...styles.DESTINATION_CONTAINER, marginTop: mvs(10)}}> |
| 318 |
<Buttons.ButtonRTL |
| 319 |
textStyle={{ |
| 320 |
color: |
| 321 |
internationalFilter.delivery_date && |
| 322 |
ifRadio(radioLabels.label1Way) |
| 323 |
? colors.primary |
| 324 |
: colors.lightgrey2, |
| 325 |
}} |
| 326 |
disabled={ifRadio(radioLabels.label2Way)} |
| 327 |
onClick={() => showDatePicker('departure_date')} |
| 328 |
iconName={'date'} |
| 329 |
title={ |
| 330 |
internationalFilter.departure_date && |
| 331 |
ifRadio(radioLabels.label1Way) |
| 332 |
? internationalFilter.departure_date |
| 333 |
: 'Departure' |
| 334 |
} |
| Warning |
Row 335, Column 26: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 335 |
style={{...styles.FLAG_BUTTON, width: '49%'}} |
| 336 |
iconStyle={styles.RTL_ICON} |
| 337 |
/> |
| 338 |
<Buttons.ButtonRTL |
| 339 |
textStyle={{ |
| 340 |
color: |
| 341 |
internationalFilter.departure_date && |
| 342 |
ifRadio(radioLabels.label2Way) |
| 343 |
? colors.primary |
| 344 |
: colors.lightgrey2, |
| 345 |
}} |
| 346 |
disabled={ifRadio(radioLabels.label1Way)} |
| 347 |
onClick={() => showDatePicker('departure_date')} |
| 348 |
iconName={'date'} |
| 349 |
title={ |
| 350 |
internationalFilter.departure_date && |
| 351 |
ifRadio(radioLabels.label2Way) |
| 352 |
? internationalFilter.departure_date |
| 353 |
: 'Departure' |
| 354 |
} |
| Warning |
Row 355, Column 26: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 355 |
style={{...styles.FLAG_BUTTON, width: '49%'}} |
| 356 |
iconStyle={styles.RTL_ICON} |
| 357 |
/> |
| 358 |
</View> |
| 359 |
<View |
| Warning |
Row 360, Column 24: "Inline style: { justifyContent: 'flex-end' }"
react-native/no-inline-styles
|
| 360 |
style={{ |
| 361 |
...styles.DESTINATION_CONTAINER, |
| 362 |
justifyContent: 'flex-end', |
| 363 |
marginTop: mvs(10), |
| 364 |
}}> |
| 365 |
<Buttons.ButtonRTL |
| 366 |
textStyle={{ |
| 367 |
color: |
| 368 |
internationalFilter.returning_date && |
| 369 |
ifRadio(radioLabels.label2Way) |
| 370 |
? colors.primary |
| 371 |
: colors.lightgrey2, |
| 372 |
}} |
| 373 |
disabled={ifRadio(radioLabels.label1Way)} |
| 374 |
onClick={() => showDatePicker('returning_date')} |
| 375 |
iconName={'date'} |
| 376 |
title={ |
| 377 |
internationalFilter.returning_date && |
| 378 |
ifRadio(radioLabels.label2Way) |
| 379 |
? internationalFilter.returning_date |
| 380 |
: 'Returning' |
| 381 |
} |
| Warning |
Row 382, Column 26: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 382 |
style={{...styles.FLAG_BUTTON, width: '49%'}} |
| 383 |
iconStyle={styles.RTL_ICON} |
| 384 |
/> |
| 385 |
</View> |
| 386 |
</> |
| 387 |
)} |
| 388 |
<View> |
| 389 |
<Regular |
| 390 |
label={'Location'} |
| 391 |
style={{ |
| 392 |
fontSize: mvs(15), |
| 393 |
color: colors.typeHeader, |
| 394 |
marginTop: mvs(isFilter ? 20 : 0), |
| 395 |
marginBottom: mvs(10), |
| 396 |
}} |
| 397 |
/> |
| Error |
Row 398, Column 26: "Replace `"LOC:"` with `'LOC:'`"
prettier/prettier
|
| Warning |
Row 398, Column 26: "Strings must use singlequote."
quotes
|
| 398 |
{console.log("LOC:", internationalFilter?.full_address_from)} |
| 399 |
<Buttons.ButtonLocation |
| 400 |
iconName={internationalFilter.from_flag || services.land_mark} |
| Warning |
Row 401, Column 26: "Inline style: { textAlign: 'left' }"
react-native/no-inline-styles
|
| Error |
Row 401, Column 59: "Delete `·`"
prettier/prettier
|
| 401 |
textStyle={{color: colors.primary, textAlign : 'left'}} |
| 402 |
onClick={() => { |
| 403 |
if (isOnline) { |
| 404 |
setCountryModal(true); |
| 405 |
} else { |
| 406 |
onPicLocDestination('country_from'); |
| 407 |
} |
| 408 |
}} |
| Error |
Row 409, Column 22: "Replace `internationalFilter.full_address_from?.trim()·||·'Location'}` with `⏎················internationalFilter.full_address_from?.trim()·||·'Location'`"
prettier/prettier
|
| 409 |
title={internationalFilter.full_address_from?.trim() || 'Location'} |
| Warning |
Row 410, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 410, Column 13: "Insert `··}`"
prettier/prettier
|
| 410 |
|
| 411 |
style={styles.FLAG_BUTTON} |
| 412 |
iconStyle={{ |
| 413 |
height: mvs(23), |
| 414 |
width: mvs(23), |
| 415 |
}} |
| 416 |
/> |
| 417 |
</View> |
| 418 |
<View style={{marginTop: mvs(8)}}> |
| 419 |
<Regular |
| 420 |
label={'Destination'} |
| 421 |
style={{ |
| 422 |
fontSize: mvs(15), |
| 423 |
color: colors.typeHeader, |
| 424 |
marginBottom: mvs(10), |
| 425 |
}} |
| 426 |
/> |
| 427 |
<Buttons.ButtonLocation |
| 428 |
iconName={internationalFilter.to_flag || services.land_mark} |
| 429 |
textStyle={{color: colors.primary}} |
| 430 |
showIcon={false} |
| 431 |
onClick={() => onPicLocDestination('country_to')} |
| 432 |
title={internationalFilter.full_address_to || 'Destination'} |
| Warning |
Row 433, Column 22: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| 433 |
style={{...styles.FLAG_BUTTON, flexDirection: 'row'}} |
| 434 |
iconStyle={{ |
| 435 |
height: mvs(23), |
| 436 |
width: mvs(23), |
| 437 |
}} |
| 438 |
/> |
| 439 |
</View> |
| 440 |
<CustomSwitch |
| 441 |
textStyle={{color: colors.typeHeader}} |
| 442 |
label={'No delivery offers'} |
| 443 |
value={internationalFilter.no_delivery} |
| 444 |
onChange={value => |
| 445 |
setOrResetInternationalFilter({ |
| 446 |
...internationalFilter, |
| 447 |
no_delivery: value, |
| 448 |
}) |
| 449 |
} |
| 450 |
/> |
| 451 |
<View style={styles.DIV} /> |
| 452 |
<Regular label={'Delivery time'} style={styles.DEL_TIME} /> |
| 453 |
<View style={styles.RADIO_CONTAINER}> |
| Warning |
Row 454, Column 26: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| 454 |
<View style={{flexDirection: 'row', marginBottom: mvs(8)}}> |
| 455 |
<CustomRadio |
| 456 |
labelStyle={{ |
| 457 |
color: ifRadio(radioLabels.label30Days) |
| 458 |
? colors.primary |
| 459 |
: colors.headerTitle, |
| 460 |
}} |
| 461 |
status={ifRadio(radioLabels.label30Days)} |
| 462 |
label={radioLabels.label30Days} |
| 463 |
onChange={value => |
| 464 |
setOrResetInternationalFilter({ |
| 465 |
...internationalFilter, |
| 466 |
delivery_date: radioLabels.label30Days, |
| 467 |
}) |
| 468 |
} |
| 469 |
/> |
| 470 |
<CustomRadio |
| 471 |
labelStyle={{ |
| 472 |
color: ifRadio(radioLabels.label3Weeks) |
| 473 |
? colors.primary |
| 474 |
: colors.headerTitle, |
| 475 |
}} |
| 476 |
style={{marginLeft: mvs(45)}} |
| 477 |
status={ifRadio(radioLabels.label3Weeks)} |
| 478 |
label={radioLabels.label3Weeks} |
| 479 |
onChange={value => |
| 480 |
setOrResetInternationalFilter({ |
| 481 |
...internationalFilter, |
| 482 |
delivery_date: radioLabels.label3Weeks, |
| 483 |
is_urgent: 0, |
| 484 |
}) |
| 485 |
} |
| 486 |
/> |
| 487 |
</View> |
| Warning |
Row 488, Column 26: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| 488 |
<View style={{flexDirection: 'row', marginBottom: mvs(8)}}> |
| 489 |
<CustomRadio |
| 490 |
labelStyle={{ |
| 491 |
color: ifRadio(radioLabels.label2Weeks) |
| 492 |
? colors.primary |
| 493 |
: colors.headerTitle, |
| 494 |
}} |
| 495 |
status={ifRadio(radioLabels.label2Weeks)} |
| 496 |
label={'Up to 2 weeks'} |
| 497 |
onChange={value => |
| 498 |
setOrResetInternationalFilter({ |
| 499 |
...internationalFilter, |
| 500 |
delivery_date: radioLabels.label2Weeks, |
| 501 |
is_urgent: 0, |
| 502 |
}) |
| 503 |
} |
| 504 |
/> |
| 505 |
<CustomRadio |
| 506 |
labelStyle={{ |
| 507 |
color: ifRadio(radioLabels.label90Days) |
| 508 |
? colors.primary |
| 509 |
: colors.headerTitle, |
| 510 |
}} |
| 511 |
style={{marginLeft: mvs(45)}} |
| 512 |
status={ifRadio(radioLabels.label90Days)} |
| 513 |
label={radioLabels.label90Days} |
| 514 |
onChange={value => |
| 515 |
setOrResetInternationalFilter({ |
| 516 |
...internationalFilter, |
| 517 |
delivery_date: radioLabels.label90Days, |
| 518 |
is_urgent: 0, |
| 519 |
}) |
| 520 |
} |
| 521 |
/> |
| 522 |
</View> |
| 523 |
<CustomRadio |
| 524 |
subLabel={' (Higher rewards)'} |
| 525 |
labelStyle={{color: colors.pink}} |
| 526 |
style={{}} |
| 527 |
status={ifRadio(radioLabels.labelUrgent)} |
| 528 |
label={radioLabels.labelUrgent} |
| 529 |
onChange={value => |
| 530 |
setOrResetInternationalFilter({ |
| 531 |
...internationalFilter, |
| 532 |
delivery_date: radioLabels.labelUrgent, |
| 533 |
is_urgent: 1, |
| 534 |
}) |
| 535 |
} |
| 536 |
/> |
| 537 |
</View> |
| 538 |
<View style={styles.PRICES_CONTAINER}> |
| 539 |
<View> |
| 540 |
<Regular |
| Warning |
Row 541, Column 24: "Inline style: { alignSelf: 'flex-end' }"
react-native/no-inline-styles
|
| 541 |
style={{alignSelf: 'flex-end', color: colors.primary}} |
| 542 |
label={`${Math.floor(internationalFilter.max_price)} ${ |
| 543 |
profileData?.currency?.currency_code |
| 544 |
}`} |
| 545 |
/> |
| 546 |
<View style={styles.MAX_MIN_PRICE}> |
| 547 |
<Regular |
| 548 |
style={styles.PRICE_HEADING} |
| 549 |
label={'Max Product Price'} |
| 550 |
/> |
| 551 |
<Slider |
| 552 |
value={internationalFilter.max_price} |
| Warning |
Row 553, Column 26: "Inline style: { width: '55%' }"
react-native/no-inline-styles
|
| 553 |
style={{width: '55%', marginRight: mvs(-15)}} |
| 554 |
minimumValue={0} |
| 555 |
maximumValue={2000} |
| 556 |
minimumTrackTintColor={colors.primary} |
| 557 |
thumbTintColor={colors.primary} |
| 558 |
onValueChange={v => { |
| 559 |
setOrResetInternationalFilter({ |
| 560 |
...internationalFilter, |
| 561 |
max_price: v, |
| 562 |
}); |
| Error |
Row 563, Column 17: "Insert `··`"
prettier/prettier
|
| 563 |
}} |
| 564 |
// onSlidingComplete={v => { |
| Warning |
Row 565, Column 1: "Trailing spaces not allowed."
no-trailing-spaces
|
| Error |
Row 565, Column 1: "Delete `····················`"
prettier/prettier
|
| 565 |
|
| 566 |
// }} |
| 567 |
/> |
| 568 |
</View> |
| 569 |
</View> |
| 570 |
<View> |
| 571 |
<Regular |
| Warning |
Row 572, Column 24: "Inline style: { alignSelf: 'flex-end' }"
react-native/no-inline-styles
|
| 572 |
style={{alignSelf: 'flex-end', color: colors.primary}} |
| 573 |
label={`${Math.floor(internationalFilter.reward)} ${ |
| 574 |
profileData?.currency?.currency_code |
| 575 |
}`} |
| 576 |
/> |
| 577 |
<View style={styles.MAX_MIN_PRICE}> |
| 578 |
<Regular style={styles.PRICE_HEADING} label={'Min Reward'} /> |
| 579 |
<Slider |
| 580 |
value={internationalFilter.reward} |
| Warning |
Row 581, Column 26: "Inline style: { width: '55%' }"
react-native/no-inline-styles
|
| 581 |
style={{width: '55%', marginRight: mvs(-15)}} |
| 582 |
minimumValue={0} |
| 583 |
maximumValue={1000} |
| 584 |
minimumTrackTintColor={colors.primary} |
| 585 |
thumbTintColor={colors.primary} |
| 586 |
onValueChange={v => { |
| 587 |
setOrResetInternationalFilter({ |
| 588 |
...internationalFilter, |
| 589 |
reward: v, |
| 590 |
}); |
| 591 |
}} |
| 592 |
/> |
| 593 |
</View> |
| 594 |
</View> |
| 595 |
</View> |
| 596 |
<View style={{...styles.BUTTON_CONTAINER}}> |
| 597 |
<Buttons.ButtonPrimary |
| 598 |
loading={loading} |
| 599 |
loaderColor={colors.white} |
| 600 |
disabled={loading} |
| 601 |
onClick={onSaveTrip} |
| Warning |
Row 602, Column 22: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 602 |
style={{...styles.BUTTON, width: '49%'}} |
| 603 |
title={isFilter ? 'Apply Filters' : 'Add Trip'} |
| 604 |
/> |
| 605 |
<Buttons.ButtonSecondaryOutline |
| 606 |
onClick={clear} |
| Warning |
Row 607, Column 22: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 607 |
style={{...styles.BUTTON, width: '49%'}} |
| 608 |
title={'Clear All'} |
| 609 |
/> |
| 610 |
</View> |
| 611 |
<DatePickerModal |
| 612 |
visible={isDatePickerVisible} |
| 613 |
onClose={() => { |
| 614 |
setDatePickerVisibility(false); |
| 615 |
}} |
| 616 |
onApply={hideDatePicker} |
| 617 |
/> |
| 618 |
{/* <InternationalOrderFilterModal |
| 619 |
onApply={() => { |
| 620 |
setNextModal(false); |
| 621 |
onClose(false); |
| 622 |
}} |
| 623 |
visible={nextModal} |
| 624 |
onClose={() => { |
| 625 |
setNextModal(false); |
| 626 |
}} |
| 627 |
onBackButton={() => { |
| 628 |
setNextModal(false); |
| 629 |
}} |
| 630 |
navigation={navigation} |
| 631 |
/> */} |
| 632 |
</ScrollView> |
| 633 |
<SearchLocationModal |
| 634 |
setLocation={onSetLocation} |
| 635 |
setVisible={setVisble} |
| 636 |
visible={visible} |
| 637 |
/> |
| 638 |
</View> |
| 639 |
{/* <CountryPicker |
| 640 |
visible={countryModal} |
| 641 |
onClose={() => setCountryModal(false)} |
| 642 |
onSelect={(country, flag, short_name) => { |
| 643 |
setOrResetInternationalFilter({ |
| 644 |
...internationalFilter, |
| 645 |
country_from: country, |
| 646 |
full_address_from: country, |
| 647 |
from_country_short_name:short_name, |
| 648 |
from_flag: flag, |
| 649 |
}); |
| 650 |
setCountryModal(false); |
| 651 |
}} |
| 652 |
/> */} |
| 653 |
{countryModal && ( |
| 654 |
<CountryPicker |
| 655 |
visible |
| 656 |
withFilter |
| 657 |
onClose={() => { |
| 658 |
setCountryModal(false); |
| 659 |
}} |
| 660 |
onSelect={item => { |
| 661 |
setOrResetInternationalFilter({ |
| 662 |
...internationalFilter, |
| 663 |
country_from: item?.name, |
| 664 |
full_address_from: item?.name, |
| Warning |
Row 665, Column 58: "Expected '===' and instead saw '=='."
eqeqeq
|
| 665 |
from_flag: countriesList?.find(x => x.name == item?.name)?.flag, |
| 666 |
from_country_short_name: item?.cca2, |
| 667 |
}); |
| 668 |
setCountryModal(false); |
| 669 |
}} |
| 670 |
/> |
| 671 |
)} |
| 672 |
</View> |
| 673 |
); |
| 674 |
}; |
| 675 |
const mapStateToProps = state => { |
| 676 |
return { |
| 677 |
isGuest: state.auth.isGuest, |
| 678 |
internationalFilter: state.common.internationalFilter, |
| 679 |
countriesList: state.common.countriesList, |
| 680 |
profileData: state.auth.userInfo?.profile || {}, |
| 681 |
}; |
| 682 |
}; |
| 683 |
const mapDispatchToProps = dispatch => ({ |
| 684 |
createOrFilterTrip: internationalFilter => |
| 685 |
dispatch(TAKE_TO_ACTIONS.createOrFilterTrip(internationalFilter, false)), |
| 686 |
setOrResetInternationalFilter: (payload, bool) => |
| 687 |
dispatch(TAKE_TO_ACTIONS.setOrResetInternationalFilter(payload, bool)), |
| 688 |
clearFilterOrders: () => dispatch(TAKE_TO_ACTIONS.clearFilterOrders()), |
| 689 |
}); |
| 690 |
export default connect(mapStateToProps, mapDispatchToProps)(InternationalTrip); |
| 691 |
|
| 692 |
const styles = StyleSheet.create({ |
| 693 |
CONTAINER: { |
| 694 |
position: 'absolute', |
| 695 |
bottom: 0, |
| 696 |
width: '100%', |
| 697 |
borderTopLeftRadius: mvs(20), |
| 698 |
borderTopRightRadius: mvs(20), |
| 699 |
backgroundColor: colors.primary, |
| 700 |
}, |
| 701 |
HEADING_TXT: { |
| 702 |
fontSize: mvs(15), |
| 703 |
color: colors.white, |
| 704 |
alignSelf: 'center', |
| 705 |
marginTop: mvs(13), |
| 706 |
marginBottom: mvs(16), |
| 707 |
}, |
| 708 |
SUB_CONTAINER: { |
| 709 |
backgroundColor: colors.white, |
| 710 |
paddingTop: mvs(20), |
| 711 |
paddingBottom: mvs(38), |
| 712 |
paddingHorizontal: mvs(22), |
| 713 |
borderTopLeftRadius: mvs(20), |
| 714 |
borderTopRightRadius: mvs(20), |
| 715 |
}, |
| 716 |
DESTINATION_CONTAINER: { |
| 717 |
alignItems: 'center', |
| 718 |
flexDirection: 'row', |
| 719 |
justifyContent: 'space-between', |
| 720 |
marginTop: mvs(10), |
| 721 |
}, |
| 722 |
BUTTON_CONTAINER: { |
| 723 |
flexDirection: 'row', |
| 724 |
justifyContent: 'space-between', |
| 725 |
}, |
| 726 |
BUTTON: { |
| 727 |
width: '49%', |
| 728 |
}, |
| 729 |
TRIP_TYPE_RADIO: { |
| 730 |
width: mvs(161), |
| 731 |
}, |
| 732 |
RTL_ICON: { |
| 733 |
height: mvs(23), |
| 734 |
width: mvs(23), |
| 735 |
}, |
| 736 |
|
| Error |
Row 737, Column 3: "Duplicate key 'DESTINATION_CONTAINER'."
no-dupe-keys
|
| 737 |
DESTINATION_CONTAINER: { |
| 738 |
alignItems: 'center', |
| 739 |
flexDirection: 'row', |
| 740 |
justifyContent: 'space-between', |
| 741 |
}, |
| 742 |
FLAG_BUTTON: { |
| 743 |
width: '100%', |
| 744 |
height: mvs(38), |
| 745 |
flexDirection: 'row-reverse', |
| 746 |
backgroundColor: colors.secondary, |
| 747 |
}, |
| 748 |
SEARCH_MAP: { |
| 749 |
marginTop: mvs(15), |
| 750 |
alignSelf: 'flex-end', |
| 751 |
width: mvs(161), |
| 752 |
height: mvs(38), |
| 753 |
flexDirection: 'row', |
| 754 |
backgroundColor: colors.primary, |
| 755 |
paddingHorizontal: mvs(23), |
| 756 |
}, |
| 757 |
MAP_ICON: { |
| 758 |
height: mvs(18), |
| 759 |
width: mvs(14), |
| 760 |
}, |
| 761 |
NO_DELIVERY_CONTAINER: { |
| 762 |
borderTopWidth: StyleSheet.hairlineWidth, |
| 763 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 764 |
flexDirection: 'row', |
| 765 |
alignItems: 'center', |
| 766 |
paddingVertical: mvs(14), |
| 767 |
marginTop: mvs(15), |
| 768 |
borderColor: colors.filter_divider, |
| 769 |
}, |
| 770 |
NoDelivery: { |
| 771 |
fontSize: mvs(15), |
| 772 |
color: colors.headerTitle, |
| 773 |
}, |
| 774 |
PRICES_CONTAINER: { |
| 775 |
justifyContent: 'space-between', |
| 776 |
}, |
| 777 |
PRICE_HEADING: { |
| 778 |
fontSize: mvs(15), |
| 779 |
color: colors.typeHeader, |
| 780 |
marginBottom: mvs(10), |
| 781 |
}, |
| 782 |
MAX_MIN_PRICE: { |
| 783 |
// width: mvs(161), |
| 784 |
flexDirection: 'row', |
| 785 |
alignItems: 'center', |
| 786 |
justifyContent: 'space-between', |
| 787 |
}, |
| 788 |
DIV: { |
| 789 |
marginTop: mvs(15), |
| 790 |
marginBottom: mvs(13), |
| 791 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| 792 |
borderColor: colors.filter_divider, |
| 793 |
}, |
| 794 |
DEL_TIME: { |
| 795 |
color: colors.typeHeader, |
| 796 |
fontSize: mvs(15), |
| 797 |
marginBottom: mvs(8), |
| 798 |
}, |
| 799 |
RADIO_CONTAINER: { |
| 800 |
marginBottom: mvs(18), |
| 801 |
}, |
| 802 |
RADIO_LABEL: { |
| 803 |
color: colors.headerTitle, |
| 804 |
fontSize: mvs(15), |
| 805 |
}, |
| Error |
Row 806, Column 3: "Duplicate key 'BUTTON_CONTAINER'."
no-dupe-keys
|
| 806 |
BUTTON_CONTAINER: { |
| 807 |
marginTop: mvs(30), |
| 808 |
flexDirection: 'row', |
| 809 |
justifyContent: 'space-between', |
| 810 |
}, |
| Error |
Row 811, Column 3: "Duplicate key 'BUTTON'."
no-dupe-keys
|
| 811 |
BUTTON: { |
| 812 |
width: mvs(161), |
| 813 |
}, |
| 814 |
}); |
| 815 |
|
|
|
|
/src/screens/trip/local-trip/local-trip.js
|
501 problems (473 errors, 28 warnings)
|
| Severity |
Rule |
| Error |
Row 4, Column 9: "Replace `·ScrollView,·StyleSheet,·View·` with `ScrollView,·StyleSheet,·View`"
prettier/prettier
|
| Error |
Row 9, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| Error |
Row 13, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| Warning |
Row 16, Column 8: "'AsyncStorage' is defined but never used."
no-unused-vars
|
| Error |
Row 21, Column 1: "Delete `⏎`"
prettier/prettier
|
| Error |
Row 23, Column 1: "Replace `⏎····const·{·navigation,·route,·localFilter,·setOrResetLocalFilter,·countriesList,·profileData,clearFilterOrders` with `··const·{⏎····navigation,⏎····route,⏎····localFilter,⏎····setOrResetLocalFilter,⏎····countriesList,⏎····profileData,⏎····clearFilterOrders,⏎·`"
prettier/prettier
|
| Error |
Row 25, Column 3: "Replace `··const·{·isFilter,·isOnline·` with `const·{isFilter,·isOnline`"
prettier/prettier
|
| Error |
Row 26, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 27, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 28, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 29, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 30, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 32, Column 1: "Delete `⏎⏎··`"
prettier/prettier
|
| Error |
Row 35, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 36, Column 7: "Delete `····`"
prettier/prettier
|
| Error |
Row 37, Column 1: "Replace `··········` with `······`"
prettier/prettier
|
| Error |
Row 38, Column 7: "Replace `····isThreeDays:` with `isThreeDays:·`"
prettier/prettier
|
| Error |
Row 39, Column 1: "Replace `··········isTwoDays:` with `······isTwoDays:·`"
prettier/prettier
|
| Error |
Row 40, Column 1: "Replace `··········is_urgent:` with `······is_urgent:·`"
prettier/prettier
|
| Error |
Row 41, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 42, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 43, Column 3: "Delete `····`"
prettier/prettier
|
| Error |
Row 44, Column 1: "Replace `······const·showDatePicker=` with `··const·showDatePicker·=·`"
prettier/prettier
|
| Warning |
Row 44, Column 27: "Operator '=' must be spaced."
space-infix-ops
|
| Error |
Row 45, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 46, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 47, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 48, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 49, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 50, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 51, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 52, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 54, Column 1: "Delete `⏎··`"
prettier/prettier
|
| Error |
Row 56, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 57, Column 7: "Replace `······...localFilter,·[key]:·value` with `...localFilter,⏎······[key]:·value,`"
prettier/prettier
|
| Warning |
Row 57, Column 41: "Missing trailing comma."
comma-dangle
|
| Error |
Row 58, Column 1: "Replace `········})` with `····});`"
prettier/prettier
|
| Warning |
Row 58, Column 11: "Missing semicolon."
semi
|
| Error |
Row 59, Column 1: "Replace `····}` with `··};`"
prettier/prettier
|
| Warning |
Row 59, Column 6: "Missing semicolon."
semi
|
| Error |
Row 60, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 61, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 62, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 63, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 64, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 65, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 66, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 67, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 68, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 69, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 70, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 71, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 72, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 73, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 74, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 75, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 76, Column 1: "Replace `············})` with `······});`"
prettier/prettier
|
| Warning |
Row 76, Column 15: "Missing semicolon."
semi
|
| Error |
Row 77, Column 1: "Replace `········}⏎·······` with `····}`"
prettier/prettier
|
| Error |
Row 79, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 80, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 81, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 82, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 83, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 84, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 85, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 86, Column 1: "Replace `············})` with `······});`"
prettier/prettier
|
| Warning |
Row 86, Column 15: "Missing semicolon."
semi
|
| Error |
Row 87, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 88, Column 1: "Replace `⏎····` with `··`"
prettier/prettier
|
| Error |
Row 90, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 91, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 92, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 93, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 94, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 95, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 96, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 97, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 98, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 99, Column 3: "Replace `··}` with `};`"
prettier/prettier
|
| Warning |
Row 99, Column 6: "Missing semicolon."
semi
|
| Error |
Row 100, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 101, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 102, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 103, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 104, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 105, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 106, Column 9: "Replace `········delivery_date:localFilter?.delivery_date?UI_API._replaceAllSlash(localFilter?.delivery_date):` with `delivery_date:·localFilter?.delivery_date⏎··········?·UI_API._replaceAllSlash(localFilter?.delivery_date)`"
prettier/prettier
|
| Warning |
Row 106, Column 57: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 107, Column 11: "Replace `······` with `:`"
prettier/prettier
|
| Error |
Row 108, Column 1: "Delete `··········`"
prettier/prettier
|
| Error |
Row 109, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 110, Column 11: "Delete `··············`"
prettier/prettier
|
| Error |
Row 111, Column 1: "Replace `························` with `··········`"
prettier/prettier
|
| Error |
Row 112, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 113, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 114, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 115, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 117, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 118, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 119, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 121, Column 1: "Delete `⏎⏎······`"
prettier/prettier
|
| Error |
Row 124, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 125, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 126, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 127, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 128, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 130, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 131, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 132, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 133, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 134, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 135, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 136, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 137, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 138, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 139, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 141, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 142, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 143, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 144, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 145, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 146, Column 1: "Replace `················flags:·{·from:·localFilter?.from_flag,·to:·localFilter?.to_flag·` with `········flags:·{from:·localFilter?.from_flag,·to:·localFilter?.to_flag`"
prettier/prettier
|
| Error |
Row 147, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 148, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 149, Column 1: "Replace `············alert(UI_API._returnError(error))` with `······alert(UI_API._returnError(error));`"
prettier/prettier
|
| Warning |
Row 149, Column 13: "Unexpected alert."
no-alert
|
| Warning |
Row 149, Column 46: "Missing semicolon."
semi
|
| Error |
Row 150, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 151, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 152, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 154, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 155, Column 1: "Replace `········prettier/prettier
|
| Warning |
Row 155, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 156, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 157, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 158, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 159, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 160, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 161, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 162, Column 1: "Replace `············{console.log('localFilter::',` with `······{console.log('localFilter::',·`"
prettier/prettier
|
| Error |
Row 163, Column 1: "Replace `············prettier/prettier
|
| Warning |
Row 163, Column 26: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| Error |
Row 164, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 165, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Warning |
Row 165, Column 44: "Inline style: { flexGrow: 1 }"
react-native/no-inline-styles
|
| Error |
Row 166, Column 13: "Delete `············`"
prettier/prettier
|
| Error |
Row 167, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 168, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 169, Column 11: "Replace `··········}}>` with `}}>⏎··········{isFilter·&&·(`"
prettier/prettier
|
| Error |
Row 170, Column 13: "Replace `········{isFilter·&&·` with `prettier/prettier
|
| Warning |
Row 170, Column 47: "Inline style: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| Error |
Row 171, Column 13: "Replace `············` with `··}}>⏎··············`"
prettier/prettier
|
| Error |
Row 172, Column 15: "Delete `··········`"
prettier/prettier
|
| Error |
Row 173, Column 1: "Replace `····························` with `················`"
prettier/prettier
|
| Error |
Row 174, Column 1: "Replace `································color:localFilter?.delivery_date?colors.primary` with `··················color:·localFilter?.delivery_date⏎····················?·colors.primary⏎····················`"
prettier/prettier
|
| Warning |
Row 174, Column 65: "Operator '?' must be spaced."
space-infix-ops
|
| Error |
Row 175, Column 17: "Delete `············`"
prettier/prettier
|
| Error |
Row 176, Column 1: "Delete `············`"
prettier/prettier
|
| Error |
Row 177, Column 17: "Delete `············`"
prettier/prettier
|
| Error |
Row 178, Column 1: "Delete `··············`"
prettier/prettier
|
| Error |
Row 179, Column 1: "Replace `································` with `··················`"
prettier/prettier
|
| Error |
Row 180, Column 17: "Delete `············`"
prettier/prettier
|
| Error |
Row 181, Column 1: "Replace `····························` with `················`"
prettier/prettier
|
| Error |
Row 182, Column 1: "Replace `····························` with `················`"
prettier/prettier
|
| Error |
Row 183, Column 1: "Replace `····························style={{·...styles.FLAG_BUTTON,·width:·'49%'·` with `················style={{...styles.FLAG_BUTTON,·width:·'49%'`"
prettier/prettier
|
| Warning |
Row 183, Column 36: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| Error |
Row 184, Column 1: "Replace `····························` with `················`"
prettier/prettier
|
| Error |
Row 185, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| Error |
Row 186, Column 1: "Replace `····················}` with `············`"
prettier/prettier
|
| Error |
Row 187, Column 11: "Insert `)}⏎`"
prettier/prettier
|
| Error |
Row 188, Column 13: "Delete `············`"
prettier/prettier
|
| Error |
Row 189, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 190, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 191, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 192, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 193, Column 1: "Delete `················`"
prettier/prettier
|
| Error |
Row 194, Column 15: "Delete `··············`"
prettier/prettier
|
| Error |
Row 195, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 196, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 197, Column 1: "Replace `····························textStyle={{color:·colors.primary,·textAlign·` with `··············textStyle={{color:·colors.primary,·textAlign`"
prettier/prettier
|
| Warning |
Row 197, Column 40: "Inline style: { textAlign: 'left' }"
react-native/no-inline-styles
|
| Error |
Row 198, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 199, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 200, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| Error |
Row 201, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 202, Column 1: "Delete `··················`"
prettier/prettier
|
| Error |
Row 203, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 204, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 205, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 206, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 207, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 208, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 209, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 210, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 211, Column 1: "Delete `··············`"
prettier/prettier
|
| Error |
Row 212, Column 13: "Delete `············`"
prettier/prettier
|
| Error |
Row 213, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 214, Column 1: "Replace `····················prettier/prettier
|
| Error |
Row 215, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 216, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 217, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 218, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 219, Column 1: "Delete `················`"
prettier/prettier
|
| Error |
Row 220, Column 17: "Delete `················`"
prettier/prettier
|
| Error |
Row 221, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 222, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 223, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 224, Column 1: "Delete `··············`"
prettier/prettier
|
| Error |
Row 225, Column 1: "Replace `····························textStyle={{·color:·colors.primary·` with `··············textStyle={{color:·colors.primary`"
prettier/prettier
|
| Error |
Row 226, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 227, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 228, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 229, Column 15: "Replace `··············style={{·...styles.FLAG_BUTTON,·` with `style={{...styles.FLAG_BUTTON`"
prettier/prettier
|
| Warning |
Row 229, Column 59: "Unexpected trailing comma."
comma-dangle
|
| Error |
Row 230, Column 1: "Delete `··············`"
prettier/prettier
|
| Error |
Row 231, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 232, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 233, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 234, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 235, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 236, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 237, Column 1: "Replace `························textStyle={{·color:·colors.typeHeader·` with `············textStyle={{color:·colors.typeHeader`"
prettier/prettier
|
| Error |
Row 238, Column 13: "Delete `············`"
prettier/prettier
|
| Error |
Row 239, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 240, Column 1: "Delete `············`"
prettier/prettier
|
| Error |
Row 241, Column 11: "Delete `··········`"
prettier/prettier
|
| Error |
Row 242, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 243, Column 1: "Delete `··········`"
prettier/prettier
|
| Error |
Row 244, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 245, Column 1: "Replace `························prettier/prettier
|
| Warning |
Row 245, Column 38: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| Error |
Row 246, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 247, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 248, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| Error |
Row 249, Column 21: "Delete `····················`"
prettier/prettier
|
| Error |
Row 250, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| Error |
Row 251, Column 17: "Delete `················`"
prettier/prettier
|
| Error |
Row 252, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 253, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 254, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 255, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| Error |
Row 256, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| Error |
Row 257, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| Error |
Row 258, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| Error |
Row 259, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| Error |
Row 260, Column 1: "Replace `········································delivery_date:` with `····················delivery_date:·`"
prettier/prettier
|
| Error |
Row 261, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| Error |
Row 262, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 263, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 264, Column 1: "Delete `··············`"
prettier/prettier
|
| Error |
Row 265, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 266, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| Error |
Row 267, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| Error |
Row 268, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| Error |
Row 269, Column 1: "Delete `················`"
prettier/prettier
|
| Error |
Row 270, Column 17: "Replace `················style={{·marginLeft:·mvs(45)·` with `style={{marginLeft:·mvs(45)`"
prettier/prettier
|
| Error |
Row 271, Column 17: "Delete `················`"
prettier/prettier
|
| Error |
Row 272, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 273, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 274, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| Error |
Row 275, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| Error |
Row 276, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| Error |
Row 277, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| Error |
Row 278, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| Error |
Row 279, Column 1: "Replace `········································delivery_date:''` with `····················delivery_date:·'',`"
prettier/prettier
|
| Warning |
Row 279, Column 57: "Missing trailing comma."
comma-dangle
|
| Error |
Row 280, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| Error |
Row 281, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 282, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 283, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 284, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 285, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 286, Column 1: "Replace `····························labelStyle={{·color:·colors.pink·` with `··············labelStyle={{color:·colors.pink`"
prettier/prettier
|
| Error |
Row 287, Column 1: "Replace `····························style={{·marginTop:·mvs(8)·` with `··············style={{marginTop:·mvs(8)`"
prettier/prettier
|
| Error |
Row 288, Column 1: "Delete `··············`"
prettier/prettier
|
| Error |
Row 289, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 290, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 291, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 292, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| Error |
Row 293, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| Error |
Row 294, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| Error |
Row 295, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| Error |
Row 296, Column 1: "Replace `····································delivery_date:''` with `··················delivery_date:·'',`"
prettier/prettier
|
| Warning |
Row 296, Column 53: "Missing trailing comma."
comma-dangle
|
| Error |
Row 297, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 298, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 299, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 300, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 301, Column 1: "Delete `··········`"
prettier/prettier
|
| Error |
Row 302, Column 13: "Delete `············`"
prettier/prettier
|
| Error |
Row 303, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 304, Column 1: "Replace `································style={{·alignSelf:·'flex-end',·color:·colors.primary·` with `················style={{alignSelf:·'flex-end',·color:·colors.primary`"
prettier/prettier
|
| Warning |
Row 304, Column 40: "Inline style: { alignSelf: 'flex-end' }"
react-native/no-inline-styles
|
| Error |
Row 305, Column 1: "Replace `································label={`${Math.floor(localFilter?.max_price)}·${profileData?.currency?.currency_code}`}` with `················label={`${Math.floor(localFilter?.max_price)}·${⏎··················profileData?.currency?.currency_code`"
prettier/prettier
|
| Error |
Row 306, Column 15: "Insert `··}`}⏎`"
prettier/prettier
|
| Error |
Row 307, Column 15: "Delete `··············`"
prettier/prettier
|
| Error |
Row 308, Column 17: "Delete `················`"
prettier/prettier
|
| Error |
Row 309, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| Error |
Row 310, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| Error |
Row 311, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 312, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 313, Column 1: "Replace `····································style={{·width:·'55%',·marginRight:·mvs(-15)·` with `··················style={{width:·'55%',·marginRight:·mvs(-15)`"
prettier/prettier
|
| Warning |
Row 313, Column 44: "Inline style: { width: '55%' }"
react-native/no-inline-styles
|
| Error |
Row 314, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| Error |
Row 315, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| Error |
Row 316, Column 1: "Delete `··················`"
prettier/prettier
|
| Error |
Row 317, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| Error |
Row 318, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| Error |
Row 319, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| Error |
Row 320, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| Error |
Row 321, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| Error |
Row 322, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 323, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 324, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 325, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 326, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 327, Column 1: "Replace `································style={{·alignSelf:·'flex-end',·color:·colors.primary·` with `················style={{alignSelf:·'flex-end',·color:·colors.primary`"
prettier/prettier
|
| Warning |
Row 327, Column 40: "Inline style: { alignSelf: 'flex-end' }"
react-native/no-inline-styles
|
| Error |
Row 328, Column 1: "Replace `································label={`${Math.floor(localFilter?.reward)}·${profileData?.currency?.currency_code}`}` with `················label={`${Math.floor(localFilter?.reward)}·${⏎··················profileData?.currency?.currency_code`"
prettier/prettier
|
| Error |
Row 329, Column 17: "Replace `············/>` with `}`}`"
prettier/prettier
|
| Error |
Row 330, Column 15: "Insert `/>⏎`"
prettier/prettier
|
| Error |
Row 331, Column 1: "Delete `················`"
prettier/prettier
|
| Error |
Row 332, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 333, Column 1: "Replace `····································style={{·width:·'55%',·marginRight:·mvs(-15)·` with `··················style={{width:·'55%',·marginRight:·mvs(-15)`"
prettier/prettier
|
| Warning |
Row 333, Column 44: "Inline style: { width: '55%' }"
react-native/no-inline-styles
|
| Error |
Row 334, Column 19: "Delete `··················`"
prettier/prettier
|
| Error |
Row 335, Column 1: "Delete `··················`"
prettier/prettier
|
| Error |
Row 336, Column 19: "Delete `··················`"
prettier/prettier
|
| Error |
Row 337, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| Error |
Row 338, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| Error |
Row 339, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| Error |
Row 340, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| Error |
Row 341, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| Error |
Row 342, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| Error |
Row 343, Column 1: "Delete `··············`"
prettier/prettier
|
| Error |
Row 344, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 345, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Error |
Row 346, Column 1: "Delete `··········`"
prettier/prettier
|
| Error |
Row 347, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 348, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 349, Column 1: "Delete `··············`"
prettier/prettier
|
| Error |
Row 350, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 351, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 352, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 353, Column 1: "Delete `··············`"
prettier/prettier
|
| Error |
Row 354, Column 13: "Delete `············`"
prettier/prettier
|
| Error |
Row 355, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 356, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 357, Column 1: "Replace `····························style={{·...styles.BUTTON·` with `··············style={{...styles.BUTTON`"
prettier/prettier
|
| Error |
Row 358, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| Error |
Row 359, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| Error |
Row 360, Column 1: "Delete `··········`"
prettier/prettier
|
| Error |
Row 361, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 362, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| Error |
Row 363, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 364, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 365, Column 9: "Delete `········`"
prettier/prettier
|
| Error |
Row 366, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| Error |
Row 367, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 368, Column 7: "Delete `······`"
prettier/prettier
|
| Error |
Row 369, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 389, Column 7: "Replace `······{countryModal·&&·` with `{countryModal·&&·(⏎········`"
prettier/prettier
|
| Error |
Row 390, Column 1: "Replace `················` with `··········`"
prettier/prettier
|
| Error |
Row 391, Column 1: "Delete `······`"
prettier/prettier
|
| Error |
Row 392, Column 1: "Replace `················onClose={()·=>·{·setCountryModal(false);·}}` with `··········onClose={()·=>·{⏎············setCountryModal(false);`"
prettier/prettier
|
| Error |
Row 393, Column 7: "Replace `··········onSelect={(item)` with `····}}⏎··········onSelect={item`"
prettier/prettier
|
| Error |
Row 394, Column 1: "Delete `········`"
prettier/prettier
|
| Error |
Row 395, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| Error |
Row 396, Column 1: "Delete `··········`"
prettier/prettier
|
| Error |
Row 397, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| Error |
Row 398, Column 1: "Delete `··········`"
prettier/prettier
|
| Warning |
Row 398, Column 68: "Expected '===' and instead saw '=='."
eqeqeq
|
| Error |
Row 399, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| Error |
Row 400, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| Error |
Row 401, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| Error |
Row 402, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| Error |
Row 403, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| Error |
Row 404, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| Error |
Row 405, Column 13: "Replace `········})` with `});`"
prettier/prettier
|
| Warning |
Row 405, Column 23: "Missing semicolon."
semi
|
| Error |
Row 406, Column 1: "Replace `····················` with `············`"
prettier/prettier
|
| Error |
Row 407, Column 11: "Replace `······}⏎················` with `}`"
prettier/prettier
|
| Error |
Row 409, Column 1: "Replace `············/>}` with `········/>`"
prettier/prettier
|
| Error |
Row 410, Column 7: "Replace `··` with `)}⏎`"
prettier/prettier
|
| Error |
Row 411, Column 9: "Delete `····`"
prettier/prettier
|
| Error |
Row 412, Column 9: "Delete `····`"
prettier/prettier
|
| Error |
Row 413, Column 1: "Replace `··············` with `··········`"
prettier/prettier
|
| Error |
Row 414, Column 9: "Delete `····`"
prettier/prettier
|
| Error |
Row 415, Column 1: "Replace `············` with `········`"
prettier/prettier
|
| Error |
Row 416, Column 7: "Delete `····`"
prettier/prettier
|
| Error |
Row 417, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 418, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 421, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 422, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 423, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 424, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 425, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 426, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 429, Column 3: "Replace `··createOrFilterTrip:·(payload,·bool·=·true)·=>` with `createOrFilterTrip:·(payload,·bool·=·true)·=>⏎···`"
prettier/prettier
|
| Error |
Row 430, Column 3: "Replace `··setOrResetLocalFilter:·(payload,·bool)·=>` with `setOrResetLocalFilter:·(payload,·bool)·=>⏎···`"
prettier/prettier
|
| Error |
Row 431, Column 3: "Replace `··clearFilterOrders:·()·=>·dispatch(·` with `clearFilterOrders:·()·=>·dispatch(`"
prettier/prettier
|
| Error |
Row 436, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 437, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 438, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 439, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 440, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 441, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 442, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 443, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 444, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 445, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 446, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 447, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 448, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 449, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 450, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 451, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 452, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 453, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 454, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 455, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 456, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 457, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 458, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 459, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 460, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 461, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 462, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 463, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 464, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 465, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 466, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 467, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 468, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 469, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 470, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 471, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 472, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 473, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 474, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 475, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 476, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 477, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 478, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 479, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 480, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 481, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 482, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 483, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 484, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 485, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 486, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 487, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 488, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 489, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 490, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 491, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 492, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 493, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 494, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 495, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 496, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 497, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 498, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 499, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 500, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 501, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 502, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 503, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 504, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 505, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 506, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 507, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 508, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 509, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 510, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 511, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 512, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 513, Column 5: "Delete `····`"
prettier/prettier
|
| Error |
Row 514, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 515, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 516, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 517, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 518, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 519, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 520, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 521, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 522, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 523, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| Error |
Row 524, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 525, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 526, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 527, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 528, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 529, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| Error |
Row 530, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 531, Column 1: "Delete `··`"
prettier/prettier
|
| Error |
Row 532, Column 3: "Delete `··`"
prettier/prettier
|
| Error |
Row 533, Column 1: "Delete `····`"
prettier/prettier
|
| Error |
Row 534, Column 1: "Delete `··`"
prettier/prettier
|
| Line |
Source |
| 1 |
import Slider from '@react-native-community/slider'; |
| 2 |
import moment from 'moment'; |
| 3 |
import React from 'react'; |
| Error |
Row 4, Column 9: "Replace `·ScrollView,·StyleSheet,·View·` with `ScrollView,·StyleSheet,·View`"
prettier/prettier
|
| 4 |
import { ScrollView, StyleSheet, View } from 'react-native'; |
| 5 |
import Buttons from '../../../components/atoms/Button'; |
| 6 |
import CustomRadio from '../../../components/atoms/RadioButton'; |
| 7 |
import CustomSwitch from '../../../components/atoms/Switch'; |
| 8 |
import colors from '../../../config/colors'; |
| Error |
Row 9, Column 9: "Replace `·mvs·` with `mvs`"
prettier/prettier
|
| 9 |
import { mvs } from '../../../config/metrices'; |
| 10 |
import Regular from '../../../presentation/typography/regular-text'; |
| 11 |
import Header from '../../../components/molecules/header/header-1x'; |
| 12 |
import SearchLocationModal from '../../../components/molecules/modals/search-location-modal/searchlocation-modal'; |
| Error |
Row 13, Column 9: "Replace `·connect·` with `connect`"
prettier/prettier
|
| 13 |
import { connect } from 'react-redux'; |
| 14 |
import TAKE_TO_ACTIONS from '@khan_ahmad786/common/store/actions/actions'; |
| 15 |
import UI_API from '@khan_ahmad786/common/store/services'; |
| Warning |
Row 16, Column 8: "'AsyncStorage' is defined but never used."
no-unused-vars
|
| 16 |
import AsyncStorage from '@react-native-async-storage/async-storage'; |
| 17 |
import services from '@khan_ahmad786/common/api/services'; |
| 18 |
import CountryPicker from 'react-native-country-picker-modal'; |
| 19 |
import DatePickerModal from '../../../components/molecules/modals/date-picker-modal'; |
| 20 |
|
| Error |
Row 21, Column 1: "Delete `⏎`"
prettier/prettier
|
| 21 |
|
| 22 |
const LocalTrip = props => { |
| Error |
Row 23, Column 1: "Replace `⏎····const·{·navigation,·route,·localFilter,·setOrResetLocalFilter,·countriesList,·profileData,clearFilterOrders` with `··const·{⏎····navigation,⏎····route,⏎····localFilter,⏎····setOrResetLocalFilter,⏎····countriesList,⏎····profileData,⏎····clearFilterOrders,⏎·`"
prettier/prettier
|
| 23 |
|
| 24 |
const { navigation, route, localFilter, setOrResetLocalFilter, countriesList, profileData,clearFilterOrders } = props; |
| Error |
Row 25, Column 3: "Replace `··const·{·isFilter,·isOnline·` with `const·{isFilter,·isOnline`"
prettier/prettier
|
| 25 |
const { isFilter, isOnline } = route.params; |
| Error |
Row 26, Column 1: "Delete `··`"
prettier/prettier
|
| 26 |
const [visible, setVisble] = React.useState(false); |
| Error |
Row 27, Column 1: "Delete `··`"
prettier/prettier
|
| 27 |
const [loading, setLoading] = React.useState(false); |
| Error |
Row 28, Column 3: "Delete `··`"
prettier/prettier
|
| 28 |
const [countryModal, setCountryModal] = React.useState(false); |
| Error |
Row 29, Column 1: "Delete `··`"
prettier/prettier
|
| 29 |
const [locationOption, setLocationOption] = React.useState('country_from'); //country_from or country_to |
| Error |
Row 30, Column 3: "Delete `··`"
prettier/prettier
|
| 30 |
const [isDatePickerVisible, setDatePickerVisibility] = React.useState(false); |
| 31 |
|
| Error |
Row 32, Column 1: "Delete `⏎⏎··`"
prettier/prettier
|
| 32 |
|
| 33 |
|
| 34 |
const hideDatePicker = date => { |
| Error |
Row 35, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 35 |
setOrResetLocalFilter({ |
| Error |
Row 36, Column 7: "Delete `····`"
prettier/prettier
|
| 36 |
...localFilter, |
| Error |
Row 37, Column 1: "Replace `··········` with `······`"
prettier/prettier
|
| 37 |
delivery_date: `${date?.day} / ${date?.month + 1} / ${date?.year}`, |
| Error |
Row 38, Column 7: "Replace `····isThreeDays:` with `isThreeDays:·`"
prettier/prettier
|
| 38 |
isThreeDays:false, |
| Error |
Row 39, Column 1: "Replace `··········isTwoDays:` with `······isTwoDays:·`"
prettier/prettier
|
| 39 |
isTwoDays:false, |
| Error |
Row 40, Column 1: "Replace `··········is_urgent:` with `······is_urgent:·`"
prettier/prettier
|
| 40 |
is_urgent:false, |
| Error |
Row 41, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 41 |
}); |
| Error |
Row 42, Column 1: "Delete `····`"
prettier/prettier
|
| 42 |
setDatePickerVisibility(false); |
| Error |
Row 43, Column 3: "Delete `····`"
prettier/prettier
|
| 43 |
}; |
| Error |
Row 44, Column 1: "Replace `······const·showDatePicker=` with `··const·showDatePicker·=·`"
prettier/prettier
|
| Warning |
Row 44, Column 27: "Operator '=' must be spaced."
space-infix-ops
|
| 44 |
const showDatePicker=() => { |
| Error |
Row 45, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 45 |
// if (!localFilter['delivery_date']) { |
| Error |
Row 46, Column 5: "Delete `····`"
prettier/prettier
|
| 46 |
// setOrResetLocalFilter({ |
| Error |
Row 47, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 47 |
// ...localFilter, |
| Error |
Row 48, Column 1: "Delete `····`"
prettier/prettier
|
| 48 |
// delivery_date: `${new Date().getDate()} / ${new Date().getMonth()} / ${new Date().getFullYear()}`, |
| Error |
Row 49, Column 1: "Delete `····`"
prettier/prettier
|
| 49 |
// }); |
| Error |
Row 50, Column 5: "Delete `····`"
prettier/prettier
|
| 50 |
// } |
| Error |
Row 51, Column 1: "Delete `····`"
prettier/prettier
|
| 51 |
setDatePickerVisibility(true); |
| Error |
Row 52, Column 1: "Delete `····`"
prettier/prettier
|
| 52 |
}; |
| 53 |
|
| Error |
Row 54, Column 1: "Delete `⏎··`"
prettier/prettier
|
| 54 |
|
| 55 |
const onChangeValue = (key, value) => { |
| Error |
Row 56, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 56 |
setOrResetLocalFilter({ |
| Error |
Row 57, Column 7: "Replace `······...localFilter,·[key]:·value` with `...localFilter,⏎······[key]:·value,`"
prettier/prettier
|
| Warning |
Row 57, Column 41: "Missing trailing comma."
comma-dangle
|
| 57 |
...localFilter, [key]: value |
| Error |
Row 58, Column 1: "Replace `········})` with `····});`"
prettier/prettier
|
| Warning |
Row 58, Column 11: "Missing semicolon."
semi
|
| 58 |
}) |
| Error |
Row 59, Column 1: "Replace `····}` with `··};`"
prettier/prettier
|
| Warning |
Row 59, Column 6: "Missing semicolon."
semi
|
| 59 |
} |
| Error |
Row 60, Column 1: "Delete `··`"
prettier/prettier
|
| 60 |
const onSetLocation = addressComponent => { |
| Error |
Row 61, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 61 |
if (locationOption === 'country_from') { |
| Error |
Row 62, Column 7: "Delete `······`"
prettier/prettier
|
| 62 |
setOrResetLocalFilter({ |
| Error |
Row 63, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 63 |
...localFilter, |
| Error |
Row 64, Column 1: "Delete `········`"
prettier/prettier
|
| 64 |
full_address_from: addressComponent?.fulladdress, |
| Error |
Row 65, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 65 |
country_from: addressComponent?.country, |
| Error |
Row 66, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 66 |
city_from: addressComponent?.city, |
| Error |
Row 67, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 67 |
from_country_short_name: addressComponent?.country_short_name, |
| Error |
Row 68, Column 9: "Delete `········`"
prettier/prettier
|
| 68 |
to_latitude: addressComponent?.geoCode?.lat, |
| Error |
Row 69, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 69 |
to_longitude: addressComponent?.geoCode?.lng, |
| Error |
Row 70, Column 9: "Delete `········`"
prettier/prettier
|
| 70 |
//to |
| Error |
Row 71, Column 1: "Delete `········`"
prettier/prettier
|
| 71 |
full_address_to: '', |
| Error |
Row 72, Column 9: "Delete `········`"
prettier/prettier
|
| 72 |
country_to: '', |
| Error |
Row 73, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 73 |
city_to: '', |
| Error |
Row 74, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 74 |
//from country flag |
| Error |
Row 75, Column 1: "Delete `········`"
prettier/prettier
|
| 75 |
from_flag: UI_API._returnFlag(addressComponent?.country_short_name), |
| Error |
Row 76, Column 1: "Replace `············})` with `······});`"
prettier/prettier
|
| Warning |
Row 76, Column 15: "Missing semicolon."
semi
|
| 76 |
}) |
| Error |
Row 77, Column 1: "Replace `········}⏎·······` with `····}`"
prettier/prettier
|
| 77 |
} |
| 78 |
else { |
| Error |
Row 79, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 79 |
setOrResetLocalFilter({ |
| Error |
Row 80, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 80 |
...localFilter, |
| Error |
Row 81, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 81 |
full_address_to: addressComponent?.fulladdress, |
| Error |
Row 82, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 82 |
country_to: addressComponent?.country, |
| Error |
Row 83, Column 1: "Delete `········`"
prettier/prettier
|
| 83 |
city_to: addressComponent?.city, |
| Error |
Row 84, Column 9: "Delete `········`"
prettier/prettier
|
| 84 |
to_country_short_name: addressComponent?.country_short_name, |
| Error |
Row 85, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 85 |
to_flag: UI_API._returnFlag(addressComponent?.country_short_name), |
| Error |
Row 86, Column 1: "Replace `············})` with `······});`"
prettier/prettier
|
| Warning |
Row 86, Column 15: "Missing semicolon."
semi
|
| 86 |
}) |
| Error |
Row 87, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 87 |
} |
| Error |
Row 88, Column 1: "Replace `⏎····` with `··`"
prettier/prettier
|
| 88 |
|
| 89 |
}; |
| Error |
Row 90, Column 1: "Delete `··`"
prettier/prettier
|
| 90 |
const onPicLocDestination = (option, isEmpty) => { |
| Error |
Row 91, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 91 |
setLocationOption(option); |
| Error |
Row 92, Column 5: "Delete `····`"
prettier/prettier
|
| 92 |
setVisble(true); |
| Error |
Row 93, Column 1: "Delete `····`"
prettier/prettier
|
| 93 |
if (isEmpty) { |
| Error |
Row 94, Column 7: "Delete `······`"
prettier/prettier
|
| 94 |
onChangeValue('country_short_name', ''); |
| Error |
Row 95, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 95 |
} |
| Error |
Row 96, Column 1: "Delete `··`"
prettier/prettier
|
| 96 |
}; |
| Error |
Row 97, Column 1: "Delete `··`"
prettier/prettier
|
| 97 |
const clear = () => { |
| Error |
Row 98, Column 1: "Delete `····`"
prettier/prettier
|
| 98 |
setOrResetLocalFilter(undefined, false); |
| Error |
Row 99, Column 3: "Replace `··}` with `};`"
prettier/prettier
|
| Warning |
Row 99, Column 6: "Missing semicolon."
semi
|
| 99 |
} |
| Error |
Row 100, Column 1: "Delete `··`"
prettier/prettier
|
| 100 |
const onSaveTrip = async () => { |
| Error |
Row 101, Column 1: "Delete `····`"
prettier/prettier
|
| 101 |
try { |
| Error |
Row 102, Column 7: "Delete `······`"
prettier/prettier
|
| 102 |
clearFilterOrders(); |
| Error |
Row 103, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 103 |
setLoading(true); |
| Error |
Row 104, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 104 |
let obj = { |
| Error |
Row 105, Column 1: "Delete `········`"
prettier/prettier
|
| 105 |
...localFilter, |
| Error |
Row 106, Column 9: "Replace `········delivery_date:localFilter?.delivery_date?UI_API._replaceAllSlash(localFilter?.delivery_date):` with `delivery_date:·localFilter?.delivery_date⏎··········?·UI_API._replaceAllSlash(localFilter?.delivery_date)`"
prettier/prettier
|
| Warning |
Row 106, Column 57: "Operator '?' must be spaced."
space-infix-ops
|
| 106 |
delivery_date:localFilter?.delivery_date?UI_API._replaceAllSlash(localFilter?.delivery_date): |
| Error |
Row 107, Column 11: "Replace `······` with `:`"
prettier/prettier
|
| 107 |
localFilter?.is_urgent |
| Error |
Row 108, Column 1: "Delete `··········`"
prettier/prettier
|
| 108 |
? moment().add(1, 'days').format('YYYY-MM-DD') |
| Error |
Row 109, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 109 |
: localFilter?.isTwoDays |
| Error |
Row 110, Column 11: "Delete `··············`"
prettier/prettier
|
| 110 |
? moment().add(2, 'days').format('YYYY-MM-DD') |
| Error |
Row 111, Column 1: "Replace `························` with `··········`"
prettier/prettier
|
| 111 |
: moment().add(3, 'days').format('YYYY-MM-DD'), |
| Error |
Row 112, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 112 |
is_urgent: localFilter.is_urgent ? 1 : 0, |
| Error |
Row 113, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 113 |
no_delivery: localFilter?.no_delivery ? 1 : 0, |
| Error |
Row 114, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 114 |
is_save: isFilter ? 0 : 1, |
| Error |
Row 115, Column 1: "Delete `······`"
prettier/prettier
|
| 115 |
}; |
| 116 |
|
| Error |
Row 117, Column 7: "Delete `······`"
prettier/prettier
|
| 117 |
//delete short names |
| Error |
Row 118, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 118 |
// delete obj?.from_country_short_name; |
| Error |
Row 119, Column 1: "Delete `······`"
prettier/prettier
|
| 119 |
// delete obj?.to_country_short_name; |
| 120 |
|
| Error |
Row 121, Column 1: "Delete `⏎⏎······`"
prettier/prettier
|
| 121 |
|
| 122 |
|
| 123 |
delete obj?.full_address_from; |
| Error |
Row 124, Column 7: "Delete `······`"
prettier/prettier
|
| 124 |
delete obj?.full_address_to; |
| Error |
Row 125, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 125 |
delete obj?.isTwoDays; |
| Error |
Row 126, Column 1: "Delete `······`"
prettier/prettier
|
| 126 |
delete obj?.isThreeDays; |
| Error |
Row 127, Column 7: "Delete `······`"
prettier/prettier
|
| 127 |
delete obj?.from_flag; |
| Error |
Row 128, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 128 |
delete obj?.to_flag; |
| 129 |
|
| Error |
Row 130, Column 1: "Delete `······`"
prettier/prettier
|
| 130 |
// UI_API._removeEmptyKeys(obj), |
| Error |
Row 131, Column 7: "Delete `······`"
prettier/prettier
|
| 131 |
// console.log('obj::', obj); |
| Error |
Row 132, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 132 |
//get location of user |
| Error |
Row 133, Column 1: "Delete `······`"
prettier/prettier
|
| 133 |
// let location = await AsyncStorage.getItem('@location'); |
| Error |
Row 134, Column 7: "Delete `······`"
prettier/prettier
|
| 134 |
// console.log('location:::', location); |
| Error |
Row 135, Column 7: "Delete `······`"
prettier/prettier
|
| 135 |
// if (location) { |
| Error |
Row 136, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 136 |
// location = JSON.parse(location); |
| Error |
Row 137, Column 1: "Delete `······`"
prettier/prettier
|
| 137 |
// obj = { ...obj, latitude: location?.latitude, longitude: location?.longitude } |
| Error |
Row 138, Column 7: "Delete `······`"
prettier/prettier
|
| 138 |
// } |
| Error |
Row 139, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 139 |
// await props.createOrFilterTrip(obj); |
| 140 |
|
| Error |
Row 141, Column 7: "Delete `······`"
prettier/prettier
|
| 141 |
setLoading(false); |
| Error |
Row 142, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 142 |
navigation.replace('internationaldelivery', { |
| Error |
Row 143, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 143 |
isFilter, |
| Error |
Row 144, Column 1: "Delete `········`"
prettier/prettier
|
| 144 |
isLocalOrder: true, |
| Error |
Row 145, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 145 |
filterPayload: UI_API._removeEmptyKeys(obj), |
| Error |
Row 146, Column 1: "Replace `················flags:·{·from:·localFilter?.from_flag,·to:·localFilter?.to_flag·` with `········flags:·{from:·localFilter?.from_flag,·to:·localFilter?.to_flag`"
prettier/prettier
|
| 146 |
flags: { from: localFilter?.from_flag, to: localFilter?.to_flag }, |
| Error |
Row 147, Column 1: "Delete `······`"
prettier/prettier
|
| 147 |
}); |
| Error |
Row 148, Column 5: "Delete `····`"
prettier/prettier
|
| 148 |
} catch (error) { |
| Error |
Row 149, Column 1: "Replace `············alert(UI_API._returnError(error))` with `······alert(UI_API._returnError(error));`"
prettier/prettier
|
| Warning |
Row 149, Column 13: "Unexpected alert."
no-alert
|
| Warning |
Row 149, Column 46: "Missing semicolon."
semi
|
| 149 |
alert(UI_API._returnError(error)) |
| Error |
Row 150, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 150 |
setLoading(false); |
| Error |
Row 151, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 151 |
} |
| Error |
Row 152, Column 1: "Delete `··`"
prettier/prettier
|
| 152 |
}; |
| 153 |
|
| Error |
Row 154, Column 3: "Delete `··`"
prettier/prettier
|
| 154 |
return ( |
| Error |
Row 155, Column 1: "Replace `········prettier/prettier
|
| Warning |
Row 155, Column 22: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 155 |
<View style={{ flex: 1, backgroundColor: colors.white }}> |
| Error |
Row 156, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 156 |
<Header |
| Error |
Row 157, Column 1: "Delete `········`"
prettier/prettier
|
| 157 |
{...props} |
| Error |
Row 158, Column 1: "Delete `········`"
prettier/prettier
|
| 158 |
title={isFilter ? 'filters' : 'Add Trip'} |
| Error |
Row 159, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 159 |
allowBackBtn |
| Error |
Row 160, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 160 |
bellIcon |
| Error |
Row 161, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 161 |
/> |
| Error |
Row 162, Column 1: "Replace `············{console.log('localFilter::',` with `······{console.log('localFilter::',·`"
prettier/prettier
|
| 162 |
{console.log('localFilter::',localFilter)} |
| Error |
Row 163, Column 1: "Replace `············prettier/prettier
|
| Warning |
Row 163, Column 26: "Inline style: { flex: 1 }"
react-native/no-inline-styles
|
| 163 |
<View style={{ flex: 1 }}> |
| Error |
Row 164, Column 1: "Delete `········`"
prettier/prettier
|
| 164 |
<ScrollView |
| Error |
Row 165, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| Warning |
Row 165, Column 44: "Inline style: { flexGrow: 1 }"
react-native/no-inline-styles
|
| 165 |
contentContainerStyle={{ |
| Error |
Row 166, Column 13: "Delete `············`"
prettier/prettier
|
| 166 |
flexGrow: 1, |
| Error |
Row 167, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 167 |
paddingBottom: mvs(40), |
| Error |
Row 168, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 168 |
paddingHorizontal: mvs(22), |
| Error |
Row 169, Column 11: "Replace `··········}}>` with `}}>⏎··········{isFilter·&&·(`"
prettier/prettier
|
| 169 |
}}> |
| Error |
Row 170, Column 13: "Replace `········{isFilter·&&·` with `prettier/prettier
|
| Warning |
Row 170, Column 47: "Inline style: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between'
}"
react-native/no-inline-styles
|
| 170 |
{isFilter && <View style={{ flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between' }}> |
| Error |
Row 171, Column 13: "Replace `············` with `··}}>⏎··············`"
prettier/prettier
|
| 171 |
<Regular label={'Deliver Before'} /> |
| Error |
Row 172, Column 15: "Delete `··········`"
prettier/prettier
|
| 172 |
<Buttons.ButtonRTL |
| Error |
Row 173, Column 1: "Replace `····························` with `················`"
prettier/prettier
|
| 173 |
textStyle={{ |
| Error |
Row 174, Column 1: "Replace `································color:localFilter?.delivery_date?colors.primary` with `··················color:·localFilter?.delivery_date⏎····················?·colors.primary⏎····················`"
prettier/prettier
|
| Warning |
Row 174, Column 65: "Operator '?' must be spaced."
space-infix-ops
|
| 174 |
color:localFilter?.delivery_date?colors.primary: colors.lightgrey2, |
| Error |
Row 175, Column 17: "Delete `············`"
prettier/prettier
|
| 175 |
}} |
| Error |
Row 176, Column 1: "Delete `············`"
prettier/prettier
|
| 176 |
// disabled={ifRadio(radioLabels.label2Way)} |
| Error |
Row 177, Column 17: "Delete `············`"
prettier/prettier
|
| 177 |
onClick={() => { |
| Error |
Row 178, Column 1: "Delete `··············`"
prettier/prettier
|
| 178 |
// showDatePicker('delivery_date'); |
| Error |
Row 179, Column 1: "Replace `································` with `··················`"
prettier/prettier
|
| 179 |
showDatePicker(); |
| Error |
Row 180, Column 17: "Delete `············`"
prettier/prettier
|
| 180 |
}} |
| Error |
Row 181, Column 1: "Replace `····························` with `················`"
prettier/prettier
|
| 181 |
iconName={'date'} |
| Error |
Row 182, Column 1: "Replace `····························` with `················`"
prettier/prettier
|
| 182 |
title={localFilter.delivery_date || 'Date'} |
| Error |
Row 183, Column 1: "Replace `····························style={{·...styles.FLAG_BUTTON,·width:·'49%'·` with `················style={{...styles.FLAG_BUTTON,·width:·'49%'`"
prettier/prettier
|
| Warning |
Row 183, Column 36: "Inline style: { width: '49%' }"
react-native/no-inline-styles
|
| 183 |
style={{ ...styles.FLAG_BUTTON, width: '49%' }} |
| Error |
Row 184, Column 1: "Replace `····························` with `················`"
prettier/prettier
|
| 184 |
iconStyle={styles.RTL_ICON} |
| Error |
Row 185, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| 185 |
/> |
| Error |
Row 186, Column 1: "Replace `····················}` with `············`"
prettier/prettier
|
| 186 |
</View>} |
| Error |
Row 187, Column 11: "Insert `)}⏎`"
prettier/prettier
|
| 187 |
<View> |
| Error |
Row 188, Column 13: "Delete `············`"
prettier/prettier
|
| 188 |
<Regular |
| Error |
Row 189, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 189 |
label={'Location'} |
| Error |
Row 190, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 190 |
style={{ |
| Error |
Row 191, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 191 |
fontSize: mvs(15), |
| Error |
Row 192, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 192 |
color: colors.typeHeader, |
| Error |
Row 193, Column 1: "Delete `················`"
prettier/prettier
|
| 193 |
marginBottom: mvs(10), |
| Error |
Row 194, Column 15: "Delete `··············`"
prettier/prettier
|
| 194 |
}} |
| Error |
Row 195, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 195 |
/> |
| Error |
Row 196, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 196 |
<Buttons.ButtonLocation |
| Error |
Row 197, Column 1: "Replace `····························textStyle={{color:·colors.primary,·textAlign·` with `··············textStyle={{color:·colors.primary,·textAlign`"
prettier/prettier
|
| Warning |
Row 197, Column 40: "Inline style: { textAlign: 'left' }"
react-native/no-inline-styles
|
| 197 |
textStyle={{color: colors.primary, textAlign : 'left'}} |
| Error |
Row 198, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 198 |
onClick={() => { |
| Error |
Row 199, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 199 |
if (isOnline) { |
| Error |
Row 200, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| 200 |
setCountryModal(true); |
| Error |
Row 201, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 201 |
} else { |
| Error |
Row 202, Column 1: "Delete `··················`"
prettier/prettier
|
| 202 |
onPicLocDestination('country_from', true); |
| Error |
Row 203, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 203 |
} |
| Error |
Row 204, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 204 |
}} |
| Error |
Row 205, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 205 |
iconName={localFilter?.from_flag || services.land_mark} |
| Error |
Row 206, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 206 |
title={localFilter?.full_address_from || 'location'} |
| Error |
Row 207, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 207 |
style={styles.FLAG_BUTTON} |
| Error |
Row 208, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 208 |
iconStyle={{ |
| Error |
Row 209, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 209 |
height: mvs(23), |
| Error |
Row 210, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 210 |
width: mvs(23), |
| Error |
Row 211, Column 1: "Delete `··············`"
prettier/prettier
|
| 211 |
}} |
| Error |
Row 212, Column 13: "Delete `············`"
prettier/prettier
|
| 212 |
/> |
| Error |
Row 213, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 213 |
</View> |
| Error |
Row 214, Column 1: "Replace `····················prettier/prettier
|
| 214 |
<View style={{ marginTop: mvs(8) }}> |
| Error |
Row 215, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 215 |
<Regular |
| Error |
Row 216, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 216 |
label={'Destination'} |
| Error |
Row 217, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 217 |
style={{ |
| Error |
Row 218, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 218 |
fontSize: mvs(15), |
| Error |
Row 219, Column 1: "Delete `················`"
prettier/prettier
|
| 219 |
color: colors.typeHeader, |
| Error |
Row 220, Column 17: "Delete `················`"
prettier/prettier
|
| 220 |
marginBottom: mvs(10), |
| Error |
Row 221, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 221 |
}} |
| Error |
Row 222, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 222 |
/> |
| Error |
Row 223, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 223 |
<Buttons.ButtonLocation |
| Error |
Row 224, Column 1: "Delete `··············`"
prettier/prettier
|
| 224 |
disabled={!localFilter?.full_address_from} |
| Error |
Row 225, Column 1: "Replace `····························textStyle={{·color:·colors.primary·` with `··············textStyle={{color:·colors.primary`"
prettier/prettier
|
| 225 |
textStyle={{ color: colors.primary }} |
| Error |
Row 226, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 226 |
onClick={() => onPicLocDestination('country_to')} |
| Error |
Row 227, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 227 |
iconName={localFilter?.to_flag || services.land_mark} |
| Error |
Row 228, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 228 |
title={localFilter?.full_address_to || 'destination'} |
| Error |
Row 229, Column 15: "Replace `··············style={{·...styles.FLAG_BUTTON,·` with `style={{...styles.FLAG_BUTTON`"
prettier/prettier
|
| Warning |
Row 229, Column 59: "Unexpected trailing comma."
comma-dangle
|
| 229 |
style={{ ...styles.FLAG_BUTTON, }} |
| Error |
Row 230, Column 1: "Delete `··············`"
prettier/prettier
|
| 230 |
iconStyle={{ |
| Error |
Row 231, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 231 |
height: mvs(23), |
| Error |
Row 232, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 232 |
width: mvs(23), |
| Error |
Row 233, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 233 |
}} |
| Error |
Row 234, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 234 |
/> |
| Error |
Row 235, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 235 |
</View> |
| Error |
Row 236, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 236 |
<CustomSwitch |
| Error |
Row 237, Column 1: "Replace `························textStyle={{·color:·colors.typeHeader·` with `············textStyle={{color:·colors.typeHeader`"
prettier/prettier
|
| 237 |
textStyle={{ color: colors.typeHeader }} |
| Error |
Row 238, Column 13: "Delete `············`"
prettier/prettier
|
| 238 |
label={'No delivery offers'} |
| Error |
Row 239, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 239 |
value={localFilter?.no_delivery} |
| Error |
Row 240, Column 1: "Delete `············`"
prettier/prettier
|
| 240 |
onChange={value => onChangeValue('no_delivery', value)} |
| Error |
Row 241, Column 11: "Delete `··········`"
prettier/prettier
|
| 241 |
/> |
| Error |
Row 242, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 242 |
<View style={styles.DIV} /> |
| Error |
Row 243, Column 1: "Delete `··········`"
prettier/prettier
|
| 243 |
<Regular label={'Delivery time'} style={styles.DEL_TIME} /> |
| Error |
Row 244, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 244 |
<View style={styles.RADIO_CONTAINER}> |
| Error |
Row 245, Column 1: "Replace `························prettier/prettier
|
| Warning |
Row 245, Column 38: "Inline style: { flexDirection: 'row' }"
react-native/no-inline-styles
|
| 245 |
<View style={{ flexDirection: 'row' }}> |
| Error |
Row 246, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 246 |
<CustomRadio |
| Error |
Row 247, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 247 |
labelStyle={{ |
| Error |
Row 248, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| 248 |
color: localFilter?.isThreeDays |
| Error |
Row 249, Column 21: "Delete `····················`"
prettier/prettier
|
| 249 |
? colors.primary |
| Error |
Row 250, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| 250 |
: colors.headerTitle, |
| Error |
Row 251, Column 17: "Delete `················`"
prettier/prettier
|
| 251 |
}} |
| Error |
Row 252, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 252 |
status={localFilter?.isThreeDays} |
| Error |
Row 253, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 253 |
label={'Within 3 days'} |
| Error |
Row 254, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 254 |
onChange={value => { |
| Error |
Row 255, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| 255 |
setOrResetLocalFilter({ |
| Error |
Row 256, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| 256 |
...localFilter, |
| Error |
Row 257, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| 257 |
isThreeDays: true, |
| Error |
Row 258, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| 258 |
isTwoDays: false, |
| Error |
Row 259, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| 259 |
is_urgent: false, |
| Error |
Row 260, Column 1: "Replace `········································delivery_date:` with `····················delivery_date:·`"
prettier/prettier
|
| 260 |
delivery_date:'', |
| Error |
Row 261, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| 261 |
}); |
| Error |
Row 262, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 262 |
}} |
| Error |
Row 263, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 263 |
/> |
| Error |
Row 264, Column 1: "Delete `··············`"
prettier/prettier
|
| 264 |
<CustomRadio |
| Error |
Row 265, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 265 |
labelStyle={{ |
| Error |
Row 266, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| 266 |
color: localFilter?.isTwoDays |
| Error |
Row 267, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| 267 |
? colors.primary |
| Error |
Row 268, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| 268 |
: colors.headerTitle, |
| Error |
Row 269, Column 1: "Delete `················`"
prettier/prettier
|
| 269 |
}} |
| Error |
Row 270, Column 17: "Replace `················style={{·marginLeft:·mvs(45)·` with `style={{marginLeft:·mvs(45)`"
prettier/prettier
|
| 270 |
style={{ marginLeft: mvs(45) }} |
| Error |
Row 271, Column 17: "Delete `················`"
prettier/prettier
|
| 271 |
status={localFilter?.isTwoDays} |
| Error |
Row 272, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 272 |
label={'Within 2 days'} |
| Error |
Row 273, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 273 |
onChange={value => { |
| Error |
Row 274, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| 274 |
setOrResetLocalFilter({ |
| Error |
Row 275, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| 275 |
...localFilter, |
| Error |
Row 276, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| 276 |
isThreeDays: false, |
| Error |
Row 277, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| 277 |
isTwoDays: true, |
| Error |
Row 278, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| 278 |
is_urgent: false, |
| Error |
Row 279, Column 1: "Replace `········································delivery_date:''` with `····················delivery_date:·'',`"
prettier/prettier
|
| Warning |
Row 279, Column 57: "Missing trailing comma."
comma-dangle
|
| 279 |
delivery_date:'' |
| Error |
Row 280, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| 280 |
}); |
| Error |
Row 281, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 281 |
}} |
| Error |
Row 282, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 282 |
/> |
| Error |
Row 283, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 283 |
</View> |
| Error |
Row 284, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 284 |
<CustomRadio |
| Error |
Row 285, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 285 |
subLabel={' (Higher rewards)'} |
| Error |
Row 286, Column 1: "Replace `····························labelStyle={{·color:·colors.pink·` with `··············labelStyle={{color:·colors.pink`"
prettier/prettier
|
| 286 |
labelStyle={{ color: colors.pink }} |
| Error |
Row 287, Column 1: "Replace `····························style={{·marginTop:·mvs(8)·` with `··············style={{marginTop:·mvs(8)`"
prettier/prettier
|
| 287 |
style={{ marginTop: mvs(8) }} |
| Error |
Row 288, Column 1: "Delete `··············`"
prettier/prettier
|
| 288 |
status={localFilter?.is_urgent} |
| Error |
Row 289, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 289 |
label={'Urgent Deliveries'} |
| Error |
Row 290, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 290 |
onChange={value => { |
| Error |
Row 291, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 291 |
setOrResetLocalFilter({ |
| Error |
Row 292, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| 292 |
...localFilter, |
| Error |
Row 293, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| 293 |
isThreeDays: false, |
| Error |
Row 294, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| 294 |
isTwoDays: false, |
| Error |
Row 295, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| 295 |
is_urgent: true, |
| Error |
Row 296, Column 1: "Replace `····································delivery_date:''` with `··················delivery_date:·'',`"
prettier/prettier
|
| Warning |
Row 296, Column 53: "Missing trailing comma."
comma-dangle
|
| 296 |
delivery_date:'' |
| Error |
Row 297, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 297 |
}); |
| Error |
Row 298, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 298 |
}} |
| Error |
Row 299, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 299 |
/> |
| Error |
Row 300, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 300 |
</View> |
| Error |
Row 301, Column 1: "Delete `··········`"
prettier/prettier
|
| 301 |
<View style={styles.PRICES_CONTAINER}> |
| Error |
Row 302, Column 13: "Delete `············`"
prettier/prettier
|
| 302 |
<View> |
| Error |
Row 303, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 303 |
<Regular |
| Error |
Row 304, Column 1: "Replace `································style={{·alignSelf:·'flex-end',·color:·colors.primary·` with `················style={{alignSelf:·'flex-end',·color:·colors.primary`"
prettier/prettier
|
| Warning |
Row 304, Column 40: "Inline style: { alignSelf: 'flex-end' }"
react-native/no-inline-styles
|
| 304 |
style={{ alignSelf: 'flex-end', color: colors.primary }} |
| Error |
Row 305, Column 1: "Replace `································label={`${Math.floor(localFilter?.max_price)}·${profileData?.currency?.currency_code}`}` with `················label={`${Math.floor(localFilter?.max_price)}·${⏎··················profileData?.currency?.currency_code`"
prettier/prettier
|
| 305 |
label={`${Math.floor(localFilter?.max_price)} ${profileData?.currency?.currency_code}`} |
| Error |
Row 306, Column 15: "Insert `··}`}⏎`"
prettier/prettier
|
| 306 |
/> |
| Error |
Row 307, Column 15: "Delete `··············`"
prettier/prettier
|
| 307 |
<View style={styles.MAX_MIN_PRICE}> |
| Error |
Row 308, Column 17: "Delete `················`"
prettier/prettier
|
| 308 |
<Regular |
| Error |
Row 309, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| 309 |
style={styles.PRICE_HEADING} |
| Error |
Row 310, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| 310 |
label={'Max Product Price'} |
| Error |
Row 311, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 311 |
/> |
| Error |
Row 312, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 312 |
<Slider |
| Error |
Row 313, Column 1: "Replace `····································style={{·width:·'55%',·marginRight:·mvs(-15)·` with `··················style={{width:·'55%',·marginRight:·mvs(-15)`"
prettier/prettier
|
| Warning |
Row 313, Column 44: "Inline style: { width: '55%' }"
react-native/no-inline-styles
|
| 313 |
style={{ width: '55%', marginRight: mvs(-15) }} |
| Error |
Row 314, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| 314 |
minimumValue={0} |
| Error |
Row 315, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| 315 |
maximumValue={2000} |
| Error |
Row 316, Column 1: "Delete `··················`"
prettier/prettier
|
| 316 |
minimumTrackTintColor={colors.primary} |
| Error |
Row 317, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| 317 |
thumbTintColor={colors.primary} |
| Error |
Row 318, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| 318 |
value={localFilter?.max_price} |
| Error |
Row 319, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| 319 |
onValueChange={v => { |
| Error |
Row 320, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| 320 |
onChangeValue('max_price', v); |
| Error |
Row 321, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| 321 |
}} |
| Error |
Row 322, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 322 |
/> |
| Error |
Row 323, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 323 |
</View> |
| Error |
Row 324, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 324 |
</View> |
| Error |
Row 325, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 325 |
<View> |
| Error |
Row 326, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 326 |
<Regular |
| Error |
Row 327, Column 1: "Replace `································style={{·alignSelf:·'flex-end',·color:·colors.primary·` with `················style={{alignSelf:·'flex-end',·color:·colors.primary`"
prettier/prettier
|
| Warning |
Row 327, Column 40: "Inline style: { alignSelf: 'flex-end' }"
react-native/no-inline-styles
|
| 327 |
style={{ alignSelf: 'flex-end', color: colors.primary }} |
| Error |
Row 328, Column 1: "Replace `································label={`${Math.floor(localFilter?.reward)}·${profileData?.currency?.currency_code}`}` with `················label={`${Math.floor(localFilter?.reward)}·${⏎··················profileData?.currency?.currency_code`"
prettier/prettier
|
| 328 |
label={`${Math.floor(localFilter?.reward)} ${profileData?.currency?.currency_code}`} |
| Error |
Row 329, Column 17: "Replace `············/>` with `}`}`"
prettier/prettier
|
| 329 |
/> |
| Error |
Row 330, Column 15: "Insert `/>⏎`"
prettier/prettier
|
| 330 |
<View style={styles.MAX_MIN_PRICE}> |
| Error |
Row 331, Column 1: "Delete `················`"
prettier/prettier
|
| 331 |
<Regular style={styles.PRICE_HEADING} label={'Min Reward'} /> |
| Error |
Row 332, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 332 |
<Slider |
| Error |
Row 333, Column 1: "Replace `····································style={{·width:·'55%',·marginRight:·mvs(-15)·` with `··················style={{width:·'55%',·marginRight:·mvs(-15)`"
prettier/prettier
|
| Warning |
Row 333, Column 44: "Inline style: { width: '55%' }"
react-native/no-inline-styles
|
| 333 |
style={{ width: '55%', marginRight: mvs(-15) }} |
| Error |
Row 334, Column 19: "Delete `··················`"
prettier/prettier
|
| 334 |
minimumValue={0} |
| Error |
Row 335, Column 1: "Delete `··················`"
prettier/prettier
|
| 335 |
maximumValue={150} |
| Error |
Row 336, Column 19: "Delete `··················`"
prettier/prettier
|
| 336 |
minimumTrackTintColor={colors.primary} |
| Error |
Row 337, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| 337 |
thumbTintColor={colors.primary} |
| Error |
Row 338, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| 338 |
value={localFilter?.reward} |
| Error |
Row 339, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| 339 |
onValueChange={v => { |
| Error |
Row 340, Column 1: "Replace `········································` with `····················`"
prettier/prettier
|
| 340 |
onChangeValue('reward', v); |
| Error |
Row 341, Column 1: "Replace `····································` with `··················`"
prettier/prettier
|
| 341 |
}} |
| Error |
Row 342, Column 1: "Replace `································` with `················`"
prettier/prettier
|
| 342 |
/> |
| Error |
Row 343, Column 1: "Delete `··············`"
prettier/prettier
|
| 343 |
</View> |
| Error |
Row 344, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 344 |
</View> |
| Error |
Row 345, Column 1: "Replace `····················` with `··········`"
prettier/prettier
|
| 345 |
</View> |
| Error |
Row 346, Column 1: "Delete `··········`"
prettier/prettier
|
| 346 |
<View style={styles.BUTTON_CONTAINER}> |
| Error |
Row 347, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 347 |
<Buttons.ButtonPrimary |
| Error |
Row 348, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 348 |
loading={loading} |
| Error |
Row 349, Column 1: "Delete `··············`"
prettier/prettier
|
| 349 |
loaderColor={colors.white} |
| Error |
Row 350, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 350 |
disabled={loading} |
| Error |
Row 351, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 351 |
onClick={onSaveTrip} |
| Error |
Row 352, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 352 |
style={styles.BUTTON} |
| Error |
Row 353, Column 1: "Delete `··············`"
prettier/prettier
|
| 353 |
title={isFilter ? 'Apply Filters' : 'Add Trip'} |
| Error |
Row 354, Column 13: "Delete `············`"
prettier/prettier
|
| 354 |
/> |
| Error |
Row 355, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 355 |
<Buttons.ButtonSecondaryOutline |
| Error |
Row 356, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 356 |
onClick={clear} |
| Error |
Row 357, Column 1: "Replace `····························style={{·...styles.BUTTON·` with `··············style={{...styles.BUTTON`"
prettier/prettier
|
| 357 |
style={{ ...styles.BUTTON }} |
| Error |
Row 358, Column 1: "Replace `····························` with `··············`"
prettier/prettier
|
| 358 |
title={'Clear All'} |
| Error |
Row 359, Column 1: "Replace `························` with `············`"
prettier/prettier
|
| 359 |
/> |
| Error |
Row 360, Column 1: "Delete `··········`"
prettier/prettier
|
| 360 |
</View> |
| Error |
Row 361, Column 9: "Delete `········`"
prettier/prettier
|
| 361 |
</ScrollView> |
| Error |
Row 362, Column 1: "Replace `············` with `······`"
prettier/prettier
|
| 362 |
</View> |
| Error |
Row 363, Column 1: "Delete `······`"
prettier/prettier
|
| 363 |
<SearchLocationModal |
| Error |
Row 364, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 364 |
setLocation={onSetLocation} |
| Error |
Row 365, Column 9: "Delete `········`"
prettier/prettier
|
| 365 |
setVisible={setVisble} |
| Error |
Row 366, Column 1: "Replace `················` with `········`"
prettier/prettier
|
| 366 |
visible={visible} |
| Error |
Row 367, Column 1: "Delete `········`"
prettier/prettier
|
| 367 |
country_short_name={localFilter?.from_country_short_name} |
| Error |
Row 368, Column 7: "Delete `······`"
prettier/prettier
|
| 368 |
/> |
| Error |
Row 369, Column 1: "Delete `······`"
prettier/prettier
|
| 369 |
{/* <CountryPicker |
| 370 |
visible={countryModal} |
| 371 |
onClose={() => setCountryModal(false)} |
| 372 |
onSelect={(country, flag, short_name) => { |
| 373 |
setOrResetLocalFilter({ |
| 374 |
...localFilter, |
| 375 |
country_from: country, |
| 376 |
full_address_from: country, |
| 377 |
from_country_short_name: short_name, |
| 378 |
to_country_short_name: short_name, |
| 379 |
//to country field |
| 380 |
full_address_to: '', |
| 381 |
country_to: '', |
| 382 |
city_to: '', |
| 383 |
from_flag: flag, |
| 384 |
to_flag: '', |
| 385 |
}); |
| 386 |
setCountryModal(false); |
| 387 |
}} |
| 388 |
/> */} |
| Error |
Row 389, Column 7: "Replace `······{countryModal·&&·` with `{countryModal·&&·(⏎········`"
prettier/prettier
|
| 389 |
{countryModal && <CountryPicker |
| Error |
Row 390, Column 1: "Replace `················` with `··········`"
prettier/prettier
|
| 390 |
visible |
| Error |
Row 391, Column 1: "Delete `······`"
prettier/prettier
|
| 391 |
withFilter |
| Error |
Row 392, Column 1: "Replace `················onClose={()·=>·{·setCountryModal(false);·}}` with `··········onClose={()·=>·{⏎············setCountryModal(false);`"
prettier/prettier
|
| 392 |
onClose={() => { setCountryModal(false); }} |
| Error |
Row 393, Column 7: "Replace `··········onSelect={(item)` with `····}}⏎··········onSelect={item`"
prettier/prettier
|
| 393 |
onSelect={(item) => { |
| Error |
Row 394, Column 1: "Delete `········`"
prettier/prettier
|
| 394 |
setOrResetLocalFilter({ |
| Error |
Row 395, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| 395 |
...localFilter, |
| Error |
Row 396, Column 1: "Delete `··········`"
prettier/prettier
|
| 396 |
country_from: item?.name, |
| Error |
Row 397, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| 397 |
full_address_from: item?.name, |
| Error |
Row 398, Column 1: "Delete `··········`"
prettier/prettier
|
| Warning |
Row 398, Column 68: "Expected '===' and instead saw '=='."
eqeqeq
|
| 398 |
from_flag: countriesList?.find(x => x.name == item?.name)?.flag, |
| Error |
Row 399, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| 399 |
from_country_short_name: item?.cca2, |
| Error |
Row 400, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| 400 |
to_country_short_name: item?.cca2, |
| Error |
Row 401, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| 401 |
full_address_to: '', |
| Error |
Row 402, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| 402 |
country_to: '', |
| Error |
Row 403, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| 403 |
city_to: '', |
| Error |
Row 404, Column 1: "Replace `························` with `··············`"
prettier/prettier
|
| 404 |
to_flag: '', |
| Error |
Row 405, Column 13: "Replace `········})` with `});`"
prettier/prettier
|
| Warning |
Row 405, Column 23: "Missing semicolon."
semi
|
| 405 |
}) |
| Error |
Row 406, Column 1: "Replace `····················` with `············`"
prettier/prettier
|
| 406 |
setCountryModal(false); |
| Error |
Row 407, Column 11: "Replace `······}⏎················` with `}`"
prettier/prettier
|
| 407 |
} |
| 408 |
} |
| Error |
Row 409, Column 1: "Replace `············/>}` with `········/>`"
prettier/prettier
|
| 409 |
/>} |
| Error |
Row 410, Column 7: "Replace `··` with `)}⏎`"
prettier/prettier
|
| 410 |
<DatePickerModal |
| Error |
Row 411, Column 9: "Delete `····`"
prettier/prettier
|
| 411 |
visible={isDatePickerVisible} |
| Error |
Row 412, Column 9: "Delete `····`"
prettier/prettier
|
| 412 |
onClose={() => { |
| Error |
Row 413, Column 1: "Replace `··············` with `··········`"
prettier/prettier
|
| 413 |
setDatePickerVisibility(false); |
| Error |
Row 414, Column 9: "Delete `····`"
prettier/prettier
|
| 414 |
}} |
| Error |
Row 415, Column 1: "Replace `············` with `········`"
prettier/prettier
|
| 415 |
onApply={hideDatePicker} |
| Error |
Row 416, Column 7: "Delete `····`"
prettier/prettier
|
| 416 |
/> |
| Error |
Row 417, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 417 |
</View> |
| Error |
Row 418, Column 1: "Delete `··`"
prettier/prettier
|
| 418 |
); |
| 419 |
}; |
| 420 |
const mapStateToProps = state => { |
| Error |
Row 421, Column 3: "Delete `··`"
prettier/prettier
|
| 421 |
return { |
| Error |
Row 422, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 422 |
isGuest: state.auth.isGuest, |
| Error |
Row 423, Column 1: "Delete `····`"
prettier/prettier
|
| 423 |
localFilter: state.common.localFilter, |
| Error |
Row 424, Column 1: "Delete `····`"
prettier/prettier
|
| 424 |
profileData: state.auth.userInfo?.profile || {}, |
| Error |
Row 425, Column 5: "Delete `····`"
prettier/prettier
|
| 425 |
countriesList: state.common.countriesList, |
| Error |
Row 426, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 426 |
}; |
| 427 |
}; |
| 428 |
const mapDispatchToProps = dispatch => ({ |
| Error |
Row 429, Column 3: "Replace `··createOrFilterTrip:·(payload,·bool·=·true)·=>` with `createOrFilterTrip:·(payload,·bool·=·true)·=>⏎···`"
prettier/prettier
|
| 429 |
createOrFilterTrip: (payload, bool = true) => dispatch(TAKE_TO_ACTIONS.createOrFilterTrip(payload, bool)), |
| Error |
Row 430, Column 3: "Replace `··setOrResetLocalFilter:·(payload,·bool)·=>` with `setOrResetLocalFilter:·(payload,·bool)·=>⏎···`"
prettier/prettier
|
| 430 |
setOrResetLocalFilter: (payload, bool) => dispatch(TAKE_TO_ACTIONS.setOrResetLocalFilter(payload, bool)), |
| Error |
Row 431, Column 3: "Replace `··clearFilterOrders:·()·=>·dispatch(·` with `clearFilterOrders:·()·=>·dispatch(`"
prettier/prettier
|
| 431 |
clearFilterOrders: () => dispatch( TAKE_TO_ACTIONS.clearFilterOrders()), |
| 432 |
}); |
| 433 |
export default connect(mapStateToProps, mapDispatchToProps)(LocalTrip); |
| 434 |
|
| 435 |
const styles = StyleSheet.create({ |
| Error |
Row 436, Column 3: "Delete `··`"
prettier/prettier
|
| 436 |
CONTAINER: { |
| Error |
Row 437, Column 1: "Delete `····`"
prettier/prettier
|
| 437 |
position: 'absolute', |
| Error |
Row 438, Column 5: "Delete `····`"
prettier/prettier
|
| 438 |
bottom: 0, |
| Error |
Row 439, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 439 |
width: '100%', |
| Error |
Row 440, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 440 |
borderTopLeftRadius: mvs(20), |
| Error |
Row 441, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 441 |
borderTopRightRadius: mvs(20), |
| Error |
Row 442, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 442 |
backgroundColor: colors.primary, |
| Error |
Row 443, Column 3: "Delete `··`"
prettier/prettier
|
| 443 |
}, |
| Error |
Row 444, Column 1: "Delete `··`"
prettier/prettier
|
| 444 |
HEADING_TXT: { |
| Error |
Row 445, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 445 |
fontSize: mvs(15), |
| Error |
Row 446, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 446 |
color: colors.white, |
| Error |
Row 447, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 447 |
alignSelf: 'center', |
| Error |
Row 448, Column 1: "Delete `····`"
prettier/prettier
|
| 448 |
marginTop: mvs(13), |
| Error |
Row 449, Column 1: "Delete `····`"
prettier/prettier
|
| 449 |
marginBottom: mvs(16), |
| Error |
Row 450, Column 3: "Delete `··`"
prettier/prettier
|
| 450 |
}, |
| Error |
Row 451, Column 1: "Delete `··`"
prettier/prettier
|
| 451 |
SUB_CONTAINER: { |
| Error |
Row 452, Column 1: "Delete `····`"
prettier/prettier
|
| 452 |
backgroundColor: colors.white, |
| Error |
Row 453, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 453 |
paddingVertical: mvs(20), |
| Error |
Row 454, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 454 |
paddingHorizontal: mvs(22), |
| Error |
Row 455, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 455 |
borderTopLeftRadius: mvs(20), |
| Error |
Row 456, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 456 |
borderTopRightRadius: mvs(20), |
| Error |
Row 457, Column 3: "Delete `··`"
prettier/prettier
|
| 457 |
}, |
| Error |
Row 458, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 458 |
DESTINATION_CONTAINER: { |
| Error |
Row 459, Column 1: "Delete `····`"
prettier/prettier
|
| 459 |
alignItems: 'center', |
| Error |
Row 460, Column 1: "Delete `····`"
prettier/prettier
|
| 460 |
flexDirection: 'row', |
| Error |
Row 461, Column 5: "Delete `····`"
prettier/prettier
|
| 461 |
justifyContent: 'space-between', |
| Error |
Row 462, Column 3: "Delete `··`"
prettier/prettier
|
| 462 |
}, |
| Error |
Row 463, Column 1: "Delete `··`"
prettier/prettier
|
| 463 |
FLAG_BUTTON: { |
| Error |
Row 464, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 464 |
width: '100%', |
| Error |
Row 465, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 465 |
height: mvs(38), |
| Error |
Row 466, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 466 |
flexDirection: 'row-reverse', |
| Error |
Row 467, Column 1: "Delete `····`"
prettier/prettier
|
| 467 |
backgroundColor: colors.secondary, |
| Error |
Row 468, Column 1: "Delete `··`"
prettier/prettier
|
| 468 |
}, |
| Error |
Row 469, Column 3: "Delete `··`"
prettier/prettier
|
| 469 |
SEARCH_MAP: { |
| Error |
Row 470, Column 1: "Delete `····`"
prettier/prettier
|
| 470 |
marginTop: mvs(15), |
| Error |
Row 471, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 471 |
alignSelf: 'flex-end', |
| Error |
Row 472, Column 5: "Delete `····`"
prettier/prettier
|
| 472 |
width: mvs(161), |
| Error |
Row 473, Column 1: "Delete `····`"
prettier/prettier
|
| 473 |
height: mvs(38), |
| Error |
Row 474, Column 5: "Delete `····`"
prettier/prettier
|
| 474 |
flexDirection: 'row', |
| Error |
Row 475, Column 1: "Delete `····`"
prettier/prettier
|
| 475 |
backgroundColor: colors.primary, |
| Error |
Row 476, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 476 |
paddingHorizontal: mvs(23), |
| Error |
Row 477, Column 3: "Delete `··`"
prettier/prettier
|
| 477 |
}, |
| Error |
Row 478, Column 1: "Delete `··`"
prettier/prettier
|
| 478 |
MAP_ICON: { |
| Error |
Row 479, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 479 |
height: mvs(18), |
| Error |
Row 480, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 480 |
width: mvs(14), |
| Error |
Row 481, Column 3: "Delete `··`"
prettier/prettier
|
| 481 |
}, |
| Error |
Row 482, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 482 |
NO_DELIVERY_CONTAINER: { |
| Error |
Row 483, Column 1: "Delete `····`"
prettier/prettier
|
| 483 |
borderTopWidth: StyleSheet.hairlineWidth, |
| Error |
Row 484, Column 1: "Delete `····`"
prettier/prettier
|
| 484 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| Error |
Row 485, Column 5: "Delete `····`"
prettier/prettier
|
| 485 |
flexDirection: 'row', |
| Error |
Row 486, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 486 |
alignItems: 'center', |
| Error |
Row 487, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 487 |
paddingVertical: mvs(14), |
| Error |
Row 488, Column 5: "Delete `····`"
prettier/prettier
|
| 488 |
marginTop: mvs(15), |
| Error |
Row 489, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 489 |
borderColor: colors.filter_divider, |
| Error |
Row 490, Column 3: "Delete `··`"
prettier/prettier
|
| 490 |
}, |
| Error |
Row 491, Column 1: "Delete `··`"
prettier/prettier
|
| 491 |
NoDelivery: { |
| Error |
Row 492, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 492 |
fontSize: mvs(15), |
| Error |
Row 493, Column 1: "Delete `····`"
prettier/prettier
|
| 493 |
color: colors.headerTitle, |
| Error |
Row 494, Column 3: "Delete `··`"
prettier/prettier
|
| 494 |
}, |
| Error |
Row 495, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 495 |
PRICES_CONTAINER: { |
| Error |
Row 496, Column 1: "Delete `····`"
prettier/prettier
|
| 496 |
justifyContent: 'space-between', |
| Error |
Row 497, Column 3: "Delete `··`"
prettier/prettier
|
| 497 |
}, |
| Error |
Row 498, Column 1: "Delete `··`"
prettier/prettier
|
| 498 |
PRICE_HEADING: { |
| Error |
Row 499, Column 5: "Delete `····`"
prettier/prettier
|
| 499 |
fontSize: mvs(15), |
| Error |
Row 500, Column 1: "Delete `····`"
prettier/prettier
|
| 500 |
color: colors.typeHeader, |
| Error |
Row 501, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 501 |
marginBottom: mvs(10), |
| Error |
Row 502, Column 1: "Delete `··`"
prettier/prettier
|
| 502 |
}, |
| Error |
Row 503, Column 3: "Delete `··`"
prettier/prettier
|
| 503 |
MAX_MIN_PRICE: { |
| Error |
Row 504, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 504 |
// width: mvs(161), |
| Error |
Row 505, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 505 |
flexDirection: 'row', |
| Error |
Row 506, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 506 |
alignItems: 'center', |
| Error |
Row 507, Column 1: "Delete `····`"
prettier/prettier
|
| 507 |
justifyContent: 'space-between', |
| Error |
Row 508, Column 3: "Delete `··`"
prettier/prettier
|
| 508 |
}, |
| Error |
Row 509, Column 1: "Delete `··`"
prettier/prettier
|
| 509 |
DIV: { |
| Error |
Row 510, Column 5: "Delete `····`"
prettier/prettier
|
| 510 |
marginTop: mvs(15), |
| Error |
Row 511, Column 1: "Delete `····`"
prettier/prettier
|
| 511 |
marginBottom: mvs(13), |
| Error |
Row 512, Column 5: "Delete `····`"
prettier/prettier
|
| 512 |
borderBottomWidth: StyleSheet.hairlineWidth, |
| Error |
Row 513, Column 5: "Delete `····`"
prettier/prettier
|
| 513 |
borderColor: colors.filter_divider, |
| Error |
Row 514, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 514 |
}, |
| Error |
Row 515, Column 1: "Delete `··`"
prettier/prettier
|
| 515 |
DEL_TIME: { |
| Error |
Row 516, Column 1: "Delete `····`"
prettier/prettier
|
| 516 |
color: colors.typeHeader, |
| Error |
Row 517, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 517 |
fontSize: mvs(15), |
| Error |
Row 518, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 518 |
marginBottom: mvs(8), |
| Error |
Row 519, Column 3: "Delete `··`"
prettier/prettier
|
| 519 |
}, |
| Error |
Row 520, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 520 |
RADIO_CONTAINER: { |
| Error |
Row 521, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 521 |
marginBottom: mvs(18), |
| Error |
Row 522, Column 3: "Delete `··`"
prettier/prettier
|
| 522 |
}, |
| Error |
Row 523, Column 1: "Replace `····` with `··`"
prettier/prettier
|
| 523 |
RADIO_LABEL: { |
| Error |
Row 524, Column 1: "Delete `····`"
prettier/prettier
|
| 524 |
color: colors.headerTitle, |
| Error |
Row 525, Column 1: "Delete `····`"
prettier/prettier
|
| 525 |
fontSize: mvs(15), |
| Error |
Row 526, Column 3: "Delete `··`"
prettier/prettier
|
| 526 |
}, |
| Error |
Row 527, Column 1: "Delete `··`"
prettier/prettier
|
| 527 |
BUTTON_CONTAINER: { |
| Error |
Row 528, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 528 |
marginTop: mvs(30), |
| Error |
Row 529, Column 1: "Replace `········` with `····`"
prettier/prettier
|
| 529 |
flexDirection: 'row', |
| Error |
Row 530, Column 1: "Delete `····`"
prettier/prettier
|
| 530 |
justifyContent: 'space-between', |
| Error |
Row 531, Column 1: "Delete `··`"
prettier/prettier
|
| 531 |
}, |
| Error |
Row 532, Column 3: "Delete `··`"
prettier/prettier
|
| 532 |
BUTTON: { |
| Error |
Row 533, Column 1: "Delete `····`"
prettier/prettier
|
| 533 |
width: '49%', |
| Error |
Row 534, Column 1: "Delete `··`"
prettier/prettier
|
| 534 |
}, |
| 535 |
}); |
| 536 |
|
|